@meshtrade/api-node 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/dist/buf/validate/validate_pb.d.ts +4597 -0
- package/dist/buf/validate/validate_pb.js +354 -0
- package/dist/google/type/date_pb.d.ts +52 -0
- package/dist/google/type/date_pb.js +26 -0
- package/dist/meshtrade/common/config.d.ts +50 -0
- package/dist/meshtrade/common/config.js +34 -0
- package/dist/meshtrade/common/connectInterceptors.d.ts +137 -0
- package/dist/meshtrade/common/connectInterceptors.js +233 -0
- package/dist/meshtrade/common/validation.d.ts +62 -0
- package/dist/meshtrade/common/validation.js +77 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.d.ts +138 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.js +23 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +313 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.js +100 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.d.ts +81 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.js +22 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.d.ts +88 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.js +95 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.d.ts +55 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.js +62 -0
- package/dist/meshtrade/compliance/client/v1/index.d.ts +16 -0
- package/dist/meshtrade/compliance/client/v1/index.js +59 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +86 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +16 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.d.ts +133 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.js +140 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.d.ts +143 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.js +24 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.d.ts +46 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.js +53 -0
- package/dist/meshtrade/compliance/client/v1/service_node_meshts.d.ts +78 -0
- package/dist/meshtrade/compliance/client/v1/service_node_meshts.js +141 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +123 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +45 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.d.ts +180 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.js +187 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.d.ts +40 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.js +17 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +65 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.js +18 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.d.ts +57 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.js +64 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.d.ts +43 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.js +17 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +152 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +95 -0
- package/dist/meshtrade/iam/api_user/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/api_user/v1/index.js +45 -0
- package/dist/meshtrade/iam/api_user/v1/service_node_meshts.d.ts +114 -0
- package/dist/meshtrade/iam/api_user/v1/service_node_meshts.js +201 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.d.ts +343 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +86 -0
- package/dist/meshtrade/iam/group/v1/group_pb.d.ts +58 -0
- package/dist/meshtrade/iam/group/v1/group_pb.js +17 -0
- package/dist/meshtrade/iam/group/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/group/v1/index.js +44 -0
- package/dist/meshtrade/iam/group/v1/service_node_meshts.d.ts +90 -0
- package/dist/meshtrade/iam/group/v1/service_node_meshts.js +161 -0
- package/dist/meshtrade/iam/group/v1/service_pb.d.ts +306 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +75 -0
- package/dist/meshtrade/iam/role/v1/index.d.ts +2 -0
- package/dist/meshtrade/iam/role/v1/index.js +43 -0
- package/dist/meshtrade/iam/role/v1/role.d.ts +71 -0
- package/dist/meshtrade/iam/role/v1/role.js +192 -0
- package/dist/meshtrade/iam/role/v1/role_pb.d.ts +164 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +171 -0
- package/dist/meshtrade/iam/user/v1/index.d.ts +3 -0
- package/dist/meshtrade/iam/user/v1/index.js +44 -0
- package/dist/meshtrade/iam/user/v1/service_node_meshts.d.ts +108 -0
- package/dist/meshtrade/iam/user/v1/service_node_meshts.js +191 -0
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +379 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +90 -0
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +58 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +17 -0
- package/dist/meshtrade/ledger/transaction/v1/index.d.ts +5 -0
- package/dist/meshtrade/ledger/transaction/v1/index.js +46 -0
- package/dist/meshtrade/ledger/transaction/v1/service_node_meshts.d.ts +80 -0
- package/dist/meshtrade/ledger/transaction/v1/service_node_meshts.js +140 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.d.ts +102 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +41 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.d.ts +46 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.js +53 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.d.ts +14 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state.js +64 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.js +57 -0
- package/dist/meshtrade/market_data/price/v1/index.d.ts +3 -0
- package/dist/meshtrade/market_data/price/v1/index.js +44 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.d.ts +50 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.js +19 -0
- package/dist/meshtrade/market_data/price/v1/service_node_meshts.d.ts +66 -0
- package/dist/meshtrade/market_data/price/v1/service_node_meshts.js +121 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.d.ts +48 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +27 -0
- package/dist/meshtrade/option/method_options/v1/index.d.ts +1 -0
- package/dist/meshtrade/option/method_options/v1/index.js +42 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +132 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +108 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.d.ts +136 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.js +28 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.d.ts +39 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.js +16 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.d.ts +66 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.js +18 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.d.ts +139 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.js +80 -0
- package/dist/meshtrade/reporting/account_report/v1/index.d.ts +7 -0
- package/dist/meshtrade/reporting/account_report/v1/index.js +48 -0
- package/dist/meshtrade/reporting/account_report/v1/service_node_meshts.d.ts +72 -0
- package/dist/meshtrade/reporting/account_report/v1/service_node_meshts.js +131 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.d.ts +162 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +46 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.d.ts +80 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/index.d.ts +3 -0
- package/dist/meshtrade/studio/instrument/v1/index.js +44 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.d.ts +53 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +18 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.d.ts +214 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.js +221 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.d.ts +148 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.js +155 -0
- package/dist/meshtrade/trading/limit_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/limit_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +211 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +111 -0
- package/dist/meshtrade/trading/limit_order/v1/service_node_meshts.d.ts +111 -0
- package/dist/meshtrade/trading/limit_order/v1/service_node_meshts.js +190 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +357 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +73 -0
- package/dist/meshtrade/trading/market_order/v1/index.d.ts +3 -0
- package/dist/meshtrade/trading/market_order/v1/index.js +44 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.d.ts +20 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.js +16 -0
- package/dist/meshtrade/trading/market_order/v1/service_node_meshts.d.ts +66 -0
- package/dist/meshtrade/trading/market_order/v1/service_node_meshts.js +121 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.d.ts +34 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +22 -0
- package/dist/meshtrade/type/v1/address_pb.d.ts +82 -0
- package/dist/meshtrade/type/v1/address_pb.js +16 -0
- package/dist/meshtrade/type/v1/amount.d.ts +13 -0
- package/dist/meshtrade/type/v1/amount.js +68 -0
- package/dist/meshtrade/type/v1/amountWrapper.d.ts +74 -0
- package/dist/meshtrade/type/v1/amountWrapper.js +98 -0
- package/dist/meshtrade/type/v1/amount_pb.d.ts +44 -0
- package/dist/meshtrade/type/v1/amount_pb.js +18 -0
- package/dist/meshtrade/type/v1/contact_details_pb.d.ts +98 -0
- package/dist/meshtrade/type/v1/contact_details_pb.js +16 -0
- package/dist/meshtrade/type/v1/date.d.ts +49 -0
- package/dist/meshtrade/type/v1/date.js +136 -0
- package/dist/meshtrade/type/v1/date_pb.d.ts +50 -0
- package/dist/meshtrade/type/v1/date_pb.js +16 -0
- package/dist/meshtrade/type/v1/decimalConversions.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimalConversions.js +39 -0
- package/dist/meshtrade/type/v1/decimal_pb.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimal_pb.js +16 -0
- package/dist/meshtrade/type/v1/index.d.ts +15 -0
- package/dist/meshtrade/type/v1/index.js +56 -0
- package/dist/meshtrade/type/v1/ledger.d.ts +27 -0
- package/dist/meshtrade/type/v1/ledger.js +115 -0
- package/dist/meshtrade/type/v1/ledger_pb.d.ts +83 -0
- package/dist/meshtrade/type/v1/ledger_pb.js +90 -0
- package/dist/meshtrade/type/v1/sorting_pb.d.ts +35 -0
- package/dist/meshtrade/type/v1/sorting_pb.js +42 -0
- package/dist/meshtrade/type/v1/time_of_day.d.ts +74 -0
- package/dist/meshtrade/type/v1/time_of_day.js +199 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.d.ts +67 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.js +16 -0
- package/dist/meshtrade/type/v1/token.d.ts +4 -0
- package/dist/meshtrade/type/v1/token.js +23 -0
- package/dist/meshtrade/type/v1/tokenWrapper.d.ts +49 -0
- package/dist/meshtrade/type/v1/tokenWrapper.js +92 -0
- package/dist/meshtrade/type/v1/token_pb.d.ts +56 -0
- package/dist/meshtrade/type/v1/token_pb.js +17 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +264 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +74 -0
- package/dist/meshtrade/wallet/account/v1/index.d.ts +3 -0
- package/dist/meshtrade/wallet/account/v1/index.js +44 -0
- package/dist/meshtrade/wallet/account/v1/service_node_meshts.d.ts +114 -0
- package/dist/meshtrade/wallet/account/v1/service_node_meshts.js +201 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +559 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +112 -0
- package/package.json +171 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-meshts v1
|
|
3
|
+
// @generated from file meshtrade/reporting/account_report/v1/service.proto (package meshtrade.reporting.account_report.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AccountReportServiceNode = void 0;
|
|
7
|
+
const connect_1 = require("@connectrpc/connect");
|
|
8
|
+
const connect_node_1 = require("@connectrpc/connect-node");
|
|
9
|
+
const service_pb_1 = require("./service_pb");
|
|
10
|
+
const config_1 = require("../../../common/config");
|
|
11
|
+
const validation_1 = require("../../../common/validation");
|
|
12
|
+
const connectInterceptors_1 = require("../../../common/connectInterceptors");
|
|
13
|
+
/**
|
|
14
|
+
* Node.js client for interacting with the meshtrade.reporting.account_report.v1 account report v1 API resource service.
|
|
15
|
+
* Uses Connect-ES with gRPC transport for Node.js gRPC communication.
|
|
16
|
+
*
|
|
17
|
+
* Supports three authentication modes:
|
|
18
|
+
*
|
|
19
|
+
* 1. **No Authentication** (public APIs):
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const client = new AccountReportServiceNode({ apiServerURL: "http://localhost:10000" });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* 2. **API Key Authentication** (backend services):
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const client = new AccountReportServiceNode({
|
|
27
|
+
* apiServerURL: "https://api.example.com",
|
|
28
|
+
* apiKey: "your-api-key",
|
|
29
|
+
* group: "groups/01ARZ3NDEKTSV4YWVF8F5BH32"
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* 3. **JWT Token Authentication** (Next.js backend with user session):
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const client = new AccountReportServiceNode({
|
|
36
|
+
* apiServerURL: "https://api.example.com",
|
|
37
|
+
* jwtToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
class AccountReportServiceNode {
|
|
42
|
+
/**
|
|
43
|
+
* Constructs an instance of AccountReportServiceNode.
|
|
44
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
45
|
+
* @param {Interceptor[]} [interceptors] - For internal use by `withGroup`.
|
|
46
|
+
*/
|
|
47
|
+
constructor(config, interceptors) {
|
|
48
|
+
this._config = (0, config_1.getConfigFromOpts)(config);
|
|
49
|
+
// If interceptors are provided (from withGroup), use them
|
|
50
|
+
// Otherwise, create auth interceptors based on config
|
|
51
|
+
if (interceptors) {
|
|
52
|
+
this._interceptors = interceptors;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
this._interceptors = [];
|
|
56
|
+
// Add authentication interceptor based on configuration
|
|
57
|
+
if (this._config.apiKey && this._config.group) {
|
|
58
|
+
// API Key authentication mode
|
|
59
|
+
this._interceptors.push((0, connectInterceptors_1.createApiKeyInterceptor)(this._config.apiKey, this._config.group));
|
|
60
|
+
}
|
|
61
|
+
else if (this._config.jwtToken) {
|
|
62
|
+
// JWT authentication mode
|
|
63
|
+
this._interceptors.push((0, connectInterceptors_1.createJwtInterceptor)(this._config.jwtToken));
|
|
64
|
+
}
|
|
65
|
+
// If neither is configured, no authentication (public API mode)
|
|
66
|
+
}
|
|
67
|
+
// Create the gRPC transport for Node.js with interceptors
|
|
68
|
+
// Note: gRPC transport uses HTTP/2 by default
|
|
69
|
+
const transport = (0, connect_node_1.createGrpcTransport)({
|
|
70
|
+
baseUrl: this._config.apiServerURL,
|
|
71
|
+
interceptors: this._interceptors,
|
|
72
|
+
});
|
|
73
|
+
// Construct the Connect-ES client
|
|
74
|
+
this._client = (0, connect_1.createClient)(service_pb_1.AccountReportService, transport);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Returns a new client instance configured to send the specified group
|
|
78
|
+
* resource name in the request headers for subsequent API calls.
|
|
79
|
+
*
|
|
80
|
+
* **Important**: This method only works with API key authentication.
|
|
81
|
+
* - For **API key auth**: Creates a new client with updated group context
|
|
82
|
+
* - For **JWT auth**: Throws error (group comes from JWT token claims)
|
|
83
|
+
* - For **no auth**: Throws error (group requires authentication)
|
|
84
|
+
*
|
|
85
|
+
* @param {string} group - The operating group context to inject into the request
|
|
86
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
87
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
88
|
+
* @returns {AccountReportServiceNode} A new, configured instance of the client.
|
|
89
|
+
* @throws {Error} If used with JWT authentication or no authentication
|
|
90
|
+
* @throws {Error} If the group format is invalid
|
|
91
|
+
*/
|
|
92
|
+
withGroup(group) {
|
|
93
|
+
// Check authentication mode
|
|
94
|
+
if (this._config.jwtToken) {
|
|
95
|
+
throw new Error("Cannot use withGroup() with JWT authentication. " +
|
|
96
|
+
"The group context is determined by the JWT token claims.");
|
|
97
|
+
}
|
|
98
|
+
if (!this._config.apiKey) {
|
|
99
|
+
throw new Error("Cannot use withGroup() without authentication. " +
|
|
100
|
+
"Please configure API key authentication to use group context.");
|
|
101
|
+
}
|
|
102
|
+
// For API key authentication, create new client with updated group
|
|
103
|
+
// Replace the existing API key interceptor with one that has the new group
|
|
104
|
+
const newInterceptors = [
|
|
105
|
+
(0, connectInterceptors_1.createApiKeyInterceptor)(this._config.apiKey, group)
|
|
106
|
+
];
|
|
107
|
+
// Return a new client instance with updated group context
|
|
108
|
+
return new AccountReportServiceNode(this._config, newInterceptors);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Retrieves an account report.
|
|
112
|
+
* @param {GetAccountReportRequest} request - The request object for getaccountreport.
|
|
113
|
+
* @returns {Promise<AccountReport>} A promise that resolves with the account report.
|
|
114
|
+
*/
|
|
115
|
+
getAccountReport(request) {
|
|
116
|
+
// Validate request
|
|
117
|
+
(0, validation_1.validateRequest)(request);
|
|
118
|
+
return this._client.getAccountReport(request);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Retrieves an account report.
|
|
122
|
+
* @param {GetExcelAccountReportRequest} request - The request object for getexcelaccountreport.
|
|
123
|
+
* @returns {Promise<GetExcelAccountReportResponse>} A promise that resolves with the account report.
|
|
124
|
+
*/
|
|
125
|
+
getExcelAccountReport(request) {
|
|
126
|
+
// Validate request
|
|
127
|
+
(0, validation_1.validateRequest)(request);
|
|
128
|
+
return this._client.getExcelAccountReport(request);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.AccountReportServiceNode = AccountReportServiceNode;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { AccountReportSchema } from "./account_report_pb";
|
|
4
|
+
import type { Token } from "../../../type/v1/token_pb";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file meshtrade/reporting/account_report/v1/service.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_meshtrade_reporting_account_report_v1_service: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* Defines the parameters for requesting a structured account report.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message meshtrade.reporting.account_report.v1.GetAccountReportRequest
|
|
15
|
+
*/
|
|
16
|
+
export type GetAccountReportRequest = Message<"meshtrade.reporting.account_report.v1.GetAccountReportRequest"> & {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* The Account Number for which the report is requested.
|
|
20
|
+
* Must be a 7-digit number starting with '1'.
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: string account_number = 1;
|
|
23
|
+
*/
|
|
24
|
+
accountNumber: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* The start of the reporting period (inclusive). This field is required.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: google.protobuf.Timestamp period_start = 2;
|
|
30
|
+
*/
|
|
31
|
+
periodStart?: Timestamp;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* The end of the reporting period (inclusive). This field is required.
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: google.protobuf.Timestamp period_end = 3;
|
|
37
|
+
*/
|
|
38
|
+
periodEnd?: Timestamp;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* The asset token used to valuate all financial data in the report.
|
|
42
|
+
* This is typically a fiat stablecoin (e.g., USDC) but can be any supported asset.
|
|
43
|
+
* This field is required.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: meshtrade.type.v1.Token reporting_asset_token = 4;
|
|
46
|
+
*/
|
|
47
|
+
reportingAssetToken?: Token;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message meshtrade.reporting.account_report.v1.GetAccountReportRequest.
|
|
51
|
+
* Use `create(GetAccountReportRequestSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export declare const GetAccountReportRequestSchema: GenMessage<GetAccountReportRequest>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* Defines the parameters for requesting an Excel export of an account report.
|
|
57
|
+
*
|
|
58
|
+
* @generated from message meshtrade.reporting.account_report.v1.GetExcelAccountReportRequest
|
|
59
|
+
*/
|
|
60
|
+
export type GetExcelAccountReportRequest = Message<"meshtrade.reporting.account_report.v1.GetExcelAccountReportRequest"> & {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* The Unique Mesh Account Number for which the report is requested.
|
|
64
|
+
* Must be a 7-digit number starting with '1'.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string account_number = 1;
|
|
67
|
+
*/
|
|
68
|
+
accountNumber: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* The start of the reporting period (inclusive). This field is required.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: google.protobuf.Timestamp period_start = 2;
|
|
74
|
+
*/
|
|
75
|
+
periodStart?: Timestamp;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* The end of the reporting period (inclusive). This field is required.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: google.protobuf.Timestamp period_end = 3;
|
|
81
|
+
*/
|
|
82
|
+
periodEnd?: Timestamp;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* The asset token used to valuate all financial data in the report.
|
|
86
|
+
* This is typically a fiat stablecoin (e.g., mZAR or USDC) but can be any supported asset.
|
|
87
|
+
* This field is required.
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: meshtrade.type.v1.Token reporting_asset_token = 4;
|
|
90
|
+
*/
|
|
91
|
+
reportingAssetToken?: Token;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Describes the message meshtrade.reporting.account_report.v1.GetExcelAccountReportRequest.
|
|
95
|
+
* Use `create(GetExcelAccountReportRequestSchema)` to create a new message.
|
|
96
|
+
*/
|
|
97
|
+
export declare const GetExcelAccountReportRequestSchema: GenMessage<GetExcelAccountReportRequest>;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* Contains the response for an Excel account report export.
|
|
101
|
+
*
|
|
102
|
+
* @generated from message meshtrade.reporting.account_report.v1.GetExcelAccountReportResponse
|
|
103
|
+
*/
|
|
104
|
+
export type GetExcelAccountReportResponse = Message<"meshtrade.reporting.account_report.v1.GetExcelAccountReportResponse"> & {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* The binary content of the generated Excel (.xlsx) report, encoded as a
|
|
108
|
+
* base64 string.
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: string excel_base64 = 1;
|
|
111
|
+
*/
|
|
112
|
+
excelBase64: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message meshtrade.reporting.account_report.v1.GetExcelAccountReportResponse.
|
|
116
|
+
* Use `create(GetExcelAccountReportResponseSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export declare const GetExcelAccountReportResponseSchema: GenMessage<GetExcelAccountReportResponse>;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* The AccountReportService provides endpoints for generating and exporting
|
|
122
|
+
* comprehensive account activity reports.
|
|
123
|
+
*
|
|
124
|
+
* Clients can use this service to retrieve structured reports containing income,
|
|
125
|
+
* fees, and trading statements for a specified account and time period. All
|
|
126
|
+
* financial values within the reports are denominated in a user-specified
|
|
127
|
+
* reporting currency.
|
|
128
|
+
*
|
|
129
|
+
* Access to all service methods requires appropriate Reporting domain permissions.
|
|
130
|
+
*
|
|
131
|
+
* @generated from service meshtrade.reporting.account_report.v1.AccountReportService
|
|
132
|
+
*/
|
|
133
|
+
export declare const AccountReportService: GenService<{
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* Retrieves a structured account report.
|
|
137
|
+
*
|
|
138
|
+
* Generates a detailed report for the given account and time range, with all
|
|
139
|
+
* values denominated in the specified reporting asset token.
|
|
140
|
+
*
|
|
141
|
+
* @generated from rpc meshtrade.reporting.account_report.v1.AccountReportService.GetAccountReport
|
|
142
|
+
*/
|
|
143
|
+
getAccountReport: {
|
|
144
|
+
methodKind: "unary";
|
|
145
|
+
input: typeof GetAccountReportRequestSchema;
|
|
146
|
+
output: typeof AccountReportSchema;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* Exports an account report as a downloadable Excel file.
|
|
151
|
+
*
|
|
152
|
+
* Generates the same report as GetAccountReport but returns it as a
|
|
153
|
+
* base64-encoded string representing an Excel (.xlsx) file.
|
|
154
|
+
*
|
|
155
|
+
* @generated from rpc meshtrade.reporting.account_report.v1.AccountReportService.GetExcelAccountReport
|
|
156
|
+
*/
|
|
157
|
+
getExcelAccountReport: {
|
|
158
|
+
methodKind: "unary";
|
|
159
|
+
input: typeof GetExcelAccountReportRequestSchema;
|
|
160
|
+
output: typeof GetExcelAccountReportResponseSchema;
|
|
161
|
+
};
|
|
162
|
+
}>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/reporting/account_report/v1/service.proto (package meshtrade.reporting.account_report.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AccountReportService = exports.GetExcelAccountReportResponseSchema = exports.GetExcelAccountReportRequestSchema = exports.GetAccountReportRequestSchema = exports.file_meshtrade_reporting_account_report_v1_service = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
10
|
+
const method_options_pb_1 = require("../../../option/method_options/v1/method_options_pb");
|
|
11
|
+
const account_report_pb_1 = require("./account_report_pb");
|
|
12
|
+
const token_pb_1 = require("../../../type/v1/token_pb");
|
|
13
|
+
/**
|
|
14
|
+
* Describes the file meshtrade/reporting/account_report/v1/service.proto.
|
|
15
|
+
*/
|
|
16
|
+
exports.file_meshtrade_reporting_account_report_v1_service = (0, codegenv2_1.fileDesc)("CjNtZXNodHJhZGUvcmVwb3J0aW5nL2FjY291bnRfcmVwb3J0L3YxL3NlcnZpY2UucHJvdG8SJW1lc2h0cmFkZS5yZXBvcnRpbmcuYWNjb3VudF9yZXBvcnQudjEi6wIKF0dldEFjY291bnRSZXBvcnRSZXF1ZXN0EioKDmFjY291bnRfbnVtYmVyGAEgASgJQhK6SA9yDTILXjFbMC05XXs2fSQSOAoMcGVyaW9kX3N0YXJ0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIGukgDyAEBEjYKCnBlcmlvZF9lbmQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQga6SAPIAQESPwoVcmVwb3J0aW5nX2Fzc2V0X3Rva2VuGAQgASgLMhgubWVzaHRyYWRlLnR5cGUudjEuVG9rZW5CBrpIA8gBATpxukhuGmwKGHBlcmlvZC5jaHJvbm9sb2dpY2FsLmdldBIrcGVyaW9kX2VuZCBtdXN0IGJlIG9uIG9yIGFmdGVyIHBlcmlvZF9zdGFydBojdGhpcy5wZXJpb2RfZW5kID4gdGhpcy5wZXJpb2Rfc3RhcnQi8wIKHEdldEV4Y2VsQWNjb3VudFJlcG9ydFJlcXVlc3QSKgoOYWNjb3VudF9udW1iZXIYASABKAlCErpID3INMgteMVswLTldezZ9JBI4CgxwZXJpb2Rfc3RhcnQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQga6SAPIAQESNgoKcGVyaW9kX2VuZBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCBrpIA8gBARI/ChVyZXBvcnRpbmdfYXNzZXRfdG9rZW4YBCABKAsyGC5tZXNodHJhZGUudHlwZS52MS5Ub2tlbkIGukgDyAEBOnS6SHEabwoacGVyaW9kLmNocm9ub2xvZ2ljYWwuZXhjZWwSK3BlcmlvZF9lbmQgbXVzdCBiZSBvbiBvciBhZnRlciBwZXJpb2Rfc3RhcnQaJHRoaXMucGVyaW9kX2VuZCA+PSB0aGlzLnBlcmlvZF9zdGFydCI1Ch1HZXRFeGNlbEFjY291bnRSZXBvcnRSZXNwb25zZRIUCgxleGNlbF9iYXNlNjQYASABKAky7gIKFEFjY291bnRSZXBvcnRTZXJ2aWNlEpwBChBHZXRBY2NvdW50UmVwb3J0Ej4ubWVzaHRyYWRlLnJlcG9ydGluZy5hY2NvdW50X3JlcG9ydC52MS5HZXRBY2NvdW50UmVwb3J0UmVxdWVzdBo0Lm1lc2h0cmFkZS5yZXBvcnRpbmcuYWNjb3VudF9yZXBvcnQudjEuQWNjb3VudFJlcG9ydCISsrUYDggBEAIaCICb7gKBm+4CErYBChVHZXRFeGNlbEFjY291bnRSZXBvcnQSQy5tZXNodHJhZGUucmVwb3J0aW5nLmFjY291bnRfcmVwb3J0LnYxLkdldEV4Y2VsQWNjb3VudFJlcG9ydFJlcXVlc3QaRC5tZXNodHJhZGUucmVwb3J0aW5nLmFjY291bnRfcmVwb3J0LnYxLkdldEV4Y2VsQWNjb3VudFJlcG9ydFJlc3BvbnNlIhKytRgOCAEQAhoIgJvuAoGb7gJCeQosY28ubWVzaHRyYWRlLmFwaS5yZXBvcnRpbmcuYWNjb3VudF9yZXBvcnQudjFaSWdpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby9yZXBvcnRpbmcvYWNjb3VudF9yZXBvcnQvdjE7YWNjb3VudF9yZXBvcnRfdjFiBnByb3RvMw", [validate_pb_1.file_buf_validate_validate, wkt_1.file_google_protobuf_timestamp, method_options_pb_1.file_meshtrade_option_method_options_v1_method_options, account_report_pb_1.file_meshtrade_reporting_account_report_v1_account_report, token_pb_1.file_meshtrade_type_v1_token]);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message meshtrade.reporting.account_report.v1.GetAccountReportRequest.
|
|
19
|
+
* Use `create(GetAccountReportRequestSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
exports.GetAccountReportRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_reporting_account_report_v1_service, 0);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message meshtrade.reporting.account_report.v1.GetExcelAccountReportRequest.
|
|
24
|
+
* Use `create(GetExcelAccountReportRequestSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
exports.GetExcelAccountReportRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_reporting_account_report_v1_service, 1);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message meshtrade.reporting.account_report.v1.GetExcelAccountReportResponse.
|
|
29
|
+
* Use `create(GetExcelAccountReportResponseSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
exports.GetExcelAccountReportResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_reporting_account_report_v1_service, 2);
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* The AccountReportService provides endpoints for generating and exporting
|
|
35
|
+
* comprehensive account activity reports.
|
|
36
|
+
*
|
|
37
|
+
* Clients can use this service to retrieve structured reports containing income,
|
|
38
|
+
* fees, and trading statements for a specified account and time period. All
|
|
39
|
+
* financial values within the reports are denominated in a user-specified
|
|
40
|
+
* reporting currency.
|
|
41
|
+
*
|
|
42
|
+
* Access to all service methods requires appropriate Reporting domain permissions.
|
|
43
|
+
*
|
|
44
|
+
* @generated from service meshtrade.reporting.account_report.v1.AccountReportService
|
|
45
|
+
*/
|
|
46
|
+
exports.AccountReportService = (0, codegenv2_1.serviceDesc)(exports.file_meshtrade_reporting_account_report_v1_service, 0);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Amount } from "../../../type/v1/amount_pb";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file meshtrade/reporting/account_report/v1/trading_statement_entry.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_meshtrade_reporting_account_report_v1_trading_statement_entry: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* TradingStatementEntry represents a single, immutable transaction record in a user's account statement.
|
|
12
|
+
* It provides a detailed breakdown of each transaction, including the asset involved, transaction type,
|
|
13
|
+
* amount, price, and resulting balance.
|
|
14
|
+
*
|
|
15
|
+
* @generated from message meshtrade.reporting.account_report.v1.TradingStatementEntry
|
|
16
|
+
*/
|
|
17
|
+
export type TradingStatementEntry = Message<"meshtrade.reporting.account_report.v1.TradingStatementEntry"> & {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* The exact date and time when the transaction was processed.
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: google.protobuf.Timestamp transaction_date = 1;
|
|
23
|
+
*/
|
|
24
|
+
transactionDate?: Timestamp;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* A unique identifier for the transaction, ensuring each entry is distinct and traceable.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string transaction_id = 2;
|
|
30
|
+
*/
|
|
31
|
+
transactionId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* The specific token involved in the transaction (e.g., "mZAR", "yXLM").
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string token_code = 3;
|
|
37
|
+
*/
|
|
38
|
+
tokenCode: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* A human-readable description of the transaction type, such as "Deposit," "Withdrawal," or "Trade."
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: string description = 4;
|
|
44
|
+
*/
|
|
45
|
+
description: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* The quantity of the token transacted. A positive value indicates an increase in the asset,
|
|
49
|
+
* while a negative value indicates a decrease.
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: meshtrade.type.v1.Amount amount = 5;
|
|
52
|
+
*/
|
|
53
|
+
amount?: Amount;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* The price per unit of the token at the time of the transaction. This is used to calculate the total cost.
|
|
57
|
+
*
|
|
58
|
+
* @generated from field: meshtrade.type.v1.Amount price = 6;
|
|
59
|
+
*/
|
|
60
|
+
price?: Amount;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* The total value of the transaction, calculated as amount * price.
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: meshtrade.type.v1.Amount cost = 7;
|
|
66
|
+
*/
|
|
67
|
+
cost?: Amount;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* The remaining balance of the token in the account after the transaction was completed.
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: meshtrade.type.v1.Amount balance = 8;
|
|
73
|
+
*/
|
|
74
|
+
balance?: Amount;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Describes the message meshtrade.reporting.account_report.v1.TradingStatementEntry.
|
|
78
|
+
* Use `create(TradingStatementEntrySchema)` to create a new message.
|
|
79
|
+
*/
|
|
80
|
+
export declare const TradingStatementEntrySchema: GenMessage<TradingStatementEntry>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/reporting/account_report/v1/trading_statement_entry.proto (package meshtrade.reporting.account_report.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TradingStatementEntrySchema = exports.file_meshtrade_reporting_account_report_v1_trading_statement_entry = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
9
|
+
const amount_pb_1 = require("../../../type/v1/amount_pb");
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file meshtrade/reporting/account_report/v1/trading_statement_entry.proto.
|
|
12
|
+
*/
|
|
13
|
+
exports.file_meshtrade_reporting_account_report_v1_trading_statement_entry = (0, codegenv2_1.fileDesc)("CkNtZXNodHJhZGUvcmVwb3J0aW5nL2FjY291bnRfcmVwb3J0L3YxL3RyYWRpbmdfc3RhdGVtZW50X2VudHJ5LnByb3RvEiVtZXNodHJhZGUucmVwb3J0aW5nLmFjY291bnRfcmVwb3J0LnYxIrgCChVUcmFkaW5nU3RhdGVtZW50RW50cnkSNAoQdHJhbnNhY3Rpb25fZGF0ZRgBIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASFgoOdHJhbnNhY3Rpb25faWQYAiABKAkSEgoKdG9rZW5fY29kZRgDIAEoCRITCgtkZXNjcmlwdGlvbhgEIAEoCRIpCgZhbW91bnQYBSABKAsyGS5tZXNodHJhZGUudHlwZS52MS5BbW91bnQSKAoFcHJpY2UYBiABKAsyGS5tZXNodHJhZGUudHlwZS52MS5BbW91bnQSJwoEY29zdBgHIAEoCzIZLm1lc2h0cmFkZS50eXBlLnYxLkFtb3VudBIqCgdiYWxhbmNlGAggASgLMhkubWVzaHRyYWRlLnR5cGUudjEuQW1vdW50QnkKLGNvLm1lc2h0cmFkZS5hcGkucmVwb3J0aW5nLmFjY291bnRfcmVwb3J0LnYxWklnaXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vcmVwb3J0aW5nL2FjY291bnRfcmVwb3J0L3YxO2FjY291bnRfcmVwb3J0X3YxYgZwcm90bzM", [wkt_1.file_google_protobuf_timestamp, amount_pb_1.file_meshtrade_type_v1_amount]);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message meshtrade.reporting.account_report.v1.TradingStatementEntry.
|
|
16
|
+
* Use `create(TradingStatementEntrySchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
exports.TradingStatementEntrySchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_reporting_account_report_v1_trading_statement_entry, 0);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ===================================================================
|
|
3
|
+
// AUTO-GENERATED SECTION - ONLY EDIT BELOW THE CLOSING COMMENT BLOCK
|
|
4
|
+
// ===================================================================
|
|
5
|
+
// This section is automatically managed by protoc-gen-meshts.
|
|
6
|
+
//
|
|
7
|
+
// DO NOT EDIT ANYTHING IN THIS SECTION MANUALLY!
|
|
8
|
+
// Your changes will be overwritten during code generation.
|
|
9
|
+
//
|
|
10
|
+
// To add custom exports, scroll down to the
|
|
11
|
+
// "MANUAL EXPORTS" section indicated below.
|
|
12
|
+
// ===================================================================
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
25
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
// Generated exports
|
|
29
|
+
__exportStar(require("./instrument_pb"), exports);
|
|
30
|
+
__exportStar(require("./instrument_type_pb"), exports);
|
|
31
|
+
__exportStar(require("./unit_pb"), exports);
|
|
32
|
+
// ===================================================================
|
|
33
|
+
// END OF AUTO-GENERATED SECTION
|
|
34
|
+
// ===================================================================
|
|
35
|
+
//
|
|
36
|
+
// MANUAL EXPORTS - ADD YOUR CUSTOM EXPORTS BELOW
|
|
37
|
+
//
|
|
38
|
+
// You can safely add your own export statements in this section.
|
|
39
|
+
// They will be preserved across code generation.
|
|
40
|
+
//
|
|
41
|
+
// Example:
|
|
42
|
+
// export * from "./my_custom_module";
|
|
43
|
+
// export { MyCustomClass } from "./another_module";
|
|
44
|
+
// ===================================================================
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Token } from "../../../type/v1/token_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file meshtrade/studio/instrument/v1/instrument.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_meshtrade_studio_instrument_v1_instrument: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* An instrument structured in Mesh Studio.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message meshtrade.studio.instrument.v1.Instrument
|
|
13
|
+
*/
|
|
14
|
+
export type Instrument = Message<"meshtrade.studio.instrument.v1.Instrument"> & {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* Unique resource identifier in format groups/{ULIDv2}.
|
|
18
|
+
* Immutable and system-generated on creation.
|
|
19
|
+
* Ignored if provided on creation.
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string name = 1;
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* Parent group resource name establishing direct ownership.
|
|
27
|
+
* Defines the immediate hierarchical relationship.
|
|
28
|
+
* Required on creation.
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: string owner = 2;
|
|
31
|
+
*/
|
|
32
|
+
owner: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* Human-readable name for organizational identification and display.
|
|
36
|
+
* User-configurable and non-unique across the system.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: string display_name = 4;
|
|
39
|
+
*/
|
|
40
|
+
displayName: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* The token in which this instrument is denominated.
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: meshtrade.type.v1.Token token = 5;
|
|
46
|
+
*/
|
|
47
|
+
token?: Token;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message meshtrade.studio.instrument.v1.Instrument.
|
|
51
|
+
* Use `create(InstrumentSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export declare const InstrumentSchema: GenMessage<Instrument>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v2.10.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file meshtrade/studio/instrument/v1/instrument.proto (package meshtrade.studio.instrument.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InstrumentSchema = exports.file_meshtrade_studio_instrument_v1_instrument = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const validate_pb_1 = require("../../../../buf/validate/validate_pb");
|
|
9
|
+
const token_pb_1 = require("../../../type/v1/token_pb");
|
|
10
|
+
/**
|
|
11
|
+
* Describes the file meshtrade/studio/instrument/v1/instrument.proto.
|
|
12
|
+
*/
|
|
13
|
+
exports.file_meshtrade_studio_instrument_v1_instrument = (0, codegenv2_1.fileDesc)("Ci9tZXNodHJhZGUvc3R1ZGlvL2luc3RydW1lbnQvdjEvaW5zdHJ1bWVudC5wcm90bxIebWVzaHRyYWRlLnN0dWRpby5pbnN0cnVtZW50LnYxItoCCgpJbnN0cnVtZW50ErYBCgRuYW1lGAEgASgJQqcBukijAboBnwEKFG5hbWUuZm9ybWF0Lm9wdGlvbmFsEjNuYW1lIG11c3QgYmUgZW1wdHkgb3IgaW4gdGhlIGZvcm1hdCBncm91cHMve1VMSUR2Mn0aUnNpemUodGhpcykgPT0gMCB8fCB0aGlzLm1hdGNoZXMoJ15ncm91cHMvWzAxMjM0NTY3ODlBQkNERUZHSEpLTU5QUVJTVFZXWFlaXXsyNn0kJykSSAoFb3duZXIYAiABKAlCObpINnI0Mi9eZ3JvdXBzL1swMTIzNDU2Nzg5QUJDREVGR0hKS01OUFFSU1RWV1hZWl17MjZ9JJgBIRIgCgxkaXNwbGF5X25hbWUYBCABKAlCCrpIB3IFEAEY/wESJwoFdG9rZW4YBSABKAsyGC5tZXNodHJhZGUudHlwZS52MS5Ub2tlbkJnCiVjby5tZXNodHJhZGUuYXBpLnN0dWRpby5pbnN0cnVtZW50LnYxWj5naXRodWIuY29tL21lc2h0cmFkZS9hcGkvZ28vc3R1ZGlvL2luc3RydW1lbnQvdjE7aW5zdHJ1bWVudF92MWIGcHJvdG8z", [validate_pb_1.file_buf_validate_validate, token_pb_1.file_meshtrade_type_v1_token]);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message meshtrade.studio.instrument.v1.Instrument.
|
|
16
|
+
* Use `create(InstrumentSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
exports.InstrumentSchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_studio_instrument_v1_instrument, 0);
|