ORE Studio 0.0.4
Loading...
Searching...
No Matches
ore_import_protocol.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2026 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 */
20#ifndef ORES_ORE_API_MESSAGING_ORE_IMPORT_PROTOCOL_HPP
21#define ORES_ORE_API_MESSAGING_ORE_IMPORT_PROTOCOL_HPP
22
23#include <string>
24#include <vector>
25#include <string_view>
26
27namespace ores::ore::messaging {
28
37 std::string source_file;
38 std::string item_id;
39 std::string message;
40};
41
50 static constexpr std::string_view nats_subject = "workflow.v1.ore.import";
51
52 std::string request_id;
53 std::string import_choices_json;
54 std::string correlation_id;
55};
56
65 bool success = false;
66 std::string message;
67 std::vector<ore_import_item_error> item_errors;
68 std::string correlation_id;
77};
78
79}
80
81#endif
Error for a single item within an ORE import.
Definition ore_import_protocol.hpp:36
std::string item_id
Trade ID, ISO code, series key, etc.
Definition ore_import_protocol.hpp:38
std::string message
Human-readable error from the downstream service.
Definition ore_import_protocol.hpp:39
std::string source_file
Relative path within the unpacked ORE directory.
Definition ore_import_protocol.hpp:37
Request to import an ORE directory that has been uploaded to storage.
Definition ore_import_protocol.hpp:48
std::string correlation_id
Propagated from the Qt client for log correlation.
Definition ore_import_protocol.hpp:54
std::string import_choices_json
JSON-serialised import_choices.
Definition ore_import_protocol.hpp:53
std::string request_id
UUID; also the storage key root.
Definition ore_import_protocol.hpp:52
Response for an ore_import_request.
Definition ore_import_protocol.hpp:64
std::string correlation_id
Echoed back for display and log lookup.
Definition ore_import_protocol.hpp:68
std::string workflow_instance_id
Workflow instance UUID, non-empty when the import was dispatched asynchronously via the workflow engi...
Definition ore_import_protocol.hpp:76