20#ifndef ORES_DQ_API_MESSAGING_CODING_SCHEME_PROTOCOL_HPP
21#define ORES_DQ_API_MESSAGING_CODING_SCHEME_PROTOCOL_HPP
26#include "ores.dq.api/domain/coding_scheme.hpp"
27#include "ores.dq.api/domain/coding_scheme_authority_type.hpp"
29namespace ores::dq::messaging {
35struct get_coding_scheme_authority_types_request {
36 using response_type =
struct get_coding_scheme_authority_types_response;
37 static constexpr std::string_view nats_subject =
38 "dq.v1.coding-scheme-authority-types.list";
43struct get_coding_scheme_authority_types_response {
44 std::vector<ores::dq::domain::coding_scheme_authority_type>
45 coding_scheme_authority_types;
46 int total_available_count = 0;
49struct save_coding_scheme_authority_type_request {
50 using response_type =
struct save_coding_scheme_authority_type_response;
51 static constexpr std::string_view nats_subject =
52 "dq.v1.coding-scheme-authority-types.save";
56struct save_coding_scheme_authority_type_response {
61struct delete_coding_scheme_authority_type_request {
62 using response_type =
struct delete_coding_scheme_authority_type_response;
63 static constexpr std::string_view nats_subject =
64 "dq.v1.coding-scheme-authority-types.delete";
65 std::vector<std::string> types;
68struct delete_coding_scheme_authority_type_response {
73struct get_coding_scheme_authority_type_history_request {
74 using response_type =
struct get_coding_scheme_authority_type_history_response;
75 static constexpr std::string_view nats_subject =
76 "dq.v1.coding-scheme-authority-types.history";
80struct get_coding_scheme_authority_type_history_response {
83 std::vector<ores::dq::domain::coding_scheme_authority_type> history;
90struct get_coding_schemes_request {
91 using response_type =
struct get_coding_schemes_response;
92 static constexpr std::string_view nats_subject =
93 "dq.v1.coding-schemes.list";
98struct get_coding_schemes_response {
99 std::vector<ores::dq::domain::coding_scheme> coding_schemes;
100 int total_available_count = 0;
103struct save_coding_scheme_request {
104 using response_type =
struct save_coding_scheme_response;
105 static constexpr std::string_view nats_subject =
106 "dq.v1.coding-schemes.save";
110struct save_coding_scheme_response {
111 bool success =
false;
115struct delete_coding_scheme_request {
116 using response_type =
struct delete_coding_scheme_response;
117 static constexpr std::string_view nats_subject =
118 "dq.v1.coding-schemes.delete";
119 std::vector<std::string> codes;
122struct delete_coding_scheme_response {
123 bool success =
false;
127struct get_coding_scheme_history_request {
128 using response_type =
struct get_coding_scheme_history_response;
129 static constexpr std::string_view nats_subject =
130 "dq.v1.coding-schemes.history";
134struct get_coding_scheme_history_response {
135 bool success =
false;
137 std::vector<ores::dq::domain::coding_scheme> history;
Defines a coding or identification standard used to identify entities.
Definition coding_scheme.hpp:36
Classifies coding schemes by the type of authority that defines them.
Definition coding_scheme_authority_type.hpp:41