{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://dev-admin.tender-service.de","description":"Generated server url"}],"tags":[{"name":"PortalContextApi","description":"Admin portal tenant and translations resolved from the request domain"},{"name":"AuthApi","description":"Api for authentication"},{"name":"OrgDbDirectoryApi","description":"Search the OrgDB authorities and contractors"},{"name":"LegacyAdminApi","description":"Hand-off to the Ariadne admin area"},{"name":"CustomerCallScriptApi","description":"Call Script dialog of the customer CRM page"},{"name":"ContractorLeadImportsApi","description":"Import OrgDB contractors into CRM as prospective leads"},{"name":"CrmTemplateFormattingsApi","description":"Company-wide formatting of the template builder"},{"name":"CrmTodosApi","description":"CRM ToDos"},{"name":"Home","description":"serve main/info HTML page"},{"name":"CrmEmailsApi","description":"CRM Emails module"},{"name":"CustomerCrmReferenceDataApi","description":"CRM dropdown values"},{"name":"CustomerFitApi","description":"Fit tab of the customer CRM page"},{"name":"CustomerBriefApi","description":"Customer Brief dialog of the customer CRM page"},{"name":"TenderManagementApi","description":"Search tenders and update them in bulk"},{"name":"DataSourceGroupsApi","description":"NRS dataSource groups: read-only"},{"name":"CrmEmailTemplatesApi","description":"CRM email template builder"},{"name":"CrmTodoSavedSearchesApi","description":"Saved ToDos list filters"},{"name":"NotificationsApi","description":"NRS notifications: read access plus relation-field corrections"},{"name":"CustomerCrmApi","description":"Customer CRM page"},{"name":"CrmSearchesApi","description":"Saved customer list filters, shared with Ariadne's CRM"}],"paths":{"/api/org-db/contractors/{id}":{"get":{"tags":["OrgDbDirectoryApi"],"summary":"Get one OrgDB contractor","operationId":"getContractor","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"put":{"tags":["OrgDbDirectoryApi"],"summary":"Update an OrgDB contractor","operationId":"updateContractor","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/org-db/authorities/{id}":{"get":{"tags":["OrgDbDirectoryApi"],"summary":"Get one OrgDB authority","operationId":"getAuthority","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"put":{"tags":["OrgDbDirectoryApi"],"summary":"Update an OrgDB authority","operationId":"updateAuthority","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/todos/saved-searches/{id}":{"put":{"tags":["CrmTodoSavedSearchesApi"],"summary":"Replace a saved search's filters and sharing","description":"Only its creator may; 403 otherwise.","operationId":"updateSavedSearch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoSavedSearchUpdateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoSavedSearchApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CrmTodoSavedSearchesApi"],"summary":"Delete a saved search","description":"Only its creator may; 403 otherwise.","operationId":"deleteSavedSearch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/template-formattings/{id}":{"get":{"tags":["CrmTemplateFormattingsApi"],"summary":"One formatting configuration","operationId":"getTemplateFormatting","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTemplateFormattingApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"put":{"tags":["CrmTemplateFormattingsApi"],"summary":"Save a formatting configuration and restyle the templates rendered with it","description":"All or nothing. 409 when the name is taken, someone else saved it or one of its templates since it was loaded, or the templates sent are not exactly the restylable ones; 422 when a template's HTML exceeds 65,000 characters.","operationId":"updateTemplateFormatting","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTemplateFormattingUpdateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTemplateFormattingApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CrmTemplateFormattingsApi"],"summary":"Delete a formatting configuration","description":"409 while a template is rendered with it or a portal has it as its default.","operationId":"deleteTemplateFormatting","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/template-formattings/{id}/portal-default":{"put":{"tags":["CrmTemplateFormattingsApi"],"summary":"Make a formatting configuration the acting portal's default","operationId":"setDefaultTemplateFormatting","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTemplateFormattingApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/email-templates/{id}":{"get":{"tags":["CrmEmailTemplatesApi"],"summary":"One CRM email template","operationId":"getEmailTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailTemplateDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"put":{"tags":["CrmEmailTemplatesApi"],"summary":"Save a CRM email template","description":"409 when someone else saved it since it was loaded; 422 when the content exceeds 65,000 characters.","operationId":"updateEmailTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailTemplateUpdateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailTemplateDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CrmEmailTemplatesApi"],"summary":"Delete one language of a CRM email template","operationId":"deleteEmailTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/search-profiles/{profileId}":{"put":{"tags":["CustomerCrmApi"],"summary":"Update a customer search profile","operationId":"updateSearchProfile","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"profileId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchProfileSaveApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CustomerCrmApi"],"summary":"Mark a search profile deleted","operationId":"deleteSearchProfile","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"profileId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/result-mails/schedules":{"put":{"tags":["CustomerCrmApi"],"summary":"Save the result-mail delivery schedules","operationId":"updateMailSchedules","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMailScheduleUpdateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmResultMailsApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/result-mails/alerts/{alertId}":{"put":{"tags":["CustomerCrmApi"],"summary":"Update a result-mail alert","operationId":"updateEmailAlert","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"alertId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CustomerCrmApi"],"summary":"Delete a result-mail alert","operationId":"deleteEmailAlert","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"alertId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/orders/{orderFormId}":{"get":{"tags":["CustomerCrmApi"],"summary":"One offer/order, with its line items and payment options","operationId":"getOrderForm","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"put":{"tags":["CustomerCrmApi"],"summary":"Edit an Offer/Order: replaces its fields, line items, payment options and regions","operationId":"updateOrderForm","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormCreateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CustomerCrmApi"],"summary":"Remove an offer/order","operationId":"deleteOrderForm","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/contacts/{contactId}":{"put":{"tags":["CustomerCrmApi"],"summary":"Update a contact person","operationId":"updateContact","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CustomerCrmApi"],"summary":"Remove a contact person","operationId":"deleteContact","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/saved-searches/{id}":{"put":{"tags":["CrmSearchesApi"],"summary":"Replace a saved search's filters and sharing","description":"Only its creator may; 403 otherwise. Filters this list cannot apply are kept.","operationId":"updateCrmSearch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchUpdateApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CrmSearchesApi"],"summary":"Delete a saved search","description":"Only its creator may; 403 otherwise. 409 while an Ariadne workflow process uses it.","operationId":"deleteCrmSearch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Successful operation"},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/configuration":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Get Contractor Imports round-robin and duplicate-domain configuration","operationId":"getConfiguration","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorImportConfigurationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"put":{"tags":["ContractorLeadImportsApi"],"summary":"Update Contractor Imports round-robin and duplicate-domain configuration","operationId":"updateConfiguration","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorImportConfigurationApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorImportConfigurationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/tender-management/search":{"post":{"tags":["TenderManagementApi"],"summary":"Search tenders of any status","operationId":"searchTenders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderSearchRequestApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/tender-management/mass-update":{"post":{"tags":["TenderManagementApi"],"summary":"Apply one change to the selected tenders","operationId":"massUpdateTenders","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderMassUpdateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderMassUpdateResultApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/org-db/contractors":{"get":{"tags":["OrgDbDirectoryApi"],"summary":"Search OrgDB contractors","operationId":"searchContractors","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":25}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["OrgDbDirectoryApi"],"summary":"Create an OrgDB contractor","operationId":"createContractor","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/org-db/authorities":{"get":{"tags":["OrgDbDirectoryApi"],"summary":"Search OrgDB authorities","operationId":"searchAuthorities","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":25}},{"name":"id","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["OrgDbDirectoryApi"],"summary":"Create an OrgDB authority","operationId":"createAuthority","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgDbEntityDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/notifications":{"post":{"tags":["NotificationsApi"],"summary":"List notifications","operationId":"listNotifications","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListQueryDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsPageDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/notifications/{uuid}/ruleset-fields":{"post":{"tags":["NotificationsApi"],"summary":"Correct the relation-driving fields (referenceNumber, authorityReference) of the tender behind this notification. Proxied to NRS, which routes it through Ariadne to Apollo. Apollo persists synchronously; the notification's re-grouping is asynchronous (pending=true) - the relation will not appear immediately.","operationId":"updateRulesetFields","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesetFieldEditDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulesetFieldEditResultDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/notifications/filter-values":{"post":{"tags":["NotificationsApi"],"summary":"Option lists with counts for the list's dropdown filters. Takes the list body (page and sort are ignored); each dropdown is counted under every filter except its own.","operationId":"filterValues","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationListQueryDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilterValuesDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/manager/verify-manager-access/{token}":{"post":{"tags":["AuthApi"],"summary":"Verify manager access","operationId":"verifyManagerAccess","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/manager/logout":{"post":{"tags":["AuthApi"],"summary":"Logout","operationId":"logout","responses":{"200":{"description":"OK"}}}},"/api/manager/login":{"post":{"tags":["AuthApi"],"summary":"Login","operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerLoginRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/crm/todos/{activityId}/done":{"post":{"tags":["CrmTodosApi"],"summary":"Mark a ToDo done","description":"A task or attachment request becomes COMPLETED, a call HELD.","operationId":"markDone","parameters":[{"name":"activityId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoDoneApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation"},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/todos/search":{"post":{"tags":["CrmTodosApi"],"summary":"Tasks, calls and attachment requests, filtered, sorted and paged","description":"See CrmTodoQueryApiDto for the filters; {} lists the acting manager's open ToDos, soonest due first.","operationId":"searchTodos","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoQueryApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoPageApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/todos/saved-searches":{"get":{"tags":["CrmTodoSavedSearchesApi"],"summary":"The acting manager's saved searches of one list, plus those shared on the portal","operationId":"listSavedSearches","parameters":[{"name":"module","in":"query","required":true,"schema":{"type":"string","enum":["TODOS","TASKS","CALLS","ATTACHMENT_REQUESTS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmTodoSavedSearchApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CrmTodoSavedSearchesApi"],"summary":"Save the current filters under a name","description":"409 when the manager already has a search of that name in the list.","operationId":"createSavedSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoSavedSearchCreateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoSavedSearchApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/todos/reassign":{"post":{"tags":["CrmTodosApi"],"summary":"Reassign the selected ToDos to one manager","description":"Each ToDo is reassigned on its own; the result lists which ones failed, e.g. because they were deleted since the list was loaded.","operationId":"reassign","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoReassignApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoBulkResultApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/todos/delete":{"post":{"tags":["CrmTodosApi"],"summary":"Delete the selected ToDos","description":"ROLE_ADMIN or ROLE_CM only, else 403. Each ToDo is deleted on its own; the result lists which ones failed.","operationId":"deleteTodos","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoDeleteApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoBulkResultApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/todos/calendar":{"post":{"tags":["CrmTodosApi"],"summary":"Calls and tasks due on the calendar's days","description":"The search's filters, with the due days replaced by from and to (both included, at most 42 days). Attachment requests are left out. Every match comes back soonest first, up to 1000; totalElements says how many matched.","operationId":"searchCalendar","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoCalendarQueryApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTodoPageApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/template-formattings":{"get":{"tags":["CrmTemplateFormattingsApi"],"summary":"All formatting configurations, with their template counts","operationId":"listTemplateFormattings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmTemplateFormattingApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CrmTemplateFormattingsApi"],"summary":"Create a formatting configuration","description":"409 when the name is taken.","operationId":"createTemplateFormatting","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTemplateFormattingSaveApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTemplateFormattingApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/emails/{id}/resend":{"post":{"tags":["CrmEmailsApi"],"summary":"Resend a sent email to its original recipients (TSD-7056)","description":"Sent as the acting manager and logged as a new send; returns the new row.","operationId":"resendEmail","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSentEmailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/emails/search":{"post":{"tags":["CrmEmailsApi"],"summary":"Every email sent from the CRM on the portal (TSD-7053)","description":"Paginated, newest first by default, filtered by the advanced search (TSD-7054). A subject search needs sentFrom and sentTo.","operationId":"searchSentEmails","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSentEmailQueryApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSentEmailPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/emails/export":{"post":{"tags":["CrmEmailsApi"],"summary":"Every email matching the search, as an XLSX file (TSD-9057)","description":"Same filters and order as the search, without paging. No match gives a file with only the header row; the file holds at most the first 50,000 matches.","operationId":"exportSentEmails","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSentEmailExportQueryApiDto"}}},"required":true},"responses":{"200":{"description":"The XLSX file","headers":{"X-Export-Truncated":{"description":"true when more emails matched than the file holds","style":"simple","schema":{"type":"boolean"}}},"content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"A subject search without a date range, or an inverted range","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"byte"}}}},"429":{"description":"Too many exports are running; try again shortly","content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"byte"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/email-templates":{"get":{"tags":["CrmEmailTemplatesApi"],"summary":"The portal's CRM email templates, optionally in one language","operationId":"listEmailTemplates","parameters":[{"name":"languageId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailTemplateSummaryApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CrmEmailTemplatesApi"],"summary":"Create a CRM email template, or a new language of one","description":"409 when the name already has this language or is not a CRM email template; 422 when the content exceeds 65,000 characters.","operationId":"createEmailTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailTemplateCreateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailTemplateDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/search-profiles":{"get":{"tags":["CustomerCrmApi"],"summary":"Search Profiles tab","operationId":"getSearchProfiles","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchProfilesApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CustomerCrmApi"],"summary":"Create a customer search profile","operationId":"createSearchProfile","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchProfileSaveApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/result-mails/alerts":{"post":{"tags":["CustomerCrmApi"],"summary":"Add a result-mail alert","operationId":"createEmailAlert","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailAlertApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/products":{"get":{"tags":["CustomerCrmApi"],"summary":"Products offered by the Change Product action","operationId":"getProductCatalogue","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmProductCatalogueApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CustomerCrmApi"],"summary":"Assign a product to a customer","description":"The Admin Portal's in-app replacement for the legacy \"Change product\" hand-off (TSD-7066): creates the customer product directly in its operative status and expires whatever ACTIVE/TEST product the customer currently holds.","operationId":"assignProduct","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmAssignProductApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCustomerProductApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/password-reset-link":{"post":{"tags":["CustomerCrmApi"],"summary":"Issue a fresh password reset link","operationId":"regeneratePasswordResetLink","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/orders":{"get":{"tags":["CustomerCrmApi"],"summary":"Offers/Orders subpanel","operationId":"getOrderForms","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmOrderFormListItemApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CustomerCrmApi"],"summary":"Create an Offer/Order","operationId":"createOrderForm","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormCreateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/orders/{orderFormId}/send":{"post":{"tags":["CustomerCrmApi"],"summary":"Email the rendered PDF to the customer","operationId":"sendOrderForm","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormSendApiDto"}}},"required":true},"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/orders/{orderFormId}/duplicate":{"post":{"tags":["CustomerCrmApi"],"summary":"Duplicate an Offer/Order","operationId":"duplicateOrderForm","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/impersonation":{"post":{"tags":["CustomerCrmApi"],"summary":"Open an impersonation session as TS2 or TS4","operationId":"impersonate","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"userType","in":"query","required":true,"schema":{"pattern":"TS2|TS4","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmImpersonationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/history/notes":{"post":{"tags":["CustomerCrmApi"],"summary":"Create a Note, optionally with attachments","operationId":"createNote","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmNoteCreateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmHistoryItemApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/history/emails/archive":{"post":{"tags":["CustomerCrmApi"],"summary":"Manually log an email that happened outside the system","operationId":"archiveEmail","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailArchiveApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmHistoryItemApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/email/send":{"post":{"tags":["CustomerCrmApi"],"summary":"Send an email to the customer","operationId":"sendEmail","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailSendApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailHistoryEntryApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/email/preview":{"post":{"tags":["CustomerCrmApi"],"summary":"Resolve placeholders without sending","operationId":"previewEmail","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailSendApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailPreviewApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/doi":{"post":{"tags":["CustomerCrmApi"],"summary":"Send the DOI email to the customer","operationId":"sendCustomerDoi","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDoiResultApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/documents":{"get":{"tags":["CustomerCrmApi"],"summary":"Documents subpanel: this customer's documents","operationId":"getDocuments","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmDocumentItemApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CustomerCrmApi"],"summary":"Upload a Document","operationId":"uploadDocument","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDocumentUploadApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDocumentItemApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/contacts":{"get":{"tags":["CustomerCrmApi"],"summary":"Contacts tab","operationId":"getContacts","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmContactApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CustomerCrmApi"],"summary":"Add a contact person","operationId":"createContact","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactUpsertApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/contacts/{contactId}/doi":{"post":{"tags":["CustomerCrmApi"],"summary":"Send the DOI email to a contact","operationId":"sendContactDoi","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDoiResultApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/call-script/outcomes":{"post":{"tags":["CustomerCallScriptApi"],"summary":"Log the call outcome (TSD-9156..9158)","description":"Creates the outbound call, an optional follow-up task and, for DO_NOT_CALL, sets the Do not call flag - in one transaction, attributed to the session manager. 409 when the wording version has changed since the script was displayed; nothing is saved then.","operationId":"logCallOutcome","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCallScriptLogApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCallScriptLogResultApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/activities/tasks":{"post":{"tags":["CustomerCrmApi"],"summary":"Create Task","operationId":"createTask","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTaskCreateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmActivityApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/activities/calls":{"post":{"tags":["CustomerCrmApi"],"summary":"Log Call","operationId":"createCall","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCallCreateApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmActivityApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/saved-searches":{"get":{"tags":["CrmSearchesApi"],"summary":"The acting manager's saved customer searches, plus those shared on the portal","operationId":"listCrmSearches","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmSearchApiDto"}}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"post":{"tags":["CrmSearchesApi"],"summary":"Save the current filters under a name","description":"409 when the portal already has a search of that name, whoever created it.","operationId":"createCrmSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchCreateApiDto"}}},"required":true},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/previews":{"post":{"tags":["ContractorLeadImportsApi"],"summary":"Map selected contractors and detect CRM duplicates","operationId":"preview","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPreviewRequestApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPreviewApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/complete":{"post":{"tags":["ContractorLeadImportsApi"],"summary":"Create, update, or skip the reviewed prospective leads","operationId":"complete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteImportRequestApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSummaryApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/qualification":{"get":{"tags":["CustomerCrmApi"],"summary":"Qualification tab","operationId":"getQualification","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmQualificationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply a Qualification patch","operationId":"patchQualification","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmQualificationPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmQualificationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/overview":{"get":{"tags":["CustomerCrmApi"],"summary":"Overview tab","operationId":"getOverview","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOverviewApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply an Overview tab patch","operationId":"patchOverview","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOverviewPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOverviewApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/meta":{"get":{"tags":["CustomerCrmApi"],"summary":"More Information tab","operationId":"getMetaInformation","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply a More Information patch","operationId":"patchMetaInformation","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmMetaInformationApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/documents/{documentId}":{"delete":{"tags":["CustomerCrmApi"],"summary":"Delete a Document","operationId":"deleteDocument","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Edit a Document's metadata","operationId":"patchDocument","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDocumentPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDocumentItemApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/customer-products/{customerProductId}":{"patch":{"tags":["CustomerCrmApi"],"summary":"Edit Contract dialog: contract terms of an already-assigned product","operationId":"updateProductContract","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerProductId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmProductContractPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmProductItemApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/company":{"get":{"tags":["CustomerCrmApi"],"summary":"Company tab","operationId":"getCompany","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCompanyApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Apply a Company tab patch","operationId":"patchCompany","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCompanyPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCompanyApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/activities/{activityId}":{"get":{"tags":["CustomerCrmApi"],"summary":"Task view: one task or call with its customer's email, phone and company","operationId":"getActivity","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"activityId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmActivityDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}},"delete":{"tags":["CustomerCrmApi"],"summary":"Remove an activity row","operationId":"deleteActivity","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"activityId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}},"patch":{"tags":["CustomerCrmApi"],"summary":"Inline-edit an activity row","operationId":"patchActivity","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"activityId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmActivityPatchApiDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmActivityApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/tender-management/options":{"get":{"tags":["TenderManagementApi"],"summary":"Get the values the filters offer","operationId":"getTenderOptions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenderManagementOptionsApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/portal-context":{"get":{"tags":["PortalContextApi"],"summary":"Get the portal resolved from portal.admin_url","operationId":"getPortalContext","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPortalContextApiDto"}}}}}}},"/api/portal-context/i18n/{language}":{"get":{"tags":["PortalContextApi"],"summary":"Get translations for the current portal and language","operationId":"getTranslations","parameters":[{"name":"language","in":"path","required":true,"schema":{"pattern":"[A-Za-z]{2,8}([_-][A-Za-z]{2,8})?","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/org-db/authority-types":{"get":{"tags":["OrgDbDirectoryApi"],"summary":"List the authority types OrgDB accepts","operationId":"getAuthorityTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/notifications/{uuid}":{"get":{"tags":["NotificationsApi"],"summary":"Notification details","operationId":"notificationDetails","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationDetailsDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/notifications/{uuid}/similar":{"get":{"tags":["NotificationsApi"],"summary":"Similar notifications (suggestions)","operationId":"getSimilar","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"maximum":20,"minimum":1,"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimilarNotificationDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/notifications/{uuid}/relations":{"get":{"tags":["NotificationsApi"],"summary":"Related notifications (same group, excluding this one), newest first. totalElements is the relation count.","operationId":"getRelations","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsPageDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/notifications/{uuid}/possible-duplicates":{"get":{"tags":["NotificationsApi"],"summary":"Possible duplicate notifications (same document type required)","operationId":"getPossibleDuplicates","parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"maximum":20,"minimum":1,"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimilarNotificationDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/manager/current-user":{"get":{"tags":["AuthApi"],"summary":"Get the currently authenticated manager","operationId":"getCurrentUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentManagerResponse"}}}}}}},"/api/legacy-admin":{"get":{"tags":["LegacyAdminApi"],"summary":"Get the base URL of the current portal's Ariadne admin area","operationId":"getLegacyAdmin","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyAdminApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/datasource-groups":{"get":{"tags":["DataSourceGroupsApi"],"summary":"dataSource groups whose notifications are related across sources, sorted by country then id","operationId":"listDataSourceGroups","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataSourceGroupDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/template-formattings/{id}/templates":{"get":{"tags":["CrmTemplateFormattingsApi"],"summary":"The templates rendered with a formatting configuration, on all portals","description":"With their blocks, to render them again for a restyle.","operationId":"listTemplateFormattingTemplates","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmTemplateFormattingUsageApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/template-formattings/default":{"get":{"tags":["CrmTemplateFormattingsApi"],"summary":"The acting portal's default formatting configuration","operationId":"getDefaultTemplateFormatting","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTemplateFormattingApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/reference-data":{"get":{"tags":["CustomerCrmReferenceDataApi"],"summary":"Dropdown values for the CRM tabs","operationId":"getReferenceData","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmReferenceDataApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/emails/senders":{"get":{"tags":["CrmEmailsApi"],"summary":"The Sender filter's options (TSD-7054)","description":"Addresses CRM email was sent from on the portal, with manager names.","operationId":"listSentEmailSenders","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailSenderApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/email-templates/{id}/versions":{"get":{"tags":["CrmEmailTemplatesApi"],"summary":"Saved revisions of a CRM email template, newest first","operationId":"listEmailTemplateVersions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailTemplateVersionApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/email-templates/subtemplates":{"get":{"tags":["CrmEmailTemplatesApi"],"summary":"The portal's subtemplates in one language, for @@name markers","operationId":"listEmailSubtemplates","parameters":[{"name":"languageId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmSubtemplateApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/email-templates/placeholder-groups":{"get":{"tags":["CrmEmailTemplatesApi"],"summary":"Ariadne's placeholders by group, for the insert-placeholder menus","description":"Descriptions in the given language, falling back to English.","operationId":"listEmailPlaceholderGroups","parameters":[{"name":"languageId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmPlaceholderGroupApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers":{"get":{"tags":["CustomerCrmApi"],"summary":"Browse every customer on the portal, optionally filtered by a search term","description":"The CRM landing page's default view: paginated, sortable, scoped to the acting portal. An optional search term is matched against id, uuid, email, first/last name, company name and phone number. Status and manager narrow the result further, mirroring ariadne's grid filters.","operationId":"listCustomers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"managerId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":25}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCustomerListPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/search-profiles/{profileId}/detail":{"get":{"tags":["CustomerCrmApi"],"summary":"One customer search profile's full detail, for editing","operationId":"getSearchProfileDetail","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"profileId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchProfileDetailApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/search-profiles/filter-definitions":{"get":{"tags":["CustomerCrmApi"],"summary":"Filter field catalog for building/editing a customer's search profiles","operationId":"getSearchProfileFilterDefinitions","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"searchContext","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmFilterDefinitionApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/result-mails":{"get":{"tags":["CustomerCrmApi"],"summary":"Result Mails tab","operationId":"getResultMails","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmResultMailsApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/orders/{orderFormId}/payment-link":{"get":{"tags":["CustomerCrmApi"],"summary":"The Offer/Order's payment link and its status (created on first request)","operationId":"getOrderFormPaymentLink","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormPaymentLinkApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/orders/{orderFormId}/document":{"get":{"tags":["CustomerCrmApi"],"summary":"Render the offer/order as a PDF for download","operationId":"downloadOrderFormDocument","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"documentType","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmOrderFormDocumentApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/orders/{orderFormId}/changelog":{"get":{"tags":["CustomerCrmApi"],"summary":"View Changelog of an Offer/Order","operationId":"getOrderFormChangelog","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderFormId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmOrderFormChangeLogEntryApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/history":{"get":{"tags":["CustomerCrmApi"],"summary":"History subpanel: closed tasks/calls, notes and logged emails","operationId":"getHistory","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmHistoryItemApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/header":{"get":{"tags":["CustomerCrmApi"],"summary":"Header bar: identity, status, product and DOI state","operationId":"getHeader","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCustomerHeaderApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/fit/profile":{"get":{"tags":["CustomerFitApi"],"summary":"Award profile built from the customer's connected OrgDB contractors (TSD-9143)","description":"Computed on every request and never stored. 401 without a manager session, 404 when the customer is not on the acting portal.","operationId":"getFitProfile","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmFitProfileApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/fit/opportunities":{"get":{"tags":["CustomerFitApi"],"summary":"Open tenders ranked by fit with the customer's award profile (TSD-9144)","description":"Scores every open tender and prior information notice in the divisions of the five main CPV groups; the summary covers all of them, the list the best `limit`. Computed on every request. 401 without a manager session, 404 when the customer is not on the acting portal.","operationId":"getFitOpportunities","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"maximum":200,"minimum":1,"type":"integer","format":"int32","default":25}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmFitOpportunitiesApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/fit/competitors":{"get":{"tags":["CustomerFitApi"],"summary":"Other winners in the firm's market (TSD-9146)","description":"Winners of awards from the firm's buying authorities in the firm's 3-digit CPV groups, the most such awards first, at most 10. A shared market is not proof of direct competition. 401 without a manager session, 404 when the customer is not on the acting portal.","operationId":"getFitCompetitors","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmFitCompetitorsApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/fit/buyers":{"get":{"tags":["CustomerFitApi"],"summary":"The buying authorities behind the Fit profile, most awards first (TSD-9146)","description":"401 without a manager session, 404 when the customer is not on the acting portal.","operationId":"getFitBuyers","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"maximum":100000,"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmFitBuyerPageApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/fit/awards":{"get":{"tags":["CustomerFitApi"],"summary":"The awards behind the Fit profile, newest first (TSD-9146)","description":"The same awards the profile counts, one page at a time; `buyerId` keeps only the awards of one buying authority. 401 without a manager session, 404 when the customer is not on the acting portal.","operationId":"getFitAwards","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"maximum":100000,"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":20}},{"name":"buyerId","in":"query","required":false,"schema":{"minimum":1,"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmFitAwardPageApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/email/compose":{"get":{"tags":["CustomerCrmApi"],"summary":"Email tab form data","operationId":"getEmailCompose","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailComposeApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/email-history":{"get":{"tags":["CustomerCrmApi"],"summary":"Email History tab","operationId":"getEmailHistory","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":200,"minimum":1,"type":"integer","format":"int32","default":25}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailHistoryPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/email-history/{emailId}":{"get":{"tags":["CustomerCrmApi"],"summary":"One archived email, read-only","operationId":"getEmailMessage","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"emailId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"source","in":"query","required":false,"schema":{"pattern":"CRM|RESULT_MAIL","type":"string","default":"CRM"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmEmailMessageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/documents/{documentId}/content":{"get":{"tags":["CustomerCrmApi"],"summary":"Download a Document","operationId":"downloadDocument","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmDocumentDownloadApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/customer-products":{"get":{"tags":["CustomerCrmApi"],"summary":"Customer Products subpanel: products this customer holds or has held","operationId":"getCustomerProductContracts","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmProductItemApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/customer-products/{customerProductId}/options":{"get":{"tags":["CustomerCrmApi"],"summary":"Dropdown options of the product Edit form","operationId":"getProductEditOptions","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerProductId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmProductEditOptionsApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/customer-products/{customerProductId}/changelog":{"get":{"tags":["CustomerCrmApi"],"summary":"View Changelog tab of the product detail dialog","operationId":"getProductChangelog","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerProductId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmChangeLogEntryApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/consent-logs":{"get":{"tags":["CustomerCrmApi"],"summary":"Consent change history","operationId":"getConsentLogs","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmConsentLogEntryApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/changelog":{"get":{"tags":["CustomerCrmApi"],"summary":"View Changelog tab","operationId":"getChangelog","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":200,"minimum":1,"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmChangeLogPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/call-script":{"get":{"tags":["CustomerCallScriptApi"],"summary":"Prepared Call Script (TSD-9152..9155)","description":"Fixed wording chosen by rules from the brief and the CRM account signals. Read-only. language is the portal's local language or en (default: local); brand defaults to the portal's.","operationId":"getCallScript","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"language","in":"query","required":false,"schema":{"pattern":"[a-z]{2}","type":"string"}},{"name":"brand","in":"query","required":false,"schema":{"maxLength":100,"minLength":0,"type":"string"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmCallScriptApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/brief":{"get":{"tags":["CustomerBriefApi"],"summary":"Customer Brief: identity, evidence basis, history, opportunities and estimate (TSD-9147..9150)","description":"Computed on every request, never stored and never sent to the customer. Reuses the Fit profile, so shared figures agree with Fit. language is the portal's local language or en; omitted means the portal default. 401 without a manager session, 404 for a customer of another portal.","operationId":"getBrief","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"language","in":"query","required":false,"schema":{"pattern":"[a-z]{2}","type":"string"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmBriefApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/brief/market-leaders":{"get":{"tags":["CustomerBriefApi"],"summary":"Leading winners in the estimated CPV areas over the last three years, at most eight (TSD-9151)","description":"Excludes the customer's connected contractors. Loaded after the brief.","operationId":"getBriefMarketLeaders","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmBriefMarketListApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/brief/competitors":{"get":{"tags":["CustomerBriefApi"],"summary":"Competitors sharing a CPV code and a buyer with the firm, at most eight (TSD-9151)","description":"Loaded after the brief; a failure here never affects the brief.","operationId":"getBriefCompetitors","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmBriefMarketListApiDto"}}}},"400":{"description":"Bad request, invalid request parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/behavior":{"get":{"tags":["CustomerCrmApi"],"summary":"Behavior tab","operationId":"getBehavior","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmBehaviorApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/activities":{"get":{"tags":["CustomerCrmApi"],"summary":"Activities subpanel: open tasks and calls","description":"Sorted by due date. Completed/held/cancelled activities belong on the History subpanel instead.","operationId":"getActivities","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmActivityApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/{customerId}/activities/{activityId}/changelog":{"get":{"tags":["CustomerCrmApi"],"summary":"View Changelog tab of the task view","description":"Newest first.","operationId":"getActivityChangelog","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"activityId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmChangeLogEntryApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/status-counts":{"get":{"tags":["CustomerCrmApi"],"summary":"Customer counts per status, for the CRM quicklinks","description":"Mirrors ariadne's sidebar badges (CustomerService.crmGroupsCounter): one count per customerStatus reference-data value plus the portal total, scoped to the acting portal. Backed by a short-lived cache - see the implementation - so a manager paging through the CRM list does not re-trigger the underlying per-status counts on every page load.","operationId":"getStatusCounts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmStatusCountsApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/search-profiles/browse":{"get":{"tags":["CustomerCrmApi"],"summary":"Portal-wide, paged browse/search of customer search profiles, newest-created first by default. customerId, searchContext and searchSnippet are all optional filters.","operationId":"browseSearchProfiles","parameters":[{"name":"customerId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"searchContext","in":"query","required":false,"schema":{"type":"string"}},{"name":"searchSnippet","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmSearchProfileBrowsePageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/portals":{"get":{"tags":["CustomerCrmApi"],"summary":"Every portal a manager can switch the CRM area to","description":"Backs the portal switcher: pick one of these ids and send it as X-Crm-Portal-Id on subsequent CRM calls to browse that portal's customers instead.","operationId":"listPortals","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmPortalOptionApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/orders/regions":{"get":{"tags":["CustomerCrmApi"],"summary":"Regions an Offer/Order can cover, for the current portal","operationId":"getOrderFormRegionCatalog","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/orders/paymentOptions":{"get":{"tags":["CustomerCrmApi"],"summary":"List the payment options available for the current portal","operationId":"getPaymentOptionCatalog","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmPaymentOptionCatalogApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/lookup":{"get":{"tags":["CustomerCrmApi"],"summary":"Find a customer by id, uuid, email address or phone number","description":"Indexed lookups only - see the downstream contract for why free-text name search is not offered here.","operationId":"lookupCustomers","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CrmCustomerSearchResultApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/crm/customers/export":{"get":{"tags":["CustomerCrmApi"],"summary":"Every customer matching the current filter, as CSV","description":"Same filter as listCustomers, uncapped by the grid's page size but capped at 5000 rows so an export cannot become an accidental full-table dump.","operationId":"exportCustomers","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"managerId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"id"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"200":{"description":"OK","content":{"text/csv":{"schema":{"type":"string","format":"byte"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/{importId}/report":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Download the completed import report","operationId":"downloadReport","parameters":[{"name":"importId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"text/csv":{"schema":{"type":"string","format":"byte"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/summaries/{importId}":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Reload the summary of a completed import","operationId":"getSummary","parameters":[{"name":"importId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSummaryApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/previews/{importId}":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Reload an active import preview","operationId":"getPreview","parameters":[{"name":"importId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPreviewApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/managers":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"List managers eligible for contractor import assignment","operationId":"listManagers","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManagerOptionApiDto"}}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/api/contractor-lead-imports/contractors":{"get":{"tags":["ContractorLeadImportsApi"],"summary":"Search the OrgDB contractor database","operationId":"searchImportContractors","parameters":[{"name":"country","in":"query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"minimum":0,"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","default":25}},{"name":"registrationNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorPageApiDto"}}}},"401":{"description":"No valid Ariadne manager session"}}}},"/":{"get":{"tags":["Home"],"operationId":"indexHTML","responses":{"200":{"description":"OK","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/crm/customers/{customerId}/history/notes/{noteId}":{"delete":{"tags":["CustomerCrmApi"],"summary":"Remove a note","operationId":"deleteNote","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"noteId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"},"401":{"description":"No valid Ariadne manager session"}}}}},"components":{"schemas":{"OrgDbEntityUpsertApiDto":{"required":["country","name"],"type":"object","properties":{"name":{"minLength":1,"type":"string"},"country":{"minLength":1,"type":"string"},"registrationNumber":{"type":"string"},"authorityType":{"type":"string"},"vatUid":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"url":{"type":"string"},"notes":{"type":"string"}}},"OrgDbEntityDetailApiDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"country":{"type":"string"},"registrationNumber":{"type":"string"},"authorityType":{"type":"string"},"vatUid":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"url":{"type":"string"},"notes":{"type":"string"},"deleted":{"type":"boolean"}}},"CrmTodoFiltersApiDto":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string","enum":["TASK","CALL","TASK_ATTACHMENT_REQUEST"]}},"managerId":{"type":"integer","format":"int64"},"managerIds":{"type":"array","items":{"type":"integer","format":"int64"}},"allManagers":{"type":"boolean"},"status":{"pattern":"OPEN|OVERDUE|CLOSED|ALL","type":"string"},"statuses":{"type":"array","items":{"pattern":"NOT_STARTED|IN_PROGRESS|PENDING_INPUT|COMPLETED|DEFERRED|PLANNED|HELD|NOT_HELD|NOT_ANSWERED","type":"string"}},"callNames":{"type":"array","items":{"type":"string"}},"taskNames":{"type":"array","items":{"type":"string"}},"dueFrom":{"type":"string","format":"date"},"dueTo":{"type":"string","format":"date"},"createdFrom":{"type":"string","format":"date"},"createdTo":{"type":"string","format":"date"},"tenderId":{"type":"integer","format":"int64"},"customerName":{"maxLength":255,"minLength":0,"type":"string"}}},"CrmTodoSavedSearchUpdateApiDto":{"required":["filters"],"type":"object","properties":{"visibleForAll":{"type":"boolean"},"filters":{"$ref":"#/components/schemas/CrmTodoFiltersApiDto"}}},"CrmTodoSavedSearchApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"module":{"type":"string","enum":["TODOS","TASKS","CALLS","ATTACHMENT_REQUESTS"]},"name":{"type":"string"},"own":{"type":"boolean"},"ownerName":{"type":"string"},"visibleForAll":{"type":"boolean"},"filters":{"$ref":"#/components/schemas/CrmTodoFiltersApiDto"}}},"CrmTemplateFormattingSaveApiDto":{"required":["buttonColor","buttonTextColor","contentWidth","fontFamily","h1Color","h1Size","h2Color","h2Size","h3Color","h3Size","linkColor","name","textColor","textSize"],"type":"object","properties":{"name":{"maxLength":100,"minLength":0,"type":"string"},"fontFamily":{"maxLength":255,"minLength":0,"pattern":"^[A-Za-z0-9 ,-]+$","type":"string"},"textSize":{"maximum":72,"minimum":8,"type":"integer","format":"int32"},"textColor":{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"h1Size":{"maximum":72,"minimum":8,"type":"integer","format":"int32"},"h1Color":{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"h2Size":{"maximum":72,"minimum":8,"type":"integer","format":"int32"},"h2Color":{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"h3Size":{"maximum":72,"minimum":8,"type":"integer","format":"int32"},"h3Color":{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"linkColor":{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"buttonColor":{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"buttonTextColor":{"pattern":"^#[0-9a-fA-F]{6}$","type":"string"},"contentWidth":{"maximum":800,"minimum":480,"type":"integer","format":"int32"}}},"CrmTemplateFormattingUpdateApiDto":{"required":["formatting","templates"],"type":"object","properties":{"version":{"type":"integer","format":"int64"},"formatting":{"$ref":"#/components/schemas/CrmTemplateFormattingSaveApiDto"},"templates":{"type":"array","items":{"$ref":"#/components/schemas/CrmTemplateRestyleApiDto"}}}},"CrmTemplateRestyleApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64"},"content":{"type":"string"}}},"CrmTemplateFormattingApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64"},"name":{"type":"string"},"fontFamily":{"type":"string"},"textSize":{"type":"integer","format":"int32"},"textColor":{"type":"string"},"h1Size":{"type":"integer","format":"int32"},"h1Color":{"type":"string"},"h2Size":{"type":"integer","format":"int32"},"h2Color":{"type":"string"},"h3Size":{"type":"integer","format":"int32"},"h3Color":{"type":"string"},"linkColor":{"type":"string"},"buttonColor":{"type":"string"},"buttonTextColor":{"type":"string"},"contentWidth":{"type":"integer","format":"int32"},"templateCount":{"type":"integer","format":"int64"},"defaultForPortal":{"type":"boolean"},"lastUpdated":{"type":"string","format":"date-time"},"lastEditedBy":{"type":"string"}}},"CrmEmailTemplateUpdateApiDto":{"required":["subject"],"type":"object","properties":{"version":{"type":"integer","format":"int64"},"subject":{"maxLength":255,"minLength":0,"type":"string"},"content":{"maxLength":1000000,"minLength":0,"type":"string"},"blockContent":{"maxLength":1000000,"minLength":0,"type":"string"},"formattingId":{"type":"integer","format":"int64"},"formattingVersion":{"type":"integer","format":"int64"}}},"CrmEmailTemplateDetailApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64"},"name":{"type":"string"},"languageId":{"type":"string"},"subject":{"type":"string"},"content":{"type":"string"},"blockContent":{"type":"string"},"blockContentStale":{"type":"boolean"},"lastUpdated":{"type":"string","format":"date-time"},"lastEditedBy":{"type":"string"},"formattingId":{"type":"integer","format":"int64"}}},"CrmCurrencyAmountRangeApiDto":{"type":"object","properties":{"currencyCode":{"type":"string"},"lowerBound":{"type":"integer","format":"int32"},"upperBound":{"type":"integer","format":"int32"},"excludeEmptyValues":{"type":"boolean"}}},"CrmDateRangeApiDto":{"type":"object","properties":{"dynamicRelativeInterval":{"type":"string"},"dynamicRelativeMonthFrom":{"type":"integer","format":"int32"},"dynamicRelativeMonthTo":{"type":"integer","format":"int32"},"dynamicRelativeMonthDirection":{"pattern":"NEXT|PREVIOUS","type":"string"}}},"CrmSearchProfileFiltersApiDto":{"type":"object","properties":{"searchTermsMatchingQueries":{"type":"object","additionalProperties":{"type":"string"}},"searchTermsExcludingQueries":{"type":"object","additionalProperties":{"type":"string"}},"selectedValues":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CrmSelectedValuesApiDto"}},"fixedSearchFilterValues":{"type":"object","additionalProperties":{"type":"string"}},"dateRanges":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CrmDateRangeApiDto"}},"currencyAmountRanges":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CrmCurrencyAmountRangeApiDto"}},"flags":{"type":"object","additionalProperties":{"type":"boolean"}},"regionIds":{"uniqueItems":true,"type":"array","items":{"type":"integer","format":"int64"}},"singleSelectExcludeNulls":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CrmSingleSelectExcludeNullsApiDto"}},"semanticSearchText":{"type":"string"}}},"CrmSearchProfileSaveApiDto":{"type":"object","properties":{"name":{"type":"string"},"searchContext":{"type":"string"},"filters":{"$ref":"#/components/schemas/CrmSearchProfileFiltersApiDto"}}},"CrmSelectedValuesApiDto":{"type":"object","properties":{"negate":{"type":"boolean"},"selectedValues":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}},"CrmSingleSelectExcludeNullsApiDto":{"type":"object","properties":{"selectedValue":{"type":"string"},"excludeEmptyValues":{"type":"boolean"}}},"CrmMailScheduleUpdateApiDto":{"type":"object","properties":{"srMailRunTimeIds":{"type":"array","items":{"type":"integer","format":"int64"}},"upcomingTenderRunTimeIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"CrmEmailAlertApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"searchProfiles":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAlertProfileApiDto"}},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailRecipientApiDto"}},"shortDeadlineTenderEnabled":{"type":"boolean"}}},"CrmEmailAlertProfileApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}}},"CrmEmailRecipientApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"}}},"CrmMailScheduleApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"weekDays":{"type":"array","items":{"type":"string"}},"repeatEvery":{"type":"string"},"runTimes":{"type":"array","items":{"$ref":"#/components/schemas/CrmMailScheduleRunTimeApiDto"}}}},"CrmMailScheduleRunTimeApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"time":{"type":"string"},"selected":{"type":"boolean"}}},"CrmOptionApiDto":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}}},"CrmResultMailsApiDto":{"type":"object","properties":{"alerts":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAlertApiDto"}},"srMailSchedules":{"type":"array","items":{"$ref":"#/components/schemas/CrmMailScheduleApiDto"}},"upcomingTenderSchedules":{"type":"array","items":{"$ref":"#/components/schemas/CrmMailScheduleApiDto"}},"upcomingTenderApplicable":{"type":"boolean"},"availableSearchProfiles":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAlertProfileApiDto"}},"salutations":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}}}},"CrmEmailAlertUpsertApiDto":{"required":["name","recipients","searchProfileIds"],"type":"object","properties":{"name":{"maxLength":255,"minLength":0,"type":"string"},"searchProfileIds":{"minItems":1,"type":"array","items":{"type":"integer","format":"int64"}},"recipients":{"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/CrmEmailRecipientInputApiDto"}},"shortDeadlineTenderEnabled":{"type":"boolean"}}},"CrmEmailRecipientInputApiDto":{"required":["email"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"maxLength":100,"minLength":0,"type":"string"},"lastName":{"maxLength":100,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":0,"type":"string","format":"email"}}},"CrmBankAccountApiDto":{"type":"object","properties":{"accountHolder":{"type":"string"},"accountNumber":{"type":"string"},"bankIdentificationCode":{"type":"string"},"bankName":{"type":"string"}}},"CrmDirectDebitingOptionApiDto":{"type":"object","properties":{"directDebitingType":{"type":"string"},"selected":{"type":"boolean"},"discountPercent":{"type":"integer","format":"int32"},"surchargePercent":{"type":"integer","format":"int32"}}},"CrmOrderFormCreateApiDto":{"type":"object","properties":{"name":{"type":"string"},"offerType":{"type":"string"},"vatPercent":{"type":"integer","format":"int32"},"validUntil":{"type":"string","format":"date"},"subscriptionStart":{"type":"string","format":"date"},"durationInMonths":{"type":"integer","format":"int32"},"notes":{"type":"string"},"offerNotes":{"type":"string"},"enableSetupFee":{"type":"boolean"},"setupFeeAmount":{"type":"number"},"premiumProductsOpen":{"type":"boolean"},"regionsOpen":{"type":"boolean"},"includeProforma":{"type":"boolean"},"products":{"type":"array","items":{"$ref":"#/components/schemas/CrmOrderFormProductLineApiDto"}},"paymentOptions":{"type":"array","items":{"$ref":"#/components/schemas/CrmOrderFormPaymentOptionApiDto"}},"showGrossPrices":{"type":"boolean"},"regionSearchProfileIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"CrmOrderFormPaymentOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"paymentOptionId":{"type":"integer","format":"int64"},"paymentOptionType":{"type":"string"},"paymentOptionName":{"type":"string"},"instalmentPlanType":{"type":"string"},"discountPercent":{"type":"integer","format":"int32"},"surchargePercent":{"type":"integer","format":"int32"},"description":{"type":"string"},"bankAccount":{"$ref":"#/components/schemas/CrmBankAccountApiDto"},"directDebitingOptions":{"type":"array","items":{"$ref":"#/components/schemas/CrmDirectDebitingOptionApiDto"}}}},"CrmOrderFormProductLineApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"productId":{"type":"integer","format":"int64"},"productName":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"discountPercent":{"type":"integer","format":"int32"},"numberOfUserLicenses":{"type":"integer","format":"int32"},"pricePerUserLicense":{"type":"number"},"lineTotal":{"type":"number"},"productType":{"type":"string"},"addOn":{"type":"boolean"},"netPricePerMonth":{"type":"number"}}},"CrmOrderFormDetailApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"customerId":{"type":"integer","format":"int64"},"name":{"type":"string"},"offerType":{"type":"string"},"vatPercent":{"type":"integer","format":"int32"},"validUntil":{"type":"string","format":"date"},"subscriptionStart":{"type":"string","format":"date"},"durationInMonths":{"type":"integer","format":"int32"},"notes":{"type":"string"},"offerNotes":{"type":"string"},"enableSetupFee":{"type":"boolean"},"setupFeeAmount":{"type":"number"},"premiumProductsOpen":{"type":"boolean"},"regionsOpen":{"type":"boolean"},"includeProforma":{"type":"boolean"},"products":{"type":"array","items":{"$ref":"#/components/schemas/CrmOrderFormProductLineApiDto"}},"paymentOptions":{"type":"array","items":{"$ref":"#/components/schemas/CrmOrderFormPaymentOptionApiDto"}},"netTotal":{"type":"number"},"vatAmount":{"type":"number"},"grandTotal":{"type":"number"},"showGrossPrices":{"type":"boolean"},"regionSearchProfileIds":{"type":"array","items":{"type":"integer","format":"int64"}},"regionNames":{"type":"array","items":{"type":"string"}},"customerName":{"type":"string"},"dateCreated":{"type":"string","format":"date-time"}}},"CrmContactUpsertApiDto":{"required":["email","lastName"],"type":"object","properties":{"active":{"type":"boolean"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"maxLength":255,"minLength":0,"type":"string"},"lastName":{"maxLength":255,"minLength":0,"type":"string"},"position":{"maxLength":255,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":6,"type":"string","format":"email"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"mobileNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"notes":{"maxLength":4000,"minLength":0,"type":"string"}}},"CrmPhoneNumberInputApiDto":{"required":["number"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"number":{"maxLength":64,"minLength":0,"type":"string"},"label":{"maxLength":64,"minLength":0,"type":"string"}}},"CrmContactApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"active":{"type":"boolean"},"salutation":{"type":"string"},"salutationId":{"type":"integer","format":"int64"},"firstName":{"type":"string"},"lastName":{"type":"string"},"position":{"type":"string"},"email":{"type":"string"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberApiDto"}},"notes":{"type":"string"},"doubleOptInLink":{"type":"string"},"dateDoiSent":{"type":"string","format":"date-time"},"doubleOptInDate":{"type":"string","format":"date-time"},"dateCreated":{"type":"string","format":"date-time"}}},"CrmPhoneNumberApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"field":{"type":"string"},"number":{"type":"string"},"label":{"type":"string"},"position":{"type":"integer","format":"int32"}}},"CrmCustomerFiltersApiDto":{"type":"object","properties":{"status":{"maxLength":64,"minLength":0,"type":"string"},"managerId":{"type":"integer","format":"int64"}}},"CrmSearchUpdateApiDto":{"required":["filters"],"type":"object","properties":{"visibleForAll":{"type":"boolean"},"filters":{"$ref":"#/components/schemas/CrmCustomerFiltersApiDto"}}},"ApiErrorDto":{"type":"object","properties":{"message":{"$ref":"#/components/schemas/ApiMessage"},"code":{"type":"string","description":"A custom error code","enum":["customer_search_profile_create_limit_reached","manager_access_pending_verification","manager_access_untrusted_ip","customer_api_limit_reached","tender_analyzer_tender_not_found","tender_analyzer_tender_not_indexed"]},"debugInfo":{"$ref":"#/components/schemas/DebugInfo"}},"description":"ApiErrorDto that additionally (optionally) includes some error details and debug information. Used as error response object from services."},"ApiMessage":{"type":"object","properties":{"translationCode":{"type":"string"},"translationParams":{"type":"array","items":{"type":"string"}},"fallbackMessage":{"type":"string"}},"description":"An error message"},"DebugInfo":{"type":"object","properties":{"serviceCallTrace":{"type":"array","items":{"type":"string"}},"errors":{"type":"array","description":"Detailed errors","items":{"type":"string","description":"Detailed errors"}}},"description":"Additional information that could help to debug and track an error"},"CrmSearchApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"own":{"type":"boolean"},"ownerName":{"type":"string"},"visibleForAll":{"type":"boolean"},"filters":{"$ref":"#/components/schemas/CrmCustomerFiltersApiDto"},"unsupportedFilters":{"type":"array","items":{"type":"string"}}}},"ContractorImportConfigurationApiDto":{"required":["eligibleManagerIds","excludedEmailDomains","fallbackAssignment","portalId"],"type":"object","properties":{"portalId":{"minLength":1,"type":"string"},"eligibleManagerIds":{"type":"array","items":{"type":"integer","format":"int64"}},"excludedEmailDomains":{"type":"array","items":{"type":"string"}},"fallbackAssignment":{"type":"string","enum":["UNASSIGNED"]}}},"TenderSearchRequestApiDto":{"type":"object","properties":{"searchContext":{"type":"string"},"tenderId":{"type":"string"},"uuid":{"type":"string"},"externalId":{"type":"string"},"referenceNumber":{"type":"string"},"authorityReference":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"typeOfDocument":{"type":"string"},"natureOfContract":{"type":"string"},"dataSource":{"type":"string"},"createdFrom":{"type":"string","enum":["PARSER","DATA_ENTRY_USER","PUBLIC_USER"]},"country":{"type":"string"},"publicationDateFrom":{"type":"string"},"publicationDateTo":{"type":"string"},"deadlineDate":{"type":"string"},"indexDate":{"type":"string"},"dateCreated":{"type":"string"},"authorityName":{"type":"string"},"contractorName":{"type":"string"},"authorityOrgDbIds":{"type":"string"},"contractorOrgDbIds":{"type":"string"},"unassignedAuthority":{"type":"boolean"},"unassignedContractor":{"type":"boolean"},"managerId":{"type":"integer","format":"int64"},"page":{"minimum":0,"type":"integer","format":"int32"},"size":{"maximum":100,"minimum":1,"type":"integer","format":"int32"}}},"TenderApiDto":{"type":"object","properties":{"id":{"type":"string"},"uuid":{"type":"string"},"externalId":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"dataSource":{"type":"string"},"typeOfDocument":{"type":"string"},"natureOfContract":{"type":"string"},"cpvCodes":{"type":"string"},"nutsCodes":{"type":"string"},"referenceNumber":{"type":"string"},"authorityReference":{"type":"string"},"publicationDate":{"type":"string"},"deadlineDate":{"type":"string"},"indexDate":{"type":"string"},"dateCreated":{"type":"string"},"authorityName":{"type":"string"},"authorityOrgDbId":{"type":"string"},"contractorName":{"type":"string"},"contractorOrgDbId":{"type":"string"}}},"TenderPageApiDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TenderApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"TenderMassUpdateApiDto":{"required":["operation","uuids","value"],"type":"object","properties":{"operation":{"type":"string","enum":["STATUS","CPV","NUTS","TYPE_OF_DOCUMENT","NATURE_OF_CONTRACT","AUTHORITY","CONTRACTOR"]},"uuids":{"maxItems":100,"minItems":0,"type":"array","items":{"type":"string"}},"value":{"minLength":1,"type":"string"},"replace":{"type":"boolean"},"resend":{"type":"boolean"},"nameFilter":{"type":"string"}}},"TenderMassUpdateResultApiDto":{"type":"object","properties":{"problems":{"type":"array","items":{"type":"string"}}}},"NotificationListQueryDto":{"type":"object","properties":{"page":{"minimum":0,"type":"integer","description":"Zero-based page index.","format":"int32","default":0},"size":{"maximum":100,"minimum":1,"type":"integer","description":"Page size.","format":"int32","default":20},"id":{"type":"integer","description":"Filter: exact numeric id.","format":"int64"},"uuid":{"type":"string","description":"Filter: exact uuid."},"relationCountMin":{"type":"integer","description":"Filter: relationCount at least this (inclusive).","format":"int64"},"relationCountMax":{"type":"integer","description":"Filter: relationCount at most this (inclusive).","format":"int64"},"groupId":{"type":"string","description":"Filter: exact group id."},"country":{"type":"array","description":"Filter: any of these country codes.","items":{"type":"string","description":"Filter: any of these country codes."}},"dataSource":{"type":"array","description":"Filter: any of these dataSources.","items":{"type":"string","description":"Filter: any of these dataSources."}},"referenceNumber":{"type":"string","description":"Filter: referenceNumber contains, ignoring case."},"authorityReference":{"type":"string","description":"Filter: authorityReference contains, ignoring case."},"externalId":{"type":"string","description":"Filter: externalId contains, ignoring case."},"typeOfDocument":{"type":"array","description":"Filter: any of these types of document.","items":{"type":"string","description":"Filter: any of these types of document.","enum":["TENDER","PRIOR_INFORMATION","CORRECTION_CANCELLATION","RESULT","OTHER_INFORMATION","PROCUREMENT_PLAN","CORRECTION","CANCELLATION","PAYMENT_ORDER","CONSULTATION","CONTRACT","BUDGET","DECISION","CONTRACT_MODIFICATION","DAP","QUALIFICATION_SYSTEM","BIDDER_LIST","LOT","LEGAL_DOCUMENT","SALES_RENT","PRE_MARKET_CONSULTATION"]}},"status":{"type":"array","description":"Filter: any of these statuses.","items":{"type":"string","description":"Filter: any of these statuses.","enum":["NEW","CHECK","PUBLISH_LATER","INACTIVE","ACTIVE","EXPIRED","DELETED","DUPLICATE","DUPLICATE_DELETED"]}},"natureOfContract":{"type":"array","description":"Filter: any of these natures of contract.","items":{"type":"string","description":"Filter: any of these natures of contract.","enum":["PUBLIC_WORKS_CONTRACT","SUPPLY_CONTRACT","COMBINED_CONTRACT","SERVICE_CONTRACT","OTHER"]}},"mainBuyerAuthorityName":{"type":"string","description":"Filter: main buyer authority name — every word must appear, the last may be a word start."},"title":{"type":"string","description":"Filter: title — every word must appear, the last may be a word start."},"publicationDateFrom":{"type":"string","description":"Filter: published on or after this day (yyyy-MM-dd).","format":"date"},"publicationDateTo":{"type":"string","description":"Filter: published on or before this day (yyyy-MM-dd).","format":"date"},"lastRelatedDateFrom":{"type":"string","description":"Filter: last related on or after this day (yyyy-MM-dd).","format":"date"},"lastRelatedDateTo":{"type":"string","description":"Filter: last related on or before this day (yyyy-MM-dd).","format":"date"},"sortField":{"type":"string","description":"Sort field."},"sortDir":{"type":"string","description":"Sort direction.","enum":["asc","desc"]}},"description":"Request body for the notification list endpoint."},"NotificationDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"uuid":{"type":"string"},"title":{"type":"string"},"relationCount":{"type":"integer","format":"int64"},"groupId":{"type":"string"},"countries":{"type":"array","items":{"type":"string"}},"dataSource":{"type":"string"},"nutsCodes":{"type":"array","items":{"type":"string"}},"referenceNumber":{"type":"string"},"authorityReference":{"type":"string"},"authorityName":{"type":"string"},"mainBuyerAuthorityOrgDbId":{"type":"integer","format":"int32"},"mainBuyerAuthorityName":{"type":"string"},"contractorName":{"type":"string"},"typeOfDocument":{"type":"string","enum":["TENDER","PRIOR_INFORMATION","CORRECTION_CANCELLATION","RESULT","OTHER_INFORMATION","PROCUREMENT_PLAN","CORRECTION","CANCELLATION","PAYMENT_ORDER","CONSULTATION","CONTRACT","BUDGET","DECISION","CONTRACT_MODIFICATION","DAP","QUALIFICATION_SYSTEM","BIDDER_LIST","LOT","LEGAL_DOCUMENT","SALES_RENT","PRE_MARKET_CONSULTATION"]},"subTypeOfDocument":{"type":"string","enum":["EU_TENDER","COUNTRY_TENDER","PRIVATE_TENDER","SMALL_VALUE_TENDER","REGIONAL_TENDER","INTERNATIONAL_TENDER","DEVELOPMENT_TENDER","ACT_LEGAL_ACT","AUTHENTIC_INTERPRETATION","DECLARATION","STATE_BUDGET","OTHER","COLLECTIVE_AGREEMENT","CRITERIA","NATIONAL_PROGRAMME","PLAN_SCHEME","INSTRUCTION","NOTICE_ANNOUNCEMENT","MANDATORY_INTERPRETATION","DECISION","DECISION_OF_THE_CONSTITUTIONAL_COURT","ORDINANCE","ORDER","PLAN","RULES_OF_PROCEDURE","RULES_REGULATIONS","SUPPLEMENTARY_STATE_BUDGET","RESOLUTION","DECISION_RESOLUTION","ORDER_OF_THE_CONSTITUTIONAL_COURT","GENERAL_ACT_OF_A_PUBLIC_AUTHORITY_HOLDER","STATUTE","STRATEGY","TARIFF_FEE_SCHEDULE","DECREE","DECREE_REGULATION","CONSTITUTION","CONSTITUTIONAL_ACT","FINAL_ACCOUNT_OF_THE_STATE_BUDGET","ACT","UNOFFICIAL_CONSOLIDATED_TEXT","EU_LEGAL_ACT","DIRECTIVE"]},"natureOfContract":{"type":"string","enum":["PUBLIC_WORKS_CONTRACT","SUPPLY_CONTRACT","COMBINED_CONTRACT","SERVICE_CONTRACT","OTHER"]},"categories":{"type":"array","items":{"type":"integer","format":"int32"}},"externalId":{"type":"string"},"status":{"type":"string","enum":["NEW","CHECK","PUBLISH_LATER","INACTIVE","ACTIVE","EXPIRED","DELETED","DUPLICATE","DUPLICATE_DELETED"]},"publicationDate":{"type":"string","format":"date-time"},"lastRelatedDate":{"type":"string","description":"When the last neighbour joined this group, as a UTC instant. Null for solo groups.","format":"date-time"},"lastUpdated":{"type":"string","description":"Apollo's own last-updated timestamp for the tender, as a UTC instant.","format":"date-time"}},"description":"A single notification."},"NotificationsPageDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/NotificationDto"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"}},"description":"A page of notifications."},"RulesetFieldEditDto":{"type":"object","properties":{"referenceNumber":{"type":"string","description":"New tender reference number.","example":"2019/S 024-053041"},"authorityReference":{"type":"string","description":"New contracting-authority reference.","example":"AB-123/2026"},"editedByManagerId":{"type":"integer","description":"Id of the admin making the change; recorded in Apollo's tender history.","format":"int32"}},"description":"Relation-driving field values to set on the tender behind a notification, so it can hash into the same relation group as another tender. Send only the fields being changed; a blank / omitted value leaves that field untouched."},"RulesetFieldEditResultDto":{"type":"object","properties":{"tenderId":{"type":"integer","description":"Apollo's numeric id of the updated tender, when reported.","format":"int64"},"updatedFields":{"type":"array","description":"Names of the fields that were changed.","items":{"type":"string","description":"Names of the fields that were changed."}},"pending":{"type":"boolean","description":"Always true - re-indexing and re-grouping happen asynchronously after this call."}},"description":"Outcome of a ruleset-field edit. Apollo persisted the change; the notification's re-grouping is asynchronous, so pending is always true - the relation will not appear immediately."},"FilterValueCountDto":{"type":"object","properties":{"value":{"type":"string","description":"The value, as the matching list filter accepts it. Enum values are their constant names."},"count":{"type":"integer","description":"Notifications carrying this value under the list filters, not counting the filter on this value's own field. A notification with several countries counts toward each.","format":"int64"}},"description":"A filter value and how many notifications carry it."},"NotificationFilterValuesDto":{"type":"object","properties":{"country":{"type":"array","description":"Country codes present in the index.","items":{"$ref":"#/components/schemas/FilterValueCountDto"}},"dataSource":{"type":"array","description":"Data sources present in the index.","items":{"$ref":"#/components/schemas/FilterValueCountDto"}},"natureOfContract":{"type":"array","description":"Natures of contract present in the index.","items":{"$ref":"#/components/schemas/FilterValueCountDto"}},"typeOfDocument":{"type":"array","description":"Types of document present in the index.","items":{"$ref":"#/components/schemas/FilterValueCountDto"}},"status":{"type":"array","description":"The fixed tender statuses.","items":{"$ref":"#/components/schemas/FilterValueCountDto"}}},"description":"Option lists for the notification list's dropdown filters, each in value order."},"ManagerLoginRequest":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"portalId":{"type":"string"}}},"CrmTodoDoneApiDto":{"required":["customerId","type"],"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["TASK","CALL","TASK_ATTACHMENT_REQUEST"]}}},"CrmTodoQueryApiDto":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/CrmTodoFiltersApiDto"},"subject":{"maxLength":255,"minLength":0,"type":"string"},"page":{"minimum":0,"type":"integer","format":"int32"},"size":{"maximum":100,"minimum":1,"type":"integer","format":"int32"},"sort":{"pattern":"dueDate|priority|dateCreated","type":"string"},"order":{"pattern":"asc|desc","type":"string"}}},"CrmTodoApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["TASK","CALL","TASK_ATTACHMENT_REQUEST"]},"status":{"type":"string"},"subject":{"type":"string"},"priority":{"type":"string"},"dueDate":{"type":"string","format":"date-time"},"dateCreated":{"type":"string","format":"date-time"},"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"open":{"type":"boolean"},"overdue":{"type":"boolean"},"tenderId":{"type":"integer","format":"int64"},"durationMinutes":{"type":"integer","format":"int32"},"descriptionPreview":{"type":"string"}}},"CrmTodoPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmTodoApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalIsLowerBound":{"type":"boolean"}}},"CrmTodoSavedSearchCreateApiDto":{"required":["filters","module","name"],"type":"object","properties":{"module":{"type":"string","enum":["TODOS","TASKS","CALLS","ATTACHMENT_REQUESTS"]},"name":{"maxLength":255,"minLength":0,"type":"string"},"visibleForAll":{"type":"boolean"},"filters":{"$ref":"#/components/schemas/CrmTodoFiltersApiDto"}}},"CrmTodoReassignApiDto":{"required":["managerId","todos"],"type":"object","properties":{"todos":{"maxItems":100,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/CrmTodoRefApiDto"}},"managerId":{"type":"integer","format":"int64"}}},"CrmTodoRefApiDto":{"required":["activityId","customerId"],"type":"object","properties":{"activityId":{"type":"integer","format":"int64"},"customerId":{"type":"integer","format":"int64"}}},"CrmTodoBulkResultApiDto":{"type":"object","properties":{"succeeded":{"type":"array","items":{"type":"integer","format":"int64"}},"failed":{"type":"array","items":{"type":"integer","format":"int64"}}}},"CrmTodoDeleteApiDto":{"required":["todos"],"type":"object","properties":{"todos":{"maxItems":100,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/CrmTodoRefApiDto"}}}},"CrmTodoCalendarQueryApiDto":{"required":["from","to"],"type":"object","properties":{"filters":{"$ref":"#/components/schemas/CrmTodoFiltersApiDto"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}}},"CrmSentEmailApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"emailId":{"type":"integer","format":"int64"},"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"recipient":{"type":"string"},"sentAt":{"type":"string","format":"date-time"},"subject":{"type":"string"},"senderName":{"type":"string"},"senderEmail":{"type":"string"}}},"CrmSentEmailFilterApiDto":{"type":"object","properties":{"subject":{"maxLength":255,"minLength":0,"type":"string"},"customerId":{"type":"integer","format":"int64"},"senders":{"maxItems":100,"minItems":0,"type":"array","items":{"type":"string"}},"customerName":{"maxLength":255,"minLength":0,"type":"string"},"company":{"maxLength":255,"minLength":0,"type":"string"},"recipient":{"maxLength":255,"minLength":0,"type":"string"},"sentFrom":{"type":"string","format":"date"},"sentTo":{"type":"string","format":"date"}}},"CrmSentEmailQueryApiDto":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/CrmSentEmailFilterApiDto"},"page":{"minimum":0,"type":"integer","format":"int32"},"size":{"maximum":100,"minimum":1,"type":"integer","format":"int32"},"order":{"pattern":"asc|desc","type":"string"}}},"CrmSentEmailPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmSentEmailApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalIsLowerBound":{"type":"boolean"}}},"CrmSentEmailExportQueryApiDto":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/CrmSentEmailFilterApiDto"},"order":{"pattern":"asc|desc","type":"string"}}},"CrmEmailTemplateCreateApiDto":{"required":["languageId","name","subject"],"type":"object","properties":{"name":{"maxLength":40,"minLength":0,"type":"string"},"languageId":{"maxLength":8,"minLength":0,"type":"string"},"subject":{"maxLength":255,"minLength":0,"type":"string"},"content":{"maxLength":1000000,"minLength":0,"type":"string"},"blockContent":{"maxLength":1000000,"minLength":0,"type":"string"},"formattingId":{"type":"integer","format":"int64"},"formattingVersion":{"type":"integer","format":"int64"}}},"CrmAssignProductApiDto":{"required":["customerProductType","productId","startDate"],"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"customerProductType":{"pattern":"PAID|TEST","type":"string"},"startDate":{"type":"string","format":"date"},"pricePerPeriodId":{"type":"integer","format":"int64"},"bankAccount":{"$ref":"#/components/schemas/CrmBankAccountApiDto"},"automaticallyRenew":{"type":"boolean"}}},"CrmCustomerProductApiDto":{"type":"object","properties":{"customerProductId":{"type":"integer","format":"int64"},"productId":{"type":"integer","format":"int64"},"productName":{"type":"string"},"productType":{"type":"string"},"status":{"type":"string"},"addOn":{"type":"boolean"}}},"CrmFeatureTogglesApiDto":{"type":"object","properties":{"enableTenderXlsExport":{"type":"string"},"allowCspUpdate":{"type":"boolean"},"isSectorDetailPageEnabled":{"type":"string"},"isAuthoritiesContractorsDefaultSearchEnabled":{"type":"string"},"isRegionDetailPageEnabled":{"type":"string"},"enableContractEndDate":{"type":"string"},"enableAdvancedSearch":{"type":"string"},"enableTenderAnalyzer":{"type":"string"},"enableTendersSearch":{"type":"string"}}},"CrmFeatureTogglesEffectiveApiDto":{"type":"object","properties":{"tenderXlsExport":{"type":"boolean"},"cspUpdate":{"type":"boolean"},"sectorDetailPage":{"type":"boolean"},"authoritiesContractorsDefaultSearch":{"type":"boolean"},"regionDetailPage":{"type":"boolean"},"contractEndDate":{"type":"boolean"},"advancedSearch":{"type":"boolean"},"tenderAnalyzer":{"type":"boolean"},"tendersSearch":{"type":"boolean"}}},"CrmMetaInformationApiDto":{"type":"object","properties":{"languageId":{"type":"string"},"doubleOptInId":{"type":"string"},"website":{"type":"string"},"landingPageId":{"type":"string"},"leadSourceUrl":{"type":"string"},"sourceApplication":{"type":"string"},"leadSource":{"type":"string"},"sourceOfInformation":{"type":"string"},"termsAndConditionsAccepted":{"type":"boolean"},"termsAndConditionsAcceptedDate":{"type":"string","format":"date-time"},"passwordResetLink":{"type":"string"},"peopleInvited":{"type":"integer","format":"int64"},"peopleInvitedAndRegistered":{"type":"integer","format":"int64"},"ipAddressRegistration":{"type":"string"},"dateDoiSent":{"type":"string","format":"date-time"},"dateDoiUsed":{"type":"string","format":"date-time"},"nextPlannedCall":{"type":"string","format":"date-time"},"lastHeldCall":{"type":"string","format":"date-time"},"maxNumberTenderDailyExport":{"type":"integer","format":"int32"},"latestPromoLink":{"type":"string"},"offerPaymentLink":{"type":"string"},"limitedResultMailPaymentLink":{"type":"string"},"resultEmailRecipients":{"type":"array","items":{"type":"string"}},"featureToggles":{"$ref":"#/components/schemas/CrmFeatureTogglesApiDto"},"effectiveFeatureToggles":{"$ref":"#/components/schemas/CrmFeatureTogglesEffectiveApiDto"},"enableSearchResultRecipientsEdit":{"type":"string"}}},"CrmOrderFormSendApiDto":{"type":"object","properties":{"documentType":{"type":"string"},"recipients":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"body":{"type":"string"}}},"CrmImpersonationApiDto":{"type":"object","properties":{"url":{"type":"string"},"userType":{"type":"string"}}},"CrmNoteAttachmentApiDto":{"type":"object","properties":{"fileName":{"type":"string"},"contentBase64":{"type":"string"}}},"CrmNoteCreateApiDto":{"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/CrmNoteAttachmentApiDto"}},"dueDate":{"type":"string","format":"date-time"},"managerId":{"type":"integer","format":"int64"}}},"CrmHistoryItemApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"type":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"},"description":{"type":"string"},"dueDate":{"type":"string","format":"date-time"},"dateCreated":{"type":"string","format":"date-time"},"dateUpdated":{"type":"string","format":"date-time"},"managerId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"attachmentCount":{"type":"integer","format":"int32"},"inviteSent":{"type":"boolean"},"priority":{"type":"string"},"service":{"type":"string"},"direction":{"type":"string"},"durationMinutes":{"type":"integer","format":"int32"},"customerContactId":{"type":"integer","format":"int64"},"customerContactName":{"type":"string"},"relatedEmail":{"type":"string"},"inviteEmail":{"type":"string"}}},"CrmEmailArchiveApiDto":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"sender":{"maxLength":255,"minLength":0,"type":"string"},"recipients":{"type":"array","items":{"maxLength":255,"minLength":0,"type":"string","format":"email"}},"cc":{"type":"array","items":{"maxLength":255,"minLength":0,"type":"string","format":"email"}},"managerId":{"type":"integer","format":"int64"},"attachments":{"maxItems":10,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAttachmentApiDto"}}}},"CrmEmailAttachmentApiDto":{"required":["contentBase64","fileName"],"type":"object","properties":{"fileName":{"maxLength":255,"minLength":0,"type":"string"},"contentType":{"maxLength":255,"minLength":0,"type":"string"},"contentBase64":{"maxLength":16777216,"minLength":0,"type":"string"}}},"CrmEmailSendApiDto":{"required":["body","recipients","sender","subject"],"type":"object","properties":{"recipients":{"maxItems":50,"minItems":0,"type":"array","items":{"maxLength":255,"minLength":0,"type":"string","format":"email"}},"cc":{"maxItems":50,"minItems":0,"type":"array","items":{"maxLength":255,"minLength":0,"type":"string","format":"email"}},"sender":{"maxLength":255,"minLength":0,"type":"string","format":"email"},"subject":{"maxLength":500,"minLength":0,"type":"string"},"body":{"maxLength":1000000,"minLength":0,"type":"string"},"html":{"type":"boolean"},"templateId":{"type":"integer","format":"int64"},"attachments":{"maxItems":10,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/CrmEmailAttachmentApiDto"}},"attachmentPayloadWithinLimit":{"type":"boolean"}}},"CrmEmailHistoryEntryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"date":{"type":"string","format":"date-time"},"subject":{"type":"string"},"sender":{"type":"string"},"recipient":{"type":"string"},"direction":{"type":"string"},"status":{"type":"string"}}},"CrmEmailPreviewApiDto":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"},"html":{"type":"boolean"}}},"CrmDoiResultApiDto":{"type":"object","properties":{"sent":{"type":"boolean"},"dateDoiSent":{"type":"string","format":"date-time"},"doubleOptInLink":{"type":"string"},"message":{"type":"string"}}},"CrmDocumentUploadApiDto":{"required":["contentBase64","filename"],"type":"object","properties":{"filename":{"maxLength":255,"minLength":0,"type":"string"},"contentBase64":{"type":"string"},"description":{"maxLength":65536,"minLength":0,"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"category":{"type":"string"},"subcategory":{"type":"string"},"availableToCustomer":{"type":"boolean"}}},"CrmDocumentItemApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"filename":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"category":{"type":"string"},"subcategory":{"type":"string"},"availableToCustomer":{"type":"boolean"},"dateCreated":{"type":"string","format":"date-time"},"managerId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"archivedToS3":{"type":"boolean"}}},"CrmCallScriptLogApiDto":{"required":["evidenceBasis","hook","language","origin","outcome","version"],"type":"object","properties":{"outcome":{"type":"string","enum":["NO_ANSWER","WRONG_CONTACT","CALL_BACK","NOT_INTERESTED","WANTS_MATERIAL","PRESENTATION_BOOKED","TRIAL_STARTED","DO_NOT_CALL"]},"note":{"maxLength":1000,"minLength":0,"type":"string"},"followUpAt":{"type":"string","description":"Call back / Presentation booked only: the follow-up's local date and time as entered","format":"date-time"},"version":{"maxLength":64,"minLength":0,"type":"string"},"language":{"maxLength":8,"minLength":0,"type":"string"},"origin":{"type":"string","enum":["SELF_REGISTRATION","CONTRACTOR_IMPORT","EXTERNAL"]},"evidenceBasis":{"type":"string","enum":["AWARD_HISTORY","THIN_HISTORY_WITH_ESTIMATE","THIN_HISTORY","ESTIMATE_ONLY","NO_USABLE_EVIDENCE","HISTORY_UNAVAILABLE"]},"hook":{"type":"string","enum":["NEAR_DEADLINE_TENDER","OPPORTUNITY_COUNT","LEADING_BUYER","ACTIVITY_QUESTION","GENERAL_DISCOVERY","NONE"]}}},"CrmCallScriptLogResultApiDto":{"type":"object","properties":{"callId":{"type":"integer","format":"int64"},"taskId":{"type":"integer","format":"int64"},"doNotCallSet":{"type":"boolean"}}},"CrmTaskCreateApiDto":{"required":["dueDate","managerId","subject"],"type":"object","properties":{"subject":{"minLength":1,"type":"string"},"dueDate":{"type":"string","format":"date-time"},"managerId":{"type":"integer","format":"int64"},"description":{"type":"string"},"priority":{"type":"string"},"service":{"type":"string"},"reminderMinutes":{"type":"integer","format":"int32"}}},"CrmActivityApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"type":{"type":"string"},"status":{"type":"string"},"subject":{"type":"string"},"description":{"type":"string"},"dueDate":{"type":"string","format":"date-time"},"dateCreated":{"type":"string","format":"date-time"},"dateUpdated":{"type":"string","format":"date-time"},"managerId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"inviteSent":{"type":"boolean"},"callType":{"type":"string"},"direction":{"type":"string"},"durationMinutes":{"type":"integer","format":"int32"},"customerContactId":{"type":"integer","format":"int64"},"customerContactName":{"type":"string"},"priority":{"type":"string"},"service":{"type":"string"},"inviteEmail":{"type":"string"},"reminderMinutes":{"type":"integer","format":"int32"}}},"CrmCallCreateApiDto":{"required":["dueDate","managerId","subject"],"type":"object","properties":{"subject":{"minLength":1,"type":"string"},"dueDate":{"type":"string","format":"date-time"},"managerId":{"type":"integer","format":"int64"},"description":{"type":"string"},"callType":{"type":"string"},"direction":{"type":"string"},"durationMinutes":{"type":"integer","format":"int32"},"customerContactId":{"type":"integer","format":"int64"},"sendCalendarInviteEmail":{"type":"string"},"priority":{"type":"string"},"reminderMinutes":{"type":"integer","format":"int32"},"status":{"type":"string"}}},"CrmSearchCreateApiDto":{"required":["filters","name"],"type":"object","properties":{"name":{"maxLength":255,"minLength":0,"type":"string"},"visibleForAll":{"type":"boolean"},"filters":{"$ref":"#/components/schemas/CrmCustomerFiltersApiDto"}}},"ImportPreviewRequestApiDto":{"required":["contractorIds"],"type":"object","properties":{"contractorIds":{"minItems":1,"type":"array","items":{"type":"integer","format":"int64"}}}},"ContractorContactApiDto":{"required":["active","addAsRecipient","mainContact"],"type":"object","properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"mainContact":{"type":"boolean"},"active":{"type":"boolean"},"addAsRecipient":{"type":"boolean"}}},"DuplicateMatchApiDto":{"required":["existingCustomerId","existingCustomerName","type"],"type":"object","properties":{"type":{"type":"string","enum":["VAT_UID","REGISTRATION_NUMBER","TAX_NUMBER","EXACT_EMAIL","EMAIL_DOMAIN","COMPANY_NAME"]},"existingCustomerId":{"type":"integer","format":"int64"},"existingCustomerName":{"type":"string"},"existingCustomerEmail":{"type":"string"},"matchedValue":{"type":"string"},"score":{"type":"number","format":"double"}}},"ImportPreviewApiDto":{"required":["cleanCount","conflictCount","expiresAt","hardBlockedCount","importId","items","portalId"],"type":"object","properties":{"importId":{"type":"string","format":"uuid"},"portalId":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ImportPreviewItemApiDto"}},"cleanCount":{"type":"integer","format":"int32"},"conflictCount":{"type":"integer","format":"int32"},"hardBlockedCount":{"type":"integer","format":"int32"}}},"ImportPreviewItemApiDto":{"required":["candidate","classification","duplicateMatches"],"type":"object","properties":{"candidate":{"$ref":"#/components/schemas/LeadCandidateApiDto"},"classification":{"type":"string","enum":["CLEAN","CONFLICT","HARD_BLOCKED"]},"duplicateMatches":{"type":"array","items":{"$ref":"#/components/schemas/DuplicateMatchApiDto"}}}},"LeadCandidateApiDto":{"required":["companyName","contacts","creationSource","orgDbId","service","status"],"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"companyName":{"type":"string"},"vatUid":{"type":"string"},"registrationNumber":{"type":"string"},"taxNumber":{"type":"string"},"street":{"type":"string"},"city":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"url":{"type":"string"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContractorContactApiDto"}},"status":{"type":"string"},"service":{"type":"string"},"creationSource":{"type":"string"}}},"CompleteImportRequestApiDto":{"required":["importId"],"type":"object","properties":{"importId":{"type":"string","format":"uuid"},"decisions":{"type":"array","items":{"$ref":"#/components/schemas/ConflictDecisionApiDto"}}}},"ConflictDecisionApiDto":{"required":["action","orgDbId"],"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"action":{"type":"string","enum":["CREATE_NEW","UPDATE_EXISTING","SKIP"]},"existingCustomerId":{"type":"integer","format":"int64"},"replacementEmail":{"type":"string","format":"email"}}},"ImportOutcomeApiDto":{"required":["action","companyName","orgDbId","result"],"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"companyName":{"type":"string"},"action":{"type":"string","enum":["CREATE_NEW","UPDATE_EXISTING","SKIP"]},"result":{"type":"string","enum":["CREATED","UPDATED","SKIPPED","FAILED"]},"customerId":{"type":"integer","format":"int64"},"assignedManagerId":{"type":"integer","format":"int64"},"message":{"type":"string"},"failureReason":{"type":"string","enum":["DUPLICATE_EMAIL_IN_SELECTION"]}}},"ImportSummaryApiDto":{"required":["completedAt","conflictsResolved","created","failed","importId","outcomes","processed","skipped","updated"],"type":"object","properties":{"importId":{"type":"string","format":"uuid"},"completedAt":{"type":"string","format":"date-time"},"processed":{"type":"integer","format":"int32"},"created":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int32"},"skipped":{"type":"integer","format":"int32"},"failed":{"type":"integer","format":"int32"},"conflictsResolved":{"type":"integer","format":"int32"},"outcomes":{"type":"array","items":{"$ref":"#/components/schemas/ImportOutcomeApiDto"}}}},"CrmQualificationPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"motivationGoal":{"type":"string"},"tenderExperience":{"type":"boolean"},"priceSensitivity":{"type":"boolean"},"noBuyingReason":{"type":"string"},"noBuyingReasonText":{"maxLength":1000,"minLength":0,"type":"string"},"cancellationReason":{"type":"string"},"cancellationReasonText":{"maxLength":1000,"minLength":0,"type":"string"},"competitorRenewalDate":{"type":"string","format":"date"},"competitorLastNotificationDate":{"type":"string","format":"date"},"decisionMakerUser":{"type":"string"},"noAutomaticEmail":{"type":"boolean"},"wordOfMouth":{"type":"boolean"},"description":{"maxLength":4000,"minLength":0,"type":"string"},"purchasingFactors":{"type":"array","items":{"type":"string"}},"companySize":{"type":"string"},"salesProbability":{"type":"string"},"businessType":{"type":"string"}}},"CrmQualificationApiDto":{"type":"object","properties":{"motivationGoal":{"type":"string"},"tenderExperience":{"type":"boolean"},"priceSensitivity":{"type":"boolean"},"noBuyingReason":{"type":"string"},"noBuyingReasonText":{"type":"string"},"cancellationReason":{"type":"string"},"cancellationReasonText":{"type":"string"},"competitorRenewalDate":{"type":"string","format":"date"},"competitorLastNotificationDate":{"type":"string","format":"date"},"decisionMakerUser":{"type":"string"},"noAutomaticEmail":{"type":"boolean"},"wordOfMouth":{"type":"boolean"},"description":{"type":"string"},"purchasingFactors":{"type":"array","items":{"type":"string"}},"companySize":{"type":"string"},"salesProbability":{"type":"string"},"businessType":{"type":"string"}}},"CrmAddressPatchApiDto":{"type":"object","properties":{"name":{"maxLength":255,"minLength":0,"type":"string"},"contactName":{"maxLength":255,"minLength":0,"type":"string"},"street":{"maxLength":255,"minLength":0,"type":"string"},"zip":{"maxLength":32,"minLength":0,"type":"string"},"city":{"maxLength":255,"minLength":0,"type":"string"},"state":{"maxLength":255,"minLength":0,"type":"string"},"countryId":{"maxLength":8,"minLength":0,"type":"string"},"phone":{"maxLength":255,"minLength":0,"type":"string"},"mobile":{"maxLength":255,"minLength":0,"type":"string"},"fax":{"maxLength":255,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":0,"type":"string","format":"email"},"url":{"maxLength":255,"minLength":0,"type":"string"}}},"CrmOverviewPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"academicTitle":{"maxLength":30,"minLength":0,"type":"string"},"firstName":{"maxLength":255,"minLength":0,"type":"string"},"lastName":{"maxLength":255,"minLength":0,"type":"string"},"email":{"maxLength":255,"minLength":0,"type":"string","format":"email"},"doNotCall":{"type":"boolean"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"mobileNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberInputApiDto"}},"fax":{"maxLength":255,"minLength":0,"type":"string"},"branch":{"maxLength":255,"minLength":0,"type":"string"},"managerId":{"type":"integer","format":"int64"},"primaryAddress":{"$ref":"#/components/schemas/CrmAddressPatchApiDto"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressPatchApiDto"},"regionIds":{"type":"array","items":{"type":"integer","format":"int64"}},"tenderExperience":{"type":"boolean"},"enableUserLicense":{"type":"boolean"},"enableShowAllKey":{"type":"boolean"},"newsAndOffers":{"type":"boolean"},"unsubscribedToLimitedSrm":{"type":"boolean"},"enableOnboardingEmails":{"type":"boolean"},"enableSearchResultRecipientsEdit":{"type":"string"}}},"CrmAddressApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"contactName":{"type":"string"},"street":{"type":"string"},"zip":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"countryId":{"type":"string"},"countryName":{"type":"string"},"phone":{"type":"string"},"mobile":{"type":"string"},"fax":{"type":"string"},"email":{"type":"string"},"url":{"type":"string"}}},"CrmOverviewApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"oldId":{"type":"integer","format":"int64"},"salutation":{"type":"string"},"academicTitle":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"doNotCall":{"type":"boolean"},"phoneNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberApiDto"}},"mobileNumbers":{"type":"array","items":{"$ref":"#/components/schemas/CrmPhoneNumberApiDto"}},"fax":{"type":"string"},"companyName":{"type":"string"},"companyId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"branch":{"type":"string"},"primaryAddress":{"$ref":"#/components/schemas/CrmAddressApiDto"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressApiDto"},"regions":{"type":"array","items":{"$ref":"#/components/schemas/CrmRegionApiDto"}},"maxNumberOfRegions":{"type":"integer","format":"int32"},"tenderExperience":{"type":"boolean"},"service":{"type":"string"},"enableUserLicense":{"type":"boolean"},"enableShowAllKey":{"type":"boolean"},"newsAndOffers":{"type":"boolean"},"unsubscribedToLimitedSrm":{"type":"boolean"},"enableOnboardingEmails":{"type":"boolean"},"enableSearchResultRecipientsEdit":{"type":"string"},"customerScoring":{"type":"integer","format":"int32"},"consentLogCount":{"type":"integer","format":"int64"}}},"CrmRegionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"selected":{"type":"boolean"},"available":{"type":"boolean"}}},"CrmMetaInformationPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"languageId":{"maxLength":8,"minLength":0,"type":"string"},"website":{"maxLength":512,"minLength":0,"type":"string"},"landingPageId":{"maxLength":255,"minLength":0,"type":"string"},"leadSourceUrl":{"maxLength":1024,"minLength":0,"type":"string"},"sourceApplication":{"maxLength":255,"minLength":0,"type":"string"},"leadSource":{"maxLength":255,"minLength":0,"type":"string"},"sourceOfInformation":{"maxLength":255,"minLength":0,"type":"string"},"nextPlannedCall":{"type":"string","format":"date-time"},"lastHeldCall":{"type":"string","format":"date-time"},"maxNumberTenderDailyExport":{"minimum":0,"type":"integer","format":"int32"},"latestPromoLink":{"maxLength":1024,"minLength":0,"type":"string"},"enableTenderXlsExport":{"type":"string"},"allowCspUpdate":{"type":"boolean"},"isSectorDetailPageEnabled":{"type":"string"},"isAuthoritiesContractorsDefaultSearchEnabled":{"type":"string"},"isRegionDetailPageEnabled":{"type":"string"},"enableContractEndDate":{"type":"string"},"enableAdvancedSearch":{"type":"string"},"enableTenderAnalyzer":{"type":"string"},"enableTendersSearch":{"type":"string"},"enableSearchResultRecipientsEdit":{"type":"string"}}},"CrmDocumentPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"description":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"category":{"type":"string"},"subcategory":{"type":"string"},"availableToCustomer":{"type":"boolean"}}},"CrmProductContractPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"netPrice":{"type":"number"},"netPriceRenewal":{"type":"number"},"paymentTerms":{"type":"string"},"instalmentPlanType":{"type":"string"},"discountType":{"type":"string"},"discountAmount":{"type":"integer","format":"int32"},"vat":{"type":"integer","format":"int32"},"automaticallyRenew":{"type":"boolean"},"periodOfNotice":{"type":"string"},"cancellationReason":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date"},"customerProductType":{"type":"string"},"invoiceType":{"type":"string"},"nonStandardInvoicing":{"type":"boolean"},"purchaseOrder":{"maxLength":255,"minLength":0,"type":"string"},"upgrade":{"type":"boolean"},"paymentOptionId":{"type":"integer","format":"int64"},"bankAccount":{"$ref":"#/components/schemas/CrmBankAccountApiDto"},"productManagerId":{"type":"integer","format":"int64"},"referringManagerId":{"type":"integer","format":"int64"},"promoText":{"type":"string"},"description":{"type":"string"},"orderType":{"type":"string"},"orderSigningDate":{"type":"string","format":"date-time"},"cancellationRequest":{"type":"boolean"},"regionSearchProfileIds":{"type":"array","items":{"type":"integer","format":"int64"}},"renewalPeriodId":{"type":"integer","format":"int64"}}},"CrmProductItemApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"productName":{"type":"string"},"status":{"type":"string"},"type":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date"},"netPrice":{"type":"number"},"netPriceRenewal":{"type":"number"},"paymentTerms":{"type":"string"},"instalmentPlanType":{"type":"string"},"discountType":{"type":"string"},"discountAmount":{"type":"integer","format":"int32"},"vat":{"type":"integer","format":"int32"},"automaticallyRenew":{"type":"boolean"},"periodOfNotice":{"type":"string"},"cancellationReason":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"productId":{"type":"integer","format":"int64"},"productType":{"type":"string"},"addOn":{"type":"boolean"},"currency":{"type":"string"},"subtotal":{"type":"number"},"tax":{"type":"number"},"grandTotal":{"type":"number"},"invoiceType":{"type":"string"},"nonStandardInvoicing":{"type":"boolean"},"purchaseOrder":{"type":"string"},"regionSearchProfileIds":{"type":"array","items":{"type":"integer","format":"int64"}},"regions":{"type":"array","items":{"type":"string"}},"durationInMonths":{"type":"integer","format":"int32"},"renewalPeriodId":{"type":"integer","format":"int64"},"renewalPeriodMonths":{"type":"integer","format":"int32"},"upgrade":{"type":"boolean"},"termsAccepted":{"type":"boolean"},"paymentOptionId":{"type":"integer","format":"int64"},"paymentOptionName":{"type":"string"},"paymentOptionType":{"type":"string"},"bankAccount":{"$ref":"#/components/schemas/CrmBankAccountApiDto"},"referringManagerId":{"type":"integer","format":"int64"},"referringManagerName":{"type":"string"},"promoText":{"type":"string"},"description":{"type":"string"},"orderType":{"type":"string"},"orderSigningDate":{"type":"string","format":"date-time"},"cancellationRequest":{"type":"boolean"},"parentId":{"type":"integer","format":"int64"},"dateCreated":{"type":"string","format":"date-time"},"lastUpdated":{"type":"string","format":"date-time"}}},"CrmCompanyPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"name":{"maxLength":255,"minLength":0,"type":"string"},"billingCompanyName":{"maxLength":255,"minLength":0,"type":"string"},"vatNumber":{"maxLength":64,"minLength":0,"type":"string"},"taxNumber":{"maxLength":64,"minLength":0,"type":"string"},"taxAuthority":{"maxLength":255,"minLength":0,"type":"string"},"profession":{"maxLength":255,"minLength":0,"type":"string"},"companyNumber":{"maxLength":64,"minLength":0,"type":"string"},"countryId":{"maxLength":8,"minLength":0,"type":"string"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressPatchApiDto"}}},"CrmCompanyApiDto":{"type":"object","properties":{"companyId":{"type":"integer","format":"int64"},"name":{"type":"string"},"billingCompanyName":{"type":"string"},"vatNumber":{"type":"string"},"taxNumber":{"type":"string"},"taxAuthority":{"type":"string"},"profession":{"type":"string"},"companyNumber":{"type":"string"},"countryId":{"type":"string"},"billingAddress":{"$ref":"#/components/schemas/CrmAddressApiDto"}}},"CrmActivityPatchApiDto":{"type":"object","properties":{"changedFields":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"dueDate":{"type":"string","format":"date-time"},"managerId":{"type":"integer","format":"int64"},"status":{"type":"string"},"description":{"type":"string"},"callType":{"type":"string"},"direction":{"type":"string"},"durationMinutes":{"type":"integer","format":"int32"},"customerContactId":{"type":"integer","format":"int64"},"priority":{"type":"string"},"service":{"type":"string"},"inviteSent":{"type":"boolean"},"inviteEmail":{"type":"string"},"reminderMinutes":{"type":"integer","format":"int32"}}},"TenderManagementOptionsApiDto":{"type":"object","properties":{"searchContext":{"type":"string"},"statuses":{"type":"array","items":{"type":"string"}},"typesOfDocument":{"type":"array","items":{"type":"string"}},"naturesOfContract":{"type":"array","items":{"type":"string"}}}},"AdminPortalContextApiDto":{"type":"object","properties":{"portalId":{"type":"string"},"portalName":{"type":"string"},"adminUrl":{"type":"string"},"defaultLanguageId":{"type":"string"},"defaultCountryId":{"type":"string"}}},"OrgDbEntityApiDto":{"type":"object","properties":{"id":{"type":"string"},"registrationNumber":{"type":"string"},"name":{"type":"string"},"vatUid":{"type":"string"},"city":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"url":{"type":"string"},"deleted":{"type":"boolean"}}},"OrgDbEntityPageApiDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrgDbEntityApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"NotificationDetailsDto":{"type":"object","properties":{"notification":{"$ref":"#/components/schemas/NotificationDto"}},"description":"A single notification. Its relations are paged via the relations endpoint."},"SimilarNotificationDto":{"type":"object","properties":{"notification":{"$ref":"#/components/schemas/NotificationDto"},"score":{"type":"number","description":"Fuzzy-match score, 0.0-1.0. Absolute and comparable across requests — above ~0.75 indicates a strong match.","format":"double","example":0.82}},"description":"A ranked similar-notification suggestion candidate."},"CurrentManagerResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"uuid":{"type":"string"},"roles":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}},"LegacyAdminApiDto":{"type":"object","properties":{"url":{"type":"string"}}},"DataSourceGroupDto":{"type":"object","properties":{"id":{"type":"string","description":"Stable group id, e.g. tic-63."},"country":{"type":"string","description":"Realisation country (lowercase ISO code) the group applies to."},"dataSources":{"type":"array","description":"The grouped dataSources, spelled as indexed in Solr.","items":{"type":"string","description":"The grouped dataSources, spelled as indexed in Solr."}}},"description":"A group of dataSources whose notifications are related and suggested across sources within one realisation country."},"CrmTemplateFormattingUsageApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"version":{"type":"integer","format":"int64"},"portalId":{"type":"string"},"name":{"type":"string"},"languageId":{"type":"string"},"subject":{"type":"string"},"content":{"type":"string"},"blockContent":{"type":"string"},"blockContentStale":{"type":"boolean"}}},"CrmManagerOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"username":{"type":"string"},"active":{"type":"boolean"}}},"CrmReferenceDataApiDto":{"type":"object","properties":{"enums":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}}},"languages":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"countries":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"salutations":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"managers":{"type":"array","items":{"$ref":"#/components/schemas/CrmManagerOptionApiDto"}},"phoneLabels":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}}}},"CrmEmailSenderApiDto":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":"string"}}},"CrmEmailTemplateSummaryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"languageId":{"type":"string"},"subject":{"type":"string"},"builder":{"type":"boolean"},"lastUpdated":{"type":"string","format":"date-time"},"lastEditedBy":{"type":"string"}}},"CrmEmailTemplateVersionApiDto":{"type":"object","properties":{"counter":{"type":"integer","format":"int32"},"subject":{"type":"string"},"content":{"type":"string"},"builder":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"notes":{"type":"string"}}},"CrmSubtemplateApiDto":{"type":"object","properties":{"name":{"type":"string"},"content":{"type":"string"}}},"CrmPlaceholderApiDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"CrmPlaceholderGroupApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"placeholders":{"type":"array","items":{"$ref":"#/components/schemas/CrmPlaceholderApiDto"}}}},"CrmCustomerListPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmCustomerSearchResultApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CrmCustomerSearchResultApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"oldId":{"type":"integer","format":"int64"},"displayName":{"type":"string"},"email":{"type":"string"},"companyName":{"type":"string"},"status":{"type":"string"},"managerName":{"type":"string"},"matchedOn":{"type":"string"}}},"CrmSearchProfileApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"product":{"type":"string"},"customerProductId":{"type":"integer","format":"int64"},"searchContext":{"type":"string"},"country":{"type":"string"},"emailRecipients":{"type":"array","items":{"type":"string"}},"profileStatus":{"type":"string"},"deleted":{"type":"boolean"},"numberOfTenders":{"type":"integer","format":"int32"}}},"CrmSearchProfilesApiDto":{"type":"object","properties":{"profiles":{"type":"array","items":{"$ref":"#/components/schemas/CrmSearchProfileApiDto"}},"activeProfiles":{"type":"integer","format":"int32"},"maxProfiles":{"type":"integer","format":"int32"},"canAddProfile":{"type":"boolean"}}},"CrmSearchProfileDetailApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"searchContext":{"type":"string"},"filters":{"$ref":"#/components/schemas/CrmSearchProfileFiltersApiDto"},"readOnly":{"type":"boolean"}}},"CrmFilterDefinitionApiDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"searchFieldType":{"type":"string"},"possibleValues":{"type":"array","items":{"$ref":"#/components/schemas/CrmPossibleValueApiDto"}},"filterDisplayPosition":{"type":"string"}}},"CrmPossibleValueApiDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"byDefaultSelected":{"type":"boolean"},"doesFilter":{"type":"boolean"},"savable":{"type":"boolean"},"children":{"type":"array","items":{"$ref":"#/components/schemas/CrmPossibleValueApiDto"}}}},"CrmPricePerPeriodOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"durationInMonths":{"type":"integer","format":"int32"},"defaultPrice":{"type":"number"},"defaultPricePerPeriod":{"type":"boolean"}}},"CrmProductCatalogueApiDto":{"type":"object","properties":{"paidProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmProductOptionApiDto"}},"testProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmProductOptionApiDto"}},"addOnProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmProductOptionApiDto"}},"currentProductId":{"type":"integer","format":"int64"},"currentProductName":{"type":"string"},"heldProducts":{"type":"array","items":{"$ref":"#/components/schemas/CrmCustomerProductApiDto"}}}},"CrmProductOptionApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"addOn":{"type":"boolean"},"pricePerPeriods":{"type":"array","items":{"$ref":"#/components/schemas/CrmPricePerPeriodOptionApiDto"}}}},"CrmOrderFormListItemApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"offerType":{"type":"string"},"validUntil":{"type":"string","format":"date"},"subscriptionStart":{"type":"string","format":"date"},"productCount":{"type":"integer","format":"int32"},"netTotal":{"type":"number"},"vatAmount":{"type":"number"},"grandTotal":{"type":"number"},"dateCreated":{"type":"string","format":"date-time"},"includeProforma":{"type":"boolean"}}},"CrmOrderFormPaymentLinkApiDto":{"type":"object","properties":{"uuid":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"dateCreated":{"type":"string","format":"date-time"},"validUntil":{"type":"string","format":"date-time"}}},"CrmOrderFormDocumentApiDto":{"type":"object","properties":{"filename":{"type":"string"},"contentBase64":{"type":"string"}}},"CrmOrderFormChangeLogEntryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"timeOfChange":{"type":"string","format":"date-time"},"fieldName":{"type":"string"},"oldValue":{"type":"string"},"newValue":{"type":"string"},"changedBy":{"type":"string"},"action":{"type":"string"}}},"CrmCustomerHeaderApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"oldId":{"type":"integer","format":"int64"},"uuid":{"type":"string"},"salutation":{"type":"string"},"academicTitle":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"companyName":{"type":"string"},"status":{"type":"string"},"managerName":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"productName":{"type":"string"},"customerProductId":{"type":"integer","format":"int64"},"doiSent":{"type":"boolean"},"dateDoiSent":{"type":"string","format":"date-time"},"doubleOptInDate":{"type":"string","format":"date-time"},"impersonationAllowed":{"type":"boolean"},"locked":{"type":"boolean"}}},"CrmFitBreakdownApiDto":{"type":"object","properties":{"code":{"type":"string","description":"3-digit CPV group or NUTS 2 code"},"label":{"type":"string","description":"Localized name when one is known; null otherwise"},"awardCount":{"type":"integer","format":"int32"}}},"CrmFitContractorApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"name":{"type":"string"},"identifier":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"}}},"CrmFitProfileApiDto":{"type":"object","properties":{"status":{"type":"string","enum":["READY","NO_CONNECTED_CONTRACTOR","NO_AWARD_HISTORY","NO_USABLE_CPV"]},"contractors":{"type":"array","items":{"$ref":"#/components/schemas/CrmFitContractorApiDto"}},"awardCount":{"type":"integer","format":"int32"},"buyerCount":{"type":"integer","format":"int32"},"awardsWithCpvCount":{"type":"integer","format":"int32"},"cpvGroups":{"type":"array","items":{"$ref":"#/components/schemas/CrmFitBreakdownApiDto"}},"regions":{"type":"array","items":{"$ref":"#/components/schemas/CrmFitBreakdownApiDto"}},"valueRange":{"$ref":"#/components/schemas/CrmFitValueRangeApiDto"},"valuedAwardCount":{"type":"integer","format":"int32"},"valueRangeMinimumAwards":{"type":"integer","format":"int32"}}},"CrmFitValueRangeApiDto":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"},"currency":{"type":"string"}},"description":"25th to 75th percentile of the stated award values; null when fewer than valueRangeMinimumAwards awards state a value, which makes size scoring neutral"},"CrmFitOpportunitiesApiDto":{"type":"object","properties":{"status":{"type":"string","enum":["READY","NO_PROFILE","NO_OPEN_TENDERS"]},"candidateCount":{"type":"integer","description":"Open tenders and prior information notices in the divisions of the five main CPV groups","format":"int32"},"scoredCount":{"type":"integer","description":"Candidates scored for the summary; below candidateCount only for very large sets","format":"int32"},"goodMatchCount":{"type":"integer","description":"Scored candidates at or above goodFitThreshold","format":"int32"},"goodMatchValue":{"type":"number","description":"Sum of the stated values of the good matches in the portal currency; null when none states a value"},"goodMatchValuedCount":{"type":"integer","description":"Good matches that state a value, i.e. the coverage of goodMatchValue","format":"int32"},"currency":{"type":"string"},"valueRange":{"$ref":"#/components/schemas/CrmFitValueRangeApiDto"},"closingSoonCount":{"type":"integer","description":"Candidates whose deadline is within closingSoonDays","format":"int32"},"closingSoonDays":{"type":"integer","format":"int32"},"goodFitThreshold":{"type":"integer","format":"int32"},"tenders":{"type":"array","description":"Best-ranked tenders, at most the requested limit","items":{"$ref":"#/components/schemas/CrmFitOpportunityApiDto"}}}},"CrmFitOpportunityApiDto":{"type":"object","properties":{"uuid":{"type":"string","description":"Opens the notification detail page"},"title":{"type":"string"},"authorityName":{"type":"string"},"deadline":{"type":"string","description":"Submission deadline; null for notices without one, such as most prior information","format":"date-time"},"estimatedValue":{"type":"number","description":"Estimated value as published, in the tender's own currency; null when not stated"},"estimatedCurrency":{"type":"string"},"score":{"type":"integer","format":"int32"},"band":{"type":"string","enum":["HIGH","GOOD","LOW"]},"parts":{"type":"array","description":"Subject, size, region and buyer, from the same calculation as score (TSD-9145)","items":{"$ref":"#/components/schemas/CrmFitScorePartApiDto"}},"capped":{"type":"boolean","description":"No CPV group the firm won in matches, so the score is capped at 15"}},"description":"Best-ranked tenders, at most the requested limit"},"CrmFitScorePartApiDto":{"type":"object","properties":{"part":{"type":"string","enum":["SUBJECT","SIZE","REGION","BUYER"]},"score":{"type":"integer","description":"0 to 100","format":"int32"},"weight":{"type":"integer","description":"Weight in percent of the overall score","format":"int32"},"reason":{"type":"string","description":"Why the part scored as it did; the UI turns it into the explanation","enum":["MAIN_CPV_GROUP","OTHER_CPV_GROUP","NO_CPV_GROUP","VALUE_IN_RANGE","VALUE_NEAR_RANGE","VALUE_OUT_OF_RANGE","NO_STATED_VALUE","NO_TYPICAL_RANGE","NUTS_2_REGION","NUTS_1_REGION","OTHER_REGION","NO_REGION","KNOWN_BUYER","NEW_BUYER"]},"code":{"type":"string","description":"The CPV group (3 digits) or NUTS region behind the reason; null when there is none"},"awardCount":{"type":"integer","description":"Awards the firm won in that CPV group or region, or from this buying authority; null when unknown or not applicable","format":"int32"},"value":{"type":"number","description":"Size only: the tender's estimated value in the portal currency"}},"description":"Subject, size, region and buyer, from the same calculation as score (TSD-9145)"},"CrmFitCompetitorApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"name":{"type":"string","description":"Null when OrgDB does not know the name"},"city":{"type":"string"},"country":{"type":"string"},"marketAwardCount":{"type":"integer","description":"Awards from the firm's buying authorities in the firm's CPV groups that this winner won","format":"int32"},"sharedTenderCount":{"type":"integer","description":"The firm's awards that went to several companies, this winner among them","format":"int32"},"sharedBuyerCount":{"type":"integer","description":"The firm's buying authorities this winner also won from, in the firm's CPV groups","format":"int32"},"knownValue":{"type":"number","description":"This winner's own stated share of those market awards in the portal currency; null when none is stated"}},"description":"At most 10, the most awards in the shared market first"},"CrmFitCompetitorsApiDto":{"type":"object","properties":{"competitors":{"type":"array","description":"At most 10, the most awards in the shared market first","items":{"$ref":"#/components/schemas/CrmFitCompetitorApiDto"}},"totalCompetitors":{"type":"integer","description":"All other winners in the shared market","format":"int64"},"firmBuyerCount":{"type":"integer","description":"The firm's buying authorities that define the market","format":"int32"},"firmCpvGroupCount":{"type":"integer","description":"The firm's 3-digit CPV groups that define the market","format":"int32"},"currency":{"type":"string"}}},"CrmFitBuyerApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"name":{"type":"string","description":"Null when OrgDB does not know the name"},"awardCount":{"type":"integer","format":"int32"},"awardedValue":{"type":"number","description":"Sum of the connected contractors' stated shares in the portal currency; null when none is stated"}},"description":"Most awards first"},"CrmFitBuyerPageApiDto":{"type":"object","properties":{"buyers":{"type":"array","description":"Most awards first","items":{"$ref":"#/components/schemas/CrmFitBuyerApiDto"}},"page":{"type":"integer","description":"0-based","format":"int32"},"size":{"type":"integer","format":"int32"},"totalBuyers":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"currency":{"type":"string"}}},"CrmFitAwardApiDto":{"type":"object","properties":{"uuid":{"type":"string","description":"Opens the notification detail page"},"title":{"type":"string"},"authorityId":{"type":"integer","format":"int64"},"authorityName":{"type":"string"},"typeOfDocument":{"type":"string","description":"Award document type in upper case, e.g. RESULT or CONTRACT"},"publicationDate":{"type":"string","format":"date-time"},"amount":{"type":"number","description":"The connected contractors' share of the award in the portal currency; null when not stated"}},"description":"Newest first"},"CrmFitAwardPageApiDto":{"type":"object","properties":{"awards":{"type":"array","description":"Newest first","items":{"$ref":"#/components/schemas/CrmFitAwardApiDto"}},"page":{"type":"integer","description":"0-based","format":"int32"},"size":{"type":"integer","format":"int32"},"totalAwards":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"currency":{"type":"string"}}},"CrmEmailComposeApiDto":{"type":"object","properties":{"defaultRecipient":{"type":"string"},"availableRecipients":{"type":"array","items":{"type":"string"}},"defaultSender":{"type":"string"},"availableSenders":{"type":"array","items":{"type":"string"}},"templates":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailTemplateApiDto"}},"placeholders":{"type":"array","items":{"type":"string"}}}},"CrmEmailTemplateApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"html":{"type":"boolean"},"placeholders":{"type":"array","items":{"type":"string"}}}},"CrmEmailHistoryPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmEmailHistoryEntryApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CrmEmailMessageApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"date":{"type":"string","format":"date-time"},"subject":{"type":"string"},"sender":{"type":"string"},"recipients":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"body":{"type":"string"},"html":{"type":"boolean"},"attachmentNames":{"type":"array","items":{"type":"string"}}}},"CrmDocumentDownloadApiDto":{"type":"object","properties":{"filename":{"type":"string"},"contentBase64":{"type":"string"}}},"CrmProductEditOptionsApiDto":{"type":"object","properties":{"paymentOptions":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"regions":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"renewalPeriods":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"managers":{"type":"array","items":{"$ref":"#/components/schemas/CrmOptionApiDto"}},"invoiceTypes":{"type":"array","items":{"type":"string"}},"orderTypes":{"type":"array","items":{"type":"string"}},"customerProductTypes":{"type":"array","items":{"type":"string"}},"paymentTerms":{"type":"array","items":{"type":"string"}},"instalmentPlanTypes":{"type":"array","items":{"type":"string"}},"discountTypes":{"type":"array","items":{"type":"string"}},"periodsOfNotice":{"type":"array","items":{"type":"string"}},"vats":{"type":"array","items":{"type":"integer","format":"int32"}}}},"CrmChangeLogEntryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"source":{"type":"string"},"changedField":{"type":"string"},"oldValue":{"type":"string"},"newValue":{"type":"string"},"changedByType":{"type":"string"},"changedById":{"type":"integer","format":"int64"},"changedByName":{"type":"string"},"dateOfChange":{"type":"string","format":"date-time"}}},"CrmConsentLogEntryApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"changedField":{"type":"string"},"newValue":{"type":"boolean"},"ipAddress":{"type":"string"},"managerId":{"type":"integer","format":"int64"},"managerName":{"type":"string"},"timeOfChange":{"type":"string","format":"date-time"}}},"CrmChangeLogPageApiDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/CrmChangeLogEntryApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CrmCallScriptAnswerApiDto":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"followUps":{"type":"array","items":{"$ref":"#/components/schemas/CrmCallScriptNodeApiDto"}}},"description":"Answers of an ASK node; empty for open questions and for SAY/NOTE"},"CrmCallScriptApiDto":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"version":{"type":"string","description":"Rule version and wording hash; logging an outcome with another version is rejected"},"language":{"type":"string"},"languages":{"type":"array","description":"Conversation languages: the portal's local language and English","items":{"type":"string","description":"Conversation languages: the portal's local language and English"}},"brand":{"type":"string"},"brands":{"type":"array","items":{"type":"string"}},"origin":{"type":"string","enum":["SELF_REGISTRATION","CONTRACTOR_IMPORT","EXTERNAL"]},"evidenceBasis":{"type":"string","enum":["AWARD_HISTORY","THIN_HISTORY_WITH_ESTIMATE","THIN_HISTORY","ESTIMATE_ONLY","NO_USABLE_EVIDENCE","HISTORY_UNAVAILABLE"]},"hook":{"type":"string","enum":["NEAR_DEADLINE_TENDER","OPPORTUNITY_COUNT","LEADING_BUYER","ACTIVITY_QUESTION","GENERAL_DISCOVERY","NONE"]},"stops":{"type":"array","description":"Stop conditions; when present, sections holds no sales wording","items":{"$ref":"#/components/schemas/CrmCallScriptNoticeApiDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/CrmCallScriptNoticeApiDto"}},"sections":{"type":"array","items":{"$ref":"#/components/schemas/CrmCallScriptSectionApiDto"}},"outcomes":{"type":"array","items":{"type":"string","enum":["NO_ANSWER","WRONG_CONTACT","CALL_BACK","NOT_INTERESTED","WANTS_MATERIAL","PRESENTATION_BOOKED","TRIAL_STARTED","DO_NOT_CALL"]}}}},"CrmCallScriptNodeApiDto":{"type":"object","properties":{"id":{"type":"string","description":"Stable id, unique within the script; the UI keys answer choices by it"},"kind":{"type":"string","enum":["SAY","ASK","NOTE"]},"text":{"type":"string","description":"Fully resolved text in the conversation language; never contains placeholders"},"answers":{"type":"array","description":"Answers of an ASK node; empty for open questions and for SAY/NOTE","items":{"$ref":"#/components/schemas/CrmCallScriptAnswerApiDto"}}}},"CrmCallScriptNoticeApiDto":{"type":"object","properties":{"code":{"type":"string","description":"Stops: ACTIVE_SUBSCRIBER, DO_NOT_CALL, COMPANY_INACTIVE, COMPANY_LIQUIDATION. Warnings: NO_PHONE, PREVIOUS_CALL, FORMER_SUBSCRIBER, PLACEHOLDER_EMAIL, MARKETING_RESTRICTIONS, REGISTRY_STATUS_UNKNOWN"},"date":{"type":"string","description":"PREVIOUS_CALL: when the call was held","format":"date-time"},"outcome":{"type":"string","description":"PREVIOUS_CALL: outcome logged from the script, when known","enum":["NO_ANSWER","WRONG_CONTACT","CALL_BACK","NOT_INTERESTED","WANTS_MATERIAL","PRESENTATION_BOOKED","TRIAL_STARTED","DO_NOT_CALL"]}}},"CrmCallScriptSectionApiDto":{"type":"object","properties":{"id":{"type":"string","description":"opener, hook, discovery, close or objections"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/CrmCallScriptNodeApiDto"}}}},"CrmBriefActivityCodeApiDto":{"type":"object","properties":{"code":{"type":"string","description":"NACE or NAICS code as recorded in the registry"},"description":{"type":"string"},"scheme":{"type":"string","description":"NACE or NAICS"},"primary":{"type":"boolean"}},"description":"Primary codes first; the dialog shows primaries and three secondaries, print shows all"},"CrmBriefApiDto":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"language":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"identity":{"$ref":"#/components/schemas/CrmBriefIdentityApiDto"},"evidenceBasis":{"type":"string","enum":["AWARD_HISTORY","THIN_HISTORY_WITH_ESTIMATE","THIN_HISTORY","ESTIMATE_ONLY","NO_USABLE_EVIDENCE","HISTORY_UNAVAILABLE"]},"history":{"$ref":"#/components/schemas/CrmBriefHistoryApiDto"},"opportunities":{"$ref":"#/components/schemas/CrmBriefOpportunitiesApiDto"},"leadingBuyers":{"$ref":"#/components/schemas/CrmBriefBuyersApiDto"},"estimate":{"$ref":"#/components/schemas/CrmBriefEstimateApiDto"}}},"CrmBriefBuyerApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"name":{"type":"string"},"awardCount":{"type":"integer","format":"int32"},"knownValue":{"type":"number"},"currency":{"type":"string"}}},"CrmBriefBuyersApiDto":{"type":"object","properties":{"status":{"type":"string","enum":["AVAILABLE","EMPTY","NOT_APPLICABLE","UNAVAILABLE"]},"rows":{"type":"array","items":{"$ref":"#/components/schemas/CrmBriefBuyerApiDto"}}}},"CrmBriefCpvSuggestionApiDto":{"type":"object","properties":{"cpvCode":{"type":"string"},"cpvLabel":{"type":"string"},"activityCode":{"type":"string","description":"Registry activity code behind the suggestion"}}},"CrmBriefEstimateApiDto":{"type":"object","properties":{"status":{"type":"string","enum":["AVAILABLE","NOT_REQUESTED","NO_REGISTRY_RECORD","NO_ACTIVITY_CODES","NO_MATCH","UNAVAILABLE"]},"suggestions":{"type":"array","items":{"$ref":"#/components/schemas/CrmBriefCpvSuggestionApiDto"}},"opportunities":{"$ref":"#/components/schemas/CrmBriefOpportunitiesApiDto"},"maxScore":{"type":"integer","description":"Highest score an estimate can reach: size is neutral and buyer scores zero without awards","format":"int32"}}},"CrmBriefHeadlineApiDto":{"type":"object","properties":{"candidateCount":{"type":"integer","format":"int32"},"goodMatchCount":{"type":"integer","format":"int32"},"goodMatchStatedValue":{"type":"number","description":"Sum of the stated values of the good matches; null when none states a value"},"goodMatchValuedCount":{"type":"integer","description":"How many of the good matches state a value, i.e. the coverage of goodMatchStatedValue","format":"int32"},"currency":{"type":"string"},"nearTermCount":{"type":"integer","description":"Good matches closing within nearTermDays; null when the source gives no window","format":"int32"},"nearTermDays":{"type":"integer","format":"int32"},"goodFitThreshold":{"type":"integer","format":"int32"}}},"CrmBriefHistoryApiDto":{"type":"object","properties":{"status":{"type":"string","enum":["AVAILABLE","EMPTY","NOT_APPLICABLE","UNAVAILABLE"]},"profileStatus":{"type":"string","description":"Fit profile status when the history could be read; null when UNAVAILABLE","enum":["READY","NO_CONNECTED_CONTRACTOR","NO_AWARD_HISTORY","NO_USABLE_CPV"]},"contractors":{"type":"array","items":{"$ref":"#/components/schemas/CrmFitContractorApiDto"}},"awardCount":{"type":"integer","format":"int32"},"buyerCount":{"type":"integer","format":"int32"},"cpvGroups":{"type":"array","description":"Up to five main 3-digit CPV groups","items":{"$ref":"#/components/schemas/CrmFitBreakdownApiDto"}},"valueRange":{"$ref":"#/components/schemas/CrmFitValueRangeApiDto"},"valuedAwardCount":{"type":"integer","format":"int32"},"valueRangeMinimumAwards":{"type":"integer","format":"int32"}}},"CrmBriefIdentityApiDto":{"type":"object","properties":{"crmCompanyName":{"type":"string","description":"Company name stored in the CRM; always shown, also without a registry record"},"registryRecord":{"type":"boolean","description":"True when a stored registry snapshot backs the fields below"},"legalName":{"type":"string"},"tradeTitle":{"type":"string"},"taxId":{"type":"string"},"companyStatus":{"type":"string","enum":["ACTIVE","INACTIVE","LIQUIDATION","UNKNOWN"]},"saleWarning":{"type":"boolean","description":"True for an inactive or liquidating company: do not proceed with a sale"},"activityCodes":{"type":"array","description":"Primary codes first; the dialog shows primaries and three secondaries, print shows all","items":{"$ref":"#/components/schemas/CrmBriefActivityCodeApiDto"}},"registrySource":{"type":"string","description":"Name of the registry the snapshot came from"},"snapshotTakenAt":{"type":"string","format":"date-time"},"registryUnavailable":{"type":"boolean","description":"True when the stored registry record could not be read; registryRecord false then means unknown, not 'no record linked'"}}},"CrmBriefOpportunitiesApiDto":{"type":"object","properties":{"status":{"type":"string","enum":["AVAILABLE","EMPTY","NOT_APPLICABLE","UNAVAILABLE"]},"headline":{"$ref":"#/components/schemas/CrmBriefHeadlineApiDto"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/CrmBriefOpportunityApiDto"}}}},"CrmBriefOpportunityApiDto":{"type":"object","properties":{"tenderId":{"type":"string"},"score":{"type":"integer","description":"Fit score from the ranking service, 0-100","format":"int32"},"title":{"type":"string"},"authority":{"type":"string"},"deadline":{"type":"string","format":"date"},"amount":{"type":"number","description":"Stated amount; null when the tender states none"},"currency":{"type":"string"},"url":{"type":"string","description":"Angular tender screen of the tender"}}},"CrmBriefMarketListApiDto":{"type":"object","properties":{"status":{"type":"string","enum":["AVAILABLE","EMPTY","NOT_APPLICABLE","UNAVAILABLE"]},"organisations":{"type":"array","items":{"$ref":"#/components/schemas/CrmBriefMarketOrganisationApiDto"}}}},"CrmBriefMarketOrganisationApiDto":{"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"name":{"type":"string"},"tenderCount":{"type":"integer","description":"Competitors: tenders shared with the firm. Market leaders: tenders won in the period","format":"int32"},"sharedBuyerCount":{"type":"integer","description":"Competitors only: buyers shared with the firm","format":"int32"},"regionalTenderCount":{"type":"integer","description":"Market leaders only: tenders won in the customer's region, where supplied","format":"int32"},"knownValue":{"type":"number"},"currency":{"type":"string"}}},"CrmBehaviorApiDto":{"type":"object","properties":{"lastResultEmailDate":{"type":"string","format":"date-time"},"totalDetailViews":{"type":"integer","format":"int32"},"lastDetailView":{"type":"string","format":"date-time"},"lastLoginDate":{"type":"string","format":"date-time"},"totalLogins":{"type":"integer","format":"int64"},"loginsLastMonth":{"type":"integer","format":"int64"},"totalXlsExports":{"type":"integer","format":"int32"},"xlsExportsOfLastDate":{"type":"integer","format":"int32"},"lastXlsExportDate":{"type":"string","format":"date-time"},"receivedTendersLast30Days":{"type":"integer","format":"int32"},"detailViewsLast30Days":{"type":"integer","format":"int32"},"uniqueDetailViewsLast30Days":{"type":"integer","format":"int64"},"daysWithoutDetailView":{"type":"integer","format":"int32"},"totalDownloads":{"type":"integer","format":"int32"},"totalApiRequests":{"type":"integer","format":"int64"},"apiRequestsLast30Days":{"type":"integer","format":"int64"},"apiRequestsToday":{"type":"integer","format":"int64"}}},"CrmActivityDetailApiDto":{"type":"object","properties":{"activity":{"$ref":"#/components/schemas/CrmActivityApiDto"},"customerName":{"type":"string"},"customerEmail":{"type":"string"},"customerPhone":{"type":"string"},"companyName":{"type":"string"}}},"CrmStatusCountsApiDto":{"type":"object","properties":{"counts":{"type":"object","additionalProperties":{"type":"integer","format":"int64"}},"total":{"type":"integer","format":"int64"}}},"CrmSearchProfileBrowseItemApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"searchContext":{"type":"string"},"dateCreated":{"type":"string","format":"date-time"},"customerId":{"type":"integer","format":"int64"}}},"CrmSearchProfileBrowsePageApiDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CrmSearchProfileBrowseItemApiDto"}},"totalElements":{"type":"integer","format":"int64"}}},"CrmPortalOptionApiDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"CrmPaymentOptionCatalogApiDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"paymentOptionType":{"type":"string"}}},"ManagerOptionApiDto":{"required":["active","id","name"],"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"active":{"type":"boolean"}}},"ContractorListItemApiDto":{"required":["name","orgDbId"],"type":"object","properties":{"orgDbId":{"type":"integer","format":"int64"},"registrationNumber":{"type":"string"},"vatUid":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"},"country":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"url":{"type":"string"},"importedCustomerId":{"type":"integer","format":"int64"}}},"ContractorPageApiDto":{"required":["content","page","size","totalElements"],"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ContractorListItemApiDto"}},"totalElements":{"type":"integer","format":"int64"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}}}}}