@meshtrade/api-old 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.
Files changed (205) hide show
  1. package/README.md +117 -0
  2. package/dist/buf/validate/validate_pb.js +17134 -0
  3. package/dist/meshtrade/common/config.d.ts +7 -0
  4. package/dist/meshtrade/common/config.js +9 -0
  5. package/dist/meshtrade/common/groupHeaderInterceptor.d.ts +64 -0
  6. package/dist/meshtrade/common/groupHeaderInterceptor.js +76 -0
  7. package/dist/meshtrade/common/grpc_web.d.ts +18 -0
  8. package/dist/meshtrade/common/grpc_web.js +34 -0
  9. package/dist/meshtrade/common/validation.d.ts +62 -0
  10. package/dist/meshtrade/common/validation.js +77 -0
  11. package/dist/meshtrade/compliance/client/v1/client_pb.d.ts +91 -0
  12. package/dist/meshtrade/compliance/client/v1/client_pb.js +645 -0
  13. package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +178 -0
  14. package/dist/meshtrade/compliance/client/v1/company_pb.js +1322 -0
  15. package/dist/meshtrade/compliance/client/v1/company_representative_pb.d.ts +56 -0
  16. package/dist/meshtrade/compliance/client/v1/company_representative_pb.js +422 -0
  17. package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.d.ts +15 -0
  18. package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.js +40 -0
  19. package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +42 -0
  20. package/dist/meshtrade/compliance/client/v1/fund_pb.js +321 -0
  21. package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.d.ts +11 -0
  22. package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.js +36 -0
  23. package/dist/meshtrade/compliance/client/v1/index.d.ts +18 -0
  24. package/dist/meshtrade/compliance/client/v1/index.js +61 -0
  25. package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +50 -0
  26. package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +386 -0
  27. package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.d.ts +22 -0
  28. package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.js +47 -0
  29. package/dist/meshtrade/compliance/client/v1/natural_person_pb.d.ts +94 -0
  30. package/dist/meshtrade/compliance/client/v1/natural_person_pb.js +729 -0
  31. package/dist/meshtrade/compliance/client/v1/pep_status_pb.d.ts +10 -0
  32. package/dist/meshtrade/compliance/client/v1/pep_status_pb.js +35 -0
  33. package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.d.ts +47 -0
  34. package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.js +78 -0
  35. package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.d.ts +56 -0
  36. package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.js +270 -0
  37. package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +79 -0
  38. package/dist/meshtrade/compliance/client/v1/service_pb.js +660 -0
  39. package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.d.ts +29 -0
  40. package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.js +54 -0
  41. package/dist/meshtrade/compliance/client/v1/tax_residency_pb.d.ts +27 -0
  42. package/dist/meshtrade/compliance/client/v1/tax_residency_pb.js +208 -0
  43. package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +42 -0
  44. package/dist/meshtrade/compliance/client/v1/trust_pb.js +321 -0
  45. package/dist/meshtrade/compliance/client/v1/verification_status_pb.d.ts +11 -0
  46. package/dist/meshtrade/compliance/client/v1/verification_status_pb.js +36 -0
  47. package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.d.ts +27 -0
  48. package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.js +208 -0
  49. package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +57 -0
  50. package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +376 -0
  51. package/dist/meshtrade/iam/api_user/v1/index.d.ts +5 -0
  52. package/dist/meshtrade/iam/api_user/v1/index.js +46 -0
  53. package/dist/meshtrade/iam/api_user/v1/service_grpc_web_client_meshts.d.ts +83 -0
  54. package/dist/meshtrade/iam/api_user/v1/service_grpc_web_client_meshts.js +126 -0
  55. package/dist/meshtrade/iam/api_user/v1/service_grpc_web_pb.d.ts +128 -0
  56. package/dist/meshtrade/iam/api_user/v1/service_grpc_web_pb.js +636 -0
  57. package/dist/meshtrade/iam/api_user/v1/service_pb.d.ts +219 -0
  58. package/dist/meshtrade/iam/api_user/v1/service_pb.js +1866 -0
  59. package/dist/meshtrade/iam/group/v1/group_pb.d.ts +35 -0
  60. package/dist/meshtrade/iam/group/v1/group_pb.js +268 -0
  61. package/dist/meshtrade/iam/group/v1/index.d.ts +4 -0
  62. package/dist/meshtrade/iam/group/v1/index.js +45 -0
  63. package/dist/meshtrade/iam/group/v1/service_grpc_web_client_meshts.d.ts +59 -0
  64. package/dist/meshtrade/iam/group/v1/service_grpc_web_client_meshts.js +94 -0
  65. package/dist/meshtrade/iam/group/v1/service_grpc_web_pb.d.ts +80 -0
  66. package/dist/meshtrade/iam/group/v1/service_grpc_web_pb.js +394 -0
  67. package/dist/meshtrade/iam/group/v1/service_pb.d.ts +200 -0
  68. package/dist/meshtrade/iam/group/v1/service_pb.js +1664 -0
  69. package/dist/meshtrade/iam/role/v1/index.d.ts +2 -0
  70. package/dist/meshtrade/iam/role/v1/index.js +43 -0
  71. package/dist/meshtrade/iam/role/v1/role.d.ts +71 -0
  72. package/dist/meshtrade/iam/role/v1/role.js +192 -0
  73. package/dist/meshtrade/iam/role/v1/role_pb.d.ts +41 -0
  74. package/dist/meshtrade/iam/role/v1/role_pb.js +66 -0
  75. package/dist/meshtrade/iam/user/v1/index.d.ts +4 -0
  76. package/dist/meshtrade/iam/user/v1/index.js +45 -0
  77. package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.d.ts +77 -0
  78. package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +118 -0
  79. package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.d.ts +116 -0
  80. package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.js +577 -0
  81. package/dist/meshtrade/iam/user/v1/service_pb.d.ts +262 -0
  82. package/dist/meshtrade/iam/user/v1/service_pb.js +2202 -0
  83. package/dist/meshtrade/iam/user/v1/user_pb.d.ts +37 -0
  84. package/dist/meshtrade/iam/user/v1/user_pb.js +294 -0
  85. package/dist/meshtrade/ledger/transaction/v1/index.d.ts +6 -0
  86. package/dist/meshtrade/ledger/transaction/v1/index.js +47 -0
  87. package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_client_meshts.d.ts +56 -0
  88. package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_client_meshts.js +96 -0
  89. package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_pb.d.ts +41 -0
  90. package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_pb.js +204 -0
  91. package/dist/meshtrade/ledger/transaction/v1/service_pb.d.ts +79 -0
  92. package/dist/meshtrade/ledger/transaction/v1/service_pb.js +638 -0
  93. package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.d.ts +13 -0
  94. package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.js +38 -0
  95. package/dist/meshtrade/ledger/transaction/v1/transaction_state.d.ts +14 -0
  96. package/dist/meshtrade/ledger/transaction/v1/transaction_state.js +64 -0
  97. package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.d.ts +14 -0
  98. package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.js +39 -0
  99. package/dist/meshtrade/market_data/price/v1/index.d.ts +4 -0
  100. package/dist/meshtrade/market_data/price/v1/index.js +45 -0
  101. package/dist/meshtrade/market_data/price/v1/price_pb.d.ts +45 -0
  102. package/dist/meshtrade/market_data/price/v1/price_pb.js +356 -0
  103. package/dist/meshtrade/market_data/price/v1/service_grpc_web_client_meshts.d.ts +35 -0
  104. package/dist/meshtrade/market_data/price/v1/service_grpc_web_client_meshts.js +62 -0
  105. package/dist/meshtrade/market_data/price/v1/service_grpc_web_pb.d.ts +32 -0
  106. package/dist/meshtrade/market_data/price/v1/service_grpc_web_pb.js +150 -0
  107. package/dist/meshtrade/market_data/price/v1/service_pb.d.ts +34 -0
  108. package/dist/meshtrade/market_data/price/v1/service_pb.js +256 -0
  109. package/dist/meshtrade/option/method_options/v1/index.d.ts +1 -0
  110. package/dist/meshtrade/option/method_options/v1/index.js +42 -0
  111. package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +44 -0
  112. package/dist/meshtrade/option/method_options/v1/method_options_pb.js +314 -0
  113. package/dist/meshtrade/reporting/account_report/v1/account_report_pb.d.ts +112 -0
  114. package/dist/meshtrade/reporting/account_report/v1/account_report_pb.js +897 -0
  115. package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.d.ts +26 -0
  116. package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.js +206 -0
  117. package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.d.ts +50 -0
  118. package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.js +393 -0
  119. package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.d.ts +66 -0
  120. package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.js +460 -0
  121. package/dist/meshtrade/reporting/account_report/v1/index.d.ts +8 -0
  122. package/dist/meshtrade/reporting/account_report/v1/index.js +49 -0
  123. package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_client_meshts.d.ts +41 -0
  124. package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_client_meshts.js +70 -0
  125. package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_pb.d.ts +44 -0
  126. package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_pb.js +213 -0
  127. package/dist/meshtrade/reporting/account_report/v1/service_pb.d.ts +99 -0
  128. package/dist/meshtrade/reporting/account_report/v1/service_pb.js +796 -0
  129. package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.d.ts +62 -0
  130. package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.js +495 -0
  131. package/dist/meshtrade/studio/instrument/v1/index.d.ts +3 -0
  132. package/dist/meshtrade/studio/instrument/v1/index.js +44 -0
  133. package/dist/meshtrade/studio/instrument/v1/instrument_pb.d.ts +38 -0
  134. package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +291 -0
  135. package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.d.ts +34 -0
  136. package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.js +59 -0
  137. package/dist/meshtrade/studio/instrument/v1/unit_pb.d.ts +25 -0
  138. package/dist/meshtrade/studio/instrument/v1/unit_pb.js +50 -0
  139. package/dist/meshtrade/trading/limit_order/v1/index.d.ts +4 -0
  140. package/dist/meshtrade/trading/limit_order/v1/index.js +45 -0
  141. package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +83 -0
  142. package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +559 -0
  143. package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_client_meshts.d.ts +87 -0
  144. package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_client_meshts.js +136 -0
  145. package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_pb.d.ts +102 -0
  146. package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_pb.js +509 -0
  147. package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +203 -0
  148. package/dist/meshtrade/trading/limit_order/v1/service_pb.js +1692 -0
  149. package/dist/meshtrade/trading/market_order/v1/index.d.ts +4 -0
  150. package/dist/meshtrade/trading/market_order/v1/index.js +45 -0
  151. package/dist/meshtrade/trading/market_order/v1/market_order_pb.d.ts +22 -0
  152. package/dist/meshtrade/trading/market_order/v1/market_order_pb.js +176 -0
  153. package/dist/meshtrade/trading/market_order/v1/service_grpc_web_client_meshts.d.ts +35 -0
  154. package/dist/meshtrade/trading/market_order/v1/service_grpc_web_client_meshts.js +62 -0
  155. package/dist/meshtrade/trading/market_order/v1/service_grpc_web_pb.d.ts +32 -0
  156. package/dist/meshtrade/trading/market_order/v1/service_grpc_web_pb.js +146 -0
  157. package/dist/meshtrade/trading/market_order/v1/service_pb.d.ts +24 -0
  158. package/dist/meshtrade/trading/market_order/v1/service_pb.js +180 -0
  159. package/dist/meshtrade/type/v1/address_pb.d.ts +44 -0
  160. package/dist/meshtrade/type/v1/address_pb.js +352 -0
  161. package/dist/meshtrade/type/v1/amount.d.ts +13 -0
  162. package/dist/meshtrade/type/v1/amount.js +66 -0
  163. package/dist/meshtrade/type/v1/amountWrapper.d.ts +74 -0
  164. package/dist/meshtrade/type/v1/amountWrapper.js +98 -0
  165. package/dist/meshtrade/type/v1/amount_pb.d.ts +32 -0
  166. package/dist/meshtrade/type/v1/amount_pb.js +252 -0
  167. package/dist/meshtrade/type/v1/contact_details_pb.d.ts +54 -0
  168. package/dist/meshtrade/type/v1/contact_details_pb.js +416 -0
  169. package/dist/meshtrade/type/v1/date.d.ts +49 -0
  170. package/dist/meshtrade/type/v1/date.js +136 -0
  171. package/dist/meshtrade/type/v1/date_pb.d.ts +30 -0
  172. package/dist/meshtrade/type/v1/date_pb.js +236 -0
  173. package/dist/meshtrade/type/v1/decimalConversions.d.ts +24 -0
  174. package/dist/meshtrade/type/v1/decimalConversions.js +40 -0
  175. package/dist/meshtrade/type/v1/decimal_pb.d.ts +22 -0
  176. package/dist/meshtrade/type/v1/decimal_pb.js +176 -0
  177. package/dist/meshtrade/type/v1/index.d.ts +15 -0
  178. package/dist/meshtrade/type/v1/index.js +56 -0
  179. package/dist/meshtrade/type/v1/ledger.d.ts +27 -0
  180. package/dist/meshtrade/type/v1/ledger.js +115 -0
  181. package/dist/meshtrade/type/v1/ledger_pb.d.ts +14 -0
  182. package/dist/meshtrade/type/v1/ledger_pb.js +39 -0
  183. package/dist/meshtrade/type/v1/sorting_pb.d.ts +9 -0
  184. package/dist/meshtrade/type/v1/sorting_pb.js +34 -0
  185. package/dist/meshtrade/type/v1/time_of_day.d.ts +74 -0
  186. package/dist/meshtrade/type/v1/time_of_day.js +205 -0
  187. package/dist/meshtrade/type/v1/time_of_day_pb.d.ts +34 -0
  188. package/dist/meshtrade/type/v1/time_of_day_pb.js +266 -0
  189. package/dist/meshtrade/type/v1/token.d.ts +4 -0
  190. package/dist/meshtrade/type/v1/token.js +24 -0
  191. package/dist/meshtrade/type/v1/tokenWrapper.d.ts +49 -0
  192. package/dist/meshtrade/type/v1/tokenWrapper.js +76 -0
  193. package/dist/meshtrade/type/v1/token_pb.d.ts +31 -0
  194. package/dist/meshtrade/type/v1/token_pb.js +238 -0
  195. package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +149 -0
  196. package/dist/meshtrade/wallet/account/v1/account_pb.js +1160 -0
  197. package/dist/meshtrade/wallet/account/v1/index.d.ts +4 -0
  198. package/dist/meshtrade/wallet/account/v1/index.js +45 -0
  199. package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.d.ts +83 -0
  200. package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.js +126 -0
  201. package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.d.ts +128 -0
  202. package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.js +638 -0
  203. package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +350 -0
  204. package/dist/meshtrade/wallet/account/v1/service_pb.js +2930 -0
  205. package/package.json +171 -0
@@ -0,0 +1,62 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
4
+ import * as meshtrade_type_v1_amount_pb from '../../../../meshtrade/type/v1/amount_pb'; // proto import: "meshtrade/type/v1/amount.proto"
5
+
6
+
7
+ export class TradingStatementEntry extends jspb.Message {
8
+ getTransactionDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
9
+ setTransactionDate(value?: google_protobuf_timestamp_pb.Timestamp): TradingStatementEntry;
10
+ hasTransactionDate(): boolean;
11
+ clearTransactionDate(): TradingStatementEntry;
12
+
13
+ getTransactionId(): string;
14
+ setTransactionId(value: string): TradingStatementEntry;
15
+
16
+ getTokenCode(): string;
17
+ setTokenCode(value: string): TradingStatementEntry;
18
+
19
+ getDescription(): string;
20
+ setDescription(value: string): TradingStatementEntry;
21
+
22
+ getAmount(): meshtrade_type_v1_amount_pb.Amount | undefined;
23
+ setAmount(value?: meshtrade_type_v1_amount_pb.Amount): TradingStatementEntry;
24
+ hasAmount(): boolean;
25
+ clearAmount(): TradingStatementEntry;
26
+
27
+ getPrice(): meshtrade_type_v1_amount_pb.Amount | undefined;
28
+ setPrice(value?: meshtrade_type_v1_amount_pb.Amount): TradingStatementEntry;
29
+ hasPrice(): boolean;
30
+ clearPrice(): TradingStatementEntry;
31
+
32
+ getCost(): meshtrade_type_v1_amount_pb.Amount | undefined;
33
+ setCost(value?: meshtrade_type_v1_amount_pb.Amount): TradingStatementEntry;
34
+ hasCost(): boolean;
35
+ clearCost(): TradingStatementEntry;
36
+
37
+ getBalance(): meshtrade_type_v1_amount_pb.Amount | undefined;
38
+ setBalance(value?: meshtrade_type_v1_amount_pb.Amount): TradingStatementEntry;
39
+ hasBalance(): boolean;
40
+ clearBalance(): TradingStatementEntry;
41
+
42
+ serializeBinary(): Uint8Array;
43
+ toObject(includeInstance?: boolean): TradingStatementEntry.AsObject;
44
+ static toObject(includeInstance: boolean, msg: TradingStatementEntry): TradingStatementEntry.AsObject;
45
+ static serializeBinaryToWriter(message: TradingStatementEntry, writer: jspb.BinaryWriter): void;
46
+ static deserializeBinary(bytes: Uint8Array): TradingStatementEntry;
47
+ static deserializeBinaryFromReader(message: TradingStatementEntry, reader: jspb.BinaryReader): TradingStatementEntry;
48
+ }
49
+
50
+ export namespace TradingStatementEntry {
51
+ export type AsObject = {
52
+ transactionDate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
53
+ transactionId: string,
54
+ tokenCode: string,
55
+ description: string,
56
+ amount?: meshtrade_type_v1_amount_pb.Amount.AsObject,
57
+ price?: meshtrade_type_v1_amount_pb.Amount.AsObject,
58
+ cost?: meshtrade_type_v1_amount_pb.Amount.AsObject,
59
+ balance?: meshtrade_type_v1_amount_pb.Amount.AsObject,
60
+ }
61
+ }
62
+
@@ -0,0 +1,495 @@
1
+ // source: meshtrade/reporting/account_report/v1/trading_statement_entry.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var meshtrade_type_v1_amount_pb = require('../../../../meshtrade/type/v1/amount_pb.js');
27
+ goog.object.extend(proto, meshtrade_type_v1_amount_pb);
28
+ goog.exportSymbol('proto.meshtrade.reporting.account_report.v1.TradingStatementEntry', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
41
+ };
42
+ goog.inherits(proto.meshtrade.reporting.account_report.v1.TradingStatementEntry, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.displayName = 'proto.meshtrade.reporting.account_report.v1.TradingStatementEntry';
49
+ }
50
+
51
+
52
+
53
+ if (jspb.Message.GENERATE_TO_OBJECT) {
54
+ /**
55
+ * Creates an object representation of this proto.
56
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
57
+ * Optional fields that are not set will be set to undefined.
58
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
59
+ * For the list of reserved names please see:
60
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
61
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
62
+ * JSPB instance for transitional soy proto support:
63
+ * http://goto/soy-param-migration
64
+ * @return {!Object}
65
+ */
66
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.toObject = function(opt_includeInstance) {
67
+ return proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.toObject(opt_includeInstance, this);
68
+ };
69
+
70
+
71
+ /**
72
+ * Static version of the {@see toObject} method.
73
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
74
+ * the JSPB instance for transitional soy proto support:
75
+ * http://goto/soy-param-migration
76
+ * @param {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} msg The msg instance to transform.
77
+ * @return {!Object}
78
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79
+ */
80
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.toObject = function(includeInstance, msg) {
81
+ var f, obj = {
82
+ transactionDate: (f = msg.getTransactionDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
83
+ transactionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
84
+ tokenCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
85
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
86
+ amount: (f = msg.getAmount()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
87
+ price: (f = msg.getPrice()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
88
+ cost: (f = msg.getCost()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
89
+ balance: (f = msg.getBalance()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f)
90
+ };
91
+
92
+ if (includeInstance) {
93
+ obj.$jspbMessageInstance = msg;
94
+ }
95
+ return obj;
96
+ };
97
+ }
98
+
99
+
100
+ /**
101
+ * Deserializes binary data (in protobuf wire format).
102
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
103
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry}
104
+ */
105
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.deserializeBinary = function(bytes) {
106
+ var reader = new jspb.BinaryReader(bytes);
107
+ var msg = new proto.meshtrade.reporting.account_report.v1.TradingStatementEntry;
108
+ return proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.deserializeBinaryFromReader(msg, reader);
109
+ };
110
+
111
+
112
+ /**
113
+ * Deserializes binary data (in protobuf wire format) from the
114
+ * given reader into the given message object.
115
+ * @param {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} msg The message object to deserialize into.
116
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
117
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry}
118
+ */
119
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.deserializeBinaryFromReader = function(msg, reader) {
120
+ while (reader.nextField()) {
121
+ if (reader.isEndGroup()) {
122
+ break;
123
+ }
124
+ var field = reader.getFieldNumber();
125
+ switch (field) {
126
+ case 1:
127
+ var value = new google_protobuf_timestamp_pb.Timestamp;
128
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
129
+ msg.setTransactionDate(value);
130
+ break;
131
+ case 2:
132
+ var value = /** @type {string} */ (reader.readString());
133
+ msg.setTransactionId(value);
134
+ break;
135
+ case 3:
136
+ var value = /** @type {string} */ (reader.readString());
137
+ msg.setTokenCode(value);
138
+ break;
139
+ case 4:
140
+ var value = /** @type {string} */ (reader.readString());
141
+ msg.setDescription(value);
142
+ break;
143
+ case 5:
144
+ var value = new meshtrade_type_v1_amount_pb.Amount;
145
+ reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
146
+ msg.setAmount(value);
147
+ break;
148
+ case 6:
149
+ var value = new meshtrade_type_v1_amount_pb.Amount;
150
+ reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
151
+ msg.setPrice(value);
152
+ break;
153
+ case 7:
154
+ var value = new meshtrade_type_v1_amount_pb.Amount;
155
+ reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
156
+ msg.setCost(value);
157
+ break;
158
+ case 8:
159
+ var value = new meshtrade_type_v1_amount_pb.Amount;
160
+ reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
161
+ msg.setBalance(value);
162
+ break;
163
+ default:
164
+ reader.skipField();
165
+ break;
166
+ }
167
+ }
168
+ return msg;
169
+ };
170
+
171
+
172
+ /**
173
+ * Serializes the message to binary data (in protobuf wire format).
174
+ * @return {!Uint8Array}
175
+ */
176
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.serializeBinary = function() {
177
+ var writer = new jspb.BinaryWriter();
178
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.serializeBinaryToWriter(this, writer);
179
+ return writer.getResultBuffer();
180
+ };
181
+
182
+
183
+ /**
184
+ * Serializes the given message to binary data (in protobuf wire
185
+ * format), writing to the given BinaryWriter.
186
+ * @param {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} message
187
+ * @param {!jspb.BinaryWriter} writer
188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
189
+ */
190
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.serializeBinaryToWriter = function(message, writer) {
191
+ var f = undefined;
192
+ f = message.getTransactionDate();
193
+ if (f != null) {
194
+ writer.writeMessage(
195
+ 1,
196
+ f,
197
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
198
+ );
199
+ }
200
+ f = message.getTransactionId();
201
+ if (f.length > 0) {
202
+ writer.writeString(
203
+ 2,
204
+ f
205
+ );
206
+ }
207
+ f = message.getTokenCode();
208
+ if (f.length > 0) {
209
+ writer.writeString(
210
+ 3,
211
+ f
212
+ );
213
+ }
214
+ f = message.getDescription();
215
+ if (f.length > 0) {
216
+ writer.writeString(
217
+ 4,
218
+ f
219
+ );
220
+ }
221
+ f = message.getAmount();
222
+ if (f != null) {
223
+ writer.writeMessage(
224
+ 5,
225
+ f,
226
+ meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
227
+ );
228
+ }
229
+ f = message.getPrice();
230
+ if (f != null) {
231
+ writer.writeMessage(
232
+ 6,
233
+ f,
234
+ meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
235
+ );
236
+ }
237
+ f = message.getCost();
238
+ if (f != null) {
239
+ writer.writeMessage(
240
+ 7,
241
+ f,
242
+ meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
243
+ );
244
+ }
245
+ f = message.getBalance();
246
+ if (f != null) {
247
+ writer.writeMessage(
248
+ 8,
249
+ f,
250
+ meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
251
+ );
252
+ }
253
+ };
254
+
255
+
256
+ /**
257
+ * optional google.protobuf.Timestamp transaction_date = 1;
258
+ * @return {?proto.google.protobuf.Timestamp}
259
+ */
260
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getTransactionDate = function() {
261
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
262
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
263
+ };
264
+
265
+
266
+ /**
267
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
268
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
269
+ */
270
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setTransactionDate = function(value) {
271
+ return jspb.Message.setWrapperField(this, 1, value);
272
+ };
273
+
274
+
275
+ /**
276
+ * Clears the message field making it undefined.
277
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
278
+ */
279
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.clearTransactionDate = function() {
280
+ return this.setTransactionDate(undefined);
281
+ };
282
+
283
+
284
+ /**
285
+ * Returns whether this field is set.
286
+ * @return {boolean}
287
+ */
288
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.hasTransactionDate = function() {
289
+ return jspb.Message.getField(this, 1) != null;
290
+ };
291
+
292
+
293
+ /**
294
+ * optional string transaction_id = 2;
295
+ * @return {string}
296
+ */
297
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getTransactionId = function() {
298
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
299
+ };
300
+
301
+
302
+ /**
303
+ * @param {string} value
304
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
305
+ */
306
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setTransactionId = function(value) {
307
+ return jspb.Message.setProto3StringField(this, 2, value);
308
+ };
309
+
310
+
311
+ /**
312
+ * optional string token_code = 3;
313
+ * @return {string}
314
+ */
315
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getTokenCode = function() {
316
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
317
+ };
318
+
319
+
320
+ /**
321
+ * @param {string} value
322
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
323
+ */
324
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setTokenCode = function(value) {
325
+ return jspb.Message.setProto3StringField(this, 3, value);
326
+ };
327
+
328
+
329
+ /**
330
+ * optional string description = 4;
331
+ * @return {string}
332
+ */
333
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getDescription = function() {
334
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
335
+ };
336
+
337
+
338
+ /**
339
+ * @param {string} value
340
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
341
+ */
342
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setDescription = function(value) {
343
+ return jspb.Message.setProto3StringField(this, 4, value);
344
+ };
345
+
346
+
347
+ /**
348
+ * optional meshtrade.type.v1.Amount amount = 5;
349
+ * @return {?proto.meshtrade.type.v1.Amount}
350
+ */
351
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getAmount = function() {
352
+ return /** @type{?proto.meshtrade.type.v1.Amount} */ (
353
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 5));
354
+ };
355
+
356
+
357
+ /**
358
+ * @param {?proto.meshtrade.type.v1.Amount|undefined} value
359
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
360
+ */
361
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setAmount = function(value) {
362
+ return jspb.Message.setWrapperField(this, 5, value);
363
+ };
364
+
365
+
366
+ /**
367
+ * Clears the message field making it undefined.
368
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
369
+ */
370
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.clearAmount = function() {
371
+ return this.setAmount(undefined);
372
+ };
373
+
374
+
375
+ /**
376
+ * Returns whether this field is set.
377
+ * @return {boolean}
378
+ */
379
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.hasAmount = function() {
380
+ return jspb.Message.getField(this, 5) != null;
381
+ };
382
+
383
+
384
+ /**
385
+ * optional meshtrade.type.v1.Amount price = 6;
386
+ * @return {?proto.meshtrade.type.v1.Amount}
387
+ */
388
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getPrice = function() {
389
+ return /** @type{?proto.meshtrade.type.v1.Amount} */ (
390
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 6));
391
+ };
392
+
393
+
394
+ /**
395
+ * @param {?proto.meshtrade.type.v1.Amount|undefined} value
396
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
397
+ */
398
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setPrice = function(value) {
399
+ return jspb.Message.setWrapperField(this, 6, value);
400
+ };
401
+
402
+
403
+ /**
404
+ * Clears the message field making it undefined.
405
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
406
+ */
407
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.clearPrice = function() {
408
+ return this.setPrice(undefined);
409
+ };
410
+
411
+
412
+ /**
413
+ * Returns whether this field is set.
414
+ * @return {boolean}
415
+ */
416
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.hasPrice = function() {
417
+ return jspb.Message.getField(this, 6) != null;
418
+ };
419
+
420
+
421
+ /**
422
+ * optional meshtrade.type.v1.Amount cost = 7;
423
+ * @return {?proto.meshtrade.type.v1.Amount}
424
+ */
425
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getCost = function() {
426
+ return /** @type{?proto.meshtrade.type.v1.Amount} */ (
427
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 7));
428
+ };
429
+
430
+
431
+ /**
432
+ * @param {?proto.meshtrade.type.v1.Amount|undefined} value
433
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
434
+ */
435
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setCost = function(value) {
436
+ return jspb.Message.setWrapperField(this, 7, value);
437
+ };
438
+
439
+
440
+ /**
441
+ * Clears the message field making it undefined.
442
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
443
+ */
444
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.clearCost = function() {
445
+ return this.setCost(undefined);
446
+ };
447
+
448
+
449
+ /**
450
+ * Returns whether this field is set.
451
+ * @return {boolean}
452
+ */
453
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.hasCost = function() {
454
+ return jspb.Message.getField(this, 7) != null;
455
+ };
456
+
457
+
458
+ /**
459
+ * optional meshtrade.type.v1.Amount balance = 8;
460
+ * @return {?proto.meshtrade.type.v1.Amount}
461
+ */
462
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.getBalance = function() {
463
+ return /** @type{?proto.meshtrade.type.v1.Amount} */ (
464
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 8));
465
+ };
466
+
467
+
468
+ /**
469
+ * @param {?proto.meshtrade.type.v1.Amount|undefined} value
470
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
471
+ */
472
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.setBalance = function(value) {
473
+ return jspb.Message.setWrapperField(this, 8, value);
474
+ };
475
+
476
+
477
+ /**
478
+ * Clears the message field making it undefined.
479
+ * @return {!proto.meshtrade.reporting.account_report.v1.TradingStatementEntry} returns this
480
+ */
481
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.clearBalance = function() {
482
+ return this.setBalance(undefined);
483
+ };
484
+
485
+
486
+ /**
487
+ * Returns whether this field is set.
488
+ * @return {boolean}
489
+ */
490
+ proto.meshtrade.reporting.account_report.v1.TradingStatementEntry.prototype.hasBalance = function() {
491
+ return jspb.Message.getField(this, 8) != null;
492
+ };
493
+
494
+
495
+ goog.object.extend(exports, proto.meshtrade.reporting.account_report.v1);
@@ -0,0 +1,3 @@
1
+ export * from "./instrument_pb";
2
+ export * from "./instrument_type_pb";
3
+ export * from "./unit_pb";
@@ -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,38 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
4
+ import * as meshtrade_type_v1_token_pb from '../../../../meshtrade/type/v1/token_pb'; // proto import: "meshtrade/type/v1/token.proto"
5
+
6
+
7
+ export class Instrument extends jspb.Message {
8
+ getName(): string;
9
+ setName(value: string): Instrument;
10
+
11
+ getOwner(): string;
12
+ setOwner(value: string): Instrument;
13
+
14
+ getDisplayName(): string;
15
+ setDisplayName(value: string): Instrument;
16
+
17
+ getToken(): meshtrade_type_v1_token_pb.Token | undefined;
18
+ setToken(value?: meshtrade_type_v1_token_pb.Token): Instrument;
19
+ hasToken(): boolean;
20
+ clearToken(): Instrument;
21
+
22
+ serializeBinary(): Uint8Array;
23
+ toObject(includeInstance?: boolean): Instrument.AsObject;
24
+ static toObject(includeInstance: boolean, msg: Instrument): Instrument.AsObject;
25
+ static serializeBinaryToWriter(message: Instrument, writer: jspb.BinaryWriter): void;
26
+ static deserializeBinary(bytes: Uint8Array): Instrument;
27
+ static deserializeBinaryFromReader(message: Instrument, reader: jspb.BinaryReader): Instrument;
28
+ }
29
+
30
+ export namespace Instrument {
31
+ export type AsObject = {
32
+ name: string,
33
+ owner: string,
34
+ displayName: string,
35
+ token?: meshtrade_type_v1_token_pb.Token.AsObject,
36
+ }
37
+ }
38
+