{"openapi":"3.0.0","info":{"title":"zig-kvs-api","version":"5.0.0","description":"zig-kvs-api","contact":{"name":"Zig Websoftware BV"}},"paths":{"/api/activities/comment/{commentId}/lastupdate":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getLastUpdateForComment","tags":["ActivityController"],"responses":{"200":{"description":"Array of Activity model instances by last update","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityResponseWithRelations"}}}}}},"parameters":[{"name":"commentId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ActivityController.getLastUpdateForComment"}},"/api/activities/comment/{commentId}":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getByComment","tags":["ActivityController"],"responses":{"200":{"description":"Array of Activity model instances by comment id","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityWithRelations"}}}}}},"parameters":[{"name":"commentId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ActivityController.getByComment"}},"/api/activities/dossier/{dossierId}/count":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getCountByDossier","tags":["ActivityController"],"responses":{"200":{"description":"Dossier activity count for the given dossier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"dossierId","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","enum":[{"name":"ActivityCode","properties":{"id":{"type":"number","unsigned":true,"generated":true,"precision":10,"scale":0,"id":1},"name":{"type":"string","required":true,"length":50,"jsonSchema":{"enum":[]}}},"settings":{"idInjection":true},"relations":{}}]},"dossierId":{"type":"number"},"channelId":{"type":"number"},"employeeId":{"type":"number"},"state":{"type":"string","enum":["closed","open","archived"]},"offset":{"type":"number"},"limit":{"type":"number"},"order":{"type":"object","properties":{"orderBy":{"type":"array","items":{"type":"string","enum":["Activity.createdDate","Activity.id"]}},"direction":{"type":"string","enum":["ASC","DESC"]}},"additionalProperties":false}}}}}}],"operationId":"ActivityController.getCountByDossier"}},"/api/activities/dossier/{dossierId}/metadata":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getMetadataByDossier","tags":["ActivityController"],"responses":{"200":{"description":"Dossier activity metadata for the given dossier","content":{"application/json":{"schema":{"type":"object","required":["participants","messageChannels"],"properties":{"participants":{"type":"array","items":{"type":"object","required":["id","profile"],"properties":{"id":{"type":"number"},"profile":{"$ref":"#/components/schemas/Profile"}}}},"messageChannels":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}}}}}}}},"parameters":[{"name":"dossierId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ActivityController.getMetadataByDossier"}},"/api/activities/dossier/{dossierId}":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getByDossier","tags":["ActivityController"],"responses":{"200":{"description":"Array of Activity model instances by dossier id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}}},"parameters":[{"name":"dossierId","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","enum":[{"name":"ActivityCode","properties":{"id":{"type":"number","unsigned":true,"generated":true,"precision":10,"scale":0,"id":1},"name":{"type":"string","required":true,"length":50,"jsonSchema":{"enum":[]}}},"settings":{"idInjection":true},"relations":{}}]},"dossierId":{"type":"number"},"channelId":{"type":"number"},"employeeId":{"type":"number"},"state":{"type":"string","enum":["closed","open","archived"]},"offset":{"type":"number"},"limit":{"type":"number"},"order":{"type":"object","properties":{"orderBy":{"type":"array","items":{"type":"string","enum":["Activity.createdDate","Activity.id"]}},"direction":{"type":"string","enum":["ASC","DESC"]}},"additionalProperties":false}}}}}}],"operationId":"ActivityController.getByDossier"}},"/api/activities/message/{messageId}/lastassignment":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getLastAssignmentForMessage","tags":["ActivityController"],"responses":{"200":{"description":"Array of Activity model instances by last assignment","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityWithRelations"}}}}}},"parameters":[{"name":"messageId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ActivityController.getLastAssignmentForMessage"}},"/api/activities/message/{messageId}":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getByMessage","tags":["ActivityController"],"responses":{"200":{"description":"Array of Activity model instances by message id","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityWithRelations"}}}}}},"parameters":[{"name":"messageId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ActivityController.getByMessage"}},"/api/activities/phone-call/incoming":{"post":{"x-controller-name":"ActivityController","x-operation-name":"createIncomingPhoneCall","tags":["ActivityController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Phone call created successfully with no content."}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"description":"Bad Request: Invalid input data."}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["relationId"],"properties":{"relationId":{"type":"number","example":6}}}}}},"operationId":"ActivityController.createIncomingPhoneCall"}},"/api/activities/phone-call/outgoing":{"post":{"x-controller-name":"ActivityController","x-operation-name":"registerOutgoingPhoneCall","tags":["ActivityController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Registered an activity for an outgoing phone call"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["relationId"],"properties":{"relationId":{"type":"number","example":6}}}}}},"operationId":"ActivityController.registerOutgoingPhoneCall"}},"/api/activities/relation/{relationId}/count":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getCountByRelation","tags":["ActivityController"],"responses":{"200":{"description":"Count of Activity model instances for the given relation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","enum":[{"name":"ActivityCode","properties":{"id":{"type":"number","unsigned":true,"generated":true,"precision":10,"scale":0,"id":1},"name":{"type":"string","required":true,"length":50,"jsonSchema":{"enum":[]}}},"settings":{"idInjection":true},"relations":{}}]},"dossierId":{"type":"number"},"channelId":{"type":"number"},"employeeId":{"type":"number"},"state":{"type":"string","enum":["closed","open","archived"]},"offset":{"type":"number"},"limit":{"type":"number"},"order":{"type":"object","properties":{"orderBy":{"type":"array","items":{"type":"string","enum":["Activity.createdDate","Activity.id"]}},"direction":{"type":"string","enum":["ASC","DESC"]}},"additionalProperties":false}}}}}}],"operationId":"ActivityController.getCountByRelation"}},"/api/activities/relation/{relationId}":{"get":{"x-controller-name":"ActivityController","x-operation-name":"getByRelation","tags":["ActivityController"],"responses":{"200":{"description":"Array of Activity model instances for the given relation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true},{"name":"filter","in":"query","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","enum":[{"name":"ActivityCode","properties":{"id":{"type":"number","unsigned":true,"generated":true,"precision":10,"scale":0,"id":1},"name":{"type":"string","required":true,"length":50,"jsonSchema":{"enum":[]}}},"settings":{"idInjection":true},"relations":{}}]},"dossierId":{"type":"number"},"channelId":{"type":"number"},"employeeId":{"type":"number"},"state":{"type":"string","enum":["closed","open","archived"]},"offset":{"type":"number"},"limit":{"type":"number"},"order":{"type":"object","properties":{"orderBy":{"type":"array","items":{"type":"string","enum":["Activity.createdDate","Activity.id"]}},"direction":{"type":"string","enum":["ASC","DESC"]}},"additionalProperties":false}}}}}}],"operationId":"ActivityController.getByRelation"}},"/api/addresstypes/{id}":{"delete":{"x-controller-name":"AddressTypeController","x-operation-name":"deleteById","tags":["AddressTypeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"AddressType DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AddressTypeController.deleteById"}},"/api/addresstypes":{"post":{"x-controller-name":"AddressTypeController","x-operation-name":"create","tags":["AddressTypeController"],"responses":{"200":{"description":"AddressType model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressType"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAddressType"}}}},"operationId":"AddressTypeController.create"},"patch":{"x-controller-name":"AddressTypeController","x-operation-name":"updateById","tags":["AddressTypeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"AddressType PATCH success"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressTypePartial"}}}},"operationId":"AddressTypeController.updateById"},"get":{"x-controller-name":"AddressTypeController","x-operation-name":"find","tags":["AddressTypeController"],"responses":{"200":{"description":"Array of AddressType model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddressTypeWithRelations"}}}}}},"operationId":"AddressTypeController.find"}},"/api/adminsettings/findAll":{"get":{"x-controller-name":"AdminSettingController","x-operation-name":"findAll","tags":["AdminSettingController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Object with all Adminsettings"}}}}},"operationId":"AdminSettingController.findAll"}},"/api/adminsettings/searchOptions":{"post":{"x-controller-name":"AdminSettingController","x-operation-name":"saveSearchOptions","tags":["AdminSettingController"],"responses":{"200":{"description":"Save search options","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetting"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["indexFields","customIndexFields","displayFields","customDisplayFields","relationFilterFields"],"properties":{"indexFields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"priority":{"type":"string"}},"required":["name","priority"]}},"customIndexFields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"display":{"type":"boolean"},"priority":{"type":"string"}},"required":["name","code"]}},"displayFields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"display":{"type":"boolean"}},"required":["name","display"]}},"customDisplayFields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"display":{"type":"boolean"},"priority":{"type":"string"}},"required":["name","code"]}},"relationFilterFields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"placeholder":{"type":"string"},"title":{"type":"string"},"order":{"type":"number"},"display":{"type":"boolean"}},"required":["name","placeholder","title","order","display"]}}}}}}},"operationId":"AdminSettingController.saveSearchOptions"},"get":{"x-controller-name":"AdminSettingController","x-operation-name":"getSearchOptions","tags":["AdminSettingController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Get search options"}}}}},"operationId":"AdminSettingController.getSearchOptions"}},"/api/adminsettings/update-data/{type}":{"post":{"x-controller-name":"AdminSettingController","x-operation-name":"updateData","tags":["AdminSettingController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Updates data based on type"}}}}},"parameters":[{"name":"type","in":"path","schema":{"type":"string","enum":["resetData","resetSettings","deleteRelations","deleteRelationActivities"]},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"updateSearch":{"type":"boolean"},"deleteSearchIndex":{"type":"boolean"}}}}}},"operationId":"AdminSettingController.updateData"}},"/api/adminsettings/upsertSetting":{"post":{"x-controller-name":"AdminSettingController","x-operation-name":"create","tags":["AdminSettingController"],"responses":{"200":{"description":"AdminSetting model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetting"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"settingName":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"number"}]}}}}}},"operationId":"AdminSettingController.create"}},"/api/adminsettings/upsertSettings":{"post":{"x-controller-name":"AdminSettingController","x-operation-name":"upsertSettings","tags":["AdminSettingController"],"responses":{"200":{"description":"AdminSetting model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetting"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["settings"],"properties":{"settings":{"type":"object"}}}}}},"operationId":"AdminSettingController.upsertSettings"}},"/api/alerts/backoffice":{"get":{"x-controller-name":"AlertsController","x-operation-name":"get","tags":["AlertsController"],"responses":{"200":{"description":"Alerts from backoffice","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","enum":["information","warning"]}}}}}}}},"parameters":[{"name":"relationId","in":"query","schema":{"type":"number"}}],"operationId":"AlertsController.get"}},"/api/anonymizerelations":{"get":{"x-controller-name":"ServiceController","x-operation-name":"anonymizeRelations","tags":["ServiceController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Anonymize relations"}}}}},"operationId":"ServiceController.anonymizeRelations"}},"/api/attachmentcategories/{id}":{"delete":{"x-controller-name":"AttachmentCategoryController","x-operation-name":"deleteById","tags":["AttachmentCategoryController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"AttachmentCategory DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AttachmentCategoryController.deleteById"}},"/api/attachmentcategories":{"post":{"x-controller-name":"AttachmentCategoryController","x-operation-name":"create","tags":["AttachmentCategoryController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentCategory"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewAttachmentCategory"}}}},"operationId":"AttachmentCategoryController.create"},"patch":{"x-controller-name":"AttachmentCategoryController","x-operation-name":"update","tags":["AttachmentCategoryController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"AttachmentCategory PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentCategoryPartial"}}}},"operationId":"AttachmentCategoryController.update"},"get":{"x-controller-name":"AttachmentCategoryController","x-operation-name":"find","tags":["AttachmentCategoryController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentCategoryWithRelations"}}}}}},"operationId":"AttachmentCategoryController.find"}},"/api/attachments/{id}/download":{"get":{"x-controller-name":"AttachmentController","x-operation-name":"downloadAttachment","tags":["AttachmentController"],"responses":{"200":{"description":"Return value of AttachmentController.downloadAttachment"}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AttachmentController.downloadAttachment"}},"/api/attachments/{id}":{"delete":{"x-controller-name":"AttachmentController","x-operation-name":"deleteAttachment","tags":["AttachmentController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Attachment DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"AttachmentController.deleteAttachment"}},"/api/auth/401":{"get":{"x-controller-name":"AuthenticationController","x-operation-name":"unauthorized","tags":["AuthenticationController"],"responses":{},"operationId":"AuthenticationController.unauthorized"}},"/api/auth/login":{"post":{"x-controller-name":"AuthenticationController","x-operation-name":"login","tags":["AuthenticationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"},"token_type":{"type":"string","example":"Bearer"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string"},"password":{"type":"string","format":"password"}}}}}},"operationId":"AuthenticationController.login"}},"/api/auth/token/refresh":{"post":{"x-controller-name":"AuthenticationController","x-operation-name":"refresh","tags":["AuthenticationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"},"refresh_token":{"type":"string","example":"8xLOxBtZp8"},"expires_in":{"type":"number","example":3600},"token_type":{"type":"string","example":"Bearer"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["refresh_token","access_token"],"properties":{"refresh_token":{"type":"string","example":"8xLOxBtZp8"},"access_token":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"}}}}}},"operationId":"AuthenticationController.refresh"}},"/api/auth/token":{"post":{"x-controller-name":"AuthenticationController","x-operation-name":"token","tags":["AuthenticationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"},"refresh_token":{"type":"string","example":"8xLOxBtZp8"},"expires_in":{"type":"number","example":3600},"token_type":{"type":"string","example":"Bearer"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["code","state","redirectUri","stateVerifier"],"properties":{"code":{"type":"string","example":"abcd1234"},"redirect_uri":{"type":"string","format":"uri","example":"https://example.com/callback"},"state":{"type":"string","example":"xyz987"},"state_verifier":{"type":"string","example":"state1234verifier"}}}}}},"operationId":"AuthenticationController.token"}},"/api/buildings/findWithContracts":{"post":{"x-controller-name":"BuildingController","x-operation-name":"findWithContracts","tags":["BuildingController"],"responses":{"200":{"description":"Find with contracts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Building"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"cities":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"countryId":{"type":"number","nullable":true},"country":{"$ref":"#/components/schemas/Country"}}}},"streets":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"buildings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"vheTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"boolean"},"name":{"type":"string"}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}}}},"operationId":"BuildingController.findWithContracts"}},"/api/cache/clear":{"get":{"x-controller-name":"ServiceController","x-operation-name":"clearCache","tags":["ServiceController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Clear the entire cache"}}}}},"operationId":"ServiceController.clearCache"}},"/api/cache/entity/{entityName}/clear":{"get":{"x-controller-name":"ServiceController","x-operation-name":"clearEntityCache","tags":["ServiceController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Clear cache entries for a specific entity"}}}}},"parameters":[{"name":"entityName","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ServiceController.clearEntityCache"}},"/api/cache/imap-providers/clear":{"get":{"x-controller-name":"ServiceController","x-operation-name":"clearImapProvidersCache","tags":["ServiceController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Clear the IMAP providers cache"}}}}},"operationId":"ServiceController.clearImapProvidersCache"}},"/api/cache/keys":{"get":{"x-controller-name":"ServiceController","x-operation-name":"cacheKeys","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"List all cache keys"}}}}},"operationId":"ServiceController.cacheKeys"}},"/api/cache/status":{"get":{"x-controller-name":"ServiceController","x-operation-name":"cacheStatus","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"View cache status grouped by entity"}}}}},"parameters":[{"name":"includeSize","in":"query","schema":{"type":"boolean"}}],"operationId":"ServiceController.cacheStatus"}},"/api/cache":{"get":{"x-controller-name":"ServiceController","x-operation-name":"cache","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"View cache"}}}}},"operationId":"ServiceController.cache"}},"/api/categories/createCategory":{"post":{"x-controller-name":"CategoryController","x-operation-name":"createCategory","tags":["CategoryController"],"responses":{"200":{"description":"Create category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"categoryEmployees":{"type":"array"}}}}}},"operationId":"CategoryController.createCategory"}},"/api/categories/message-count":{"get":{"x-controller-name":"CategoryController","x-operation-name":"messageCountByCategories","tags":["CategoryController"],"responses":{"200":{"description":"Count messages by categories","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"messageCount":{"type":"number"},"category":{"$ref":"#/components/schemas/Category"}}}}}}}},"parameters":[{"name":"relationId","in":"query","schema":{"type":"number"}},{"name":"showOnWorkOverview","in":"query","schema":{"type":"boolean"}},{"name":"notAssigned","in":"query","schema":{"type":"boolean"}},{"name":"state","in":"query","schema":{"type":"string"},"enum":["open","archived"]},{"name":"assigneeIds","in":"query","schema":{"type":"array","items":{"type":"number"}}}],"operationId":"CategoryController.messageCountByCategories"}},"/api/categories/updateCategory":{"post":{"x-controller-name":"CategoryController","x-operation-name":"updateCategory","tags":["CategoryController"],"responses":{"200":{"description":"Update category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"categoryEmployees":{"type":"array"}}}}}},"operationId":"CategoryController.updateCategory"}},"/api/categories/{id}/sla-proposal":{"get":{"x-controller-name":"CategoryController","x-operation-name":"getNewSlaProposal","tags":["CategoryController"],"responses":{"200":{"description":"ISO formatted date of the new SLA proposal","content":{"application/json":{"schema":{"type":"string"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CategoryController.getNewSlaProposal"}},"/api/categories":{"get":{"x-controller-name":"CategoryController","x-operation-name":"find","tags":["CategoryController"],"responses":{"200":{"description":"Array of Category model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryWithRelations"}}}}}},"parameters":[{"name":"active","in":"query","schema":{"type":"boolean"}},{"name":"management","in":"query","schema":{"type":"boolean"}}],"operationId":"CategoryController.find"}},"/api/chatnotifications":{"post":{"x-controller-name":"ChatController","x-operation-name":"create","tags":["ChatController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatNotification"}}}}}},"parameters":[{"name":"authorization","in":"header","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"org":{"type":"string"},"chatId":{"type":"string"},"emails":{"type":"array","items":{"type":"string"}}}}}}},"operationId":"ChatController.create"}},"/api/cities/findWithContracts":{"post":{"x-controller-name":"CityController","x-operation-name":"findWithContracts","tags":["CityController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CityWithRelations"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"cities":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"countryId":{"type":"number","nullable":true},"country":{"$ref":"#/components/schemas/Country"}}}},"streets":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"buildings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"vheTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"boolean"},"name":{"type":"string"}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}}}},"operationId":"CityController.findWithContracts"}},"/api/comments/{commentId}/attachments/download":{"get":{"x-controller-name":"CommentController","x-operation-name":"downloadAttachment","tags":["CommentController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Download comment attachment"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"commentId","in":"path","schema":{"type":"number"},"required":true},{"name":"filename","in":"query","schema":{"type":"string"}}],"operationId":"CommentController.downloadAttachment"}},"/api/comments/{commentId}/attachments":{"get":{"x-controller-name":"CommentController","x-operation-name":"getAttachments","tags":["CommentController"],"responses":{"200":{"description":"Stored attachment list","content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string"},"prefix":{"type":"string"},"messageId":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true},"continuationToken":{"type":"string"}}}}}}},"parameters":[{"name":"commentId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommentController.getAttachments"},"delete":{"x-controller-name":"CommentController","x-operation-name":"deleteAttachment","tags":["CommentController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete comment attachment"}}}}},"parameters":[{"name":"commentId","in":"path","schema":{"type":"number"},"required":true},{"name":"filename","in":"query","schema":{"type":"string"}}],"operationId":"CommentController.deleteAttachment"}},"/api/comments/{commentId}/draft":{"delete":{"x-controller-name":"CommentController","x-operation-name":"deleteDraft","tags":["CommentController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete comment draft"}}}}},"parameters":[{"name":"commentId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommentController.deleteDraft"}},"/api/comments/{commentId}/{commentId}/{type}/attachments":{"post":{"x-controller-name":"CommentController","x-operation-name":"updateCommentAttachment","tags":["CommentController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Attachment added"}}}}},"parameters":[{"name":"commentId","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true,"x-parameter-index":1},"operationId":"CommentController.updateCommentAttachment"}},"/api/comments/{id}":{"patch":{"x-controller-name":"CommentController","x-operation-name":"patchComment","tags":["CommentController"],"responses":{"200":{"description":"Update a comment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string"}},"additionalProperties":false}}},"x-parameter-index":1},"operationId":"CommentController.patchComment"},"get":{"x-controller-name":"CommentController","x-operation-name":"findById","tags":["CommentController"],"responses":{"200":{"description":"Comment model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommentController.findById"},"delete":{"x-controller-name":"CommentController","x-operation-name":"deleteComment","tags":["CommentController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete a comment"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CommentController.deleteComment"}},"/api/complexes/findWithContracts":{"post":{"x-controller-name":"ComplexController","x-operation-name":"findWithContracts","tags":["ComplexController"],"responses":{"200":{"description":"Find with contracts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"cities":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"countryId":{"type":"number","nullable":true},"country":{"$ref":"#/components/schemas/Country"}}}},"streets":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"buildings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"vheTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"boolean"},"name":{"type":"string"}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}}},"description":"Find Complexes with given filters"},"operationId":"ComplexController.findWithContracts"}},"/api/contact-reasons":{"get":{"x-controller-name":"ContactReasonController","x-operation-name":"getContactReasonsWithSubReasons","tags":["ContactReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactReasonWithRelationsResponseWithRelations"}}}}}},"operationId":"ContactReasonController.getContactReasonsWithSubReasons"}},"/api/contactreasons/{id}":{"delete":{"x-controller-name":"ContactReasonController","x-operation-name":"deleteById","tags":["ContactReasonController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"ContactReason DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ContactReasonController.deleteById"}},"/api/contactreasons":{"post":{"x-controller-name":"ContactReasonController","x-operation-name":"create","tags":["ContactReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactReason"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"parentId":{"nullable":true,"type":"number"}}}}}},"operationId":"ContactReasonController.create"},"patch":{"x-controller-name":"ContactReasonController","x-operation-name":"update","tags":["ContactReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"ContactReason PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"parentId":{"nullable":true,"type":"number"}}}}}},"operationId":"ContactReasonController.update"},"get":{"x-controller-name":"ContactReasonController","x-operation-name":"find","tags":["ContactReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactReasonWithRelations"}}}}}},"operationId":"ContactReasonController.find"}},"/api/contracttypes":{"get":{"x-controller-name":"ContractTypeController","x-operation-name":"findAll","tags":["ContractTypeController"],"responses":{"200":{"description":"Find with contracts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContractType"}}}}}},"operationId":"ContractTypeController.findAll"}},"/api/countblobsfromazure/{prefix}":{"get":{"x-controller-name":"ServiceController","x-operation-name":"countBlobsFromAzureByPrefix","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Count blobs from azure by prefix"}}}}},"parameters":[{"name":"prefix","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ServiceController.countBlobsFromAzureByPrefix"}},"/api/countblobsfromazure":{"get":{"x-controller-name":"ServiceController","x-operation-name":"countBlobsFromAzure","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Count blobs from azure"}}}}},"operationId":"ServiceController.countBlobsFromAzure"}},"/api/countries":{"get":{"x-controller-name":"CountryController","x-operation-name":"find","tags":["CountryController"],"responses":{"200":{"description":"Country model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryWithRelations"}}}}},"operationId":"CountryController.find"}},"/api/cronjob/activate":{"post":{"x-controller-name":"CronJobController","x-operation-name":"activateByCode","tags":["CronJobController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CronJob Activated"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"}}}}}},"operationId":"CronJobController.activateByCode"}},"/api/cronjob/deactivate":{"post":{"x-controller-name":"CronJobController","x-operation-name":"deactivateByCode","tags":["CronJobController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CronJob DeActivated"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"}}}}}},"operationId":"CronJobController.deactivateByCode"}},"/api/customfielddefinitions/{id}":{"delete":{"x-controller-name":"CustomFieldDefinitionController","x-operation-name":"deleteById","tags":["CustomFieldDefinitionController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"CustomFieldDefinition DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CustomFieldDefinitionController.deleteById"}},"/api/customfielddefinitions":{"post":{"x-controller-name":"CustomFieldDefinitionController","x-operation-name":"create","tags":["CustomFieldDefinitionController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinition"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","code","order","visible","visibleInMessageDetails","editable"],"properties":{"name":{"type":"string"},"code":{"type":"string"},"order":{"type":"number"},"visible":{"type":"boolean"},"visibleInMessageDetails":{"type":"boolean"},"editable":{"type":"boolean"},"formElement":{"type":"object","required":["type","name","canBeRequired","required","value"],"properties":{"type":{"type":"string"},"name":{"type":"string"},"canBeRequired":{"type":"boolean"},"required":{"type":"boolean"},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}}},"if":{"properties":{"editable":{"const":true}}},"then":{"required":["formElement"]}}}}},"operationId":"CustomFieldDefinitionController.create"},"patch":{"x-controller-name":"CustomFieldDefinitionController","x-operation-name":"update","tags":["CustomFieldDefinitionController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"CustomFieldDefinition PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"type":"object","required":["name","code","order","visible","visibleInMessageDetails","editable"],"properties":{"name":{"type":"string"},"code":{"type":"string"},"order":{"type":"number"},"visible":{"type":"boolean"},"visibleInMessageDetails":{"type":"boolean"},"editable":{"type":"boolean"},"formElement":{"type":"object","required":["type","name","canBeRequired","required","value"],"properties":{"type":{"type":"string"},"name":{"type":"string"},"canBeRequired":{"type":"boolean"},"required":{"type":"boolean"},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}}},"if":{"properties":{"editable":{"const":true}}},"then":{"required":["formElement"]}}],"required":["id"],"properties":{"id":{"type":"number"}}}}}},"operationId":"CustomFieldDefinitionController.update"},"get":{"x-controller-name":"CustomFieldDefinitionController","x-operation-name":"find","tags":["CustomFieldDefinitionController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldDefinitionWithRelations"}}}}}},"operationId":"CustomFieldDefinitionController.find"}},"/api/customfieldvalues/relation/{relationId}":{"get":{"x-controller-name":"CustomFieldValueController","x-operation-name":"find","tags":["CustomFieldValueController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldValue"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"CustomFieldValueController.find"}},"/api/debug/generateheapdump":{"get":{"x-controller-name":"ServiceController","x-operation-name":"generateHeapDump","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Generate heapdump"}}}}},"operationId":"ServiceController.generateHeapDump"}},"/api/debug/memory":{"get":{"x-controller-name":"ServiceController","x-operation-name":"memoryStats","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Get detailed memory and heap statistics"}}}}},"operationId":"ServiceController.memoryStats"}},"/api/deleteattachmentsbyattachmentcategories":{"get":{"x-controller-name":"ServiceController","x-operation-name":"deleteAttachmentsByCategories","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Anonymize relations"}}}}},"operationId":"ServiceController.deleteAttachmentsByCategories"}},"/api/dmscategories/{id}":{"patch":{"x-controller-name":"DmsCategoryController","x-operation-name":"updateById","tags":["DmsCategoryController"],"responses":{},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmsCategoryPartial"}}},"x-parameter-index":1},"operationId":"DmsCategoryController.updateById"}},"/api/dmscategories":{"post":{"x-controller-name":"DmsCategoryController","x-operation-name":"create","tags":["DmsCategoryController"],"responses":{"200":{"description":"Create a DMS category","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmsCategory"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmsCategoryPartial"}}}},"operationId":"DmsCategoryController.create"},"get":{"x-controller-name":"DmsCategoryController","x-operation-name":"findAll","tags":["DmsCategoryController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DmsCategory"}}}}}},"operationId":"DmsCategoryController.findAll"}},"/api/dossiers/close":{"post":{"x-controller-name":"DossierController","x-operation-name":"closeDossiers","tags":["DossierController"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"description":"Close dossiers"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ids"],"properties":{"ids":{"type":"array","items":{"type":"number"}}}}}}},"operationId":"DossierController.closeDossiers"}},"/api/dossiers/getInboxDossiers/{relationId}":{"get":{"x-controller-name":"DossierController","x-operation-name":"getInboxDossiers","tags":["DossierController"],"responses":{"200":{"description":"Get dossiers for relation inbox","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/DossierWithRelationsRequestPartial"}],"properties":{"inboxMessages":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelationsRequestPartial","definitions":{"MessageWithRelationsRequestPartial":{"$ref":"#/components/schemas/MessageWithRelationsRequestPartial"}}}}}}}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.getInboxDossiers"}},"/api/dossiers/inbox":{"post":{"x-controller-name":"DossierController","x-operation-name":"findInboxDossiers","tags":["DossierController"],"responses":{"200":{"description":"Get dossiers for relation inbox by roles","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/DossierWithRelationsRequestPartial"}],"properties":{"inboxMessages":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelationsRequestPartial","definitions":{"MessageWithRelationsRequestPartial":{"$ref":"#/components/schemas/MessageWithRelationsRequestPartial"}}}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["system","externalId"],"properties":{"name":{"type":"string"},"system":{"type":"string","nullable":true},"externalId":{"type":"string"}}}}}}},"operationId":"DossierController.findInboxDossiers"}},"/api/dossiers/merge":{"post":{"x-controller-name":"DossierController","x-operation-name":"mergeDossier","tags":["DossierController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Move messages and close dossiers"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["toDossierId","dossierIds"],"properties":{"toDossierId":{"type":"number"},"dossierIds":{"type":"array","items":{"type":"number"}}}}}}},"operationId":"DossierController.mergeDossier"}},"/api/dossiers/open-without-messages":{"get":{"x-controller-name":"DossierController","x-operation-name":"findOpenWithoutMessages","tags":["DossierController"],"responses":{"200":{"description":"Array of Dossier model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DossierWithRelations"}}}}}},"operationId":"DossierController.findOpenWithoutMessages"}},"/api/dossiers/pdf/batch":{"post":{"x-controller-name":"DossierController","x-operation-name":"createPdfsForDossiers","tags":["DossierController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Combined PDF of dossiers"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dossierIds":{"type":"array","items":{"type":"number"}},"includeComments":{"type":"boolean","default":false},"printForArchiveToDms":{"type":"boolean","default":false}},"required":["dossierIds"]}}}},"operationId":"DossierController.createPdfsForDossiers"}},"/api/dossiers/relation/{relationId}":{"get":{"x-controller-name":"DossierController","x-operation-name":"getDossierByRelation","tags":["DossierController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/DossierWithRelations"}}}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true},{"name":"state","in":"query","schema":{"type":"string"}}],"operationId":"DossierController.getDossierByRelation"}},"/api/dossiers/{id}/archiveToDms":{"post":{"x-controller-name":"DossierController","x-operation-name":"archiveDossierToDms","tags":["DossierController"],"responses":{"204":{"description":"Add dossier to archive DMS queue","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["dmsCategoryId","options"],"properties":{"externalContractId":{"type":"string","nullable":true},"dmsCategoryId":{"type":"number"},"options":{"type":"object","required":["includeAttachments","includeComments"],"properties":{"includeAttachments":{"type":"boolean"},"includeComments":{"type":"boolean"}}},"attachmentSelectionList":{"type":"object","properties":{"messages":{"type":"object"},"comments":{"type":"object"},"dossierComments":{"type":"object"}}}}}}},"x-parameter-index":1},"operationId":"DossierController.archiveDossierToDms"}},"/api/dossiers/{id}/assign":{"post":{"x-controller-name":"DossierController","x-operation-name":"dossierAssignment","tags":["DossierController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Assign a dossier to a category or employee"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["payload"],"properties":{"payload":{"type":"object","required":["categoryId","commentBody","domain"],"properties":{"categoryId":{"type":"number"},"assigneeId":{"type":"number","nullable":true},"commentBody":{"type":"string"},"domain":{"type":"string"}}}}}}},"x-parameter-index":1},"operationId":"DossierController.dossierAssignment"}},"/api/dossiers/{id}/attachments/inDmsQueue":{"get":{"x-controller-name":"DossierController","x-operation-name":"attachmentsInDmsQueue","tags":["DossierController"],"responses":{"200":{"description":"Get active attachments from the DMS queue","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveToDmsQueue"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.attachmentsInDmsQueue"}},"/api/dossiers/{id}/close":{"put":{"x-controller-name":"DossierController","x-operation-name":"closeDossier","tags":["DossierController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Close a dossier"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"deleteComments","in":"query","schema":{"type":"boolean"}}],"operationId":"DossierController.closeDossier"}},"/api/dossiers/{id}/finalize-comment":{"post":{"x-controller-name":"DossierController","x-operation-name":"createComment","tags":["DossierController"],"responses":{"200":{"description":"create a comment from the related dossier draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.createComment"}},"/api/dossiers/{id}/has-open-message":{"get":{"x-controller-name":"DossierController","x-operation-name":"hasOpenMessage","tags":["DossierController"],"responses":{"200":{"description":"Checks if the dossier has atleast 1 open message","content":{"application/json":{"schema":{"type":"boolean"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.hasOpenMessage"}},"/api/dossiers/{id}/hasComments":{"get":{"x-controller-name":"DossierController","x-operation-name":"hasComments","tags":["DossierController"],"responses":{"200":{"description":"Dossier has comments?","content":{"application/json":{"schema":{"type":"boolean"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.hasComments"}},"/api/dossiers/{id}/hasMessages":{"get":{"x-controller-name":"DossierController","x-operation-name":"hasMessages","tags":["DossierController"],"responses":{"200":{"description":"Dossier has messages?","content":{"application/json":{"schema":{"type":"boolean"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"excludeMessageId","in":"query","schema":{"type":"number"}}],"operationId":"DossierController.hasMessages"}},"/api/dossiers/{id}/inDmsQueue":{"get":{"x-controller-name":"DossierController","x-operation-name":"isDossierInDmsQueue","tags":["DossierController"],"responses":{"200":{"description":"Is a dossier in the DMS queue","content":{"application/json":{"schema":{"type":"boolean"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.isDossierInDmsQueue"}},"/api/dossiers/{id}/messages":{"get":{"x-controller-name":"DossierController","x-operation-name":"getMessagesByDossier","tags":["DossierController"],"responses":{"200":{"description":"Get messages from a dossier","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.getMessagesByDossier"}},"/api/dossiers/{id}/move":{"post":{"x-controller-name":"DossierController","x-operation-name":"moveDossier","tags":["DossierController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Move dossier to a relation"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"relationId":{"type":"number"},"reason":{"type":"string"}}}}},"x-parameter-index":1},"operationId":"DossierController.moveDossier"}},"/api/dossiers/{id}/pdf":{"get":{"x-controller-name":"DossierController","x-operation-name":"printDossierToPdf","tags":["DossierController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Create PDF of dossier"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"includeComments","in":"query","schema":{"type":"boolean"}},{"name":"printForArchiveToDms","in":"query","schema":{"type":"boolean"}}],"operationId":"DossierController.printDossierToPdf"}},"/api/dossiers/{id}/reopen":{"put":{"x-controller-name":"DossierController","x-operation-name":"reopenDossier","tags":["DossierController"],"responses":{"200":{"description":"Re-open a dossier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DossierWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.reopenDossier"}},"/api/dossiers/{id}":{"patch":{"x-controller-name":"DossierController","x-operation-name":"updateById","tags":["DossierController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Dossier PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"assignedById":{"type":"number","nullable":true},"assigneeId":{"type":"number","nullable":true},"categoryId":{"type":"number"},"changeDate":{"type":"string","format":"date-time","nullable":true},"closedById":{"type":"number","nullable":true},"createdById":{"type":"number","nullable":true},"customerExpectationDate":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"dossierTypeId":{"type":"number"},"dueDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"relationId":{"type":"number"},"setCeDate":{"type":"string","format":"date-time"},"setDueDate":{"type":"string","format":"date-time"},"showInInbox":{"type":"boolean","nullable":true},"slaDate":{"type":"string","format":"date-time","nullable":true},"startDate":{"type":"string","format":"date-time"},"state":{"type":"string","enum":["open","closed","deleted"]},"subject":{"type":"string"}},"additionalProperties":true}}},"x-parameter-index":1},"operationId":"DossierController.updateById"},"get":{"x-controller-name":"DossierController","x-operation-name":"get","tags":["DossierController"],"responses":{"200":{"description":"Get dossier by ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dossier"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.get"},"delete":{"x-controller-name":"DossierController","x-operation-name":"deleteById","tags":["DossierController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete dossier"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"DossierController.deleteById"}},"/api/dossiers":{"post":{"x-controller-name":"DossierController","x-operation-name":"create","tags":["DossierController"],"responses":{"200":{"description":"Dossier model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dossier"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewDossier"}}}},"operationId":"DossierController.create"},"get":{"x-controller-name":"DossierController","x-operation-name":"find","tags":["DossierController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dossiers":{"type":"array","items":{"type":"object"}},"totalCount":{"type":"number"}}}}}}},"parameters":[{"name":"offset","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"ignoreLimit","in":"query","schema":{"type":"boolean"}},{"name":"state","in":"query","schema":{"type":"string"}},{"name":"relationId","in":"query","schema":{"type":"string"}},{"name":"notAssigned","in":"query","schema":{"type":"boolean"}},{"name":"createdByCurrentUser","in":"query","schema":{"type":"string"}},{"name":"assignedByCurrentUser","in":"query","schema":{"type":"string"}},{"name":"assignedToCurrentUser","in":"query","schema":{"type":"string"}},{"name":"orderColumn","in":"query","schema":{"type":"string"}},{"name":"orderDirection","in":"query","schema":{"type":"string"}},{"name":"categoryId","in":"query","schema":{"type":"string"}},{"name":"checkCategoryAccess","in":"query","schema":{"type":"boolean"}},{"name":"includeSystemCategories","in":"query","schema":{"type":"boolean"}},{"name":"includeMessageCount","in":"query","schema":{"type":"boolean"}},{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"DossierController.find"}},"/api/email-accounts/folders/{id}":{"delete":{"x-controller-name":"EmailAccountController","x-operation-name":"deleteFolderById","tags":["EmailAccountController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete e-mail account folder"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmailAccountController.deleteFolderById"}},"/api/email-accounts/folders":{"post":{"x-controller-name":"EmailAccountController","x-operation-name":"addFolder","tags":["EmailAccountController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Add e-mail account folder"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"emailAccountId":{"type":"number"},"name":{"type":"string","default":"INBOX"},"typeId":{"type":"number"},"categoryId":{"type":"number"},"bounceWithoutDossierId":{"type":"boolean","default":false},"bounceDaysAfterDossierClosed":{"type":"number","default":0},"bounceEmailTemplateId":{"type":"number","nullable":true}},"required":["emailAccountId","typeId","categoryId"],"additionalProperties":false}}}},"operationId":"EmailAccountController.addFolder"},"patch":{"x-controller-name":"EmailAccountController","x-operation-name":"patchFolder","tags":["EmailAccountController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Patch e-mail account folder"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","default":"INBOX"},"typeId":{"type":"number"},"categoryId":{"type":"number"},"bounceWithoutDossierId":{"type":"boolean","default":false},"bounceDaysAfterDossierClosed":{"type":"number","default":0},"bounceEmailTemplateId":{"type":"number","nullable":true}},"required":["id"],"additionalProperties":false}}}},"operationId":"EmailAccountController.patchFolder"}},"/api/email-accounts/oauth":{"post":{"x-controller-name":"EmailAccountController","x-operation-name":"addOauthAccount","tags":["EmailAccountController"],"responses":{"200":{"description":"Email account created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"}},"required":["id"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":"string"},"host":{"type":"string"},"port":{"type":"number","default":993},"tls":{"type":"boolean","default":true},"isActive":{"type":"boolean","default":true},"autotls":{"type":"string","enum":["always","required","never"],"default":"never"},"senderField":{"type":"string","enum":["from","sender","replyTo"],"default":"from"},"importAutoSubmitted":{"type":"boolean","default":true},"authenticationMethod":{"const":"oauth2","default":"oauth2"},"authorizationCode":{"type":"string"}},"required":["name","username","host","authenticationMethod","authorizationCode"],"additionalProperties":false}}}},"operationId":"EmailAccountController.addOauthAccount"},"patch":{"x-controller-name":"EmailAccountController","x-operation-name":"patchOauthAccount","tags":["EmailAccountController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Patch oauth e-mail account"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"username":{"type":"string"},"host":{"type":"string"},"port":{"type":"number","default":993},"tls":{"type":"boolean","default":true},"isActive":{"type":"boolean","default":true},"autotls":{"type":"string","enum":["always","required","never"],"default":"never"},"senderField":{"type":"string","enum":["from","sender","replyTo"],"default":"from"},"importAutoSubmitted":{"type":"boolean","default":true},"authenticationMethod":{"const":"oauth2","default":"oauth2"},"authorizationCode":{"type":"string"}},"required":["id"],"additionalProperties":false}}}},"operationId":"EmailAccountController.patchOauthAccount"}},"/api/email-accounts/plain":{"post":{"x-controller-name":"EmailAccountController","x-operation-name":"addPlainAccount","tags":["EmailAccountController"],"responses":{"200":{"description":"Email account created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"}},"required":["id"]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"username":{"type":"string"},"host":{"type":"string"},"port":{"type":"number","default":993},"tls":{"type":"boolean","default":true},"isActive":{"type":"boolean","default":true},"autotls":{"type":"string","enum":["always","required","never"],"default":"never"},"senderField":{"type":"string","enum":["from","sender","replyTo"],"default":"from"},"importAutoSubmitted":{"type":"boolean","default":true},"authenticationMethod":{"const":"plain","default":"plain"},"password":{"type":"string"}},"required":["name","username","host","password"],"additionalProperties":false}}}},"operationId":"EmailAccountController.addPlainAccount"},"patch":{"x-controller-name":"EmailAccountController","x-operation-name":"patchPlainAccount","tags":["EmailAccountController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Patch plain e-mail account"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"username":{"type":"string"},"host":{"type":"string"},"port":{"type":"number","default":993},"tls":{"type":"boolean","default":true},"isActive":{"type":"boolean","default":true},"autotls":{"type":"string","enum":["always","required","never"],"default":"never"},"senderField":{"type":"string","enum":["from","sender","replyTo"],"default":"from"},"importAutoSubmitted":{"type":"boolean","default":true},"authenticationMethod":{"const":"plain","default":"plain"},"password":{"type":"string"}},"required":["id"],"additionalProperties":false}}}},"operationId":"EmailAccountController.patchPlainAccount"}},"/api/email-accounts/{id}/folders":{"get":{"x-controller-name":"EmailAccountController","x-operation-name":"findFolders","tags":["EmailAccountController"],"responses":{"200":{"description":"Array of e-mail account folders","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","default":"INBOX"},"typeId":{"type":"number"},"categoryId":{"type":"number"},"bounceWithoutDossierId":{"type":"boolean","default":false},"error":{"type":"string","nullable":true},"type":{"type":"object","properties":{"name":{"type":"string"}}},"category":{"type":"object","properties":{"name":{"type":"string"}}}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmailAccountController.findFolders"}},"/api/email-accounts/{id}":{"get":{"x-controller-name":"EmailAccountController","x-operation-name":"findById","tags":["EmailAccountController"],"responses":{"200":{"description":"E-mail account model instance","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"username":{"type":"string"},"host":{"type":"string"},"port":{"type":"number","default":993},"tls":{"type":"boolean","default":true},"isActive":{"type":"boolean","default":true},"autotls":{"type":"string","enum":["always","required","never"],"default":"never"},"error":{"type":"string","nullable":true},"senderField":{"type":"string","enum":["from","sender","replyTo"],"default":"from"},"importAutoSubmitted":{"type":"boolean","default":true},"authenticationMethod":{"type":"string","enum":["plain","oauth2"]}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmailAccountController.findById"},"delete":{"x-controller-name":"EmailAccountController","x-operation-name":"deleteById","tags":["EmailAccountController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete e-mail account"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmailAccountController.deleteById"}},"/api/email-accounts":{"get":{"x-controller-name":"EmailAccountController","x-operation-name":"find","tags":["EmailAccountController"],"responses":{"200":{"description":"Array of e-mail accounts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"isActive":{"type":"boolean","default":true},"error":{"type":"string","nullable":true},"lastRun":{"type":"string","format":"date-time","nullable":true}}}}}}}},"operationId":"EmailAccountController.find"}},"/api/employeecategories/assignees":{"get":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"assignees","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"Returns users that can be assigned to","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeWithRelations"}}}}}},"parameters":[{"name":"relationId","in":"query","schema":{"type":"number"},"required":true}],"operationId":"EmployeeCategoryController.assignees"}},"/api/employeecategories/canBeAssigned":{"post":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"canBeAssigned","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"Array of objects with employee id to which can be assigned","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"employeeId":{"type":"number"}},"required":["employeeId"]}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["categoryId"],"properties":{"categoryId":{"type":"number"},"relationId":{"type":"number"}}}}}},"operationId":"EmployeeCategoryController.canBeAssigned"}},"/api/employeecategories/categories":{"get":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"findCategories","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"Categories matching to which the user can be assigned","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeWithRelations"}}}}}},"parameters":[{"name":"userId","in":"query","schema":{"type":"number"},"required":true},{"name":"canBeAssigned","in":"query","schema":{"type":"boolean"}}],"operationId":"EmployeeCategoryController.findCategories"}},"/api/employeecategories/dashboard":{"get":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"findCategoriesForDashboard","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeCategory"}}}}},"operationId":"EmployeeCategoryController.findCategoriesForDashboard"}},"/api/employeecategories/default-category":{"get":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"getDefaultCategory","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"Default category for the employee, or null if none is configured","content":{"application/json":{"schema":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/Category"}]}}}}},"operationId":"EmployeeCategoryController.getDefaultCategory"}},"/api/employeecategories/upsertAll":{"post":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"upsertAll","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"upsert an employee category model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeCategory"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["categoryId"],"properties":{"employeeCategories":{"type":"array","items":{"type":"object"}},"employee":{"type":"object"}}}}}},"operationId":"EmployeeCategoryController.upsertAll"}},"/api/employeecategories/{categoryId}/default-category":{"patch":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"setDefaultCategory","tags":["EmployeeCategoryController"],"responses":{},"parameters":[{"name":"categoryId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeCategoryController.setDefaultCategory"},"delete":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"deleteDefaultCategory","tags":["EmployeeCategoryController"],"responses":{},"parameters":[{"name":"categoryId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeCategoryController.deleteDefaultCategory"}},"/api/employeecategories/{categoryId}/employees":{"get":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"findUsersForCategory","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"profile":{"$ref":"#/components/schemas/Profile"},"categoryId":{"type":"number"},"employeeId":{"type":"number"},"canEdit":{"type":"boolean"},"canBeAssigned":{"type":"boolean"},"showOnDashboard":{"type":"boolean"}}}}}}}}}},"parameters":[{"name":"categoryId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeCategoryController.findUsersForCategory"}},"/api/employeecategories":{"get":{"x-controller-name":"EmployeeCategoryController","x-operation-name":"find","tags":["EmployeeCategoryController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeCategory"}}}}},"operationId":"EmployeeCategoryController.find"}},"/api/employeegroups/findWithEmployees":{"get":{"x-controller-name":"EmployeeGroupController","x-operation-name":"findWithEmployees","tags":["EmployeeGroupController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeGroupWithRelations"}}}}}},"operationId":"EmployeeGroupController.findWithEmployees"}},"/api/employeegroups/process":{"post":{"x-controller-name":"EmployeeGroupController","x-operation-name":"process","tags":["EmployeeGroupController"],"responses":{"200":{"description":"EmployeeGroup POST success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeGroup"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["employeeGroup"],"properties":{"employeeGroup":{"type":"object"},"relationClusters":{"type":"array","items":{"type":"number"}},"employees":{"type":"array","items":{"type":"number"}}}}}}},"operationId":"EmployeeGroupController.process"}},"/api/employeegroups/{id}":{"get":{"x-controller-name":"EmployeeGroupController","x-operation-name":"findById","tags":["EmployeeGroupController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeGroup"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeGroupController.findById"},"delete":{"x-controller-name":"EmployeeGroupController","x-operation-name":"deleteById","tags":["EmployeeGroupController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"EmployeeGroup DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeGroupController.deleteById"}},"/api/employeegroups":{"get":{"x-controller-name":"EmployeeGroupController","x-operation-name":"find","tags":["EmployeeGroupController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeGroupWithRelations"}}}}}},"operationId":"EmployeeGroupController.find"}},"/api/employeerelationclusters/cluster/{clusterId}":{"get":{"x-controller-name":"EmployeeRelationClusterController","x-operation-name":"find","tags":["EmployeeRelationClusterController"],"responses":{"200":{"description":"Array of RelationClusterEmployees","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationClusterEmployee"}}}}}},"parameters":[{"name":"clusterId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeRelationClusterController.find"}},"/api/employeerelationclusters/employee/{employeeId}":{"get":{"x-controller-name":"EmployeeRelationClusterController","x-operation-name":"findClustersForEmployee","tags":["EmployeeRelationClusterController"],"responses":{"200":{"description":"Array of RelationCluster for employee","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationCluster"}}}}}},"parameters":[{"name":"employeeId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeRelationClusterController.findClustersForEmployee"}},"/api/employees/active":{"get":{"x-controller-name":"EmployeeController","x-operation-name":"findActive","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}}},"parameters":[{"name":"includeRelationClusters","in":"query","schema":{"type":"boolean"}}],"operationId":"EmployeeController.findActive"}},"/api/employees/current/settings":{"post":{"x-controller-name":"EmployeeController","x-operation-name":"upsertEmployeeSetting","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeSetting"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"value":{"nullable":true,"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"}]}}}}}},"operationId":"EmployeeController.upsertEmployeeSetting"},"get":{"x-controller-name":"EmployeeController","x-operation-name":"getSettingsForCurrentUser","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"$ref":"#/components/schemas/EmployeeSettingWithRelations"}}}}}}},"operationId":"EmployeeController.getSettingsForCurrentUser"}},"/api/employees/current":{"get":{"x-controller-name":"EmployeeController","x-operation-name":"getCurrent","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/EmployeeWithRelations"}}}}}}},"operationId":"EmployeeController.getCurrent"}},"/api/employees/legacy":{"post":{"x-controller-name":"EmployeeController","x-operation-name":"create","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewEmployee"}}}},"operationId":"EmployeeController.create"}},"/api/employees/roles":{"get":{"x-controller-name":"EmployeeController","x-operation-name":"getRoles","tags":["EmployeeController"],"responses":{"200":{"description":"Get roles of the current user","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","enum":["financial","superuser","admin","user","usermanager","statistics","notificationcenter","chat","alerts","dms"]}}}}}},"operationId":"EmployeeController.getRoles"}},"/api/employees/search/{searchText}":{"get":{"x-controller-name":"EmployeeController","x-operation-name":"search","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeWithRelations"}}}}}},"parameters":[{"name":"searchText","in":"path","schema":{"type":"string"},"required":true}],"operationId":"EmployeeController.search"}},"/api/employees/secureLogin":{"post":{"x-controller-name":"AuthenticationController","x-operation-name":"bcLogin","tags":["AuthenticationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"},"token_type":{"type":"string","example":"Bearer"},"accessToken":{"nullable":true,"type":"object","properties":{"id":{"type":"string"},"ttl":{"type":"number"},"created":{"type":"string","format":"date-time"},"userId":{"type":"number"}}},"idToken":{"type":"string","nullable":true}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["username","password"],"properties":{"username":{"type":"string"},"password":{"type":"string","format":"password"}}}}}},"operationId":"AuthenticationController.bcLogin"}},"/api/employees/{id}/categories":{"get":{"x-controller-name":"EmployeeController","x-operation-name":"getCategories","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Category"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"showOnDashboard","in":"query","schema":{"type":"boolean"}},{"name":"canBeAssigned","in":"query","schema":{"type":"boolean"}}],"operationId":"EmployeeController.getCategories"}},"/api/employees/{id}/chatNotifications":{"get":{"x-controller-name":"EmployeeController","x-operation-name":"getChatNotifications","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationCounts"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeController.getChatNotifications"},"delete":{"x-controller-name":"EmployeeController","x-operation-name":"deleteChatNotifications","tags":["EmployeeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeController.deleteChatNotifications"}},"/api/employees/{id}/upsertRelationClusters":{"post":{"x-controller-name":"EmployeeController","x-operation-name":"upsertRelationClusters","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationClusterEmployee"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["relationClusters"],"properties":{"employeeId":{"type":"number"},"relationClusters":{"type":"array","items":{"type":"number"}}}}}},"required":true,"x-parameter-index":1},"operationId":"EmployeeController.upsertRelationClusters"}},"/api/employees/{id}":{"patch":{"x-controller-name":"EmployeeController","x-operation-name":"updateById","tags":["EmployeeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"emailOptIn":{"type":"boolean"},"isExternal":{"type":"boolean"},"employeeGroupId":{"type":"number"}},"additionalProperties":false}}},"x-parameter-index":1},"operationId":"EmployeeController.updateById"},"get":{"x-controller-name":"EmployeeController","x-operation-name":"findById","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"include","in":"query","schema":{"type":"array","items":{"type":"string","enum":["categories","employeeCategories","relationCluster"]}}}],"operationId":"EmployeeController.findById"},"delete":{"x-controller-name":"EmployeeController","x-operation-name":"deleteById","tags":["EmployeeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Soft delete employee by id"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"EmployeeController.deleteById"}},"/api/employees":{"get":{"x-controller-name":"EmployeeController","x-operation-name":"find","tags":["EmployeeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}}},"operationId":"EmployeeController.find"}},"/api/events/company-names":{"get":{"x-controller-name":"EventController","x-operation-name":"getCompanyNames","tags":["EventController"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"description":"Get the names of all the companies that are active on this environment"}}}}},"operationId":"EventController.getCompanyNames"}},"/api/events/create-events":{"post":{"x-controller-name":"EventController","x-operation-name":"createEvents","tags":["EventController"],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"description":"Create events for the event queue. Internal/dev use only"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"contractEventsAangemaakt":{"type":"string"},"contractEventsGewijzigd":{"type":"string"},"contractEventsVerwijderd":{"type":"string"},"personEventsAangemaakt":{"type":"string"},"personEventsGewijzigd":{"type":"string"},"personEventsVerwijderd":{"type":"string"},"employeeEventsGewijzigd":{"type":"string"},"employeeEventsAangemaakt":{"type":"string"},"contactmomentEventsAangemaakt":{"type":"string"}}}}}},"operationId":"EventController.createEvents"}},"/api/events/queue/count":{"get":{"x-controller-name":"EventController","x-operation-name":"getQueueCount","tags":["EventController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["pending","error"],"properties":{"pending":{"type":"number"},"error":{"type":"number"}}}}}}},"operationId":"EventController.getQueueCount"}},"/api/events/queue/items":{"get":{"x-controller-name":"EventController","x-operation-name":"getQueueItems","tags":["EventController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["items","totalCount"],"properties":{"items":{"type":"array","items":{"type":"object","required":["id","type","payload","status","created","updated"],"properties":{"id":{"type":"number"},"type":{"type":"string"},"payload":{"type":"object"},"status":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"}}}},"totalCount":{"type":"number"}}}}}}},"parameters":[{"name":"offset","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"type","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"operationId":"EventController.getQueueItems"}},"/api/events/sync-employees":{"post":{"x-controller-name":"EventController","x-operation-name":"createEmployeeEventsByCompanyName","tags":["EventController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Create events for employees of given company name. Internal/dev use only"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"companyName":{"type":"string"}}}}}},"operationId":"EventController.createEmployeeEventsByCompanyName"}},"/api/filter/{filterType}":{"post":{"x-controller-name":"ServiceController","x-operation-name":"getFilterResults","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Filter messages, dossiers, comments, and notifications by properties"}}}}},"parameters":[{"name":"filterType","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"createdBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"startDateMin":{"type":"string","nullable":true},"startDateMax":{"type":"string","nullable":true},"endDateMin":{"type":"string","nullable":true},"endDateMax":{"type":"string","nullable":true},"plannedDateMin":{"type":"string","nullable":true},"plannedDateMax":{"type":"string","nullable":true},"text":{"type":"string","nullable":true},"assignedTo":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"assignedBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"closedBy":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"state":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string","enum":["open","closed"]}}},"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"types":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"contactReasons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"direction":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string","enum":["inbound","outbound"]}}},"emailAddress":{"type":"string","pattern":"^[a-zA-Z\\d.!#$%&’*+/=?^_`{|}~-]{1,64}@[a-zA-Z\\d-]{0,254}(?:\\.[a-zA-Z\\d-]+){0,254}","nullable":true},"emailtype":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string","enum":["from","to","cc","bcc"]}}}},"dossierNumber":{"anyOf":[{"type":"string","nullable":true},{"type":"number","nullable":true}]},"offset":{"type":"number"},"limit":{"type":"number","nullable":true}},"additionalProperties":false}}},"required":true},"operationId":"ServiceController.getFilterResults"}},"/api/imports/jobs":{"get":{"x-controller-name":"ImportsController","x-operation-name":"listJobs","tags":["ImportsController"],"responses":{"200":{"description":"List all import jobs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["id","templateType","isDryRun","status","fileName","dossierMode","createdById","createdAt"],"additionalProperties":false,"properties":{"id":{"type":"number"},"templateType":{"type":"string"},"isDryRun":{"type":"boolean"},"status":{"type":"string","enum":["queued","processing","done","partial","error","cancelled"]},"fileName":{"type":"string"},"dossierMode":{"type":"string","enum":["per-relation","per-contactmoment"]},"defaultDossierSubject":{"type":"string","nullable":true},"fallbackEmployeeId":{"type":"number","nullable":true},"processedRows":{"type":"number","nullable":true},"successCount":{"type":"number","nullable":true},"errorCount":{"type":"number","nullable":true},"createdById":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true}}}}}}}},"operationId":"ImportsController.listJobs"}},"/api/imports/templates/{type}":{"get":{"x-controller-name":"ImportsController","x-operation-name":"downloadTemplate","tags":["ImportsController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Download template"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"type","in":"path","schema":{"type":"string","enum":["message","comment"]},"required":true}],"operationId":"ImportsController.downloadTemplate"}},"/api/imports/{id}/report":{"get":{"x-controller-name":"ImportsController","x-operation-name":"getReport","tags":["ImportsController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Download error report"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number","minimum":1},"required":true}],"operationId":"ImportsController.getReport"}},"/api/imports/{id}":{"get":{"x-controller-name":"ImportsController","x-operation-name":"getJob","tags":["ImportsController"],"responses":{"200":{"description":"Import job status","content":{"application/json":{"schema":{"type":"object","required":["id","templateType","isDryRun","status","fileName","dossierMode","createdById","createdAt"],"additionalProperties":false,"properties":{"id":{"type":"number"},"templateType":{"type":"string"},"isDryRun":{"type":"boolean"},"status":{"type":"string","enum":["queued","processing","done","partial","error","cancelled"]},"fileName":{"type":"string"},"dossierMode":{"type":"string","enum":["per-relation","per-contactmoment"]},"defaultDossierSubject":{"type":"string","nullable":true},"fallbackEmployeeId":{"type":"number","nullable":true},"processedRows":{"type":"number","nullable":true},"successCount":{"type":"number","nullable":true},"errorCount":{"type":"number","nullable":true},"createdById":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number","minimum":1},"required":true}],"operationId":"ImportsController.getJob"},"delete":{"x-controller-name":"ImportsController","x-operation-name":"cancelJob","tags":["ImportsController"],"responses":{"202":{"description":"Import job cancellation accepted","content":{"application/json":{"schema":{"type":"object","required":["id","templateType","isDryRun","status","fileName","dossierMode","createdById","createdAt"],"additionalProperties":false,"properties":{"id":{"type":"number"},"templateType":{"type":"string"},"isDryRun":{"type":"boolean"},"status":{"type":"string","enum":["queued","processing","done","partial","error","cancelled"]},"fileName":{"type":"string"},"dossierMode":{"type":"string","enum":["per-relation","per-contactmoment"]},"defaultDossierSubject":{"type":"string","nullable":true},"fallbackEmployeeId":{"type":"number","nullable":true},"processedRows":{"type":"number","nullable":true},"successCount":{"type":"number","nullable":true},"errorCount":{"type":"number","nullable":true},"createdById":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number","minimum":1},"required":true}],"operationId":"ImportsController.cancelJob"}},"/api/imports":{"post":{"x-controller-name":"ImportsController","x-operation-name":"createImport","tags":["ImportsController"],"responses":{"200":{"description":"Import job created","content":{"application/json":{"schema":{"type":"object","required":["id","templateType","isDryRun","status","fileName","dossierMode","createdById","createdAt"],"additionalProperties":false,"properties":{"id":{"type":"number"},"templateType":{"type":"string"},"isDryRun":{"type":"boolean"},"status":{"type":"string","enum":["queued","processing","done","partial","error","cancelled"]},"fileName":{"type":"string"},"dossierMode":{"type":"string","enum":["per-relation","per-contactmoment"]},"defaultDossierSubject":{"type":"string","nullable":true},"fallbackEmployeeId":{"type":"number","nullable":true},"processedRows":{"type":"number","nullable":true},"successCount":{"type":"number","nullable":true},"errorCount":{"type":"number","nullable":true},"createdById":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true}}}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"isDryRun":{"type":"boolean"},"dossierMode":{"type":"string","enum":["per-relation","per-contactmoment"]},"defaultDossierSubject":{"type":"string"},"fallbackEmployeeId":{"type":"number"}}},"x-parser":"stream"}},"description":"Import file upload","required":true},"operationId":"ImportsController.createImport"}},"/api/institutions":{"get":{"x-controller-name":"InstitutionController","x-operation-name":"findAll","tags":["InstitutionController"],"responses":{"200":{"description":"Array of Institution model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstitutionWithRelations"}}}}}},"operationId":"InstitutionController.findAll"}},"/api/knowledgebaseanswers/importFromTypo3KbPlugin":{"post":{"x-controller-name":"KnowledgeBaseController","x-operation-name":"importFromTypo3KbPlugin","tags":["KnowledgeBaseController"],"responses":{"200":{"description":"Import KB from TYPO3","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"loading":{"type":"boolean"},"error":{"type":"boolean"},"forceStop":{"type":"boolean"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"full":{"type":"boolean","nullable":true},"deleteKnowledgeBaseOnImport":{"type":"boolean","nullable":true}}}}}},"operationId":"KnowledgeBaseController.importFromTypo3KbPlugin"}},"/api/knowledgebaseanswers/importStatus":{"get":{"x-controller-name":"KnowledgeBaseController","x-operation-name":"getImportStatus","tags":["KnowledgeBaseController"],"responses":{"200":{"description":"Status of KB import","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"loading":{"type":"boolean"},"error":{"type":"boolean"},"forceStop":{"type":"boolean"}}}}}}},"operationId":"KnowledgeBaseController.getImportStatus"}},"/api/knowledgebasesearches":{"post":{"x-controller-name":"KnowledgeBaseSearchesController","x-operation-name":"create","tags":["KnowledgeBaseSearchesController"],"responses":{"200":{"description":"KnowledgeBaseSearches model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSearches"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"createdBy":{"type":"integer"},"location":{"type":"string"},"messageId":{"anyOf":[{"type":"integer"},{"type":"null"}]},"searchKey":{"type":"string"}}}}}},"operationId":"KnowledgeBaseSearchesController.create"}},"/api/languages/upsertAll":{"post":{"x-controller-name":"LanguageController","x-operation-name":"upsertAll","tags":["LanguageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Language upsert"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Language1"}}}},"operationId":"LanguageController.upsertAll"}},"/api/languages":{"get":{"x-controller-name":"LanguageController","x-operation-name":"find","tags":["LanguageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Language"}}}}},"parameters":[{"name":"filterKnowledgeBase","in":"query","schema":{"type":"boolean"}},{"name":"filterHasPushNotification","in":"query","schema":{"type":"boolean"}}],"operationId":"LanguageController.find"}},"/api/loganalyzer":{"post":{"x-controller-name":"ServiceController","x-operation-name":"logAnalyzer","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Get log data"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"operationId":"ServiceController.logAnalyzer"}},"/api/messagechannels/permanentname/{permanentname}":{"get":{"x-controller-name":"MessageChannelController","x-operation-name":"findByPermanentName","tags":["MessageChannelController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageChannel"}}}}}},"parameters":[{"name":"permanentname","in":"path","schema":{"type":"string"},"required":true}],"operationId":"MessageChannelController.findByPermanentName"}},"/api/messagechannels/{id}":{"delete":{"x-controller-name":"MessageChannelController","x-operation-name":"deleteById","tags":["MessageChannelController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"MessageChannel DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageChannelController.deleteById"}},"/api/messagechannels":{"post":{"x-controller-name":"MessageChannelController","x-operation-name":"create","tags":["MessageChannelController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageChannel"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMessageChannel"}}}},"operationId":"MessageChannelController.create"},"patch":{"x-controller-name":"MessageChannelController","x-operation-name":"update","tags":["MessageChannelController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"MessageChannel PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageChannelPartial"}}}},"operationId":"MessageChannelController.update"},"get":{"x-controller-name":"MessageChannelController","x-operation-name":"find","tags":["MessageChannelController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageChannelWithRelations"}}}}}},"operationId":"MessageChannelController.find"}},"/api/messagedeletionreasons/{id}":{"delete":{"x-controller-name":"MessageDeletionReasonController","x-operation-name":"delete","tags":["MessageDeletionReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageDeletionReasonController.delete"}},"/api/messagedeletionreasons":{"post":{"x-controller-name":"MessageDeletionReasonController","x-operation-name":"create","tags":["MessageDeletionReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDeletionReason"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string"}}}}}},"operationId":"MessageDeletionReasonController.create"},"patch":{"x-controller-name":"MessageDeletionReasonController","x-operation-name":"update","tags":["MessageDeletionReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDeletionReason"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDeletionReason"}}}},"operationId":"MessageDeletionReasonController.update"},"get":{"x-controller-name":"MessageDeletionReasonController","x-operation-name":"find","tags":["MessageDeletionReasonController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageDeletionReason"}}}}}},"operationId":"MessageDeletionReasonController.find"}},"/api/messagedrafts/{id}/allowed-recipients":{"get":{"x-controller-name":"MessageDraftController","x-operation-name":"findAllowedRecipients","tags":["MessageDraftController"],"responses":{"200":{"description":"List of allowed recipients","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["name","email","isEmployee","isExternal"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"isEmployee":{"type":"boolean"},"isExternal":{"type":"boolean"}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageDraftController.findAllowedRecipients"}},"/api/messagedrafts/{messageDraftId}/attachment":{"post":{"x-controller-name":"MessageDraftController","x-operation-name":"fileUpload","tags":["MessageDraftController"],"responses":{"200":{"description":"Attachment added to draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}}},"parameters":[{"name":"messageDraftId","in":"path","schema":{"type":"string"},"required":true},{"name":"type","in":"query","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true,"x-parameter-index":2},"operationId":"MessageDraftController.fileUpload"}},"/api/messagedrafts/{id}/create-message":{"post":{"x-controller-name":"MessageDraftController","x-operation-name":"create","tags":["MessageDraftController"],"responses":{"200":{"description":"Create a message from the message draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageDraftController.create"}},"/api/messagedrafts/{id}/finalize":{"post":{"x-controller-name":"MessageDraftController","x-operation-name":"finalize","tags":["MessageDraftController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dossierId":{"type":"number"}},"required":["dossierId"]}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageDraftController.finalize"}},"/api/messagedrafts/{id}":{"delete":{"x-controller-name":"MessageDraftController","x-operation-name":"deleteById","tags":["MessageDraftController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete a messagedraft"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageDraftController.deleteById"}},"/api/messagedrafts":{"put":{"x-controller-name":"MessageDraftController","x-operation-name":"upsertMessageDraft","tags":["MessageDraftController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Update or create MessageDraft"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertMessageDraftRequest"}}}},"operationId":"MessageDraftController.upsertMessageDraft"},"get":{"x-controller-name":"MessageDraftController","x-operation-name":"getDraft","tags":["MessageDraftController"],"responses":{"200":{"description":"Get the dossier draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDraftWithRelations"}}}}},"parameters":[{"name":"messageId","in":"query","schema":{"type":"number"},"required":false},{"name":"dossierId","in":"query","schema":{"type":"number"},"required":false},{"name":"id","in":"query","schema":{"type":"string"},"required":false}],"operationId":"MessageDraftController.getDraft"},"delete":{"x-controller-name":"MessageDraftController","x-operation-name":"delete","tags":["MessageDraftController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete a step in the messagedraft"}}}}},"parameters":[{"name":"messageId","in":"query","schema":{"type":"number"},"required":false},{"name":"dossierId","in":"query","schema":{"type":"number"},"required":false},{"name":"id","in":"query","schema":{"type":"number"},"required":false},{"name":"step","in":"query","schema":{"type":"string","enum":["selectDossierStep","sendReplyStep","tasksStep","closeTaskStep","messageAssignmentStep","messageComment","dossierComment","newMessage"]},"required":true}],"operationId":"MessageDraftController.delete"}},"/api/messages/assignee":{"get":{"x-controller-name":"MessageController","x-operation-name":"findMessageAssignee","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Employee"}}}}}},"parameters":[{"name":"categoryId","in":"query","schema":{"type":"array","items":{"type":"number"}}}],"operationId":"MessageController.findMessageAssignee"}},"/api/messages/closed-by":{"get":{"x-controller-name":"MessageController","x-operation-name":"findEmployeesThatClosedMessages","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Employee"}}}}}},"parameters":[{"name":"categoryId","in":"query","schema":{"type":"array","items":{"type":"number"}}}],"operationId":"MessageController.findEmployeesThatClosedMessages"}},"/api/messages/countWithGroup":{"get":{"x-controller-name":"MessageController","x-operation-name":"countWithGroup","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"total":{"type":"number"}}}}}}}}}},"parameters":[{"name":"group","in":"query","schema":{"type":"string"}},{"name":"direction","in":"query","schema":{"type":"string"}},{"name":"state","in":"query","schema":{"type":"string"}},{"name":"includeSystemCategories","in":"query","schema":{"type":"boolean"}},{"name":"createdDateTimeMin","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"createdDateTimeMax","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"endDateMin","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"endDateMax","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"deletedAtMin","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"deletedAtMax","in":"query","schema":{"type":"string","format":"date-time"}}],"operationId":"MessageController.countWithGroup"}},"/api/messages/createfromexternal":{"post":{"x-controller-name":"MessageController","x-operation-name":"createFromExternal","tags":["MessageController"],"responses":{"200":{"description":"Create Message from external","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"categoryId":{"type":"number"},"messageCategoryId":{"type":"number"},"messageChannelId":{"type":"number"},"messageChannelCode":{"type":"string","nullable":true},"messageChannelVeraCode":{"type":"string","nullable":true},"messageChannelPermanentName":{"type":"string"},"relationId":{"type":"number"},"relatieId":{"type":"number"},"state":{"type":"string","enum":["open","archived","deleted"],"nullable":true},"subject":{"type":"string"},"body":{"type":"string"},"typeId":{"type":"number"},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"system":{"type":"string","nullable":true},"externalId":{"type":"string"}}}},"assigneeId":{"type":"number","nullable":true},"contactReasonId":{"type":"number"},"dossierId":{"type":"number"},"sender":{"type":"object","properties":{"email":{"type":"string","example":"sendsomething@example.com"},"name":{"type":"string","example":"Holthuis"},"lastName":{"type":"string","example":"Holthuis"},"dateOfBirth":{"type":"string","example":"1920-02-01"}},"required":["email"],"nullable":true},"showInInbox":{"type":"boolean"},"categoryName":{"type":"string","nullable":true},"typeName":{"type":"string","nullable":true},"dossier":{"nullable":true,"type":"object","properties":{"subject":{"type":"string"}}}}}}}},"operationId":"MessageController.createFromExternal"}},"/api/messages/has-unassigned":{"get":{"x-controller-name":"MessageController","x-operation-name":"hasUnassignedMessage","tags":["MessageController"],"responses":{"200":{"description":"checks if there is at least one unassigned message","content":{"application/json":{"schema":{"type":"boolean"}}}}},"parameters":[{"name":"relationId","in":"query","schema":{"type":"number"}},{"name":"categoryId","in":"query","schema":{"type":"array","items":{"type":"number"}}},{"name":"escalated","in":"query","schema":{"type":"boolean"}},{"name":"pinned","in":"query","schema":{"type":"boolean"}}],"operationId":"MessageController.hasUnassignedMessage"}},"/api/messages/inbox":{"post":{"x-controller-name":"MessageController","x-operation-name":"findInboxMessages","tags":["MessageController"],"responses":{"200":{"description":"Find messages for relation inbox by roles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseWithRelations"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["system","externalId"],"properties":{"name":{"type":"string"},"system":{"type":"string","nullable":true},"externalId":{"type":"string"}}}}}}},"operationId":"MessageController.findInboxMessages"}},"/api/messages/processComment":{"post":{"x-controller-name":"MessageController","x-operation-name":"processComment","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dossier":{"$ref":"#/components/schemas/Dossier"},"comment":{"$ref":"#/components/schemas/Comment"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"dossier":{"type":"object","properties":{"id":{"nullable":true,"type":"number"},"categoryId":{"nullable":true,"type":"number"},"createdById":{"nullable":true,"type":"number"},"dossierTypeId":{"nullable":true,"type":"number"},"relationId":{"nullable":true,"type":"number"},"subject":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"}}},"comment":{"type":"object","properties":{"id":{"nullable":true,"type":"number"},"messageId":{"nullable":true,"type":"number"},"categoryId":{"nullable":true,"type":"number"},"channelId":{"nullable":true,"type":"number"},"typeId":{"nullable":true,"type":"number"},"createdById":{"nullable":true,"type":"number"},"body":{"type":"string"}}}}}}}},"operationId":"MessageController.processComment"}},"/api/messages/test/error":{"get":{"x-controller-name":"MessageController","x-operation-name":"getError","tags":["MessageController"],"responses":{"403":{"description":"Forbidden","content":{"application/json":{"schema":{"description":"Error test endpoint"}}}}},"operationId":"MessageController.getError"}},"/api/messages/{id}/allowed-recipients":{"get":{"x-controller-name":"MessageController","x-operation-name":"findAllowedRecipients","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.findAllowedRecipients"}},"/api/messages/{id}/assignment":{"post":{"x-controller-name":"MessageController","x-operation-name":"assignMessage","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dossierId":{"type":"number"}},"required":["dossierId"]}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.assignMessage"}},"/api/messages/{id}/attachments/download":{"get":{"x-controller-name":"MessageController","x-operation-name":"downloadAttachments","tags":["MessageController"],"responses":{"200":{"description":"Return value of MessageController.downloadAttachments"}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filename","in":"query","schema":{"type":"string"}}],"operationId":"MessageController.downloadAttachments"}},"/api/messages/{id}/attachments":{"post":{"x-controller-name":"MessageController","x-operation-name":"fileUpload","tags":["MessageController"],"responses":{"200":{"description":"Files and fields","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true,"x-parameter-index":1},"operationId":"MessageController.fileUpload"},"get":{"x-controller-name":"MessageController","x-operation-name":"getAttachments","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"prefix":{"type":"string"},"messageId":{"type":"number"},"continuationToken":{"type":"string"},"fileName":{"type":"string"}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.getAttachments"},"delete":{"x-controller-name":"MessageController","x-operation-name":"deleteAttachment","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Attachment DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"filename","in":"query","schema":{"type":"string"}}],"operationId":"MessageController.deleteAttachment"}},"/api/messages/{id}/close":{"post":{"x-controller-name":"MessageController","x-operation-name":"close","tags":["MessageController"],"responses":{"200":{"description":"Close message","content":{"application/json":{"schema":{"type":"object","properties":{"dossierId":{"type":"number"}},"required":["dossierId"]}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.close"}},"/api/messages/{id}/comment":{"post":{"x-controller-name":"MessageController","x-operation-name":"addMessageComment","tags":["MessageController"],"responses":{},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.addMessageComment"}},"/api/messages/{id}/deleteWithReason/{reasonId}":{"delete":{"x-controller-name":"MessageController","x-operation-name":"deleteWithReason","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Message DELETE with reason succes"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"reasonId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.deleteWithReason"}},"/api/messages/{id}/dossier":{"get":{"x-controller-name":"MessageController","x-operation-name":"getDossierByMessageId","tags":["MessageController"],"responses":{"200":{"description":"returns the dossier where the message belongs to","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DossierWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.getDossierByMessageId"}},"/api/messages/{id}/draft":{"get":{"x-controller-name":"MessageController","x-operation-name":"getDraft","tags":["MessageController"],"responses":{"200":{"description":"Get the message draft","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDraftWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.getDraft"},"delete":{"x-controller-name":"MessageController","x-operation-name":"deleteDraft","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete the message draft"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.deleteDraft"}},"/api/messages/{id}/escalation":{"put":{"x-controller-name":"MessageController","x-operation-name":"escalate","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Escalate a task"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.escalate"},"delete":{"x-controller-name":"MessageController","x-operation-name":"deescalate","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"De-escalate a task"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.deescalate"}},"/api/messages/{id}/finalize":{"post":{"x-controller-name":"MessageController","x-operation-name":"finalize","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"dossierId":{"type":"number"}},"required":["dossierId"]}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.finalize"}},"/api/messages/{id}/getReply":{"get":{"x-controller-name":"MessageController","x-operation-name":"getReply","tags":["MessageController"],"responses":{"200":{"description":"get reply","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"$ref":"#/components/schemas/Message"},"draftInfo":{"type":"string"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.getReply"}},"/api/messages/{id}/lock":{"get":{"x-controller-name":"MessageController","x-operation-name":"lock","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Lock message"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.lock"}},"/api/messages/{id}/move-to-relation":{"post":{"x-controller-name":"MessageController","x-operation-name":"moveMessageToRelation","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"move a message from one relation to another"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["relationId"],"properties":{"relationId":{"type":"number","nullable":false}}}}},"x-parameter-index":1},"operationId":"MessageController.moveMessageToRelation"}},"/api/messages/{id}/pin":{"put":{"x-controller-name":"MessageController","x-operation-name":"pin","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Pin a message for the current user"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.pin"},"delete":{"x-controller-name":"MessageController","x-operation-name":"unpin","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Unpin a message for the current user"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.unpin"}},"/api/messages/{id}/setFirstOpened":{"post":{"x-controller-name":"MessageController","x-operation-name":"setFirstOpened","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Set first opened"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"firstOpenedChannel":{"type":"string","enum":["email","inbox"]},"firstOpenedDateTime":{"type":"string","format":"date-time"}}}}},"x-parameter-index":1},"operationId":"MessageController.setFirstOpened"}},"/api/messages/{id}/template-attachment/{attachmentId}":{"delete":{"x-controller-name":"MessageController","x-operation-name":"deleteTemplateAttachment","tags":["MessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true},{"name":"attachmentId","in":"path","schema":{"type":"string"},"required":true}],"operationId":"MessageController.deleteTemplateAttachment"}},"/api/messages/{id}/unlock":{"get":{"x-controller-name":"MessageController","x-operation-name":"unlock","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Unlock message"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.unlock"}},"/api/messages/{id}":{"patch":{"x-controller-name":"MessageController","x-operation-name":"updateById","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Message PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"x-parameter-index":1},"operationId":"MessageController.updateById"},"get":{"x-controller-name":"MessageController","x-operation-name":"findById","tags":["MessageController"],"responses":{"200":{"description":"Message model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponseWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"MessageController.findById"}},"/api/messages":{"get":{"x-controller-name":"MessageController","x-operation-name":"find","tags":["MessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object"}},"totalCount":{"type":"number"}}}}}}},"parameters":[{"name":"offset","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"relationId","in":"query","schema":{"type":"number"}},{"name":"order","in":"query","schema":{"type":"string"}},{"name":"state","in":"query","schema":{"type":"string"},"enum":["open","archived"]},{"name":"orderDirection","in":"query","schema":{"type":"string"},"enum":["ASC","DESC"]},{"name":"categoryId","in":"query","schema":{"type":"array","items":{"type":"number"}}},{"name":"assigneeId","in":"query","schema":{"type":"array","items":{"type":"number"}}},{"name":"closedById","in":"query","schema":{"type":"array","items":{"type":"number"}}},{"name":"escalated","in":"query","schema":{"type":"boolean"}},{"name":"pinned","in":"query","schema":{"type":"boolean"}},{"name":"notAssigned","in":"query","schema":{"type":"boolean"}},{"name":"assignedByCurrentUser","in":"query","schema":{"type":"boolean"}},{"name":"assignedToCurrentUser","in":"query","schema":{"type":"boolean"}},{"name":"createdByCurrentUser","in":"query","schema":{"type":"boolean"}},{"name":"search","in":"query","schema":{"type":"string"}}],"operationId":"MessageController.find"}},"/api/nagios/event-queue":{"get":{"x-controller-name":"ServiceController","x-operation-name":"eventQueueCheck","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Check for event queue errors"}}}}},"operationId":"ServiceController.eventQueueCheck"}},"/api/nagios/imapmailimport":{"get":{"x-controller-name":"ServiceController","x-operation-name":"mailImapImportCheck","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Check mail import status"}}}}},"operationId":"ServiceController.mailImapImportCheck"}},"/api/nagios/mailqueue/{warningsize}/{errorsize}":{"get":{"x-controller-name":"ServiceController","x-operation-name":"mailQueueCheck","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Check mail queue status"}}}}},"parameters":[{"name":"warningsize","in":"path","schema":{"type":"number"},"required":true},{"name":"errorsize","in":"path","schema":{"type":"number"},"required":true}],"operationId":"ServiceController.mailQueueCheck"}},"/api/nagios/mailqueueerrors":{"get":{"x-controller-name":"ServiceController","x-operation-name":"mailQueueErrorCheck","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Check mail queue error status"}}}}},"operationId":"ServiceController.mailQueueErrorCheck"}},"/api/nagios/migrationscripts":{"get":{"x-controller-name":"ServiceController","x-operation-name":"migrationScriptsCheck","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Check migration status"}}}}},"operationId":"ServiceController.migrationScriptsCheck"}},"/api/newmessagepresets/{id}":{"delete":{"x-controller-name":"NewMessagePresetController","x-operation-name":"deleteById","tags":["NewMessagePresetController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"NewMessagePreset DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NewMessagePresetController.deleteById"}},"/api/newmessagepresets":{"post":{"x-controller-name":"NewMessagePresetController","x-operation-name":"create","tags":["NewMessagePresetController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewMessagePreset"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","icon"],"properties":{"name":{"type":"string"},"icon":{"type":"string"},"isQuickComment":{"type":"boolean"},"categoryId":{"type":"number","nullable":true},"messageChannelId":{"type":"number","nullable":true},"typeId":{"type":"number","nullable":true}},"additionalProperties":true}}}},"operationId":"NewMessagePresetController.create"},"patch":{"x-controller-name":"NewMessagePresetController","x-operation-name":"update","tags":["NewMessagePresetController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"NewMessagePreset PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","icon"],"properties":{"name":{"type":"string"},"icon":{"type":"string"},"isQuickComment":{"type":"boolean"},"categoryId":{"type":"number","nullable":true},"messageChannelId":{"type":"number","nullable":true},"typeId":{"type":"number","nullable":true}},"additionalProperties":true}}}},"operationId":"NewMessagePresetController.update"},"get":{"x-controller-name":"NewMessagePresetController","x-operation-name":"find","tags":["NewMessagePresetController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NewMessagePresetWithRelations"}}}}}},"operationId":"NewMessagePresetController.find"}},"/api/nodeelements/sendFeedback":{"post":{"x-controller-name":"NodeElementController","x-operation-name":"sendFeedback","tags":["NodeElementController"],"responses":{"200":{"description":"Return value of NodeElementController.sendFeedback"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"selectedExternalIdentifier":{"type":"string"},"nodeId":{"type":"string"},"selectedTitle":{"type":"string"},"feedback":{"type":"string"},"explanation":{"type":"string"}}}}}},"operationId":"NodeElementController.sendFeedback"}},"/api/nodes/getNode/{language}/{id}":{"get":{"x-controller-name":"NodeController","x-operation-name":"findById","tags":["NodeController"],"responses":{"200":{"description":"Node model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeWithRelations"}}}}},"parameters":[{"name":"language","in":"path","schema":{"type":"string"},"required":true},{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"operationId":"NodeController.findById"}},"/api/nodes/getNodes/{language}/{parent}/{depth}":{"get":{"x-controller-name":"NodeController","x-operation-name":"find","tags":["NodeController"],"responses":{"200":{"description":"Array of Node model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NodeWithRelations"}}}}}},"parameters":[{"name":"language","in":"path","schema":{"type":"string"},"required":true},{"name":"parent","in":"path","schema":{"type":"string"},"required":true},{"name":"depth","in":"path","schema":{"type":"string"},"required":true},{"name":"relationId","in":"query","schema":{"type":"string"}},{"name":"relationClusterId","in":"query","schema":{"type":"string"}},{"name":"tagId","in":"query","schema":{"type":"string"}}],"operationId":"NodeController.find"}},"/api/nodes/getSuggestions/{language}":{"get":{"x-controller-name":"NodeController","x-operation-name":"findSuggestions","tags":["NodeController"],"responses":{"200":{"description":"overlay groups","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Node"}}}}}}}},"parameters":[{"name":"language","in":"path","schema":{"type":"string"},"required":true},{"name":"relationId","in":"query","schema":{"type":"string"}}],"operationId":"NodeController.findSuggestions"}},"/api/nodes/insights":{"get":{"x-controller-name":"NodeController","x-operation-name":"getForInsights","tags":["NodeController"],"responses":{"200":{"description":"Get items for the insights page","content":{"application/json":{"schema":{"type":"object","properties":{"lastCreatedItems":{"type":"array","items":{"$ref":"#/components/schemas/Node"},"nullable":true},"lastUsedItems":{"type":"array","items":{"$ref":"#/components/schemas/Node"},"nullable":true},"lastEditedItems":{"type":"array","items":{"$ref":"#/components/schemas/Node"},"nullable":true}}}}}}},"operationId":"NodeController.getForInsights"}},"/api/nodes/overlaygroups":{"get":{"x-controller-name":"NodeController","x-operation-name":"findOverlayGroups","tags":["NodeController"],"responses":{"200":{"description":"overlay groups","content":{"application/json":{"schema":{"type":"object","properties":{"overlaygroups":{"type":"object","properties":{"relationClusters":{"type":"array","items":{"$ref":"#/components/schemas/RelationCluster"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Tag"}}}}}}}}}},"operationId":"NodeController.findOverlayGroups"}},"/api/nodes/search/{keywords}":{"get":{"x-controller-name":"NodeController","x-operation-name":"findByKeywords","tags":["NodeController"],"responses":{"200":{"description":"Search by keywords","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/Node"}],"properties":{"hit":{"type":"object","properties":{"_id":{"type":"string"},"_index":{"type":"string"},"_score":{"type":"string"},"_type":{"type":"string"},"_source":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"fields":{"type":"object"}}}}}}}}}}}},"parameters":[{"name":"keywords","in":"path","schema":{"type":"string"},"required":true}],"operationId":"NodeController.findByKeywords"}},"/api/notificationfilters/notification/{notificationId}":{"get":{"x-controller-name":"NotificationFilterController","x-operation-name":"findByNotificationId","tags":["NotificationFilterController"],"responses":{"200":{"description":"Array of NotificationFilter model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationFilterWithRelations"}}}}}},"parameters":[{"name":"notificationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationFilterController.findByNotificationId"}},"/api/notificationfilters/show-filter/elevator":{"post":{"x-controller-name":"NotificationFilterController","x-operation-name":"findWithContracts","tags":["NotificationFilterController"],"responses":{"200":{"description":"Find with contracts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}}}},"description":"Find if elevator filter options is required"},"operationId":"NotificationFilterController.findWithContracts"}},"/api/notificationmessages/relation/{relationId}":{"get":{"x-controller-name":"NotificationMessageController","x-operation-name":"findByRelationId","tags":["NotificationMessageController"],"responses":{"200":{"description":"Array of NotificationMessage model instances by relationId","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageWithRelations"}}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationMessageController.findByRelationId"}},"/api/notificationmessages/{notificationMessageId}/attachments/download":{"get":{"x-controller-name":"NotificationMessageController","x-operation-name":"downloadAttachment","tags":["NotificationMessageController"],"responses":{"200":{"description":"File download of NotificationMessage attachment","content":{"application/octet-stream":{"schema":{"anyOf":[{"type":"file"},{"type":"string","format":"binary"}]}}}}},"parameters":[{"name":"notificationMessageId","in":"path","schema":{"type":"number"},"required":true},{"name":"filename","in":"query","schema":{"type":"string"}}],"operationId":"NotificationMessageController.downloadAttachment"}},"/api/notificationmessages/{notificationMessageId}/attachments":{"post":{"x-controller-name":"NotificationMessageController","x-operation-name":"addAttachments","tags":["NotificationMessageController"],"responses":{"200":{"description":"Return value of NotificationMessageController.addAttachments"}},"parameters":[{"name":"notificationMessageId","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true,"x-parameter-index":1},"operationId":"NotificationMessageController.addAttachments"},"get":{"x-controller-name":"NotificationMessageController","x-operation-name":"getAttachments","tags":["NotificationMessageController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Attachments for NotificationMessage"}}}}},"parameters":[{"name":"notificationMessageId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationMessageController.getAttachments"},"delete":{"x-controller-name":"NotificationMessageController","x-operation-name":"deleteAttachment","tags":["NotificationMessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"NotificationMessage Attachment(s) DELETE success"}}}}},"parameters":[{"name":"notificationMessageId","in":"path","schema":{"type":"number"},"required":true},{"name":"filename","in":"query","schema":{"type":"string"}}],"operationId":"NotificationMessageController.deleteAttachment"}},"/api/notificationmessages/{id}":{"get":{"x-controller-name":"NotificationMessageController","x-operation-name":"findById","tags":["NotificationMessageController"],"responses":{"200":{"description":"NotificationMessage model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationMessageWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationMessageController.findById"}},"/api/notificationmessages":{"patch":{"x-controller-name":"NotificationMessageController","x-operation-name":"update","tags":["NotificationMessageController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"NotificationMessage PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationMessagePartial"}}}},"operationId":"NotificationMessageController.update"}},"/api/notifications/createDraft":{"post":{"x-controller-name":"NotificationController","x-operation-name":"createDraft","tags":["NotificationController"],"responses":{"200":{"description":"Draft Notification model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"notification":{"type":"object","properties":{"subject":{"type":"string"}}},"emailmessage":{"type":"object","properties":{"type":{"type":"string","enum":["email","sms","alert","push"]},"status":{"type":"string","enum":["draft","ready_to_send","sending","sent"]},"templateId":{"type":"number"},"subject":{"type":"string"},"body":{"type":"string"}}}}}}}},"operationId":"NotificationController.createDraft"}},"/api/notifications/findByCriteria":{"post":{"x-controller-name":"NotificationController","x-operation-name":"findByCriteria","tags":["NotificationController"],"responses":{"200":{"description":"Find notifications by criteria","content":{"application/json":{"schema":{"properties":{"totalNotificationsCount":{"type":"number"},"notifications":{"type":"array","items":{"$ref":"#/components/schemas/NotificationResponsePartial","definitions":{"NotificationResponsePartial":{"$ref":"#/components/schemas/NotificationResponsePartial"}}}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["filter","pagination"],"properties":{"filter":{"type":"object","required":["messageTypes","cities","streets","complexes","buildings","vheTypes","complexHasElevators","contractTypes","contractStatuses"],"properties":{"messageTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}}}},"cities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"countryId":{"type":"number","nullable":true},"id":{"type":"number","nullable":true}}}},"streets":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"countryId":{"type":"number","nullable":true},"id":{"type":"number","nullable":true}}}},"complexes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"buildings":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"vheTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"boolean","nullable":true}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"relationRoles":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}}}}}},"pagination":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}}}}}}}},"operationId":"NotificationController.findByCriteria"}},"/api/notifications/findRelationsByFilters":{"post":{"x-controller-name":"NotificationController","x-operation-name":"findRelationsByFilters","tags":["NotificationController"],"responses":{"200":{"description":"Filtered Relation IDs object","content":{"application/json":{"schema":{"type":"object","properties":{"recipientIds":{"type":"array","items":{"type":"number"}},"invalidRecipientIds":{"type":"array","items":{"type":"number"}},"relationsWithoutEmailAddress":{"type":"array","items":{"type":"number"}},"relationsWithoutMobilePhoneNumbers":{"type":"array","items":{"type":"number"}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orderColumn":{"type":"string","enum":["lastName","address"]},"orderDirection":{"type":"string","enum":["ASC","DESC"]},"plannedDate":{"type":"string"},"filters":{"type":"object","properties":{"messageTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}}}},"cities":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":true}},"streets":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":true}},"complexes":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":true}},"buildings":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":true}},"vheTypes":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":true}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"boolean"}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}}},"relationRoles":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}},"additionalProperties":true}},"filtermessageTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}}}}},"additionalProperties":false}},"additionalProperties":false}}}},"operationId":"NotificationController.findRelationsByFilters"}},"/api/notifications/import-recipients":{"post":{"x-controller-name":"NotificationController","x-operation-name":"importRecipients","tags":["NotificationController"],"responses":{"200":{"description":"Imported notification recipients","content":{"application/json":{"schema":{"type":"object","required":["recipientIds","invalidEntries","relationsWithoutEmailAddress","relationsWithoutMobilePhoneNumbers","relationsWithoutApp","totalRows","validRows","invalidRows"],"properties":{"recipientIds":{"type":"array","items":{"type":"number"}},"invalidEntries":{"type":"array","items":{"type":"object","required":["externalId","reason"],"properties":{"externalId":{"type":"string"},"reason":{"type":"string","enum":["NOT_FOUND","NOT_LINKED","EMPTY","DUPLICATE","AMBIGUOUS"]}}}},"relationsWithoutEmailAddress":{"type":"array","items":{"type":"number"}},"relationsWithoutMobilePhoneNumbers":{"type":"array","items":{"type":"number"}},"relationsWithoutApp":{"type":"array","items":{"type":"number"}},"totalRows":{"type":"number"},"validRows":{"type":"number"},"invalidRows":{"type":"number"}}}}}}},"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}},"x-parser":"stream"}},"description":"Notification recipient import file upload","required":true},"operationId":"NotificationController.importRecipients"}},"/api/notifications/inbox":{"post":{"x-controller-name":"NotificationController","x-operation-name":"findInboxNotifications","tags":["NotificationController"],"responses":{"200":{"description":"Find notifications for inbox","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"notificationId":{"type":"number"},"subject":{"type":"string"},"body":{"type":"string"},"plannedDate":{"type":"string"}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["system","externalId"],"properties":{"name":{"type":"string"},"system":{"type":"string","nullable":true},"externalId":{"type":"string"}}}}}}},"operationId":"NotificationController.findInboxNotifications"}},"/api/notifications/process":{"post":{"x-controller-name":"NotificationController","x-operation-name":"process","tags":["NotificationController"],"responses":{"200":{"description":"Filtered Relation IDs object","content":{"application/json":{"schema":{"type":"object","properties":{"recipientIds":{"type":"array","items":{"type":"number"}},"invalidRecipientIds":{"type":"array","items":{"type":"number"}},"relationsWithoutEmailAddress":{"type":"array","items":{"type":"number"}},"relationsWithoutMobilePhoneNumbers":{"type":"array","items":{"type":"number"}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["notification","filters","messages","deselectedRecipientIds"],"properties":{"notification":{"type":"object","properties":{"id":{"type":"number","nullable":true},"subject":{"type":"string","nullable":true},"plannedDate":{"type":"string"},"isDraft":{"type":"boolean","nullable":true},"categoryId":{"type":"number","nullable":true},"contactReasonId":{"type":"number","nullable":true}}},"filters":{"type":"object","required":["messageTypes","cities","streets","complexes","buildings","vheTypes","complexHasElevators","contractTypes","contractStatuses"],"properties":{"messageTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}}}},"cities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"countryId":{"type":"number","nullable":true},"id":{"type":"number","nullable":true}}}},"streets":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"countryId":{"type":"number","nullable":true},"id":{"type":"number","nullable":true}}}},"complexes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"buildings":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"vheTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"boolean","nullable":true}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"number","nullable":true}}}},"relationRoles":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"id":{"type":"string","nullable":true}}}}}},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","nullable":true},"type":{"type":"string","enum":["email","sms","alert","push"]},"templateId":{"type":"number","nullable":true},"bcc":{"type":"string","nullable":true},"subject":{"type":"string","nullable":true},"body":{"type":"string","nullable":true},"subjectEn":{"type":"string","nullable":true},"bodyEn":{"type":"string","nullable":true},"senderName":{"type":"string"},"notificationHasBeenSent":{"type":"boolean","nullable":true},"showInInbox":{"type":"boolean","nullable":true},"pushNotificationButtonText":{"type":"string","nullable":true},"pushNotificationButtonTextEn":{"type":"string","nullable":true},"pushNotificationValidUntil":{"type":"string","nullable":true},"pushNotificationPageId":{"type":"number","nullable":true}},"anyOf":[{"required":["body","subject"]},{"required":["bodyEn","subjectEn"]}],"dependencies":{"body":["subject"],"subject":["body"],"bodyEn":["subjectEn"],"subjectEn":["bodyEn"]}}},"deselectedRecipientIds":{"type":"array","items":{"type":"number"}},"recipientIds":{"type":"array","items":{"type":"number"}}}}}}},"operationId":"NotificationController.process"}},"/api/notifications/{id}/bccrecipients":{"get":{"x-controller-name":"NotificationController","x-operation-name":"getBccRecipients","tags":["NotificationController"],"responses":{"200":{"description":"Get BCC recipients","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageReceiverWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationController.getBccRecipients"}},"/api/notifications/{id}/inbox/attachments":{"get":{"x-controller-name":"NotificationController","x-operation-name":"getAttachments","tags":["NotificationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"prefix":{"type":"string"},"messageId":{"type":"number"},"continuationToken":{"type":"string"},"fileName":{"type":"string"}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationController.getAttachments"}},"/api/notifications/{id}/notificationsByReceiver":{"get":{"x-controller-name":"NotificationController","x-operation-name":"getNotificationsByReceiver","tags":["NotificationController"],"responses":{"200":{"description":"Array of Notifications for a relation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationWithRelations"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationController.getNotificationsByReceiver"}},"/api/notifications/{id}/recipients":{"get":{"x-controller-name":"NotificationController","x-operation-name":"getRecipients","tags":["NotificationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"recipientIds":{"type":"array","items":{"type":"number"}},"invalidRecipientIds":{"type":"array","items":{"type":"number"}},"relationsWithoutEmailAddress":{"type":"array","items":{"type":"number"}},"relationsWithoutMobilePhoneNumbers":{"type":"array","items":{"type":"number"}},"availableTypes":{"type":"array","items":{"type":"string","enum":["email","sms","alert","push"]}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationController.getRecipients"}},"/api/notifications/{id}":{"get":{"x-controller-name":"NotificationController","x-operation-name":"findById","tags":["NotificationController"],"responses":{"200":{"description":"Notification model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationController.findById"},"delete":{"x-controller-name":"NotificationController","x-operation-name":"deleteById","tags":["NotificationController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Notification DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationController.deleteById"}},"/api/notifications":{"post":{"x-controller-name":"NotificationController","x-operation-name":"create","tags":["NotificationController"],"responses":{"200":{"description":"Notification model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewNotification"}}}},"operationId":"NotificationController.create"},"get":{"x-controller-name":"NotificationController","x-operation-name":"find","tags":["NotificationController"],"responses":{"200":{"description":"Array of Notification model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationWithRelations"}}}}}},"operationId":"NotificationController.find"}},"/api/notificationsmssenders/{id}":{"delete":{"x-controller-name":"NotificationSmsSenderController","x-operation-name":"deleteById","tags":["NotificationSmsSenderController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"NotificationSmsSender DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"NotificationSmsSenderController.deleteById"}},"/api/notificationsmssenders":{"post":{"x-controller-name":"NotificationSmsSenderController","x-operation-name":"create","tags":["NotificationSmsSenderController"],"responses":{"200":{"description":"NotificationSmsSender model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSmsSender"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewNotificationSmsSender"}}}},"operationId":"NotificationSmsSenderController.create"},"patch":{"x-controller-name":"NotificationSmsSenderController","x-operation-name":"update","tags":["NotificationSmsSenderController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"NotificationSmsSender PATCH success"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSmsSenderPartial"}}}},"operationId":"NotificationSmsSenderController.update"},"get":{"x-controller-name":"NotificationSmsSenderController","x-operation-name":"find","tags":["NotificationSmsSenderController"],"responses":{"200":{"description":"Array of NotificationSmsSender model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationSmsSenderWithRelations"}}}}}},"operationId":"NotificationSmsSenderController.find"}},"/api/phone-number-info":{"get":{"x-controller-name":"ServiceController","x-operation-name":"getPhoneNumberInformation","tags":["ServiceController"],"responses":{"200":{"description":"Analyze a phone number and return information about it","content":{"application/json":{"schema":{"type":"object","properties":{"displayFormat":{"type":"string","description":"Nationally formatted phone number"},"universalFormat":{"type":"string","description":"E.164 universally formatted phone number"},"isValidNumber":{"type":"boolean","description":"Indicates if the phone number is valid"},"isMobileNumber":{"type":"boolean","description":"Indicates if the phone number is a valid mobile number"}}}}}}},"parameters":[{"name":"number","in":"query","schema":{"type":"string"},"required":true,"description":"The phone number to analyze."},{"name":"country","in":"query","schema":{"type":"string"},"description":"Optional country code (e.g., NL, US). Defaults to NL."}],"operationId":"ServiceController.getPhoneNumberInformation"}},"/api/profiles":{"patch":{"x-controller-name":"ProfileController","x-operation-name":"updateAll","tags":["ProfileController"],"responses":{"200":{"description":"Profile PATCH success count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePartial"}}}},"operationId":"ProfileController.updateAll"}},"/api/push-notification-pages":{"get":{"x-controller-name":"PushNotificationPageController","x-operation-name":"find","tags":["PushNotificationPageController"],"responses":{"200":{"description":"Array of PushNotification model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PushNotificationPageWithRelations"}}}}}},"operationId":"PushNotificationPageController.find"}},"/api/referencedata/entity/{entity}":{"get":{"x-controller-name":"ReferenceDataController","x-operation-name":"findByEntity","tags":["ReferenceDataController"],"responses":{"200":{"description":"ReferenceData model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceDataWithRelations"}}}}},"parameters":[{"name":"entity","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ReferenceDataController.findByEntity"}},"/api/referencedata/{id}":{"patch":{"x-controller-name":"ReferenceDataController","x-operation-name":"updateById","tags":["ReferenceDataController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Patch a ReferenceData model instance"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferenceDataPartial"}}},"x-parameter-index":1},"operationId":"ReferenceDataController.updateById"}},"/api/relaties/updateRelation":{"post":{"x-controller-name":"RelationController","x-operation-name":"backwardsCompatibleRelation","tags":["RelationController"],"responses":{"200":{"description":"Update relation (backwards compatible)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"id":{"type":"number"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["relation"],"properties":{"relation":{"type":"object","allOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"code":{"type":["string","null"]},"name":{"type":["string","null"]},"firstName":{"type":["string","null"]},"nickName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"introductoryName":{"type":["string","null"]},"middleName":{"type":["string","null"]},"initials":{"type":["string","null"]},"fullInitials":{"type":["string","null"]},"salutation":{"type":["string","null"]},"dateOfBirth":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"dateOfDeath":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"gender":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"kvkNumber":{"type":["string","null"]},"globalLocationNumber":{"type":["string","null"]},"type":{"type":["string","null"]},"anonymized":{"type":["boolean","null"]},"languageId":{"type":["number","null"]},"legalEntityTypeId":{"type":["number","null"]},"maritalStatusId":{"type":["number","null"]},"nationalityId":{"type":["number","null"]}}}],"properties":{"firstname":{"type":"string","deprecated":true,"nullable":true},"lastname":{"type":"string","deprecated":true,"nullable":true},"middlename":{"type":"string","deprecated":true,"nullable":true},"dateofbirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"deprecated":true,"nullable":true},"dateofdeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true,"deprecated":true},"anonymize":{"type":"boolean","nullable":true},"externalRelationIdentifier":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personNumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personsnumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"addresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"address":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"emailAddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}}},"emailaddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailAddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailaddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"phoneNumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}}},"phonenumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phoneNumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phonenumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"contracts":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"contractNumber":{"type":"string"},"contractId":{"type":"string"},"addressId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"vheId":{"type":"string","nullable":true},"id":{"type":"number"},"address":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}}}},"tag":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"}}}},"roles":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":["string","null"]},"identifier":{"type":"string"},"parentRelationId":{"type":["number","null"]},"id":{"type":"number"},"system":{"type":["string","null"]},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":["string","null"]},"startDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"endDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]}}}},{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":["string","null"]},"identifier":{"type":"string"},"parentRelationId":{"type":["number","null"]},"id":{"type":"number"},"system":{"type":["string","null"]},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":["string","null"]},"startDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"endDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]}}}]},"language":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"typo3Code":{"type":"number"},"hasKnowledgeBase":{"type":"boolean"},"isDefault":{"type":"boolean"},"id":{"type":"number"}}},"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"typeId":{"type":"number","nullable":true},"typeDetailId":{"type":"number","nullable":true},"statusId":{"type":"number","nullable":true},"statusDetailId":{"type":"number","nullable":true}}}},"relationClusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"relatiecluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relatieclusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relationCluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"customFields":{"anyOf":[{"type":"array"},{"type":"object"}]},"customfields":{"anyOf":[{"type":"array"},{"type":"object"}],"deprecated":true},"educations":{"type":"array"},"nationality":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}}}}}}},"operationId":"RelationController.backwardsCompatibleRelation"}},"/api/relation-contract/relation/{relationId}/count":{"get":{"x-controller-name":"RelationContractController","x-operation-name":"countByRelationId","tags":["RelationContractController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/loopback.Count"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationContractController.countByRelationId"}},"/api/relation-contract/relation/{relationId}":{"get":{"x-controller-name":"RelationContractController","x-operation-name":"findActiveByRelationId","tags":["RelationContractController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationContract"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationContractController.findActiveByRelationId"}},"/api/relationalerts/process":{"post":{"x-controller-name":"RelationAlertController","x-operation-name":"process","tags":["RelationAlertController"],"responses":{"200":{"description":"RelationAlert model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationAlert"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"relationId":{"type":"number"}}}}}},"operationId":"RelationAlertController.process"}},"/api/relationalerts/{id}":{"delete":{"x-controller-name":"RelationAlertController","x-operation-name":"deleteById","tags":["RelationAlertController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"RelationAlert DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationAlertController.deleteById"}},"/api/relationalerts":{"patch":{"x-controller-name":"RelationAlertController","x-operation-name":"updateById","tags":["RelationAlertController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"RelationAlert PATCH success"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"typeId":{"type":"number","nullable":true},"typeDetailId":{"type":"number","nullable":true},"statusId":{"type":"number","nullable":true},"statusDetailId":{"type":"number","nullable":true}}}}}},"operationId":"RelationAlertController.updateById"},"get":{"x-controller-name":"RelationAlertController","x-operation-name":"find","tags":["RelationAlertController"],"responses":{"200":{"description":"Array of RelationAlert model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationAlertWithRelations"}}}}}},"operationId":"RelationAlertController.find"}},"/api/relationclusters/{id}/upsertEmployees":{"post":{"x-controller-name":"RelationClusterController","x-operation-name":"upsertEmployees","tags":["RelationClusterController"],"responses":{"200":{"description":"Upsert employees for a relation cluster","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationClusterEmployee"}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["employees"],"properties":{"relationClusterId":{"type":"number"},"employees":{"type":"array","items":{"type":"number"}}}}}},"x-parameter-index":1},"operationId":"RelationClusterController.upsertEmployees"}},"/api/relationclusters/{id}":{"get":{"x-controller-name":"RelationClusterController","x-operation-name":"findById","tags":["RelationClusterController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"$ref":"#/components/schemas/RelationCluster"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationClusterController.findById"}},"/api/relationclusters":{"post":{"x-controller-name":"RelationClusterController","x-operation-name":"create","tags":["RelationClusterController"],"responses":{"200":{"description":"Add relation cluster","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"$ref":"#/components/schemas/RelationCluster"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewRelationCluster"}}}},"operationId":"RelationClusterController.create"},"patch":{"x-controller-name":"RelationClusterController","x-operation-name":"updateAll","tags":["RelationClusterController"],"responses":{"200":{"description":"Patch relation cluster","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"$ref":"#/components/schemas/RelationCluster"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"},"employees":{"type":"array","items":{"type":"number"}}}}}}},"operationId":"RelationClusterController.updateAll"},"get":{"x-controller-name":"RelationClusterController","x-operation-name":"find","tags":["RelationClusterController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationCluster"}}}}}},"operationId":"RelationClusterController.find"}},"/api/relationconnections/{id}":{"patch":{"x-controller-name":"RelationConnectionController","x-operation-name":"updateById","tags":["RelationConnectionController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"RelationConnection PATCH success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationConnectionPartial"}}},"x-parameter-index":1},"operationId":"RelationConnectionController.updateById"},"delete":{"x-controller-name":"RelationConnectionController","x-operation-name":"deleteById","tags":["RelationConnectionController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"RelationConnection DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationConnectionController.deleteById"}},"/api/relationconnections":{"post":{"x-controller-name":"RelationConnectionController","x-operation-name":"create","tags":["RelationConnectionController"],"responses":{"200":{"description":"RelationConnection model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationConnection"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewRelationConnection"}}}},"operationId":"RelationConnectionController.create"},"get":{"x-controller-name":"RelationConnectionController","x-operation-name":"find","tags":["RelationConnectionController"],"responses":{"200":{"description":"Array of RelationConnection model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationConnectionWithRelations"}}}}}},"operationId":"RelationConnectionController.find"}},"/api/relationrolemappings/upsertAll":{"post":{"x-controller-name":"RelationRoleMappingController","x-operation-name":"upsertAll","tags":["RelationRoleMappingController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"RelationRoleMappings update success"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationRoleMappings"}}}},"operationId":"RelationRoleMappingController.upsertAll"}},"/api/relationrolemappings/{parentId}/children":{"get":{"x-controller-name":"RelationRoleMappingController","x-operation-name":"findChildRelations","tags":["RelationRoleMappingController"],"responses":{"200":{"description":"RelationRoleMapping array","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationRoleMapping"}}}}},"parameters":[{"name":"parentId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationRoleMappingController.findChildRelations"}},"/api/relationrolemappings/{relationId}/parents":{"get":{"x-controller-name":"RelationRoleMappingController","x-operation-name":"findWithParents","tags":["RelationRoleMappingController"],"responses":{"200":{"description":"RelationRoleMapping array","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationRoleMapping"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationRoleMappingController.findWithParents"}},"/api/relationroles/notification-filters":{"get":{"x-controller-name":"RelationRoleController","x-operation-name":"getForNotifications","tags":["RelationRoleController"],"responses":{"200":{"description":"Array of RelationRole model instances for notification center","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string"},"useAsNotificationFilter":{"type":"boolean"}}}}}}}},"operationId":"RelationRoleController.getForNotifications"}},"/api/relationroles/{id}/notification-filter":{"patch":{"x-controller-name":"RelationRoleController","x-operation-name":"patchForNotifications","tags":["RelationRoleController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Patch useAsNotificationFilter of RelationRole model instance"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"boolean"}}},"x-parameter-index":1},"operationId":"RelationRoleController.patchForNotifications"}},"/api/relationroles/{id}":{"delete":{"x-controller-name":"RelationRoleController","x-operation-name":"deleteById","tags":["RelationRoleController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"RelationRole DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationRoleController.deleteById"}},"/api/relationroles":{"post":{"x-controller-name":"RelationRoleController","x-operation-name":"create","tags":["RelationRoleController"],"responses":{"200":{"description":"RelationRole model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationRole"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":"string","nullable":true},"system":{"type":"string"},"visible":{"type":"boolean"},"showOnRelationDetailsAndSearch":{"type":"boolean"},"showTopTasks":{"type":"boolean"},"parentId":{"type":"number","nullable":true},"parent":{"$ref":"#/components/schemas/RelationRole"},"deletedAt":{"type":"string","nullable":true,"format":"date-time"}}}}}},"operationId":"RelationRoleController.create"},"patch":{"x-controller-name":"RelationRoleController","x-operation-name":"update","tags":["RelationRoleController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"RelationRole PATCH success"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"code":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"nickName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"introductoryName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"initials":{"type":"string","nullable":true},"fullInitials":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"dateOfDeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"gender":{"type":"string","nullable":true},"vatNumber":{"type":"string","nullable":true},"kvkNumber":{"type":"string","nullable":true},"globalLocationNumber":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"anonymized":{"type":"boolean","nullable":true},"languageId":{"type":"number","nullable":true},"legalEntityTypeId":{"type":"number","nullable":true},"maritalStatusId":{"type":"number","nullable":true},"nationalityId":{"type":"number","nullable":true}}}],"required":["id"],"properties":{"id":{"type":"number"}}}}}},"operationId":"RelationRoleController.update"},"get":{"x-controller-name":"RelationRoleController","x-operation-name":"find","tags":["RelationRoleController"],"responses":{"200":{"description":"Array of RelationRole model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationRoleWithRelations"}}}}}},"operationId":"RelationRoleController.find"}},"/api/relations/createRelation":{"post":{"x-controller-name":"RelationController","x-operation-name":"createRelation","tags":["RelationController"],"responses":{"200":{"description":"Create a relation","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"id":{"type":"number"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["relation"],"properties":{"relation":{"type":"object","allOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"code":{"type":["string","null"]},"name":{"type":["string","null"]},"firstName":{"type":["string","null"]},"nickName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"introductoryName":{"type":["string","null"]},"middleName":{"type":["string","null"]},"initials":{"type":["string","null"]},"fullInitials":{"type":["string","null"]},"salutation":{"type":["string","null"]},"dateOfBirth":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"dateOfDeath":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"gender":{"type":["string","null"]},"vatNumber":{"type":["string","null"]},"kvkNumber":{"type":["string","null"]},"globalLocationNumber":{"type":["string","null"]},"type":{"type":["string","null"]},"anonymized":{"type":["boolean","null"]},"languageId":{"type":["number","null"]},"legalEntityTypeId":{"type":["number","null"]},"maritalStatusId":{"type":["number","null"]},"nationalityId":{"type":["number","null"]}}}],"properties":{"firstname":{"type":"string","deprecated":true,"nullable":true},"lastname":{"type":"string","deprecated":true,"nullable":true},"middlename":{"type":"string","deprecated":true,"nullable":true},"dateofbirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"deprecated":true,"nullable":true},"dateofdeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true,"deprecated":true},"anonymize":{"type":"boolean","nullable":true},"externalRelationIdentifier":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personNumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personsnumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"addresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"address":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"emailAddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}}},"emailaddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailAddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailaddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"phoneNumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}}},"phonenumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phoneNumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phonenumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"contracts":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"contractNumber":{"type":"string"},"contractId":{"type":"string"},"addressId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"vheId":{"type":"string","nullable":true},"id":{"type":"number"},"address":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}}}},"tag":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"}}}},"roles":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":["string","null"]},"identifier":{"type":"string"},"parentRelationId":{"type":["number","null"]},"id":{"type":"number"},"system":{"type":["string","null"]},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":["string","null"]},"startDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"endDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]}}}},{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":["string","null"]},"identifier":{"type":"string"},"parentRelationId":{"type":["number","null"]},"id":{"type":"number"},"system":{"type":["string","null"]},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":["string","null"]},"startDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]},"endDate":{"type":["string","null"],"anyOf":[{"format":"date"},{"format":"date-time"}]}}}]},"language":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"typo3Code":{"type":"number"},"hasKnowledgeBase":{"type":"boolean"},"isDefault":{"type":"boolean"},"id":{"type":"number"}}},"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"typeId":{"type":"number","nullable":true},"typeDetailId":{"type":"number","nullable":true},"statusId":{"type":"number","nullable":true},"statusDetailId":{"type":"number","nullable":true}}}},"relationClusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"relatiecluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relatieclusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relationCluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"customFields":{"anyOf":[{"type":"array"},{"type":"object"}]},"customfields":{"anyOf":[{"type":"array"},{"type":"object"}],"deprecated":true},"educations":{"type":"array"},"nationality":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}}}}}}},"operationId":"RelationController.createRelation"}},"/api/relations/dms-documents/{documentId}/download":{"get":{"x-controller-name":"RelationController","x-operation-name":"downloadDocumentById","tags":["RelationController"],"responses":{},"parameters":[{"name":"documentId","in":"path","schema":{"type":"string"},"required":true}],"operationId":"RelationController.downloadDocumentById"}},"/api/relations/emailAddress/{emailAddress}":{"get":{"x-controller-name":"RelationController","x-operation-name":"getRelationsByEmailAddress","tags":["RelationController"],"responses":{"200":{"description":"Array of relation model instances by emailaddress","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationWithRelations"}}}}}},"parameters":[{"name":"emailAddress","in":"path","schema":{"type":"string"},"required":true}],"operationId":"RelationController.getRelationsByEmailAddress"}},"/api/relations/findByProperties":{"post":{"x-controller-name":"RelationController","x-operation-name":"findByProperties","tags":["RelationController"],"responses":{"200":{"description":"Array of relation model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationWithRelations"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["properties"],"properties":{"properties":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"code":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"nickName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"introductoryName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"initials":{"type":"string","nullable":true},"fullInitials":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"dateOfDeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"gender":{"type":"string","nullable":true},"vatNumber":{"type":"string","nullable":true},"kvkNumber":{"type":"string","nullable":true},"globalLocationNumber":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"anonymized":{"type":"boolean","nullable":true},"languageId":{"type":"number","nullable":true},"legalEntityTypeId":{"type":"number","nullable":true},"maritalStatusId":{"type":"number","nullable":true},"nationalityId":{"type":"number","nullable":true}}}}}}}},"operationId":"RelationController.findByProperties"}},"/api/relations/findDuplicates":{"get":{"x-controller-name":"RelationController","x-operation-name":"findDuplicates","tags":["RelationController"],"responses":{"200":{"description":"Array of relation model instances and ids","content":{"application/json":{"schema":{"type":"object","properties":{"properties":{"type":"array","items":{"$ref":"#/components/schemas/RelationWithRelations"}},"ids":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}}}}}}}},"operationId":"RelationController.findDuplicates"}},"/api/relations/kspdata/{relationId}/contract/{contractId}":{"get":{"x-controller-name":"RelationController","x-operation-name":"getKspDataForContract","tags":["RelationController"],"responses":{"200":{"description":"Ksp contract information for contract","content":{"application/json":{"schema":{"type":"object","properties":{"rentalpricestructure":{"type":"object","properties":{"contractId":{"type":"string"}}},"invoice":{"type":"array","items":{"type":"object","properties":{"beginsaldo":{"type":"number"},"teBetalen":{"type":"number"},"regels":{"type":"array","items":{"type":"object","properties":{"saldo":{"type":"number"},"omschrijving":{"type":"string"},"datum":{"type":"string"},"betalingen":{"type":"array","items":{"type":"object","required":["overeenkomst"],"properties":{"bedrag":{"type":"number"},"code":{"type":"string"},"datum":{"type":"string"},"factuur":{"type":"string"},"omschrijving":{"type":"string"},"overeenkomst":{"type":"string"},"identifier":{"type":"string"}}}},"betaald":{"type":"number"},"teBetalen":{"type":"number"},"soort":{"type":"string"},"identifier":{"type":"string"},"betaalwijze":{"type":"string"}}}}}}},"rating":{"type":"object","properties":{"collectionClass":{"type":"string"},"expression":{"type":"string"},"items":{"type":"object"}}},"contracts":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"address":{"type":"string"},"vheTypeCode":{"type":"string"},"id":{"type":"string"},"lastUpdatedTime":{"type":"string"},"groups":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"isExpired":{"type":"boolean"}}}},"singlePayments":{"type":"array","items":{"type":"object","required":["method","type","status","payBeforeDate","idealOrderId","idealStatusId","accountNumber","beneficiary","beneficiary","residence"],"properties":{"id":{"type":"string"},"creationDate":{"type":"string"},"method":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"amount":{"type":"integer"},"payDate":{"type":"integer"},"payBeforeDate":{"type":"string"},"idealOrderId":{"type":"string"},"idealStatusId":{"type":"string"},"accountNumber":{"type":"string"},"beneficiary":{"type":"string"},"residence":{"type":"string"},"isEditable":{"type":"boolean"},"description":{"type":"string"}}}},"alerts":{"type":"object","properties":{"personal":{"type":"object","properties":{"collectionClass":{"type":"string"},"expression":{"type":"array","items":{"type":"object"}},"items":{"type":"array","items":{"type":"object"}}}},"contracts":{"type":"object","properties":{"number":{"type":"string"},"address":{"type":"string"},"vheTypeCode":{"type":"string"},"id":{"type":"string"},"lastUpdatedTime":{"type":"string"},"groups":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"isExpired":{"type":"boolean"}}}}}}}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true},{"name":"contractId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationController.getKspDataForContract"}},"/api/relations/kspdata/{relationId}":{"get":{"x-controller-name":"RelationController","x-operation-name":"getKspData","tags":["RelationController"],"responses":{"200":{"description":"Ksp contract information","content":{"application/json":{"schema":{"type":"object","properties":{"rentalpricestructure":{"type":"object","properties":{"contractId":{"type":"string"}}},"invoice":{"type":"array","items":{"type":"object","properties":{"beginsaldo":{"type":"number"},"teBetalen":{"type":"number"},"regels":{"type":"array","items":{"type":"object","properties":{"saldo":{"type":"number"},"omschrijving":{"type":"string"},"datum":{"type":"string"},"betalingen":{"type":"array","items":{"type":"object","required":["overeenkomst"],"properties":{"bedrag":{"type":"number"},"code":{"type":"string"},"datum":{"type":"string"},"factuur":{"type":"string"},"omschrijving":{"type":"string"},"overeenkomst":{"type":"string"},"identifier":{"type":"string"}}}},"betaald":{"type":"number"},"teBetalen":{"type":"number"},"soort":{"type":"string"},"identifier":{"type":"string"},"betaalwijze":{"type":"string"}}}}}}},"rating":{"type":"object","properties":{"collectionClass":{"type":"string"},"expression":{"type":"string"},"items":{"type":"object"}}},"contracts":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string"},"address":{"type":"string"},"vheTypeCode":{"type":"string"},"id":{"type":"string"},"lastUpdatedTime":{"type":"string"},"groups":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"isExpired":{"type":"boolean"}}}},"singlePayments":{"type":"array","items":{"type":"object","required":["method","type","status","payBeforeDate","idealOrderId","idealStatusId","accountNumber","beneficiary","beneficiary","residence"],"properties":{"id":{"type":"string"},"creationDate":{"type":"string"},"method":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"amount":{"type":"integer"},"payDate":{"type":"integer"},"payBeforeDate":{"type":"string"},"idealOrderId":{"type":"string"},"idealStatusId":{"type":"string"},"accountNumber":{"type":"string"},"beneficiary":{"type":"string"},"residence":{"type":"string"},"isEditable":{"type":"boolean"},"description":{"type":"string"}}}},"alerts":{"type":"object","properties":{"personal":{"type":"object","properties":{"collectionClass":{"type":"string"},"expression":{"type":"array","items":{"type":"object"}},"items":{"type":"array","items":{"type":"object"}}}},"contracts":{"type":"object","properties":{"number":{"type":"string"},"address":{"type":"string"},"vheTypeCode":{"type":"string"},"id":{"type":"string"},"lastUpdatedTime":{"type":"string"},"groups":{"type":"array","items":{"type":"object"}},"isActive":{"type":"boolean"},"isExpired":{"type":"boolean"}}}}}}}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationController.getKspData"}},"/api/relations/ksplogin/{relationId}":{"get":{"x-controller-name":"RelationController","x-operation-name":"getKspLoginData","tags":["RelationController"],"responses":{"200":{"description":"Return ksp login data","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"string":{"type":"string"},"hash":{"type":"string"}}}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true},{"name":"contractId","in":"query","schema":{"type":"number"}}],"operationId":"RelationController.getKspLoginData"}},"/api/relations/merge":{"post":{"x-controller-name":"RelationController","x-operation-name":"merge","tags":["RelationController"],"responses":{"200":{"description":"Merge a relation","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"boolean"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fromRelationId":{"type":"number"},"toRelationId":{"type":"number"}}}}}},"operationId":"RelationController.merge"}},"/api/relations/mergeDuplicates":{"post":{"x-controller-name":"RelationController","x-operation-name":"mergeDuplicates","tags":["RelationController"],"responses":{"200":{"description":"Merge duplicate relations","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"merges":{"type":"array","items":{"type":"object","properties":{"properties":{"$ref":"#/components/schemas/RelationWithRelations"},"from":{"type":"integer"},"to":{"type":"integer"}}}}}}}}}},"operationId":"RelationController.mergeDuplicates"}},"/api/relations/notification-recipients":{"get":{"x-controller-name":"RelationController","x-operation-name":"getNotificationRecipients","tags":["RelationController"],"responses":{"200":{"description":"Array of relation model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RelationWithRelations"}}}}}},"parameters":[{"name":"isExport","in":"query","schema":{"type":"boolean"}},{"name":"id","in":"query","schema":{"type":"array","items":{"type":"number"}}}],"operationId":"RelationController.getNotificationRecipients"}},"/api/relations/pushSearchAll":{"post":{"x-controller-name":"RelationController","x-operation-name":"pushSearchAll","tags":["RelationController"],"responses":{"200":{"description":"Push all relations to search","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"progress":{"type":"object","properties":{"total":{"type":"number"},"completed":{"type":"number"}}},"message":{"type":"string"}}}}}}},"operationId":"RelationController.pushSearchAll"}},"/api/relations/suggestions/{senderId}":{"get":{"x-controller-name":"RelationController","x-operation-name":"getSuggestions","tags":["RelationController"],"responses":{"200":{"description":"Relation model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationWithRelations"}}}}},"parameters":[{"name":"senderId","in":"path","schema":{"type":"number"},"required":true},{"name":"searchFields","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"limit","in":"query","schema":{"type":"number"}}],"operationId":"RelationController.getSuggestions"}},"/api/relations/updateRelation":{"post":{"x-controller-name":"RelationController","x-operation-name":"updateRelation","tags":["RelationController"],"responses":{"200":{"description":"Update relation","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"id":{"type":"number"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["relation"],"properties":{"relation":{"type":"object","allOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"code":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"nickName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"introductoryName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"initials":{"type":"string","nullable":true},"fullInitials":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"dateOfDeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"gender":{"type":"string","nullable":true},"vatNumber":{"type":"string","nullable":true},"kvkNumber":{"type":"string","nullable":true},"globalLocationNumber":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"anonymized":{"type":"boolean","nullable":true},"languageId":{"type":"number","nullable":true},"legalEntityTypeId":{"type":"number","nullable":true},"maritalStatusId":{"type":"number","nullable":true},"nationalityId":{"type":"number","nullable":true}}}],"properties":{"firstname":{"type":"string","deprecated":true,"nullable":true},"lastname":{"type":"string","deprecated":true,"nullable":true},"middlename":{"type":"string","deprecated":true,"nullable":true},"dateofbirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"deprecated":true,"nullable":true},"dateofdeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true,"deprecated":true},"anonymize":{"type":"boolean","nullable":true},"externalRelationIdentifier":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personNumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personsnumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"addresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"address":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"emailAddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}}},"emailaddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailAddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailaddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"phoneNumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}}},"phonenumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phoneNumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phonenumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"contracts":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"contractNumber":{"type":"string"},"contractId":{"type":"string"},"addressId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"vheId":{"type":"string","nullable":true},"id":{"type":"number"},"address":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}}}},"tag":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"}}}},"roles":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":"string","nullable":true},"identifier":{"type":"string","deprecated":true},"parentRelationId":{"type":"number","nullable":true},"id":{"type":"number"},"system":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true}}}},{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":"string","nullable":true},"identifier":{"type":"string","deprecated":true},"parentRelationId":{"type":"number","nullable":true},"id":{"type":"number"},"system":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true}}}]},"language":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"typo3Code":{"type":"number"},"hasKnowledgeBase":{"type":"boolean"},"isDefault":{"type":"boolean"},"id":{"type":"number"}}},"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"typeId":{"type":"number","nullable":true},"typeDetailId":{"type":"number","nullable":true},"statusId":{"type":"number","nullable":true},"statusDetailId":{"type":"number","nullable":true}}}},"relationClusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"relatiecluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relatieclusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relationCluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"customFields":{"anyOf":[{"type":"array"},{"type":"object"}]},"customfields":{"anyOf":[{"type":"array"},{"type":"object"}],"deprecated":true},"educations":{"type":"array"},"nationality":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}}}}}}},"operationId":"RelationController.updateRelation"}},"/api/relations/updateRelations":{"post":{"x-controller-name":"RelationController","x-operation-name":"updateRelations","tags":["RelationController"],"responses":{"200":{"description":"Update multiple relations","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"id":{"type":"number"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"type":"object","required":["relations"],"properties":{"relations":{"type":"array","items":{"type":"object","allOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"code":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"nickName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"introductoryName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"initials":{"type":"string","nullable":true},"fullInitials":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"dateOfDeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"gender":{"type":"string","nullable":true},"vatNumber":{"type":"string","nullable":true},"kvkNumber":{"type":"string","nullable":true},"globalLocationNumber":{"type":"string","nullable":true},"type":{"type":"string","nullable":true},"anonymized":{"type":"boolean","nullable":true},"languageId":{"type":"number","nullable":true},"legalEntityTypeId":{"type":"number","nullable":true},"maritalStatusId":{"type":"number","nullable":true},"nationalityId":{"type":"number","nullable":true}}}],"properties":{"firstname":{"type":"string","deprecated":true,"nullable":true},"lastname":{"type":"string","deprecated":true,"nullable":true},"middlename":{"type":"string","deprecated":true,"nullable":true},"dateofbirth":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"deprecated":true,"nullable":true},"dateofdeath":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true,"deprecated":true},"anonymize":{"type":"boolean","nullable":true},"externalRelationIdentifier":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personNumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"personsnumber":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true,"deprecated":true},"addresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"address":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}},"emailAddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}}},"emailaddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailAddress":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"emailaddresses":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"address":{"type":"string","format":"email"},"type":{"type":"string"},"id":{"type":"number"}}},"deprecated":true},"phoneNumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}}},"phonenumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phoneNumber":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"phonenumbers":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"statusId":{"type":"number","nullable":true},"confidentialityId":{"type":"number","nullable":true},"preferenceId":{"type":"number","nullable":true},"number":{"type":"string"},"type":{"type":"string"},"id":{"type":"number"},"isValidMobile":{"type":"boolean"}}},"deprecated":true},"contracts":{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"contractNumber":{"type":"string"},"contractId":{"type":"string"},"addressId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"vheId":{"type":"string","nullable":true},"id":{"type":"number"},"address":{"type":"object","properties":{"relationId":{"type":"number","nullable":true},"streetId":{"type":"number","nullable":true},"houseNumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"housenumber":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"deprecated":true},"houseLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"houseNumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}]},"housenumberaddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"housenumberAddition":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true},"postalCode":{"type":"string","nullable":true},"postalcode":{"type":"string","nullable":true,"deprecated":true},"cityId":{"type":"number"},"addressTypeId":{"type":"number"},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"complexId":{"type":"number","nullable":true},"buildingId":{"type":"number","nullable":true},"vheTypeId":{"type":"number","nullable":true},"complexHasElevator":{"type":"boolean","nullable":true},"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"street":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"cityId":{"type":"number"},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"city":{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}}},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"countryId":{"anyOf":[{"type":"number"},{"type":"null"}]},"id":{"type":"number"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"country":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}}]},"complex":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"building":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"vheType":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"number"}}},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"showInUI":{"type":"boolean"},"onlyActiveInRelationDetails":{"type":"boolean"},"showInSearch":{"type":"boolean"},"onlyActiveInSearch":{"type":"boolean"},"id":{"type":"number"}}}]},"isActive":{"type":"boolean"},"isFuture":{"type":"boolean","nullable":true},"showAddress":{"type":"boolean"},"addressLine1":{"type":"string","nullable":true},"addressLine2":{"type":"string","nullable":true},"postOfficeBox":{"type":"string","nullable":true},"freePost":{"type":"string","nullable":true},"province":{"type":"string","nullable":true}}}}}},"tag":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"}}}},"roles":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":"string","nullable":true},"identifier":{"type":"string","deprecated":true},"parentRelationId":{"type":"number","nullable":true},"id":{"type":"number"},"system":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true}}}},{"type":"object","properties":{"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"externalId":{"type":"string","nullable":true},"identifier":{"type":"string","deprecated":true},"parentRelationId":{"type":"number","nullable":true},"id":{"type":"number"},"system":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string"},"alternativeDescription":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true}}}]},"language":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"typo3Code":{"type":"number"},"hasKnowledgeBase":{"type":"boolean"},"isDefault":{"type":"boolean"},"id":{"type":"number"}}},"alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","nullable":true},"startDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"endDate":{"type":"string","anyOf":[{"format":"date"},{"format":"date-time"}],"nullable":true},"typeId":{"type":"number","nullable":true},"typeDetailId":{"type":"number","nullable":true},"statusId":{"type":"number","nullable":true},"statusDetailId":{"type":"number","nullable":true}}}},"relationClusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}}},"relatiecluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relatieclusters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"relationCluster":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"}}},"deprecated":true},"customFields":{"anyOf":[{"type":"array"},{"type":"object"}]},"customfields":{"anyOf":[{"type":"array"},{"type":"object"}],"deprecated":true},"educations":{"type":"array"},"nationality":{"type":"object","properties":{"id":{"type":"number"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}}}},"minItems":1}}},"minItems":1,"maxItems":1}}}}}},"operationId":"RelationController.updateRelations"}},"/api/relations/{relationId}/alerts":{"get":{"x-controller-name":"RelationController","x-operation-name":"getAlerts","tags":["RelationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationWithRelations"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationController.getAlerts"}},"/api/relations/{id}/chats":{"get":{"x-controller-name":"RelationController","x-operation-name":"getChats","tags":["RelationController"],"responses":{"200":{"description":"Return chatOutput instance","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"sent_by":{},"last_updated":{"type":"number"},"channel":{"type":"string","enum":["facebook","messenger","web","ios","android","viber","telegram","wechat","line","twilio","api","whatsapp"]},"created_at":{"type":"number"},"comments":{"type":"object","properties":{"time":{"type":"number"},"body":{"type":"string"},"actor":{},"type":{"type":"string","enum":["comment"]}}},"message":{},"msg_id":{"type":"string"},"_temp_id":{"type":"string"},"level":{"type":"string","enum":["red","orange","clear"]},"tags":{},"deliveries":{},"metadata":{"type":"object","properties":{"response_to":{"type":"string"}}}}}},"messages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}}}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationController.getChats"}},"/api/relations/{id}/connections":{"post":{"x-controller-name":"RelationController","x-operation-name":"putConnections","tags":["RelationController"],"responses":{"200":{"description":"Save (overwrite) connections for relation","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"sent_by":{},"last_updated":{"type":"number"},"channel":{"type":"string","enum":["facebook","messenger","web","ios","android","viber","telegram","wechat","line","twilio","api","whatsapp"]},"created_at":{"type":"number"},"comments":{"type":"object","properties":{"time":{"type":"number"},"body":{"type":"string"},"actor":{},"type":{"type":"string","enum":["comment"]}}},"message":{},"msg_id":{"type":"string"},"_temp_id":{"type":"string"},"level":{"type":"string","enum":["red","orange","clear"]},"tags":{},"deliveries":{},"metadata":{"type":"object","properties":{"response_to":{"type":"string"}}}}}},"messages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}}}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["relationId","relationConnectionId"],"properties":{"isSource":{"type":"boolean"},"relationId":{"type":"number"},"relationConnectionId":{"type":"number"}}}}}},"x-parameter-index":1},"operationId":"RelationController.putConnections"},"get":{"x-controller-name":"RelationController","x-operation-name":"getConnections","tags":["RelationController"],"responses":{"200":{"description":"Get connections for relation","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"connection":{"type":"object","properties":{"id":{"type":"number"},"isSource":{"type":"boolean"},"label":{"type":"string"},"relationConnection":{"type":"object","properties":{"id":{"type":"number"},"isSystem":{"type":"boolean"}}}}},"relation":{"$ref":"#/components/schemas/Relation"}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationController.getConnections"}},"/api/relations/{id}/dms-documents":{"get":{"x-controller-name":"RelationController","x-operation-name":"getDocumentsForRelation","tags":["RelationController"],"responses":{"200":{"description":"Get documents for relation and his contracts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"fileName":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"createDate":{"type":"string"},"contractId":{"type":"string","nullable":true},"contractAddressName":{"type":"string","nullable":true}}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationController.getDocumentsForRelation"}},"/api/relations/{id}/timeline-summary":{"get":{"x-controller-name":"RelationController","x-operation-name":"getTimelineSummary","tags":["RelationController"],"responses":{"200":{"description":"AI-generated timeline summary","content":{"application/json":{"schema":{"type":"object","properties":{"sentiment":{"type":"string","description":"Overall sentiment analysis of the timeline summary (emoticon and short description)"},"summary":{"type":"string","description":"The timeline summary"}},"additionalProperties":false}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"language","in":"query","schema":{"type":"string","enum":["nl","en"],"default":"nl"}}],"operationId":"RelationController.getTimelineSummary"}},"/api/relations/{relationId}":{"get":{"x-controller-name":"RelationController","x-operation-name":"findById","tags":["RelationController"],"responses":{"200":{"description":"Relation model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationWithRelations"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"RelationController.findById"}},"/api/relations":{"get":{"x-controller-name":"RelationController","x-operation-name":"find","tags":["RelationController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"number","description":"Id of the relation"}}}}},"parameters":[{"name":"externalId","in":"query","schema":{"type":"string"},"required":true},{"name":"systemName","in":"query","schema":{"type":"string"},"enum":["ksp","backoffice","wbs","easymatch"]}],"operationId":"RelationController.find"}},"/api/reporting":{"get":{"x-controller-name":"ReportingController","x-operation-name":"getReports","tags":["ReportingController"],"responses":{"200":{"description":"Get all config for the Power BI reports","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"reportInfo":{"type":"object","properties":{"datasetId":{"type":"string"},"datasetWorkspaceId":{"type":"string"},"embedUrl":{"type":"string"},"id":{"type":"string"},"isFromPbix":{"type":"boolean"},"isOwnedByMe":{"type":"boolean"},"name":{"type":"string"},"reportType":{"type":"string"},"subscriptions":{"type":"array"},"users":{"type":"array"},"webUrl":{"type":"string"}}},"reportToken":{"type":"string"}}}}}}}},"operationId":"ReportingController.getReports"}},"/api/search/{type}/{keyword}":{"get":{"x-controller-name":"ServiceController","x-operation-name":"searchByKeywordsNew","tags":["ServiceController"],"responses":{"200":{"description":"Search by type and keyword, new","content":{"application/json":{"schema":{"type":"object","properties":{"Relations":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/Relation"}],"properties":{"hit":{"type":"object","properties":{"_id":{"type":"string"},"_index":{"type":"string"},"_score":{"type":"string"},"_type":{"type":"string"},"_source":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"fields":{"type":"object"}}}}}}}},"KbaseItems":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/Node"}],"properties":{"hit":{"type":"object","properties":{"_id":{"type":"string"},"_index":{"type":"string"},"_score":{"type":"string"},"_type":{"type":"string"},"_source":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"fields":{"type":"object"}}}}}}}}}}}}}},"parameters":[{"name":"type","in":"path","schema":{"type":"string"},"required":true},{"name":"keyword","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ServiceController.searchByKeywordsNew"}},"/api/service-requests/relation/{relationId}/contract":{"get":{"x-controller-name":"ServiceController","x-operation-name":"getServiceRequestsForContract","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Get maintenance service request by relation id"}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true},{"name":"contractNumber","in":"query","schema":{"type":"string"},"required":true}],"operationId":"ServiceController.getServiceRequestsForContract"}},"/api/settings":{"get":{"x-controller-name":"ServiceController","x-operation-name":"env","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Get public settings"}}}}},"operationId":"ServiceController.env"}},"/api/statistics":{"post":{"x-controller-name":"ServiceController","x-operation-name":"getStatistics","tags":["ServiceController"],"responses":{"200":{"description":"Get statistics","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["type","caption","model","method","methodParamValue","data"],"properties":{"type":{"type":"string","enum":["number-graph","pie-chart-graph"]},"key":{"type":"string","enum":["incomingTasks","closedTasks","openTasks","taskSla","closedDossiers","openDossiers"]},"unitsSingular":{"type":"string","enum":["taak","dossier"]},"unitsPlural":{"type":"string","enum":["taken","dossiers"]},"caption":{"type":"string"},"model":{"type":"string","enum":["Message","Dossier"]},"method":{"type":"string","enum":["count","countInOutSla","countOpenTasksInOutSla"]},"methodParamValue":{"type":"object","properties":{"direction":{"type":"string","enum":["inbound"]},"state":{"type":"string","enum":["archived","open"]},"createdDateTime":{"type":"object","properties":{"between":{"type":"array","items":{"type":"string"}}}},"endDate":{"type":"object","properties":{"between":{"type":"array","items":{"type":"string"}}}},"assigneeId":{"type":"number","nullable":true},"assignedById":{"anyOf":[{"type":"number"},{"type":"string"}]},"createdById":{"anyOf":[{"type":"number"},{"type":"string"}]},"or":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"inq":{"type":"array","items":{"type":"number"}},"eq":{"type":"number","nullable":true}}},{"type":"null"}]}}}},"series":{"type":"array","items":{"type":"string","enum":["in","uit"]}},"includeSystemCategories":{"type":"boolean"},"data":{"anyOf":[{"type":"number"},{"type":"object","required":["closedInSla","closedOutSla","closedTotal"],"properties":{"closedInSla":{"type":"number"},"closedOutSla":{"type":"number"},"closedTotal":{"type":"number"},"categoryId":{"type":"number","nullable":true},"categoryName":{"type":"string","nullable":true}}},{"type":"array","items":{"type":"object","properties":{"openInSla":{"type":"number"},"openOutSla":{"type":"number"}}}}]}}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["type","caption","model","method","methodParamValue","data"],"properties":{"type":{"type":"string","enum":["number-graph","pie-chart-graph"]},"key":{"type":"string","enum":["incomingTasks","closedTasks","openTasks","taskSla","closedDossiers","openDossiers"]},"unitsSingular":{"type":"string","enum":["taak","dossier"]},"unitsPlural":{"type":"string","enum":["taken","dossiers"]},"caption":{"type":"string"},"model":{"type":"string","enum":["Message","Dossier"]},"method":{"type":"string","enum":["count","countInOutSla","countOpenTasksInOutSla"]},"methodParamValue":{"type":"object","properties":{"direction":{"type":"string","enum":["inbound"]},"state":{"type":"string","enum":["archived","open"]},"createdDateTime":{"type":"object","properties":{"between":{"type":"array","items":{"type":"string"}}}},"endDate":{"type":"object","properties":{"between":{"type":"array","items":{"type":"string"}}}},"assigneeId":{"type":"number","nullable":true},"assignedById":{"anyOf":[{"type":"number"},{"type":"string"}]},"createdById":{"anyOf":[{"type":"number"},{"type":"string"}]},"or":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"inq":{"type":"array","items":{"type":"number"}},"eq":{"type":"number","nullable":true}}},{"type":"null"}]}}}},"series":{"type":"array","items":{"type":"string","enum":["in","uit"]}},"includeSystemCategories":{"type":"boolean"},"data":{"anyOf":[{"type":"number"},{"type":"array","items":{"type":"number"}},{"type":"array","items":{"type":"object","properties":{"openInSla":{"type":"number"},"openOutSla":{"type":"number"}}}}]}}}}}}},"operationId":"ServiceController.getStatistics"}},"/api/status/mail":{"get":{"x-controller-name":"ServiceController","x-operation-name":"getImapImportStatus","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Get mail import status"}}}}},"operationId":"ServiceController.getImapImportStatus"}},"/api/storage":{"get":{"x-controller-name":"ServiceController","x-operation-name":"listPrivateStorage","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"List private storage"}}}}},"operationId":"ServiceController.listPrivateStorage"}},"/api/streets/findWithContracts":{"post":{"x-controller-name":"StreetController","x-operation-name":"findWithContracts","tags":["StreetController"],"responses":{"200":{"description":"Find street instances with contracts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StreetWithRelations"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"cities":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"countryId":{"type":"number","nullable":true},"country":{"$ref":"#/components/schemas/Country"}}}},"streets":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"buildings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"vheTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"boolean"},"name":{"type":"string"}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}}}},"operationId":"StreetController.findWithContracts"}},"/api/subjectsuggestions/{id}":{"delete":{"x-controller-name":"SubjectSuggestionController","x-operation-name":"deleteById","tags":["SubjectSuggestionController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"SubjectSuggestion DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"SubjectSuggestionController.deleteById"}},"/api/subjectsuggestions":{"post":{"x-controller-name":"SubjectSuggestionController","x-operation-name":"create","tags":["SubjectSuggestionController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectSuggestion"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSubjectSuggestion"}}}},"operationId":"SubjectSuggestionController.create"},"patch":{"x-controller-name":"SubjectSuggestionController","x-operation-name":"updateAll","tags":["SubjectSuggestionController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"SubjectSuggestion PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectSuggestionPartial"}}}},"operationId":"SubjectSuggestionController.updateAll"},"get":{"x-controller-name":"SubjectSuggestionController","x-operation-name":"find","tags":["SubjectSuggestionController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubjectSuggestionWithRelations"}}}}}},"operationId":"SubjectSuggestionController.find"}},"/api/templatecontents/attachment/{attachmentId}":{"delete":{"x-controller-name":"TemplateContentController","x-operation-name":"deleteAttachment","tags":["TemplateContentController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Attachment DELETE success"}}}}},"parameters":[{"name":"attachmentId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TemplateContentController.deleteAttachment"}},"/api/templatecontents/{id}/attachment":{"post":{"x-controller-name":"TemplateContentController","x-operation-name":"fileUpload","tags":["TemplateContentController"],"responses":{"200":{"description":"Files and fields","content":{"application/json":{"schema":{"type":"object"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"x-parser":"stream","schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"description":"Request body for multipart/form-data based file upload","required":true,"x-parameter-index":1},"operationId":"TemplateContentController.fileUpload"}},"/api/templatecontents/{id}/attachments":{"get":{"x-controller-name":"TemplateContentController","x-operation-name":"findByIdTemplateContentId","tags":["TemplateContentController"],"responses":{"200":{"description":"TemplateContent attachments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TemplateContentController.findByIdTemplateContentId"}},"/api/templates/getByBaseName/{name}":{"get":{"x-controller-name":"TemplateController","x-operation-name":"getByBaseName","tags":["TemplateController"],"responses":{"200":{"description":"Array of Template model instances by name","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWithRelations"}}}}},"parameters":[{"name":"name","in":"path","schema":{"type":"string"},"required":true}],"operationId":"TemplateController.getByBaseName"}},"/api/templates/getById/{id}":{"post":{"x-controller-name":"TemplateController","x-operation-name":"getById","tags":["TemplateController"],"responses":{"200":{"description":"Array of Template model instances by name","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object"}}}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"x-parameter-index":1},"operationId":"TemplateController.getById"}},"/api/templates/getByName/{name}":{"post":{"x-controller-name":"TemplateController","x-operation-name":"getByName","tags":["TemplateController"],"responses":{"200":{"description":"Template model instance","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object"}}}}}}},"parameters":[{"name":"name","in":"path","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"x-parameter-index":1},"operationId":"TemplateController.getByName"}},"/api/templates/upsertTemplate":{"post":{"x-controller-name":"TemplateController","x-operation-name":"upsertTemplate","tags":["TemplateController"],"responses":{"200":{"description":"Return value of TemplateController.upsertTemplate"}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["template"],"properties":{"template":{"type":"object","required":["name","subject"],"properties":{"id":{"type":"number","nullable":true},"name":{"type":"string"},"subject":{"type":"string"},"headerLogoUrl":{"type":"string","nullable":true},"headerBannerUrl":{"type":"string","nullable":true},"senderName":{"type":"string","nullable":true},"senderEmail":{"type":"string","nullable":true},"isSystem":{"type":"boolean"},"templateContent":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"languageId":{"type":"number"}},"additionalProperties":true}},"categories":{"type":"array","items":{"$ref":"#/components/schemas/Category"}}},"additionalProperties":false}}}}}},"operationId":"TemplateController.upsertTemplate"}},"/api/templates/{templateId}/upsertEmployeeGroups":{"post":{"x-controller-name":"TemplateController","x-operation-name":"upsertEmployeeGroups","tags":["TemplateController"],"responses":{"200":{"description":"Template model instance","content":{"application/json":{"schema":{"type":"object","properties":{"response":{"type":"object"}}}}}}},"parameters":[{"name":"templateId","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["templateId","employeeGroups"],"properties":{"templateId":{"type":"number"},"employeeGroups":{"type":"array","items":{"type":"object"}}}}}},"x-parameter-index":1},"operationId":"TemplateController.upsertEmployeeGroups"}},"/api/templates/{id}":{"get":{"x-controller-name":"TemplateController","x-operation-name":"getByIdAndFilter","tags":["TemplateController"],"responses":{"200":{"description":"Get by id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true},{"name":"messageId","in":"query","schema":{"type":"number"}},{"name":"draftId","in":"query","schema":{"type":"number"}}],"operationId":"TemplateController.getByIdAndFilter"},"delete":{"x-controller-name":"TemplateController","x-operation-name":"deleteById","tags":["TemplateController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Template DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TemplateController.deleteById"}},"/api/templates":{"get":{"x-controller-name":"TemplateController","x-operation-name":"find","tags":["TemplateController"],"responses":{"200":{"description":"Array of Template model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplateWithRelations"}}}}}},"operationId":"TemplateController.find"}},"/api/testlogging":{"get":{"x-controller-name":"ServiceController","x-operation-name":"testLogging","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Test logging"}}}}},"operationId":"ServiceController.testLogging"}},"/api/toptasks/contract/{contractId}":{"get":{"x-controller-name":"TopTaskController","x-operation-name":"findForContract","tags":["TopTaskController"],"responses":{"200":{"description":"Array of TopTask model instances for the given contract","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopTaskWithRelations"}}}}}},"parameters":[{"name":"contractId","in":"path","schema":{"type":"string"},"required":true},{"name":"relationId","in":"query","schema":{"type":"string"},"required":true}],"operationId":"TopTaskController.findForContract"}},"/api/toptasks/relation/{relationId}":{"get":{"x-controller-name":"TopTaskController","x-operation-name":"findForRelation","tags":["TopTaskController"],"responses":{"200":{"description":"Array of TopTask model instances for the given relation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopTaskWithRelations"}}}}}},"parameters":[{"name":"relationId","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TopTaskController.findForRelation"}},"/api/toptasks/{id}":{"delete":{"x-controller-name":"TopTaskController","x-operation-name":"deleteById","tags":["TopTaskController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"TopTask DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TopTaskController.deleteById"}},"/api/toptasks":{"post":{"x-controller-name":"TopTaskController","x-operation-name":"create","tags":["TopTaskController"],"responses":{"200":{"description":"TopTask model instance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopTask"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name","url"],"properties":{"icon":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"url":{"type":"string"},"openInNewWindow":{"type":"boolean","nullable":true},"openInMobileWindow":{"type":"boolean","nullable":true},"relationRoleId":{"type":"number","nullable":true},"role":{"anyOf":[{"$ref":"#/components/schemas/RelationRole"},{"type":"null"}]},"type":{"type":"string","enum":["contract","relation"]}}}}}},"operationId":"TopTaskController.create"},"patch":{"x-controller-name":"TopTaskController","x-operation-name":"update","tags":["TopTaskController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"TopTask PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","allOf":[{"type":"object","required":["name","url"],"properties":{"icon":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"url":{"type":"string"},"openInNewWindow":{"type":"boolean","nullable":true},"openInMobileWindow":{"type":"boolean","nullable":true},"relationRoleId":{"type":"number","nullable":true},"role":{"anyOf":[{"$ref":"#/components/schemas/RelationRole"},{"type":"null"}]},"type":{"type":"string","enum":["contract","relation"]}}}],"required":["id"],"properties":{"id":{"type":"number"}}}}}},"operationId":"TopTaskController.update"},"get":{"x-controller-name":"TopTaskController","x-operation-name":"find","tags":["TopTaskController"],"responses":{"200":{"description":"Array of TopTask model instances","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TopTaskWithRelations"}}}}}},"operationId":"TopTaskController.find"}},"/api/types/{id}":{"delete":{"x-controller-name":"TypeController","x-operation-name":"deleteById","tags":["TypeController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Type DELETE success"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"TypeController.deleteById"}},"/api/types":{"post":{"x-controller-name":"TypeController","x-operation-name":"create","tags":["TypeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Type"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewType"}}}},"operationId":"TypeController.create"},"patch":{"x-controller-name":"TypeController","x-operation-name":"update","tags":["TypeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Type PATCH success count"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypePartial"}}}},"operationId":"TypeController.update"},"get":{"x-controller-name":"TypeController","x-operation-name":"find","tags":["TypeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TypeWithRelations"}}}}}},"operationId":"TypeController.find"}},"/api/updateexpiredroles":{"get":{"x-controller-name":"ServiceController","x-operation-name":"updateExpiredRoles","tags":["ServiceController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Update expires roles"}}}}},"operationId":"ServiceController.updateExpiredRoles"}},"/api/vhetypes/findWithContracts":{"post":{"x-controller-name":"VheTypeController","x-operation-name":"findWithContracts","tags":["VheTypeController"],"responses":{"200":{"description":"Find with contracts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VheType"}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"cities":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"},"countryId":{"type":"number","nullable":true},"country":{"$ref":"#/components/schemas/Country"}}}},"streets":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"buildings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"vheTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"complexHasElevators":{"type":"array","items":{"type":"object","properties":{"id":{"type":"boolean"},"name":{"type":"string"}}}},"contractTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}}}},"contractStatuses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}}}},"operationId":"VheTypeController.findWithContracts"}},"/api/vhetypes":{"patch":{"x-controller-name":"VheTypeController","x-operation-name":"updateById","tags":["VheTypeController"],"responses":{},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VheTypeRequest"}}}},"operationId":"VheTypeController.updateById"},"get":{"x-controller-name":"VheTypeController","x-operation-name":"find","tags":["VheTypeController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VheType"}}}}}},"operationId":"VheTypeController.find"}},"/api/workflowstatuses/{id}":{"patch":{"x-controller-name":"WorkflowStatusController","x-operation-name":"update","tags":["WorkflowStatusController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Update workflow status by id"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"colorIdentifier":{"type":"string"}},"required":["name"],"additionalProperties":false}}}},"operationId":"WorkflowStatusController.update"},"get":{"x-controller-name":"WorkflowStatusController","x-operation-name":"findById","tags":["WorkflowStatusController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStatusWithRelations"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"WorkflowStatusController.findById"},"delete":{"x-controller-name":"WorkflowStatusController","x-operation-name":"deleteById","tags":["WorkflowStatusController"],"responses":{"204":{"description":"No Content","content":{"application/json":{"schema":{"description":"Delete workflow status state by id"}}}}},"parameters":[{"name":"id","in":"path","schema":{"type":"number"},"required":true}],"operationId":"WorkflowStatusController.deleteById"}},"/api/workflowstatuses":{"post":{"x-controller-name":"WorkflowStatusController","x-operation-name":"create","tags":["WorkflowStatusController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStatus"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"permanentName":{"type":"string"},"name":{"type":"string"},"colorIdentifier":{"type":"string"}},"required":["permanentName","name"],"additionalProperties":false}}}},"operationId":"WorkflowStatusController.create"},"get":{"x-controller-name":"WorkflowStatusController","x-operation-name":"find","tags":["WorkflowStatusController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowStatusWithRelations"}}}}}},"operationId":"WorkflowStatusController.find"}},"/healthcheck":{"get":{"x-controller-name":"ServiceController","x-operation-name":"healthCheck","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Health check"}}}}},"operationId":"ServiceController.healthCheck"}},"/metrics":{"get":{"x-controller-name":"ServiceController","x-operation-name":"metrics","tags":["ServiceController"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"description":"Prometheus metrics in text exposition format"}}}}},"operationId":"ServiceController.metrics"}},"/search/{type}/{keyword}":{"get":{"x-controller-name":"ServiceController","x-operation-name":"searchByKeywordsLegacy","tags":["ServiceController"],"responses":{"200":{"description":"Search by type and keyword legacy","content":{"application/json":{"schema":{"type":"object","properties":{"Relations":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/Relation"}],"properties":{"hit":{"type":"object","properties":{"_id":{"type":"string"},"_index":{"type":"string"},"_score":{"type":"string"},"_type":{"type":"string"},"_source":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"fields":{"type":"object"}}}}}}}},"KbaseItems":{"type":"array","items":{"type":"object","allOf":[{"$ref":"#/components/schemas/Node"}],"properties":{"hit":{"type":"object","properties":{"_id":{"type":"string"},"_index":{"type":"string"},"_score":{"type":"string"},"_type":{"type":"string"},"_source":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"fields":{"type":"object"}}}}}}}}}}}}}},"parameters":[{"name":"type","in":"path","schema":{"type":"string"},"required":true},{"name":"keyword","in":"path","schema":{"type":"string"},"required":true}],"operationId":"ServiceController.searchByKeywordsLegacy"}}},"servers":[{"url":"/"}],"components":{"schemas":{"WorkflowStatus":{"title":"WorkflowStatus","type":"object","properties":{"id":{"type":"number"},"permanentName":{"type":"string"},"name":{"type":"string"},"isSystem":{"type":"boolean"},"colorIdentifier":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["permanentName","name"],"additionalProperties":false},"WorkflowStatusWithRelations":{"title":"WorkflowStatusWithRelations","type":"object","description":"(tsType: WorkflowStatusWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"permanentName":{"type":"string"},"name":{"type":"string"},"isSystem":{"type":"boolean"},"colorIdentifier":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["permanentName","name"],"additionalProperties":false,"x-typescript-type":"WorkflowStatusWithRelations"},"VheType":{"title":"VheType","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"}},"required":["name","order"],"additionalProperties":false},"Country":{"title":"Country","type":"object","properties":{"id":{"type":"number"},"code":{"type":"string","nullable":true},"name":{"type":"string"},"nationality":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name"],"additionalProperties":false},"VheTypeRequest":{"title":"VheTypeRequest","type":"object","description":"(tsType: Omit<VheType, >, schemaOptions: { title: 'VheTypeRequest', exclude: [] })","properties":{"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"}},"required":["name","order"],"additionalProperties":false,"x-typescript-type":"Omit<VheType, >"},"Type":{"title":"Type","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"default":{"type":"boolean","nullable":true},"icon":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"NewType":{"title":"NewType","type":"object","description":"(tsType: Omit<Type, 'id'>, schemaOptions: { title: 'NewType', exclude: [ 'id' ] })","properties":{"name":{"type":"string","nullable":true},"default":{"type":"boolean","nullable":true},"icon":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Omit<Type, 'id'>"},"TypeWithRelations":{"title":"TypeWithRelations","type":"object","description":"(tsType: TypeWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"default":{"type":"boolean","nullable":true},"icon":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelations"}}},"additionalProperties":false,"x-typescript-type":"TypeWithRelations"},"TypePartial":{"title":"TypePartial","type":"object","description":"(tsType: Partial<Type>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"default":{"type":"boolean","nullable":true},"icon":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<Type>"},"TopTask":{"title":"TopTask","type":"object","properties":{"id":{"type":"number"},"icon":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"url":{"type":"string"},"openInNewWindow":{"type":"boolean"},"openInMobileWindow":{"type":"boolean"},"type":{"type":"string","enum":["contract","relation"],"nullable":false},"deletedAt":{"type":"string","format":"date-time","nullable":true},"relationRoleId":{"type":"number","nullable":true}},"required":["name","url"],"additionalProperties":false},"RelationRole":{"title":"RelationRole","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"alternativeDescription":{"type":"string","nullable":true},"system":{"type":"string","nullable":true},"visible":{"type":"boolean","nullable":true},"showOnRelationDetailsAndSearch":{"type":"boolean","nullable":true},"showTopTasks":{"type":"boolean","nullable":true},"useAsNotificationFilter":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name"],"additionalProperties":false},"RelationRoleWithRelations":{"title":"RelationRoleWithRelations","type":"object","description":"(tsType: RelationRoleWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"alternativeDescription":{"type":"string","nullable":true},"system":{"type":"string","nullable":true},"visible":{"type":"boolean","nullable":true},"showOnRelationDetailsAndSearch":{"type":"boolean","nullable":true},"showTopTasks":{"type":"boolean","nullable":true},"useAsNotificationFilter":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"relationRoleRelations":{"type":"array","items":{"$ref":"#/components/schemas/RelationRoleMappingWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"RelationRoleWithRelations"},"TopTaskWithRelations":{"title":"TopTaskWithRelations","type":"object","description":"(tsType: TopTaskWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"icon":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"url":{"type":"string"},"openInNewWindow":{"type":"boolean"},"openInMobileWindow":{"type":"boolean"},"type":{"type":"string","enum":["contract","relation"],"nullable":false},"deletedAt":{"type":"string","format":"date-time","nullable":true},"relationRoleId":{"type":"number","nullable":true},"role":{"$ref":"#/components/schemas/RelationRoleWithRelations"}},"required":["name","url"],"additionalProperties":false,"x-typescript-type":"TopTaskWithRelations"},"TemplateWithRelations":{"title":"TemplateWithRelations","type":"object","description":"(tsType: TemplateWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"subject":{"type":"string"},"headerLogoUrl":{"type":"string","nullable":true},"headerBannerUrl":{"type":"string","nullable":true},"senderName":{"type":"string","nullable":true},"senderEmail":{"type":"string","nullable":true},"isSystem":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"categories":{"type":"array","items":{"$ref":"#/components/schemas/CategoryWithRelations"}},"employeeGroups":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeGroupWithRelations"}},"templateContent":{"type":"array","items":{"$ref":"#/components/schemas/TemplateContentWithRelations"}}},"required":["name","subject","isSystem"],"additionalProperties":false,"x-typescript-type":"TemplateWithRelations"},"Category":{"title":"Category","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"isActive":{"type":"boolean"},"isSystem":{"type":"boolean"},"isExternal":{"type":"boolean"},"showInInbox":{"type":"boolean"},"dossierSla":{"type":"number"},"dossierDefaultAssigneeId":{"type":"number","nullable":true},"messageSla":{"type":"number"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name"],"additionalProperties":false},"AttachmentWithRelations":{"title":"AttachmentWithRelations","type":"object","description":"(tsType: AttachmentWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"fileName":{"type":"string"},"fileSize":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isSystem":{"type":"boolean"},"code":{"type":"string","enum":["message","message-draft","comment","template-content","dossier-comment"],"nullable":true},"draftType":{"type":"string","enum":["reply","comment","dossierComment","assignment","newMessage"],"nullable":true},"attachmentCategoryId":{"type":"number"},"dossierId":{"type":"number"},"messageId":{"type":"number"},"messageDraftId":{"type":"object","nullable":true},"commentId":{"type":"number"},"templateContentId":{"type":"number"},"attachmentCategory":{"$ref":"#/components/schemas/AttachmentCategoryWithRelations"},"dossier":{"$ref":"#/components/schemas/DossierWithRelations"},"message":{"$ref":"#/components/schemas/MessageWithRelations"},"messageDraft":{"$ref":"#/components/schemas/MessageDraftWithRelations"},"comment":{"$ref":"#/components/schemas/CommentWithRelations"},"templateContent":{"$ref":"#/components/schemas/TemplateContentWithRelations"}},"additionalProperties":false,"x-typescript-type":"AttachmentWithRelations"},"SubjectSuggestion":{"title":"SubjectSuggestion","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"NewSubjectSuggestion":{"title":"NewSubjectSuggestion","type":"object","description":"(tsType: Omit<SubjectSuggestion, 'id'>, schemaOptions: { title: 'NewSubjectSuggestion', exclude: [ 'id' ] })","properties":{"name":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Omit<SubjectSuggestion, 'id'>"},"SubjectSuggestionWithRelations":{"title":"SubjectSuggestionWithRelations","type":"object","description":"(tsType: SubjectSuggestionWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"SubjectSuggestionWithRelations"},"SubjectSuggestionPartial":{"title":"SubjectSuggestionPartial","type":"object","description":"(tsType: Partial<SubjectSuggestion>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<SubjectSuggestion>"},"StreetWithRelations":{"title":"StreetWithRelations","type":"object","description":"(tsType: StreetWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"cityId":{"type":"number"},"city":{"$ref":"#/components/schemas/CityWithRelations"},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/AddressWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"StreetWithRelations"},"Relation":{"title":"Relation","type":"object","description":"(tsType: Relation, schemaOptions: { includeRelations: false })","properties":{"id":{"type":"number"},"code":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"nickName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"introductoryName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"initials":{"type":"string","nullable":true},"fullInitials":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","format":"date-time","nullable":true},"dateOfDeath":{"type":"string","format":"date-time","nullable":true},"gender":{"type":"string","nullable":true,"enum":["Man","Vrouw","Onbekend"]},"vatNumber":{"type":"string","nullable":true},"kvkNumber":{"type":"string","nullable":true},"globalLocationNumber":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"enum":["naturalPerson","juridicalPerson"]},"anonymized":{"type":"boolean","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"languageId":{"type":"object"},"legalEntityTypeId":{"type":"object","nullable":true},"maritalStatusId":{"type":"object","nullable":true},"nationalityId":{"type":"object","nullable":true}},"additionalProperties":false,"x-typescript-type":"Relation"},"Node":{"title":"Node","type":"object","properties":{"id":{"type":"string"},"externalIdentifier":{"type":"string"},"title":{"type":"string"},"keywords":{"type":"string","nullable":true},"rootline":{"type":"string","nullable":true},"websiteLink":{"type":"string","nullable":true},"createdDate":{"type":"string","format":"date-time","nullable":true},"updatedDate":{"type":"string","format":"date-time","nullable":true},"syncedDate":{"type":"string","format":"date-time","nullable":true},"parentId":{"type":"number","nullable":true},"sorting":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"languageId":{"type":"number"}},"required":["externalIdentifier","title"],"additionalProperties":false},"RelationWithRelations":{"title":"RelationWithRelations","type":"object","description":"(tsType: RelationWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"code":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true},"nickName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"introductoryName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"initials":{"type":"string","nullable":true},"fullInitials":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"dateOfBirth":{"type":"string","format":"date-time","nullable":true},"dateOfDeath":{"type":"string","format":"date-time","nullable":true},"gender":{"type":"string","nullable":true,"enum":["Man","Vrouw","Onbekend"]},"vatNumber":{"type":"string","nullable":true},"kvkNumber":{"type":"string","nullable":true},"globalLocationNumber":{"type":"string","nullable":true},"type":{"type":"string","nullable":true,"enum":["naturalPerson","juridicalPerson"]},"anonymized":{"type":"boolean","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"languageId":{"type":"object"},"legalEntityTypeId":{"type":"object","nullable":true},"maritalStatusId":{"type":"object","nullable":true},"nationalityId":{"type":"object","nullable":true},"address":{"type":"array","items":{"$ref":"#/components/schemas/AddressWithRelations"}},"emailAddress":{"type":"array","items":{"$ref":"#/components/schemas/EmailAddressWithRelations"}},"phoneNumber":{"type":"array","items":{"$ref":"#/components/schemas/PhoneNumberWithRelations"}},"language":{"$ref":"#/components/schemas/LanguageWithRelations"},"customFieldValue":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldValueWithRelations"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/RelationRoleMappingWithRelations"}},"alerts":{"type":"array","items":{"$ref":"#/components/schemas/RelationAlertWithRelations"}},"tag":{"type":"array","items":{"$ref":"#/components/schemas/TagWithRelations"}},"relationCluster":{"type":"array","items":{"$ref":"#/components/schemas/RelationClusterWithRelations"}},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/ContractWithRelations"}},"educations":{"type":"array","items":{"$ref":"#/components/schemas/EducationWithRelations"}},"legalEntityType":{"$ref":"#/components/schemas/ReferenceDataWithRelations"},"maritalStatus":{"$ref":"#/components/schemas/ReferenceDataWithRelations"},"nationality":{"$ref":"#/components/schemas/CountryWithRelations"}},"additionalProperties":false,"x-typescript-type":"RelationWithRelations"},"RelationRoleMapping":{"title":"RelationRoleMapping","type":"object","properties":{"id":{"type":"number"},"externalId":{"type":"string","nullable":true},"startDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"parentRelationId":{"type":"number","nullable":true}},"additionalProperties":false},"RelationContract":{"title":"RelationContract","type":"object","properties":{"id":{"type":"number"},"startDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"relationId":{"type":"number"},"contractId":{"type":"number"}},"additionalProperties":false},"RelationConnection":{"title":"RelationConnection","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"sourceLabel":{"type":"string"},"targetLabel":{"type":"string"},"equalMembers":{"type":"boolean"},"propagate":{"type":"boolean"},"isSystem":{"type":"boolean"}},"required":["name","sourceLabel","isSystem"],"additionalProperties":false},"NewRelationConnection":{"title":"NewRelationConnection","type":"object","description":"(tsType: Omit<RelationConnection, 'id' | 'isSystem'>, schemaOptions: { title: 'NewRelationConnection', exclude: [ 'id', 'isSystem' ] })","properties":{"name":{"type":"string"},"sourceLabel":{"type":"string"},"targetLabel":{"type":"string"},"equalMembers":{"type":"boolean"},"propagate":{"type":"boolean"}},"required":["name","sourceLabel"],"additionalProperties":false,"x-typescript-type":"Omit<RelationConnection, 'id' | 'isSystem'>"},"RelationConnectionWithRelations":{"title":"RelationConnectionWithRelations","type":"object","description":"(tsType: RelationConnectionWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"sourceLabel":{"type":"string"},"targetLabel":{"type":"string"},"equalMembers":{"type":"boolean"},"propagate":{"type":"boolean"},"isSystem":{"type":"boolean"}},"required":["name","sourceLabel","isSystem"],"additionalProperties":false,"x-typescript-type":"RelationConnectionWithRelations"},"RelationConnectionPartial":{"title":"RelationConnectionPartial","type":"object","description":"(tsType: Partial<RelationConnection>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"sourceLabel":{"type":"string"},"targetLabel":{"type":"string"},"equalMembers":{"type":"boolean"},"propagate":{"type":"boolean"},"isSystem":{"type":"boolean"}},"additionalProperties":false,"x-typescript-type":"Partial<RelationConnection>"},"RelationCluster":{"title":"RelationCluster","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name","permanentName"],"additionalProperties":false},"RelationClusterEmployee":{"title":"RelationClusterEmployee","type":"object","properties":{"id":{"type":"number"},"employeeId":{"type":"number"},"relationClusterId":{"type":"number"}},"additionalProperties":false},"NewRelationCluster":{"title":"NewRelationCluster","type":"object","description":"(tsType: Omit<RelationCluster, 'id'>, schemaOptions: { title: 'NewRelationCluster', exclude: [ 'id' ] })","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name","permanentName"],"additionalProperties":false,"x-typescript-type":"Omit<RelationCluster, 'id'>"},"RelationAlertWithRelations":{"title":"RelationAlertWithRelations","type":"object","description":"(tsType: RelationAlertWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","enum":["information","warning"],"nullable":true},"startDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"typeId":{"type":"object","nullable":true},"typeDetailId":{"type":"object","nullable":true},"statusId":{"type":"object","nullable":true},"statusDetailId":{"type":"object","nullable":true},"type":{"$ref":"#/components/schemas/ReferenceDataWithRelations"},"typeDetail":{"$ref":"#/components/schemas/ReferenceDataWithRelations"},"status":{"$ref":"#/components/schemas/ReferenceDataWithRelations"},"statusDetail":{"$ref":"#/components/schemas/ReferenceDataWithRelations"},"relations":{"type":"array","items":{"$ref":"#/components/schemas/RelationWithRelations"}}},"required":["title","isActive","showAsPopup"],"additionalProperties":false,"x-typescript-type":"RelationAlertWithRelations"},"RelationAlert":{"title":"RelationAlert","type":"object","properties":{"id":{"type":"number"},"title":{"type":"string"},"message":{"type":"string","nullable":true},"isActive":{"type":"boolean"},"showAsPopup":{"type":"boolean"},"messageType":{"type":"string","enum":["information","warning"],"nullable":true},"startDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"typeId":{"type":"object","nullable":true},"typeDetailId":{"type":"object","nullable":true},"statusId":{"type":"object","nullable":true},"statusDetailId":{"type":"object","nullable":true}},"required":["title","isActive","showAsPopup"],"additionalProperties":false},"ReferenceDataWithRelations":{"title":"ReferenceDataWithRelations","type":"object","description":"(tsType: ReferenceDataWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"entity":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true},"kvsEquivalent":{"type":"string","nullable":true}},"required":["entity","code","name"],"additionalProperties":false,"x-typescript-type":"ReferenceDataWithRelations"},"ReferenceDataPartial":{"title":"ReferenceDataPartial","type":"object","description":"(tsType: Partial<ReferenceData>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"entity":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true},"kvsEquivalent":{"type":"string","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<ReferenceData>"},"ReferenceData":{"title":"ReferenceData","type":"object","properties":{"id":{"type":"number"},"entity":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true},"parent":{"type":"string","nullable":true},"kvsEquivalent":{"type":"string","nullable":true}},"required":["entity","code","name"],"additionalProperties":false},"PushNotificationPageWithRelations":{"title":"PushNotificationPageWithRelations","type":"object","description":"(tsType: PushNotificationPageWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false,"x-typescript-type":"PushNotificationPageWithRelations"},"ProfilePartial":{"title":"ProfilePartial","type":"object","description":"(tsType: Partial<Profile>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string"},"middleName":{"type":"string","nullable":true},"position":{"type":"string","nullable":true},"positionEnglish":{"type":"string","nullable":true},"phoneNumber":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"employeeId":{"type":"number"}},"additionalProperties":false,"x-typescript-type":"Partial<Profile>"},"Profile":{"title":"Profile","type":"object","properties":{"id":{"type":"number"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string"},"middleName":{"type":"string","nullable":true},"position":{"type":"string","nullable":true},"positionEnglish":{"type":"string","nullable":true},"phoneNumber":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"employeeId":{"type":"number"}},"required":["lastName"],"additionalProperties":false},"Notification":{"title":"Notification","type":"object","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time","nullable":true},"subject":{"type":"string"},"plannedDate":{"type":"string","format":"date-time","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"numberOfReceivers":{"type":"number","nullable":true},"isDraft":{"type":"boolean","nullable":true},"createdById":{"type":"number"},"categoryId":{"type":"number"},"contactReasonId":{"type":"number"}},"required":["subject"],"additionalProperties":false},"NewNotification":{"title":"NewNotification","type":"object","description":"(tsType: Omit<NotificationWithRelationsRequest, 'id'>, schemaOptions: { title: 'NewNotification', exclude: [ 'id' ] })","properties":{"createdDate":{"type":"string","format":"date-time","nullable":true},"subject":{"type":"string"},"plannedDate":{"type":"string","format":"date-time","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"numberOfReceivers":{"type":"number","nullable":true},"isDraft":{"type":"boolean","nullable":true},"createdById":{"type":"number"},"categoryId":{"type":"number"},"contactReasonId":{"type":"number"},"messageChannel":{"type":"object","nullable":true},"notificationFilters":{"type":"array","items":{"type":"object"}},"notificationMessages":{"type":"array","items":{"type":"object"}},"category":{"type":"object","nullable":true},"contactReason":{"type":"object","nullable":true}},"required":["subject"],"additionalProperties":false,"x-typescript-type":"Omit<NotificationWithRelationsRequest, 'id'>"},"NotificationWithRelations":{"title":"NotificationWithRelations","type":"object","description":"(tsType: NotificationWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time","nullable":true},"subject":{"type":"string"},"plannedDate":{"type":"string","format":"date-time","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"numberOfReceivers":{"type":"number","nullable":true},"isDraft":{"type":"boolean","nullable":true},"createdById":{"type":"number"},"categoryId":{"type":"number"},"contactReasonId":{"type":"number"},"createdBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"notificationFilters":{"type":"array","items":{"$ref":"#/components/schemas/NotificationFilterWithRelations"}},"notificationMessages":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageWithRelations"}},"category":{"$ref":"#/components/schemas/CategoryWithRelations"},"contactReason":{"$ref":"#/components/schemas/ContactReasonWithRelations"}},"required":["subject"],"additionalProperties":false,"x-typescript-type":"NotificationWithRelations"},"EmployeeWithRelations":{"title":"EmployeeWithRelations","type":"object","description":"(tsType: EmployeeWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"username":{"type":"string","nullable":true,"minLength":3,"maxLength":255},"email":{"type":"string","format":"email"},"status":{"type":"string","enum":["active","inactive"],"nullable":true},"created":{"type":"string","format":"date-time","nullable":true},"lastUpdated":{"type":"string","format":"date-time","nullable":true},"createdById":{"type":"number","nullable":true},"emailOptIn":{"type":"boolean","nullable":true},"isExternal":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isSystemUser":{"type":"boolean","nullable":true},"isZigEmployee":{"type":"boolean","nullable":true},"bySync":{"type":"boolean","nullable":true},"employeeGroupId":{"type":"number","nullable":true},"categories":{"type":"array","items":{"$ref":"#/components/schemas/CategoryWithRelations"}},"employeeCategories":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeCategoryWithRelations"}},"profile":{"$ref":"#/components/schemas/ProfileWithRelations"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelations"}},"comments":{"type":"array","items":{"$ref":"#/components/schemas/CommentWithRelations"}},"dossiers":{"type":"array","items":{"$ref":"#/components/schemas/DossierWithRelations"}},"employeeGroup":{"$ref":"#/components/schemas/EmployeeGroupWithRelations"},"chatNotifications":{"type":"array","items":{"$ref":"#/components/schemas/ChatNotificationWithRelations"}},"relationCluster":{"type":"array","items":{"$ref":"#/components/schemas/RelationClusterWithRelations"}}},"required":["username","email"],"additionalProperties":false,"x-typescript-type":"EmployeeWithRelations"},"NotificationFilterWithRelations":{"title":"NotificationFilterWithRelations","type":"object","description":"(tsType: NotificationFilterWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"type":{"type":"string","enum":["City","Street","Complex","Building","VheType","complexHasElevator","ContractType","messageType","RelationRole","ContractStatus"]},"value":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"notificationId":{"type":"number"},"notification":{"$ref":"#/components/schemas/NotificationWithRelations"}},"required":["type","value"],"additionalProperties":false,"x-typescript-type":"NotificationFilterWithRelations"},"CategoryWithRelations":{"title":"CategoryWithRelations","type":"object","description":"(tsType: CategoryWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"isActive":{"type":"boolean"},"isSystem":{"type":"boolean"},"isExternal":{"type":"boolean"},"showInInbox":{"type":"boolean"},"dossierSla":{"type":"number"},"dossierDefaultAssigneeId":{"type":"number","nullable":true},"messageSla":{"type":"number"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name"],"additionalProperties":false,"x-typescript-type":"CategoryWithRelations"},"ContactReasonWithRelations":{"title":"ContactReasonWithRelations","type":"object","description":"(tsType: ContactReasonWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"parentId":{"type":"object"},"icon":{"type":"string","nullable":true},"parent":{"$ref":"#/components/schemas/ContactReasonWithRelations"}},"additionalProperties":false,"x-typescript-type":"ContactReasonWithRelations"},"NotificationSmsSenderWithRelations":{"title":"NotificationSmsSenderWithRelations","type":"object","description":"(tsType: NotificationSmsSenderWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"NotificationSmsSenderWithRelations"},"NotificationMessageWithRelations":{"title":"NotificationMessageWithRelations","type":"object","description":"(tsType: NotificationMessageWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"type":{"type":"string","enum":["email","sms","alert","push"]},"subject":{"type":"string"},"subjectEn":{"type":"string"},"body":{"type":"string"},"bodyEn":{"type":"string"},"pushNotificationButtonText":{"type":"string","nullable":true},"pushNotificationButtonTextEn":{"type":"string"},"pushNotificationValidUntil":{"type":"string","format":"date-time","nullable":true},"relationAlertIsActive":{"type":"boolean","nullable":true},"relationAlertShowAsPopup":{"type":"boolean","nullable":true},"relationAlertMessageType":{"type":"string","nullable":true,"enum":["information","warning"]},"relationAlertStartDate":{"type":"string","format":"date-time","nullable":true},"relationAlertEndDate":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","nullable":true,"enum":["draft","ready_to_send","sending","sent"]},"sendingStartedAt":{"type":"string","format":"date-time","nullable":true},"senderName":{"type":"string","nullable":true},"showInInbox":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"notificationId":{"type":"number"},"templateId":{"type":"object","nullable":true},"notificationSmsSenderId":{"type":"number","nullable":true},"pushNotificationPageId":{"type":"number","nullable":true},"notification":{"$ref":"#/components/schemas/NotificationWithRelations"},"template":{"$ref":"#/components/schemas/TemplateWithRelations"},"notificationSmsSender":{"$ref":"#/components/schemas/NotificationSmsSenderWithRelations"},"pushNotificationPage":{"$ref":"#/components/schemas/PushNotificationPageWithRelations"},"notificationMessageReceivers":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageReceiverWithRelations"}}},"required":["type"],"additionalProperties":false,"x-typescript-type":"NotificationMessageWithRelations"},"NotificationMessageReceiverWithRelations":{"title":"NotificationMessageReceiverWithRelations","type":"object","description":"(tsType: NotificationMessageReceiverWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"sendDate":{"type":"string","format":"date-time","nullable":true},"receiver":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"notificationMessageId":{"type":"number"},"relationId":{"type":"object"},"notificationMessage":{"$ref":"#/components/schemas/NotificationMessageWithRelations"},"relation":{"$ref":"#/components/schemas/RelationWithRelations"}},"additionalProperties":false,"x-typescript-type":"NotificationMessageReceiverWithRelations"},"NotificationSmsSender":{"title":"NotificationSmsSender","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"NewNotificationSmsSender":{"title":"NewNotificationSmsSender","type":"object","description":"(tsType: Omit<NotificationSmsSender, 'id'>, schemaOptions: { title: 'NewNotificationSmsSender', exclude: [ 'id' ] })","properties":{"name":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Omit<NotificationSmsSender, 'id'>"},"NotificationSmsSenderPartial":{"title":"NotificationSmsSenderPartial","type":"object","description":"(tsType: Partial<NotificationSmsSender>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<NotificationSmsSender>"},"NotificationMessagePartial":{"title":"NotificationMessagePartial","type":"object","description":"(tsType: Partial<NotificationMessage>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"type":{"type":"string","enum":["email","sms","alert","push"]},"subject":{"type":"string"},"subjectEn":{"type":"string"},"body":{"type":"string"},"bodyEn":{"type":"string"},"pushNotificationButtonText":{"type":"string","nullable":true},"pushNotificationButtonTextEn":{"type":"string"},"pushNotificationValidUntil":{"type":"string","format":"date-time","nullable":true},"relationAlertIsActive":{"type":"boolean","nullable":true},"relationAlertShowAsPopup":{"type":"boolean","nullable":true},"relationAlertMessageType":{"type":"string","nullable":true,"enum":["information","warning"]},"relationAlertStartDate":{"type":"string","format":"date-time","nullable":true},"relationAlertEndDate":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","nullable":true,"enum":["draft","ready_to_send","sending","sent"]},"sendingStartedAt":{"type":"string","format":"date-time","nullable":true},"senderName":{"type":"string","nullable":true},"showInInbox":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"notificationId":{"type":"number"},"templateId":{"type":"object","nullable":true},"notificationSmsSenderId":{"type":"number","nullable":true},"pushNotificationPageId":{"type":"number","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<NotificationMessage>"},"NotificationMessage":{"title":"NotificationMessage","type":"object","properties":{"id":{"type":"number"},"type":{"type":"string","enum":["email","sms","alert","push"]},"subject":{"type":"string"},"subjectEn":{"type":"string"},"body":{"type":"string"},"bodyEn":{"type":"string"},"pushNotificationButtonText":{"type":"string","nullable":true},"pushNotificationButtonTextEn":{"type":"string"},"pushNotificationValidUntil":{"type":"string","format":"date-time","nullable":true},"relationAlertIsActive":{"type":"boolean","nullable":true},"relationAlertShowAsPopup":{"type":"boolean","nullable":true},"relationAlertMessageType":{"type":"string","nullable":true,"enum":["information","warning"]},"relationAlertStartDate":{"type":"string","format":"date-time","nullable":true},"relationAlertEndDate":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","nullable":true,"enum":["draft","ready_to_send","sending","sent"]},"sendingStartedAt":{"type":"string","format":"date-time","nullable":true},"senderName":{"type":"string","nullable":true},"showInInbox":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"notificationId":{"type":"number"},"templateId":{"type":"object","nullable":true},"notificationSmsSenderId":{"type":"number","nullable":true},"pushNotificationPageId":{"type":"number","nullable":true}},"required":["type"],"additionalProperties":false},"NodeWithRelations":{"title":"NodeWithRelations","type":"object","description":"(tsType: NodeWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"string"},"externalIdentifier":{"type":"string"},"title":{"type":"string"},"keywords":{"type":"string","nullable":true},"rootline":{"type":"string","nullable":true},"websiteLink":{"type":"string","nullable":true},"createdDate":{"type":"string","format":"date-time","nullable":true},"updatedDate":{"type":"string","format":"date-time","nullable":true},"syncedDate":{"type":"string","format":"date-time","nullable":true},"parentId":{"type":"number","nullable":true},"sorting":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"languageId":{"type":"number"},"parent":{"$ref":"#/components/schemas/NodeWithRelations"},"elements":{"type":"array","items":{"$ref":"#/components/schemas/NodeElementWithRelations"}},"breadcrumbs":{"type":"array","items":{"$ref":"#/components/schemas/NodeWithRelations"}},"children":{"type":"array","items":{"$ref":"#/components/schemas/NodeWithRelations"}},"language":{"$ref":"#/components/schemas/LanguageWithRelations"}},"required":["externalIdentifier","title"],"additionalProperties":false,"x-typescript-type":"NodeWithRelations"},"Tag":{"title":"Tag","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"isSystem":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name","permanentName","isSystem"],"additionalProperties":false},"NewMessagePreset":{"title":"NewMessagePreset","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"icon":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isQuickComment":{"type":"boolean"},"messageChannelId":{"type":"number"},"typeId":{"type":"number"},"categoryId":{"type":"number"}},"required":["name","icon","isQuickComment"],"additionalProperties":false},"MessageChannelWithRelations":{"title":"MessageChannelWithRelations","type":"object","description":"(tsType: MessageChannelWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"icon":{"type":"string","nullable":true},"permanentName":{"type":"string"},"visibleForNewMessage":{"type":"boolean","nullable":true},"sendEmail":{"type":"boolean","nullable":true},"isSystem":{"type":"boolean"},"code":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelations"}}},"required":["permanentName","isSystem"],"additionalProperties":false,"x-typescript-type":"MessageChannelWithRelations"},"NewMessagePresetWithRelations":{"title":"NewMessagePresetWithRelations","type":"object","description":"(tsType: NewMessagePresetWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"icon":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isQuickComment":{"type":"boolean"},"messageChannelId":{"type":"number"},"typeId":{"type":"number"},"categoryId":{"type":"number"},"messageChannel":{"$ref":"#/components/schemas/MessageChannelWithRelations"},"type":{"$ref":"#/components/schemas/TypeWithRelations"},"category":{"$ref":"#/components/schemas/CategoryWithRelations"}},"required":["name","icon","isQuickComment"],"additionalProperties":false,"x-typescript-type":"NewMessagePresetWithRelations"},"Message":{"title":"Message","type":"object","properties":{"id":{"type":"number"},"direction":{"type":"string","enum":["inbound","outbound"]},"state":{"type":"string","enum":["open","archived","deleted"],"nullable":true},"subject":{"type":"string"},"body":{"type":"string","nullable":true},"slaDateTime":{"type":"string","format":"date-time"},"customerExpectationDateTime":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"createdDateTime":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"kbaseAnsId":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"lockedSince":{"type":"string","format":"date-time","nullable":true},"isEmailSent":{"type":"boolean","nullable":true},"firstOpenedChannel":{"type":"string","nullable":true,"enum":["email","inbox"]},"firstOpenedDateTime":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"boolean","nullable":true},"escalated":{"type":"boolean","nullable":true},"isPlanned":{"type":"boolean","nullable":true},"externalMessageId":{"type":"string","nullable":true},"messageChannelId":{"type":"object","nullable":true},"typeId":{"type":"object","nullable":true},"senderId":{"type":"object","nullable":true},"dossierId":{"type":"object","nullable":true},"contactReasonId":{"type":"object","nullable":true},"relationId":{"type":"object","nullable":true},"messageDeleteReasonId":{"type":"object","nullable":true},"inboundMessageId":{"type":"object","nullable":true},"assigneeId":{"type":"object","nullable":true},"assignedById":{"type":"object","nullable":true},"createdById":{"type":"object","nullable":true},"closedById":{"type":"object","nullable":true},"lockedById":{"type":"object","nullable":true},"categoryId":{"type":"object","nullable":true},"workflowStatusId":{"type":"object","nullable":true}},"required":["direction","subject","isDraft"],"additionalProperties":false},"Employee":{"title":"Employee","type":"object","properties":{"id":{"type":"number"},"username":{"type":"string","nullable":true,"minLength":3,"maxLength":255},"email":{"type":"string","format":"email"},"status":{"type":"string","enum":["active","inactive"],"nullable":true},"created":{"type":"string","format":"date-time","nullable":true},"lastUpdated":{"type":"string","format":"date-time","nullable":true},"createdById":{"type":"number","nullable":true},"emailOptIn":{"type":"boolean","nullable":true},"isExternal":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isSystemUser":{"type":"boolean","nullable":true},"isZigEmployee":{"type":"boolean","nullable":true},"bySync":{"type":"boolean","nullable":true},"employeeGroupId":{"type":"number","nullable":true}},"required":["username","email"],"additionalProperties":false},"MessagePartyWithRelations":{"title":"MessagePartyWithRelations","type":"object","description":"(tsType: MessagePartyWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"fullName":{"type":"string","nullable":true},"emailAddress":{"type":"string","nullable":true},"phoneNumber":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"MessagePartyWithRelations"},"CommentWithRelations":{"title":"CommentWithRelations","type":"object","description":"(tsType: CommentWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time"},"body":{"type":"string","nullable":true},"code":{"type":"string","enum":["internal-comment","internal-comment-dossier","message-assignment","dossier-assignment","message-closing-reason"],"nullable":true},"isDraft":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"createdById":{"type":"number"},"dossierId":{"type":"number"},"messageId":{"type":"number"},"channelId":{"type":"number"},"typeId":{"type":"number"},"categoryId":{"type":"number"},"employee":{"$ref":"#/components/schemas/EmployeeWithRelations"},"dossier":{"$ref":"#/components/schemas/DossierWithRelations"},"message":{"$ref":"#/components/schemas/MessageWithRelations"},"messageChannel":{"$ref":"#/components/schemas/MessageChannelWithRelations"},"type":{"$ref":"#/components/schemas/TypeWithRelations"},"category":{"$ref":"#/components/schemas/CategoryWithRelations"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentWithRelations"}}},"required":["createdDate"],"additionalProperties":false,"x-typescript-type":"CommentWithRelations"},"KnowledgeBaseAnswerWithRelations":{"title":"KnowledgeBaseAnswerWithRelations","type":"object","description":"(tsType: KnowledgeBaseAnswerWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time"},"title":{"type":"string"},"description":{"type":"string"},"createdById":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"nodeId":{"type":"string"},"messageId":{"type":"number"},"createdBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"node":{"$ref":"#/components/schemas/NodeWithRelations"},"message":{"$ref":"#/components/schemas/MessageWithRelations"}},"required":["createdDate","title","description"],"additionalProperties":false,"x-typescript-type":"KnowledgeBaseAnswerWithRelations"},"DossierWithRelations":{"title":"DossierWithRelations","type":"object","description":"(tsType: DossierWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time","nullable":true},"slaDate":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"changeDate":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","enum":["open","closed","deleted"]},"subject":{"type":"string"},"customerExpectationDate":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"emailSent":{"type":"boolean","nullable":true},"showInInbox":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"canBeArchivedToDms":{"type":"boolean"},"dossierTypeId":{"type":"number"},"assigneeId":{"type":"object","nullable":true},"createdById":{"type":"number"},"assignedById":{"type":"number"},"closedById":{"type":"object"},"relationId":{"type":"number"},"categoryId":{"type":"number"},"dossierType":{"$ref":"#/components/schemas/TypeWithRelations"},"assignee":{"$ref":"#/components/schemas/EmployeeWithRelations"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/MessageWithRelations"}},"createdBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"assignedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"closedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"relation":{"$ref":"#/components/schemas/RelationWithRelations"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/CommentWithRelations"}},"dmsArchivedDates":{"type":"array","items":{"$ref":"#/components/schemas/DmsArchivedDateWithRelations"}},"category":{"$ref":"#/components/schemas/CategoryWithRelations"}},"required":["subject"],"additionalProperties":false,"x-typescript-type":"DossierWithRelations"},"MessageDeletionReasonWithRelations":{"title":"MessageDeletionReasonWithRelations","type":"object","description":"(tsType: MessageDeletionReasonWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"template":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"MessageDeletionReasonWithRelations"},"RecipientWithRelations":{"title":"RecipientWithRelations","type":"object","description":"(tsType: RecipientWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"type":{"type":"string","nullable":true,"enum":["to","cc","bcc","from","sender","replyTo"]},"messageId":{"type":"number"},"messagePartyId":{"type":"number"},"message":{"$ref":"#/components/schemas/MessageWithRelations"},"messageParty":{"$ref":"#/components/schemas/MessagePartyWithRelations"}},"additionalProperties":false,"x-typescript-type":"RecipientWithRelations"},"MessageWithRelations":{"title":"MessageWithRelations","type":"object","description":"(tsType: MessageWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"direction":{"type":"string","enum":["inbound","outbound"]},"state":{"type":"string","enum":["open","archived","deleted"],"nullable":true},"subject":{"type":"string"},"body":{"type":"string","nullable":true},"slaDateTime":{"type":"string","format":"date-time"},"customerExpectationDateTime":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"createdDateTime":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"kbaseAnsId":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"lockedSince":{"type":"string","format":"date-time","nullable":true},"isEmailSent":{"type":"boolean","nullable":true},"firstOpenedChannel":{"type":"string","nullable":true,"enum":["email","inbox"]},"firstOpenedDateTime":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"boolean","nullable":true},"escalated":{"type":"boolean","nullable":true},"isPlanned":{"type":"boolean","nullable":true},"externalMessageId":{"type":"string","nullable":true},"messageChannelId":{"type":"object","nullable":true},"typeId":{"type":"object","nullable":true},"senderId":{"type":"object","nullable":true},"dossierId":{"type":"object","nullable":true},"contactReasonId":{"type":"object","nullable":true},"relationId":{"type":"object","nullable":true},"messageDeleteReasonId":{"type":"object","nullable":true},"inboundMessageId":{"type":"object","nullable":true},"assigneeId":{"type":"object","nullable":true},"assignedById":{"type":"object","nullable":true},"createdById":{"type":"object","nullable":true},"closedById":{"type":"object","nullable":true},"lockedById":{"type":"object","nullable":true},"categoryId":{"type":"object","nullable":true},"workflowStatusId":{"type":"object","nullable":true},"messageChannel":{"$ref":"#/components/schemas/MessageChannelWithRelations"},"type":{"$ref":"#/components/schemas/TypeWithRelations"},"sender":{"$ref":"#/components/schemas/MessagePartyWithRelations"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/CommentWithRelations"}},"kbaseAns":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeBaseAnswerWithRelations"}},"dossier":{"$ref":"#/components/schemas/DossierWithRelations"},"contactReason":{"$ref":"#/components/schemas/ContactReasonWithRelations"},"relation":{"$ref":"#/components/schemas/RelationWithRelations"},"messageDeleteReason":{"$ref":"#/components/schemas/MessageDeletionReasonWithRelations"},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/RecipientWithRelations"}},"inboundMessage":{"$ref":"#/components/schemas/MessageWithRelations"},"assignee":{"$ref":"#/components/schemas/EmployeeWithRelations"},"assignedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"createdBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"closedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"lockedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"category":{"$ref":"#/components/schemas/CategoryWithRelations"},"workflowStatus":{"$ref":"#/components/schemas/WorkflowStatusWithRelations"},"templateAttachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentWithRelations"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentWithRelations"}}},"required":["direction","subject","isDraft"],"additionalProperties":false,"x-typescript-type":"MessageWithRelations"},"MessageResponseWithRelations":{"title":"MessageResponseWithRelations","type":"object","description":"(tsType: MessageResponseWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"direction":{"type":"string","enum":["inbound","outbound"]},"state":{"type":"string","enum":["open","archived","deleted"],"nullable":true},"subject":{"type":"string"},"body":{"type":"string","nullable":true},"slaDateTime":{"type":"string","format":"date-time"},"customerExpectationDateTime":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"createdDateTime":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"kbaseAnsId":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"lockedSince":{"type":"string","format":"date-time","nullable":true},"isEmailSent":{"type":"boolean","nullable":true},"firstOpenedChannel":{"type":"string","nullable":true,"enum":["email","inbox"]},"firstOpenedDateTime":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"boolean","nullable":true},"escalated":{"type":"boolean","nullable":true},"isPlanned":{"type":"boolean","nullable":true},"externalMessageId":{"type":"string","nullable":true},"messageChannelId":{"type":"object","nullable":true},"typeId":{"type":"object","nullable":true},"senderId":{"type":"object","nullable":true},"dossierId":{"type":"object","nullable":true},"contactReasonId":{"type":"object","nullable":true},"relationId":{"type":"object","nullable":true},"messageDeleteReasonId":{"type":"object","nullable":true},"inboundMessageId":{"type":"object","nullable":true},"assigneeId":{"type":"object","nullable":true},"assignedById":{"type":"object","nullable":true},"createdById":{"type":"object","nullable":true},"closedById":{"type":"object","nullable":true},"lockedById":{"type":"object","nullable":true},"categoryId":{"type":"object","nullable":true},"workflowStatusId":{"type":"object","nullable":true},"replyBody":{"type":"string"},"cleanSubject":{"type":"string"},"numberOfAttachments":{"type":"number"},"pinned":{"type":"boolean"},"expandBody":{"type":"string"},"messageChannel":{"$ref":"#/components/schemas/MessageChannelWithRelations"},"type":{"$ref":"#/components/schemas/TypeWithRelations"},"sender":{"$ref":"#/components/schemas/MessagePartyWithRelations"},"comments":{"type":"array","items":{"$ref":"#/components/schemas/CommentWithRelations"}},"kbaseAns":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeBaseAnswerWithRelations"}},"dossier":{"$ref":"#/components/schemas/DossierWithRelations"},"contactReason":{"$ref":"#/components/schemas/ContactReasonWithRelations"},"relation":{"$ref":"#/components/schemas/RelationWithRelations"},"messageDeleteReason":{"$ref":"#/components/schemas/MessageDeletionReasonWithRelations"},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/RecipientWithRelations"}},"inboundMessage":{"$ref":"#/components/schemas/MessageWithRelations"},"assignee":{"$ref":"#/components/schemas/EmployeeWithRelations"},"assignedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"createdBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"closedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"lockedBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"category":{"$ref":"#/components/schemas/CategoryWithRelations"},"workflowStatus":{"$ref":"#/components/schemas/WorkflowStatusWithRelations"},"templateAttachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentWithRelations"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentWithRelations"}}},"required":["direction","subject","isDraft"],"additionalProperties":false,"x-typescript-type":"MessageResponseWithRelations"},"MessageWithRelationsRequest":{"title":"MessageWithRelationsRequest","type":"object","properties":{"id":{"type":"number"},"direction":{"type":"string","enum":["inbound","outbound"]},"state":{"type":"string","enum":["open","archived","deleted"],"nullable":true},"subject":{"type":"string"},"body":{"type":"string","nullable":true},"slaDateTime":{"type":"string","format":"date-time"},"customerExpectationDateTime":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"createdDateTime":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"kbaseAnsId":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"lockedSince":{"type":"string","format":"date-time","nullable":true},"isEmailSent":{"type":"boolean","nullable":true},"firstOpenedChannel":{"type":"string","nullable":true,"enum":["email","inbox"]},"firstOpenedDateTime":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"boolean","nullable":true},"escalated":{"type":"boolean","nullable":true},"isPlanned":{"type":"boolean","nullable":true},"externalMessageId":{"type":"string","nullable":true},"messageChannelId":{"type":"object","nullable":true},"typeId":{"type":"object","nullable":true},"senderId":{"type":"object","nullable":true},"dossierId":{"type":"object","nullable":true},"contactReasonId":{"type":"object","nullable":true},"relationId":{"type":"object","nullable":true},"messageDeleteReasonId":{"type":"object","nullable":true},"inboundMessageId":{"type":"object","nullable":true},"assigneeId":{"type":"object","nullable":true},"assignedById":{"type":"object","nullable":true},"createdById":{"type":"object","nullable":true},"closedById":{"type":"object","nullable":true},"lockedById":{"type":"object","nullable":true},"categoryId":{"type":"object","nullable":true},"workflowStatusId":{"type":"object","nullable":true},"messageChannel":{"type":"object","nullable":true},"type":{"type":"object","nullable":true},"messageParty":{"type":"object","nullable":true},"comments":{"type":"array","items":{"type":"object"}},"kbaseAns":{"type":"array","items":{"type":"object"}},"recipients":{"type":"array","items":{"type":"object"}},"templateAttachments":{"type":"array","items":{"type":"object"}},"dossier":{"type":"object","nullable":true},"contactReason":{"type":"object","nullable":true},"relation":{"type":"object","nullable":true},"messageDeletionReason":{"type":"object","nullable":true},"inboundMessage":{"type":"object","nullable":true},"assignee":{"type":"object","nullable":true},"assignedBy":{"type":"object","nullable":true},"createdBy":{"type":"object","nullable":true},"closedBy":{"type":"object","nullable":true},"lockedBy":{"type":"object","nullable":true},"category":{"type":"object","nullable":true}},"required":["direction","subject","isDraft"],"additionalProperties":false},"Server":{},"Dossier":{"title":"Dossier","type":"object","properties":{"id":{"type":"number"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time","nullable":true},"slaDate":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"changeDate":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","enum":["open","closed","deleted"]},"subject":{"type":"string"},"customerExpectationDate":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"emailSent":{"type":"boolean","nullable":true},"showInInbox":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"canBeArchivedToDms":{"type":"boolean"},"dossierTypeId":{"type":"number"},"assigneeId":{"type":"object","nullable":true},"createdById":{"type":"number"},"assignedById":{"type":"number"},"closedById":{"type":"object"},"relationId":{"type":"number"},"categoryId":{"type":"number"}},"required":["subject"],"additionalProperties":false},"Comment":{"title":"Comment","type":"object","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time"},"body":{"type":"string","nullable":true},"code":{"type":"string","enum":["internal-comment","internal-comment-dossier","message-assignment","dossier-assignment","message-closing-reason"],"nullable":true},"isDraft":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"createdById":{"type":"number"},"dossierId":{"type":"number"},"messageId":{"type":"number"},"channelId":{"type":"number"},"typeId":{"type":"number"},"categoryId":{"type":"number"}},"required":["createdDate"],"additionalProperties":false},"Date":{},"MessageDraftWithRelations":{"title":"MessageDraftWithRelations","type":"object","description":"(tsType: MessageDraftWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"draftInfo":{"$ref":"#/components/schemas/DraftInfo"},"messageId":{"type":"object"},"dossierId":{"type":"object"},"message":{"$ref":"#/components/schemas/MessageWithRelations"},"dossier":{"$ref":"#/components/schemas/DossierWithRelations"}},"additionalProperties":false,"x-typescript-type":"MessageDraftWithRelations"},"UpsertMessageDraftRequest":{},"Attachment":{"title":"Attachment","type":"object","properties":{"id":{"type":"number"},"fileName":{"type":"string"},"fileSize":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isSystem":{"type":"boolean"},"code":{"type":"string","enum":["message","message-draft","comment","template-content","dossier-comment"],"nullable":true},"draftType":{"type":"string","enum":["reply","comment","dossierComment","assignment","newMessage"],"nullable":true},"attachmentCategoryId":{"type":"number"},"dossierId":{"type":"number"},"messageId":{"type":"number"},"messageDraftId":{"type":"object","nullable":true},"commentId":{"type":"number"},"templateContentId":{"type":"number"}},"additionalProperties":false},"MessageDeletionReason":{"title":"MessageDeletionReason","type":"object","properties":{"id":{"type":"number"},"template":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"MessageChannel":{"title":"MessageChannel","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"icon":{"type":"string","nullable":true},"permanentName":{"type":"string"},"visibleForNewMessage":{"type":"boolean","nullable":true},"sendEmail":{"type":"boolean","nullable":true},"isSystem":{"type":"boolean"},"code":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["permanentName","isSystem"],"additionalProperties":false},"NewMessageChannel":{"title":"NewMessageChannel","type":"object","description":"(tsType: Omit<MessageChannel, 'id' | 'isSystem'>, schemaOptions: { title: 'NewMessageChannel', exclude: [ 'id', 'isSystem' ] })","properties":{"name":{"type":"string","nullable":true},"icon":{"type":"string","nullable":true},"permanentName":{"type":"string"},"visibleForNewMessage":{"type":"boolean","nullable":true},"sendEmail":{"type":"boolean","nullable":true},"code":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["permanentName"],"additionalProperties":false,"x-typescript-type":"Omit<MessageChannel, 'id' | 'isSystem'>"},"MessageChannelPartial":{"title":"MessageChannelPartial","type":"object","description":"(tsType: Partial<MessageChannel>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"icon":{"type":"string","nullable":true},"permanentName":{"type":"string"},"visibleForNewMessage":{"type":"boolean","nullable":true},"sendEmail":{"type":"boolean","nullable":true},"isSystem":{"type":"boolean"},"code":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<MessageChannel>"},"Language":{"title":"Language","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"code":{"type":"string"},"typo3Code":{"type":"number","nullable":true},"hasKnowledgeBase":{"type":"boolean","nullable":true},"hasPushNotification":{"type":"boolean","nullable":true},"isDefault":{"type":"boolean"}},"required":["name","code","isDefault"],"additionalProperties":false},"KnowledgeBaseSearches":{"title":"KnowledgeBaseSearches","type":"object","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time"},"searchKey":{"type":"string","nullable":true},"location":{"type":"string","nullable":true},"createdById":{"type":"number","nullable":true},"messageId":{"type":"object","nullable":true}},"required":["createdDate"],"additionalProperties":false},"InstitutionWithRelations":{"title":"InstitutionWithRelations","type":"object","description":"(tsType: InstitutionWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"],"additionalProperties":false,"x-typescript-type":"InstitutionWithRelations"},"NewEmployee":{"title":"NewEmployee","type":"object","description":"(tsType: Omit<EmployeeWithRelationsRequest, 'id' | 'username'>, schemaOptions: { title: 'NewEmployee', exclude: [ 'id', 'username' ] })","properties":{"email":{"type":"string","format":"email"},"status":{"type":"string","enum":["active","inactive"],"nullable":true},"created":{"type":"string","format":"date-time","nullable":true},"lastUpdated":{"type":"string","format":"date-time","nullable":true},"createdById":{"type":"number","nullable":true},"emailOptIn":{"type":"boolean","nullable":true},"isExternal":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isSystemUser":{"type":"boolean","nullable":true},"isZigEmployee":{"type":"boolean","nullable":true},"bySync":{"type":"boolean","nullable":true},"employeeGroupId":{"type":"number","nullable":true},"categories":{"type":"array","items":{"type":"object"}},"employeeCategories":{"type":"array","items":{"type":"object"}},"profile":{"type":"object"},"messages":{"type":"array","items":{"type":"object"}},"comments":{"type":"array","items":{"type":"object"}},"dossiers":{"type":"array","items":{"type":"object"}},"chatNotifications":{"type":"array","items":{"type":"object"}},"relationCluster":{"type":"array","items":{"type":"object"}},"employeeGroup":{"type":"object","nullable":true}},"required":["email"],"additionalProperties":false,"x-typescript-type":"Omit<EmployeeWithRelationsRequest, 'id' | 'username'>"},"EmployeeSettingWithRelations":{"title":"EmployeeSettingWithRelations","type":"object","description":"(tsType: EmployeeSettingWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"value":{"nullable":true},"employeeId":{"type":"number"},"employee":{"$ref":"#/components/schemas/EmployeeWithRelations"}},"required":["name","value"],"additionalProperties":false,"x-typescript-type":"EmployeeSettingWithRelations"},"EmployeeSetting":{"title":"EmployeeSetting","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"value":{"nullable":true},"employeeId":{"type":"number"}},"required":["name","value"],"additionalProperties":false},"EmployeeGroupWithRelations":{"title":"EmployeeGroupWithRelations","type":"object","description":"(tsType: EmployeeGroupWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"employees":{"type":"array","items":{"$ref":"#/components/schemas/EmployeeWithRelations"}}},"required":["name","permanentName"],"additionalProperties":false,"x-typescript-type":"EmployeeGroupWithRelations"},"EmployeeGroup":{"title":"EmployeeGroup","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name","permanentName"],"additionalProperties":false},"EmployeeCategory":{"title":"EmployeeCategory","type":"object","properties":{"id":{"type":"number"},"showOnDashboard":{"type":"boolean"},"canBeAssigned":{"type":"boolean"},"isDefault":{"type":"boolean"},"employeeId":{"type":"number"},"categoryId":{"type":"number"}},"required":["showOnDashboard"],"additionalProperties":false},"NewDossier":{"title":"NewDossier","type":"object","description":"(tsType: Omit<DossierWithRelationsRequest, 'id'>, schemaOptions: { title: 'NewDossier', exclude: [ 'id' ] })","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time","nullable":true},"slaDate":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"changeDate":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","enum":["open","closed","deleted"]},"subject":{"type":"string"},"customerExpectationDate":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"emailSent":{"type":"boolean","nullable":true},"showInInbox":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"canBeArchivedToDms":{"type":"boolean"},"dossierTypeId":{"type":"number"},"assigneeId":{"type":"object","nullable":true},"createdById":{"type":"number"},"assignedById":{"type":"number"},"closedById":{"type":"object"},"relationId":{"type":"number"},"categoryId":{"type":"number"},"dossierType":{"type":"object"},"assignee":{"type":"object"},"messages":{"type":"array","items":{"type":"object"}},"createdBy":{"type":"object"},"assignedBy":{"type":"object"},"closedBy":{"type":"object"},"relation":{"type":"object"},"comments":{"type":"array","items":{"type":"object"}},"category":{"type":"object"}},"required":["subject"],"additionalProperties":false,"x-typescript-type":"Omit<DossierWithRelationsRequest, 'id'>"},"DossierWithRelationsRequestPartial":{"title":"DossierWithRelationsRequestPartial","type":"object","description":"(tsType: Partial<DossierWithRelationsRequest>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time","nullable":true},"slaDate":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"changeDate":{"type":"string","format":"date-time","nullable":true},"state":{"type":"string","enum":["open","closed","deleted"]},"subject":{"type":"string"},"customerExpectationDate":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"emailSent":{"type":"boolean","nullable":true},"showInInbox":{"type":"boolean","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"canBeArchivedToDms":{"type":"boolean"},"dossierTypeId":{"type":"number"},"assigneeId":{"type":"object","nullable":true},"createdById":{"type":"number"},"assignedById":{"type":"number"},"closedById":{"type":"object"},"relationId":{"type":"number"},"categoryId":{"type":"number"},"dossierType":{"type":"object"},"assignee":{"type":"object"},"messages":{"type":"array","items":{"type":"object"}},"createdBy":{"type":"object"},"assignedBy":{"type":"object"},"closedBy":{"type":"object"},"relation":{"type":"object"},"comments":{"type":"array","items":{"type":"object"}},"category":{"type":"object"}},"additionalProperties":false,"x-typescript-type":"Partial<DossierWithRelationsRequest>"},"ArchiveToDmsQueue":{"title":"ArchiveToDmsQueue","type":"object","properties":{"id":{"type":"number"},"state":{"type":"string","enum":["todo","doing","error","done"]},"dossierId":{"type":"object"},"messageId":{"type":"object"},"externalContractId":{"type":"string","nullable":true},"dmsCategoryId":{"type":"number"},"createdDateTime":{"type":"string","format":"date-time"},"updatedDateTime":{"type":"string","format":"date-time"},"requestedById":{"type":"number"},"tries":{"type":"number"},"errorMessage":{"type":"string","nullable":true},"includeAttachments":{"type":"boolean"},"includeComments":{"type":"boolean"},"attachmentId":{"type":"object"}},"additionalProperties":false},"DmsCategory":{"title":"DmsCategory","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"technicalName":{"type":"string"}},"required":["name","technicalName"],"additionalProperties":false},"DmsCategoryPartial":{"title":"DmsCategoryPartial","type":"object","description":"(tsType: Partial<DmsCategory>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"technicalName":{"type":"string"}},"additionalProperties":false,"x-typescript-type":"Partial<DmsCategory>"},"CustomFieldValue":{"title":"CustomFieldValue","type":"object","properties":{"id":{"type":"number"},"value":{"type":"string"},"customFieldDefinitionId":{"type":"number"},"relationId":{"type":"number"}},"required":["value"],"additionalProperties":false},"CustomFieldDefinition":{"title":"CustomFieldDefinition","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"visible":{"type":"boolean"},"visibleInMessageDetails":{"type":"boolean","nullable":true},"code":{"type":"string"},"editable":{"type":"boolean","nullable":true},"formElement":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name","order","visible","code"],"additionalProperties":false},"CustomFieldDefinitionWithRelations":{"title":"CustomFieldDefinitionWithRelations","type":"object","description":"(tsType: CustomFieldDefinitionWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"order":{"type":"number"},"visible":{"type":"boolean"},"visibleInMessageDetails":{"type":"boolean","nullable":true},"code":{"type":"string"},"editable":{"type":"boolean","nullable":true},"formElement":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["name","order","visible","code"],"additionalProperties":false,"x-typescript-type":"CustomFieldDefinitionWithRelations"},"CountryWithRelations":{"title":"CountryWithRelations","type":"object","description":"(tsType: CountryWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"code":{"type":"string","nullable":true},"name":{"type":"string"},"nationality":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"cities":{"type":"array","items":{"$ref":"#/components/schemas/CityWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"CountryWithRelations"},"ContractType":{"title":"ContractType","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"ContactReason":{"title":"ContactReason","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"parentId":{"type":"object"},"icon":{"type":"string","nullable":true}},"additionalProperties":false},"ContactReasonWithRelationsResponseWithRelations":{"title":"ContactReasonWithRelationsResponseWithRelations","type":"object","description":"(tsType: ContactReasonWithRelationsResponseWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"parentId":{"type":"object"},"icon":{"type":"string","nullable":true},"parent":{"type":"object","nullable":true},"children":{"type":"array","items":{"type":"object"}}},"additionalProperties":false,"x-typescript-type":"ContactReasonWithRelationsResponseWithRelations"},"CityWithRelations":{"title":"CityWithRelations","type":"object","description":"(tsType: CityWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"countryId":{"type":"object","nullable":true},"country":{"$ref":"#/components/schemas/CountryWithRelations"},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/AddressWithRelations"}},"streets":{"type":"array","items":{"$ref":"#/components/schemas/StreetWithRelations"}}},"required":["name"],"additionalProperties":false,"x-typescript-type":"CityWithRelations"},"ChatNotification":{"title":"ChatNotification","type":"object","properties":{"id":{"type":"number"},"org":{"type":"string"},"chatId":{"type":"string"},"notified":{"type":"boolean"},"created":{"type":"string","format":"date-time"},"employeeId":{"type":"number"}},"required":["org","chatId","notified"],"additionalProperties":false},"Building":{"title":"Building","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["name"],"additionalProperties":false},"AttachmentCategory":{"title":"AttachmentCategory","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"isSystem":{"type":"boolean"},"deleteAfterEvent":{"type":"string","nullable":true,"enum":["closeMessage","endLastContract",null]},"deleteDaysAfterEvent":{"type":"number","nullable":true},"deleteDaysAfterCloseMessage":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["isSystem"],"additionalProperties":false},"NewAttachmentCategory":{"title":"NewAttachmentCategory","type":"object","description":"(tsType: Omit<AttachmentCategory, 'id' | 'isSystem'>, schemaOptions: { title: 'NewAttachmentCategory', exclude: [ 'id', 'isSystem' ] })","properties":{"name":{"type":"string","nullable":true},"deleteAfterEvent":{"type":"string","nullable":true,"enum":["closeMessage","endLastContract",null]},"deleteDaysAfterEvent":{"type":"number","nullable":true},"deleteDaysAfterCloseMessage":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Omit<AttachmentCategory, 'id' | 'isSystem'>"},"AttachmentCategoryWithRelations":{"title":"AttachmentCategoryWithRelations","type":"object","description":"(tsType: AttachmentCategoryWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"isSystem":{"type":"boolean"},"deleteAfterEvent":{"type":"string","nullable":true,"enum":["closeMessage","endLastContract",null]},"deleteDaysAfterEvent":{"type":"number","nullable":true},"deleteDaysAfterCloseMessage":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["isSystem"],"additionalProperties":false,"x-typescript-type":"AttachmentCategoryWithRelations"},"AttachmentCategoryPartial":{"title":"AttachmentCategoryPartial","type":"object","description":"(tsType: Partial<AttachmentCategory>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"isSystem":{"type":"boolean"},"deleteAfterEvent":{"type":"string","nullable":true,"enum":["closeMessage","endLastContract",null]},"deleteDaysAfterEvent":{"type":"number","nullable":true},"deleteDaysAfterCloseMessage":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<AttachmentCategory>"},"AdminSetting":{"title":"AdminSetting","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"value":{"type":"string","nullable":true},"public":{"type":"boolean"}},"required":["name"],"additionalProperties":false},"AddressType":{"title":"AddressType","type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"type":"string","nullable":true},"showInUI":{"type":"boolean","nullable":true},"onlyActiveInRelationDetails":{"type":"boolean","nullable":true},"showInSearch":{"type":"boolean","nullable":true},"onlyActiveInSearch":{"type":"boolean","nullable":true}},"required":["name","permanentName"],"additionalProperties":false},"NewAddressType":{"title":"NewAddressType","type":"object","description":"(tsType: Omit<AddressType, 'id'>, schemaOptions: { title: 'NewAddressType', exclude: [ 'id' ] })","properties":{"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"type":"string","nullable":true},"showInUI":{"type":"boolean","nullable":true},"onlyActiveInRelationDetails":{"type":"boolean","nullable":true},"showInSearch":{"type":"boolean","nullable":true},"onlyActiveInSearch":{"type":"boolean","nullable":true}},"required":["name","permanentName"],"additionalProperties":false,"x-typescript-type":"Omit<AddressType, 'id'>"},"AddressTypeWithRelations":{"title":"AddressTypeWithRelations","type":"object","description":"(tsType: AddressTypeWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"type":"string","nullable":true},"showInUI":{"type":"boolean","nullable":true},"onlyActiveInRelationDetails":{"type":"boolean","nullable":true},"showInSearch":{"type":"boolean","nullable":true},"onlyActiveInSearch":{"type":"boolean","nullable":true}},"required":["name","permanentName"],"additionalProperties":false,"x-typescript-type":"AddressTypeWithRelations"},"AddressTypePartial":{"title":"AddressTypePartial","type":"object","description":"(tsType: Partial<AddressType>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"name":{"type":"string"},"permanentName":{"type":"string"},"code":{"type":"string","nullable":true},"showInUI":{"type":"boolean","nullable":true},"onlyActiveInRelationDetails":{"type":"boolean","nullable":true},"showInSearch":{"type":"boolean","nullable":true},"onlyActiveInSearch":{"type":"boolean","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<AddressType>"},"ActivityCodeWithRelations":{"title":"ActivityCodeWithRelations","type":"object","description":"(tsType: ActivityCodeWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"name":{"type":"string","enum":[]}},"required":["name"],"additionalProperties":false,"x-typescript-type":"ActivityCodeWithRelations"},"ActivityWithRelations":{"title":"ActivityWithRelations","type":"object","description":"(tsType: ActivityWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"createdById":{"type":"object","nullable":true},"relation1Id":{"type":"number"},"relation2Id":{"type":"object","nullable":true},"messageId":{"type":"object","nullable":true},"dossier1Id":{"type":"object","nullable":true},"dossier2Id":{"type":"object","nullable":true},"commentId":{"type":"object","nullable":true},"employee1Id":{"type":"object","nullable":true},"employee2Id":{"type":"object","nullable":true},"category1Id":{"type":"object","nullable":true},"category2Id":{"type":"object","nullable":true},"notificationId":{"type":"object","nullable":true},"codeId":{"type":"number","nullable":false},"createdBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"relation1":{"$ref":"#/components/schemas/RelationWithRelations"},"relation2":{"$ref":"#/components/schemas/RelationWithRelations"},"message":{"$ref":"#/components/schemas/MessageWithRelations"},"dossier1":{"$ref":"#/components/schemas/DossierWithRelations"},"dossier2":{"$ref":"#/components/schemas/DossierWithRelations"},"comment":{"$ref":"#/components/schemas/CommentWithRelations"},"employee1":{"$ref":"#/components/schemas/EmployeeWithRelations"},"employee2":{"$ref":"#/components/schemas/EmployeeWithRelations"},"category1":{"$ref":"#/components/schemas/CategoryWithRelations"},"category2":{"$ref":"#/components/schemas/CategoryWithRelations"},"notification":{"$ref":"#/components/schemas/NotificationWithRelations"},"code":{"$ref":"#/components/schemas/ActivityCodeWithRelations"}},"required":["createdDate"],"additionalProperties":false,"x-typescript-type":"ActivityWithRelations"},"ActivityResponse":{"title":"ActivityResponse","type":"object","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"createdById":{"type":"object","nullable":true},"relation1Id":{"type":"number"},"relation2Id":{"type":"object","nullable":true},"messageId":{"type":"object","nullable":true},"dossier1Id":{"type":"object","nullable":true},"dossier2Id":{"type":"object","nullable":true},"commentId":{"type":"object","nullable":true},"employee1Id":{"type":"object","nullable":true},"employee2Id":{"type":"object","nullable":true},"category1Id":{"type":"object","nullable":true},"category2Id":{"type":"object","nullable":true},"notificationId":{"type":"object","nullable":true},"codeId":{"type":"number","nullable":false},"outboundMessage":{"type":"object","nullable":true},"sentNotificationMessages":{"type":"array","items":{"type":"object","nullable":true}},"mergedDossierTitle":{"type":"string","nullable":true},"dossier":{"type":"object","nullable":true},"dossierNoAccess":{"type":"boolean"},"dossierDeleted":{"type":"boolean"},"messageNoAccess":{"type":"boolean"},"messageDeleted":{"type":"boolean"}},"required":["createdDate","dossierNoAccess","dossierDeleted","messageNoAccess","messageDeleted"],"additionalProperties":false},"ActivityResponseWithRelations":{"title":"ActivityResponseWithRelations","type":"object","description":"(tsType: ActivityResponseWithRelations, schemaOptions: { includeRelations: true })","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"description":{"type":"string","nullable":true},"createdById":{"type":"object","nullable":true},"relation1Id":{"type":"number"},"relation2Id":{"type":"object","nullable":true},"messageId":{"type":"object","nullable":true},"dossier1Id":{"type":"object","nullable":true},"dossier2Id":{"type":"object","nullable":true},"commentId":{"type":"object","nullable":true},"employee1Id":{"type":"object","nullable":true},"employee2Id":{"type":"object","nullable":true},"category1Id":{"type":"object","nullable":true},"category2Id":{"type":"object","nullable":true},"notificationId":{"type":"object","nullable":true},"codeId":{"type":"number","nullable":false},"outboundMessage":{"type":"object","nullable":true},"sentNotificationMessages":{"type":"array","items":{"type":"object","nullable":true}},"mergedDossierTitle":{"type":"string","nullable":true},"dossier":{"type":"object","nullable":true},"dossierNoAccess":{"type":"boolean"},"dossierDeleted":{"type":"boolean"},"messageNoAccess":{"type":"boolean"},"messageDeleted":{"type":"boolean"},"createdBy":{"$ref":"#/components/schemas/EmployeeWithRelations"},"relation1":{"$ref":"#/components/schemas/RelationWithRelations"},"relation2":{"$ref":"#/components/schemas/RelationWithRelations"},"message":{"$ref":"#/components/schemas/MessageWithRelations"},"dossier1":{"$ref":"#/components/schemas/DossierWithRelations"},"dossier2":{"$ref":"#/components/schemas/DossierWithRelations"},"comment":{"$ref":"#/components/schemas/CommentWithRelations"},"employee1":{"$ref":"#/components/schemas/EmployeeWithRelations"},"employee2":{"$ref":"#/components/schemas/EmployeeWithRelations"},"category1":{"$ref":"#/components/schemas/CategoryWithRelations"},"category2":{"$ref":"#/components/schemas/CategoryWithRelations"},"notification":{"$ref":"#/components/schemas/NotificationWithRelations"},"code":{"$ref":"#/components/schemas/ActivityCodeWithRelations"}},"required":["createdDate","dossierNoAccess","dossierDeleted","messageNoAccess","messageDeleted"],"additionalProperties":false,"x-typescript-type":"ActivityResponseWithRelations"},"loopback.Count":{"type":"object","title":"loopback.Count","x-typescript-type":"@loopback/repository#Count","properties":{"count":{"type":"number"}}},"MessageWithRelationsRequestPartial":{"title":"MessageWithRelationsRequestPartial","type":"object","description":"(tsType: Partial<MessageWithRelationsRequest>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"direction":{"type":"string","enum":["inbound","outbound"]},"state":{"type":"string","enum":["open","archived","deleted"],"nullable":true},"subject":{"type":"string"},"body":{"type":"string","nullable":true},"slaDateTime":{"type":"string","format":"date-time"},"customerExpectationDateTime":{"type":"string","format":"date-time","nullable":true},"dueDate":{"type":"string","format":"date-time","nullable":true},"createdDateTime":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"kbaseAnsId":{"type":"number","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"isDraft":{"type":"boolean"},"lockedSince":{"type":"string","format":"date-time","nullable":true},"isEmailSent":{"type":"boolean","nullable":true},"firstOpenedChannel":{"type":"string","nullable":true,"enum":["email","inbox"]},"firstOpenedDateTime":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"boolean","nullable":true},"escalated":{"type":"boolean","nullable":true},"isPlanned":{"type":"boolean","nullable":true},"externalMessageId":{"type":"string","nullable":true},"messageChannelId":{"type":"object","nullable":true},"typeId":{"type":"object","nullable":true},"senderId":{"type":"object","nullable":true},"dossierId":{"type":"object","nullable":true},"contactReasonId":{"type":"object","nullable":true},"relationId":{"type":"object","nullable":true},"messageDeleteReasonId":{"type":"object","nullable":true},"inboundMessageId":{"type":"object","nullable":true},"assigneeId":{"type":"object","nullable":true},"assignedById":{"type":"object","nullable":true},"createdById":{"type":"object","nullable":true},"closedById":{"type":"object","nullable":true},"lockedById":{"type":"object","nullable":true},"categoryId":{"type":"object","nullable":true},"workflowStatusId":{"type":"object","nullable":true},"messageChannel":{"type":"object","nullable":true},"type":{"type":"object","nullable":true},"messageParty":{"type":"object","nullable":true},"comments":{"type":"array","items":{"type":"object"}},"kbaseAns":{"type":"array","items":{"type":"object"}},"recipients":{"type":"array","items":{"type":"object"}},"templateAttachments":{"type":"array","items":{"type":"object"}},"dossier":{"type":"object","nullable":true},"contactReason":{"type":"object","nullable":true},"relation":{"type":"object","nullable":true},"messageDeletionReason":{"type":"object","nullable":true},"inboundMessage":{"type":"object","nullable":true},"assignee":{"type":"object","nullable":true},"assignedBy":{"type":"object","nullable":true},"createdBy":{"type":"object","nullable":true},"closedBy":{"type":"object","nullable":true},"lockedBy":{"type":"object","nullable":true},"category":{"type":"object","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<MessageWithRelationsRequest>"},"NotificationCounts":{"type":"object","title":"NotificationCounts","properties":{"total":{"type":"number","description":"The total number of notifications for the employee"},"new":{"type":"number","description":"The number of new (unnotified) notifications for the employee"}}},"Language1":{"title":"Language","type":"object","required":["languages"],"properties":{"languages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"typo3Code":{"type":"number","nullable":true},"hasKnowledgeBase":{"type":"boolean"},"isDefault":{"type":"boolean"},"id":{"type":"number"}}}}}},"NotificationResponsePartial":{"title":"NotificationResponsePartial","type":"object","description":"(tsType: Partial<NotificationResponse>, schemaOptions: { partial: true })","properties":{"id":{"type":"number"},"createdDate":{"type":"string","format":"date-time","nullable":true},"subject":{"type":"string"},"plannedDate":{"type":"string","format":"date-time","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"numberOfReceivers":{"type":"number","nullable":true},"isDraft":{"type":"boolean","nullable":true},"createdById":{"type":"number"},"categoryId":{"type":"number"},"contactReasonId":{"type":"number"},"hasEmailNotificationMessage":{"type":"boolean","nullable":true},"hasSmsNotificationMessage":{"type":"boolean","nullable":true},"hasAlertNotificationMessage":{"type":"boolean","nullable":true},"notificationFilters":{"type":"array","items":{"type":"object"}},"createdBy":{"type":"object","nullable":true}},"additionalProperties":false,"x-typescript-type":"Partial<NotificationResponse>"},"RelationRoleMappings":{"title":"RelationRoleMappings","type":"object","required":["mapping"],"properties":{"mapping":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","nullable":true},"relationId":{"type":"number"},"relationRoleId":{"type":"number"},"parentRelationId":{"type":"number","nullable":true},"externalId":{"type":"string","nullable":true}}}}}}},"securitySchemes":{"jwt":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"jwt":[]}]}