@meshtrade/api-web 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 +68 -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 +7 -0
- package/dist/meshtrade/common/config.js +9 -0
- package/dist/meshtrade/common/connectInterceptors.d.ts +73 -0
- package/dist/meshtrade/common/connectInterceptors.js +126 -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_pb.d.ts +123 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +45 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.d.ts +48 -0
- package/dist/meshtrade/compliance/client/v1/service_web_meshts.js +92 -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_pb.d.ts +343 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +86 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/iam/api_user/v1/service_web_meshts.js +152 -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_pb.d.ts +306 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +75 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.d.ts +60 -0
- package/dist/meshtrade/iam/group/v1/service_web_meshts.js +112 -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_pb.d.ts +379 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +90 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.d.ts +78 -0
- package/dist/meshtrade/iam/user/v1/service_web_meshts.js +142 -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_pb.d.ts +102 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +41 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.d.ts +50 -0
- package/dist/meshtrade/ledger/transaction/v1/service_web_meshts.js +91 -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_pb.d.ts +48 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +27 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/market_data/price/v1/service_web_meshts.js +72 -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_pb.d.ts +162 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +46 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.d.ts +42 -0
- package/dist/meshtrade/reporting/account_report/v1/service_web_meshts.js +82 -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_pb.d.ts +357 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +73 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.d.ts +81 -0
- package/dist/meshtrade/trading/limit_order/v1/service_web_meshts.js +141 -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_pb.d.ts +34 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +22 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.d.ts +36 -0
- package/dist/meshtrade/trading/market_order/v1/service_web_meshts.js +72 -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_pb.d.ts +559 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +112 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.d.ts +84 -0
- package/dist/meshtrade/wallet/account/v1/service_web_meshts.js +152 -0
- package/package.json +171 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Token } from "../../../type/v1/token_pb";
|
|
3
|
+
import type { Amount } from "../../../type/v1/amount_pb";
|
|
4
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file meshtrade/reporting/account_report/v1/income_entry.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_meshtrade_reporting_account_report_v1_income_entry: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* IncomeEntry represents a single income line item in an account report.
|
|
13
|
+
*
|
|
14
|
+
* Each entry captures a dated transaction or earning event related to a specific asset
|
|
15
|
+
* and token. It includes contextual metadata (description and narrative), the original
|
|
16
|
+
* amount, and its equivalent value in the report's specified reporting currency.
|
|
17
|
+
*
|
|
18
|
+
* @generated from message meshtrade.reporting.account_report.v1.IncomeEntry
|
|
19
|
+
*/
|
|
20
|
+
export type IncomeEntry = Message<"meshtrade.reporting.account_report.v1.IncomeEntry"> & {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* Human-readable name of the asset associated with this entry.
|
|
24
|
+
* Used for display and identification purposes.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string asset_name = 1;
|
|
27
|
+
*/
|
|
28
|
+
assetName: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* Token representing the currency or asset in which the original amount is denominated.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: meshtrade.type.v1.Token token = 2;
|
|
34
|
+
*/
|
|
35
|
+
token?: Token;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* Timestamp representing the date the income event occurred or was recorded.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: google.protobuf.Timestamp date = 3;
|
|
41
|
+
*/
|
|
42
|
+
date?: Timestamp;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* Short description or label for the entry (e.g. "Interest", "Trading Fees").
|
|
46
|
+
* Intended to summarize the nature of the transaction.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: string description = 4;
|
|
49
|
+
*/
|
|
50
|
+
description: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* Extended narrative or context for the income entry, often including
|
|
54
|
+
* source details or explanatory information.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: meshtrade.reporting.account_report.v1.IncomeNarrative narrative = 5;
|
|
57
|
+
*/
|
|
58
|
+
narrative: IncomeNarrative;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* Original income amount in the native token specified.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: meshtrade.type.v1.Amount amount = 6;
|
|
64
|
+
*/
|
|
65
|
+
amount?: Amount;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* Equivalent value of the income in the reporting currency,
|
|
69
|
+
* as defined by the report context.
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: meshtrade.type.v1.Amount reported_currency_value = 7;
|
|
72
|
+
*/
|
|
73
|
+
reportedCurrencyValue?: Amount;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message meshtrade.reporting.account_report.v1.IncomeEntry.
|
|
77
|
+
* Use `create(IncomeEntrySchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export declare const IncomeEntrySchema: GenMessage<IncomeEntry>;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum meshtrade.reporting.account_report.v1.IncomeNarrative
|
|
82
|
+
*/
|
|
83
|
+
export declare enum IncomeNarrative {
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* Default unspecified narrative type.
|
|
87
|
+
* Used when the narrative category is unknown or not applicable.
|
|
88
|
+
*
|
|
89
|
+
* @generated from enum value: INCOME_NARRATIVE_UNSPECIFIED = 0;
|
|
90
|
+
*/
|
|
91
|
+
UNSPECIFIED = 0,
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* Indicates income derived from yield-generating activities,
|
|
95
|
+
* such as staking, lending, or liquidity provision.
|
|
96
|
+
*
|
|
97
|
+
* @generated from enum value: INCOME_NARRATIVE_YIELD = 1;
|
|
98
|
+
*/
|
|
99
|
+
YIELD = 1,
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* Income received from dividends paid out by a company.
|
|
103
|
+
*
|
|
104
|
+
* @generated from enum value: INCOME_NARRATIVE_DIVIDEND = 2;
|
|
105
|
+
*/
|
|
106
|
+
DIVIDEND = 2,
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* Income earned from interest on loans or other debt instruments.
|
|
110
|
+
*
|
|
111
|
+
* @generated from enum value: INCOME_NARRATIVE_INTEREST = 3;
|
|
112
|
+
*/
|
|
113
|
+
INTEREST = 3,
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* The original amount of a loan or investment, not including any interest or appreciation.
|
|
117
|
+
*
|
|
118
|
+
* @generated from enum value: INCOME_NARRATIVE_PRINCIPAL = 4;
|
|
119
|
+
*/
|
|
120
|
+
PRINCIPAL = 4,
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* A general distribution of funds or assets.
|
|
124
|
+
*
|
|
125
|
+
* @generated from enum value: INCOME_NARRATIVE_DISTRIBUTION = 5;
|
|
126
|
+
*/
|
|
127
|
+
DISTRIBUTION = 5,
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* A distribution of profits to shareholders or partners.
|
|
131
|
+
*
|
|
132
|
+
* @generated from enum value: INCOME_NARRATIVE_PROFIT_DISTRIBUTION = 6;
|
|
133
|
+
*/
|
|
134
|
+
PROFIT_DISTRIBUTION = 6
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Describes the enum meshtrade.reporting.account_report.v1.IncomeNarrative.
|
|
138
|
+
*/
|
|
139
|
+
export declare const IncomeNarrativeSchema: GenEnum<IncomeNarrative>;
|
|
@@ -0,0 +1,80 @@
|
|
|
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/income_entry.proto (package meshtrade.reporting.account_report.v1, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IncomeNarrativeSchema = exports.IncomeNarrative = exports.IncomeEntrySchema = exports.file_meshtrade_reporting_account_report_v1_income_entry = void 0;
|
|
7
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
|
+
const token_pb_1 = require("../../../type/v1/token_pb");
|
|
9
|
+
const amount_pb_1 = require("../../../type/v1/amount_pb");
|
|
10
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file meshtrade/reporting/account_report/v1/income_entry.proto.
|
|
13
|
+
*/
|
|
14
|
+
exports.file_meshtrade_reporting_account_report_v1_income_entry = (0, codegenv2_1.fileDesc)("CjhtZXNodHJhZGUvcmVwb3J0aW5nL2FjY291bnRfcmVwb3J0L3YxL2luY29tZV9lbnRyeS5wcm90bxIlbWVzaHRyYWRlLnJlcG9ydGluZy5hY2NvdW50X3JlcG9ydC52MSK7AgoLSW5jb21lRW50cnkSEgoKYXNzZXRfbmFtZRgBIAEoCRInCgV0b2tlbhgCIAEoCzIYLm1lc2h0cmFkZS50eXBlLnYxLlRva2VuEigKBGRhdGUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhMKC2Rlc2NyaXB0aW9uGAQgASgJEkkKCW5hcnJhdGl2ZRgFIAEoDjI2Lm1lc2h0cmFkZS5yZXBvcnRpbmcuYWNjb3VudF9yZXBvcnQudjEuSW5jb21lTmFycmF0aXZlEikKBmFtb3VudBgGIAEoCzIZLm1lc2h0cmFkZS50eXBlLnYxLkFtb3VudBI6ChdyZXBvcnRlZF9jdXJyZW5jeV92YWx1ZRgHIAEoCzIZLm1lc2h0cmFkZS50eXBlLnYxLkFtb3VudCr6AQoPSW5jb21lTmFycmF0aXZlEiAKHElOQ09NRV9OQVJSQVRJVkVfVU5TUEVDSUZJRUQQABIaChZJTkNPTUVfTkFSUkFUSVZFX1lJRUxEEAESHQoZSU5DT01FX05BUlJBVElWRV9ESVZJREVORBACEh0KGUlOQ09NRV9OQVJSQVRJVkVfSU5URVJFU1QQAxIeChpJTkNPTUVfTkFSUkFUSVZFX1BSSU5DSVBBTBAEEiEKHUlOQ09NRV9OQVJSQVRJVkVfRElTVFJJQlVUSU9OEAUSKAokSU5DT01FX05BUlJBVElWRV9QUk9GSVRfRElTVFJJQlVUSU9OEAZCeQosY28ubWVzaHRyYWRlLmFwaS5yZXBvcnRpbmcuYWNjb3VudF9yZXBvcnQudjFaSWdpdGh1Yi5jb20vbWVzaHRyYWRlL2FwaS9nby9yZXBvcnRpbmcvYWNjb3VudF9yZXBvcnQvdjE7YWNjb3VudF9yZXBvcnRfdjFiBnByb3RvMw", [token_pb_1.file_meshtrade_type_v1_token, amount_pb_1.file_meshtrade_type_v1_amount, wkt_1.file_google_protobuf_timestamp]);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message meshtrade.reporting.account_report.v1.IncomeEntry.
|
|
17
|
+
* Use `create(IncomeEntrySchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
exports.IncomeEntrySchema = (0, codegenv2_1.messageDesc)(exports.file_meshtrade_reporting_account_report_v1_income_entry, 0);
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum meshtrade.reporting.account_report.v1.IncomeNarrative
|
|
22
|
+
*/
|
|
23
|
+
var IncomeNarrative;
|
|
24
|
+
(function (IncomeNarrative) {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* Default unspecified narrative type.
|
|
28
|
+
* Used when the narrative category is unknown or not applicable.
|
|
29
|
+
*
|
|
30
|
+
* @generated from enum value: INCOME_NARRATIVE_UNSPECIFIED = 0;
|
|
31
|
+
*/
|
|
32
|
+
IncomeNarrative[IncomeNarrative["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* Indicates income derived from yield-generating activities,
|
|
36
|
+
* such as staking, lending, or liquidity provision.
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: INCOME_NARRATIVE_YIELD = 1;
|
|
39
|
+
*/
|
|
40
|
+
IncomeNarrative[IncomeNarrative["YIELD"] = 1] = "YIELD";
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* Income received from dividends paid out by a company.
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: INCOME_NARRATIVE_DIVIDEND = 2;
|
|
46
|
+
*/
|
|
47
|
+
IncomeNarrative[IncomeNarrative["DIVIDEND"] = 2] = "DIVIDEND";
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* Income earned from interest on loans or other debt instruments.
|
|
51
|
+
*
|
|
52
|
+
* @generated from enum value: INCOME_NARRATIVE_INTEREST = 3;
|
|
53
|
+
*/
|
|
54
|
+
IncomeNarrative[IncomeNarrative["INTEREST"] = 3] = "INTEREST";
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* The original amount of a loan or investment, not including any interest or appreciation.
|
|
58
|
+
*
|
|
59
|
+
* @generated from enum value: INCOME_NARRATIVE_PRINCIPAL = 4;
|
|
60
|
+
*/
|
|
61
|
+
IncomeNarrative[IncomeNarrative["PRINCIPAL"] = 4] = "PRINCIPAL";
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* A general distribution of funds or assets.
|
|
65
|
+
*
|
|
66
|
+
* @generated from enum value: INCOME_NARRATIVE_DISTRIBUTION = 5;
|
|
67
|
+
*/
|
|
68
|
+
IncomeNarrative[IncomeNarrative["DISTRIBUTION"] = 5] = "DISTRIBUTION";
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* A distribution of profits to shareholders or partners.
|
|
72
|
+
*
|
|
73
|
+
* @generated from enum value: INCOME_NARRATIVE_PROFIT_DISTRIBUTION = 6;
|
|
74
|
+
*/
|
|
75
|
+
IncomeNarrative[IncomeNarrative["PROFIT_DISTRIBUTION"] = 6] = "PROFIT_DISTRIBUTION";
|
|
76
|
+
})(IncomeNarrative || (exports.IncomeNarrative = IncomeNarrative = {}));
|
|
77
|
+
/**
|
|
78
|
+
* Describes the enum meshtrade.reporting.account_report.v1.IncomeNarrative.
|
|
79
|
+
*/
|
|
80
|
+
exports.IncomeNarrativeSchema = (0, codegenv2_1.enumDesc)(exports.file_meshtrade_reporting_account_report_v1_income_entry, 0);
|
|
@@ -0,0 +1,48 @@
|
|
|
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("./account_report_pb"), exports);
|
|
30
|
+
__exportStar(require("./disclaimer_pb"), exports);
|
|
31
|
+
__exportStar(require("./fee_entry_pb"), exports);
|
|
32
|
+
__exportStar(require("./income_entry_pb"), exports);
|
|
33
|
+
__exportStar(require("./service_pb"), exports);
|
|
34
|
+
__exportStar(require("./service_web_meshts"), exports);
|
|
35
|
+
__exportStar(require("./trading_statement_entry_pb"), exports);
|
|
36
|
+
// ===================================================================
|
|
37
|
+
// END OF AUTO-GENERATED SECTION
|
|
38
|
+
// ===================================================================
|
|
39
|
+
//
|
|
40
|
+
// MANUAL EXPORTS - ADD YOUR CUSTOM EXPORTS BELOW
|
|
41
|
+
//
|
|
42
|
+
// You can safely add your own export statements in this section.
|
|
43
|
+
// They will be preserved across code generation.
|
|
44
|
+
//
|
|
45
|
+
// Example:
|
|
46
|
+
// export * from "./my_custom_module";
|
|
47
|
+
// export { MyCustomClass } from "./another_module";
|
|
48
|
+
// ===================================================================
|
|
@@ -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,42 @@
|
|
|
1
|
+
import { Interceptor } from "@connectrpc/connect";
|
|
2
|
+
import { GetAccountReportRequest, GetExcelAccountReportRequest, GetExcelAccountReportResponse } from "./service_pb";
|
|
3
|
+
import { AccountReport } from "./account_report_pb";
|
|
4
|
+
import { ConfigOpts } from "../../../common/config";
|
|
5
|
+
/**
|
|
6
|
+
* Web client for interacting with the meshtrade.reporting.account_report.v1 account report v1 API resource service.
|
|
7
|
+
* Uses Connect-ES with gRPC-Web transport for browser-compatible gRPC communication.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AccountReportServiceWeb {
|
|
10
|
+
private _client;
|
|
11
|
+
private readonly _config;
|
|
12
|
+
private readonly _interceptors;
|
|
13
|
+
/**
|
|
14
|
+
* Constructs an instance of AccountReportServiceWeb.
|
|
15
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
16
|
+
* @param {Interceptor[]} [interceptors] - For internal use by `withGroup`.
|
|
17
|
+
*/
|
|
18
|
+
constructor(config?: ConfigOpts, interceptors?: Interceptor[]);
|
|
19
|
+
/**
|
|
20
|
+
* Returns a new client instance configured to send the specified group
|
|
21
|
+
* resource name in the request headers for subsequent API calls.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} group - The operating group context to inject into the request
|
|
24
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
25
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
26
|
+
* @returns {AccountReportServiceWeb} A new, configured instance of the client.
|
|
27
|
+
* @throws {Error} If the group format is invalid (validation occurs in createGroupInterceptor)
|
|
28
|
+
*/
|
|
29
|
+
withGroup(group: string): AccountReportServiceWeb;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves an account report.
|
|
32
|
+
* @param {GetAccountReportRequest} request - The request object for getaccountreport.
|
|
33
|
+
* @returns {Promise<AccountReport>} A promise that resolves with the account report.
|
|
34
|
+
*/
|
|
35
|
+
getAccountReport(request: GetAccountReportRequest): Promise<AccountReport>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves an account report.
|
|
38
|
+
* @param {GetExcelAccountReportRequest} request - The request object for getexcelaccountreport.
|
|
39
|
+
* @returns {Promise<GetExcelAccountReportResponse>} A promise that resolves with the account report.
|
|
40
|
+
*/
|
|
41
|
+
getExcelAccountReport(request: GetExcelAccountReportRequest): Promise<GetExcelAccountReportResponse>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.AccountReportServiceWeb = void 0;
|
|
7
|
+
const connect_1 = require("@connectrpc/connect");
|
|
8
|
+
const connect_web_1 = require("@connectrpc/connect-web");
|
|
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
|
+
* Web client for interacting with the meshtrade.reporting.account_report.v1 account report v1 API resource service.
|
|
15
|
+
* Uses Connect-ES with gRPC-Web transport for browser-compatible gRPC communication.
|
|
16
|
+
*/
|
|
17
|
+
class AccountReportServiceWeb {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs an instance of AccountReportServiceWeb.
|
|
20
|
+
* @param {ConfigOpts} [config] - Optional configuration for the client.
|
|
21
|
+
* @param {Interceptor[]} [interceptors] - For internal use by `withGroup`.
|
|
22
|
+
*/
|
|
23
|
+
constructor(config, interceptors) {
|
|
24
|
+
this._config = (0, config_1.getConfigFromOpts)(config);
|
|
25
|
+
this._interceptors = interceptors || [];
|
|
26
|
+
// Create the gRPC-Web transport with interceptors
|
|
27
|
+
const transport = (0, connect_web_1.createGrpcWebTransport)({
|
|
28
|
+
baseUrl: this._config.apiServerURL,
|
|
29
|
+
interceptors: this._interceptors,
|
|
30
|
+
// Enable credentials (cookies) for cross-origin requests
|
|
31
|
+
fetch: (input, init) => globalThis.fetch(input, { ...init, credentials: 'include' }),
|
|
32
|
+
});
|
|
33
|
+
// Construct the Connect-ES client
|
|
34
|
+
this._client = (0, connect_1.createClient)(service_pb_1.AccountReportService, transport);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns a new client instance configured to send the specified group
|
|
38
|
+
* resource name in the request headers for subsequent API calls.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} group - The operating group context to inject into the request
|
|
41
|
+
* in the format `groups/{ulid}` where {ulid} is a 26-character ULID.
|
|
42
|
+
* Example: 'groups/01ARZ3NDEKTSV4YWVF8F5BH32'
|
|
43
|
+
* @returns {AccountReportServiceWeb} A new, configured instance of the client.
|
|
44
|
+
* @throws {Error} If the group format is invalid (validation occurs in createGroupInterceptor)
|
|
45
|
+
*/
|
|
46
|
+
withGroup(group) {
|
|
47
|
+
// Check if a group interceptor already exists.
|
|
48
|
+
// Group interceptors are identified by having a 'groupContext' property
|
|
49
|
+
const hasGroupInterceptor = this._interceptors.some((interceptor) => interceptor.groupContext !== undefined);
|
|
50
|
+
if (hasGroupInterceptor) {
|
|
51
|
+
throw new Error("Attempted to set group context twice. A group has already been set for this client instance.");
|
|
52
|
+
}
|
|
53
|
+
// Create a new interceptor for the group context
|
|
54
|
+
const groupInterceptor = (0, connectInterceptors_1.createGroupInterceptor)(group);
|
|
55
|
+
// Return a new client instance with the existing interceptors plus the new one
|
|
56
|
+
return new AccountReportServiceWeb(this._config, [
|
|
57
|
+
...this._interceptors,
|
|
58
|
+
groupInterceptor,
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves an account report.
|
|
63
|
+
* @param {GetAccountReportRequest} request - The request object for getaccountreport.
|
|
64
|
+
* @returns {Promise<AccountReport>} A promise that resolves with the account report.
|
|
65
|
+
*/
|
|
66
|
+
getAccountReport(request) {
|
|
67
|
+
// Validate request
|
|
68
|
+
(0, validation_1.validateRequest)(request);
|
|
69
|
+
return this._client.getAccountReport(request);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves an account report.
|
|
73
|
+
* @param {GetExcelAccountReportRequest} request - The request object for getexcelaccountreport.
|
|
74
|
+
* @returns {Promise<GetExcelAccountReportResponse>} A promise that resolves with the account report.
|
|
75
|
+
*/
|
|
76
|
+
getExcelAccountReport(request) {
|
|
77
|
+
// Validate request
|
|
78
|
+
(0, validation_1.validateRequest)(request);
|
|
79
|
+
return this._client.getExcelAccountReport(request);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.AccountReportServiceWeb = AccountReportServiceWeb;
|