@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.
- package/README.md +117 -0
- package/dist/buf/validate/validate_pb.js +17134 -0
- package/dist/meshtrade/common/config.d.ts +7 -0
- package/dist/meshtrade/common/config.js +9 -0
- package/dist/meshtrade/common/groupHeaderInterceptor.d.ts +64 -0
- package/dist/meshtrade/common/groupHeaderInterceptor.js +76 -0
- package/dist/meshtrade/common/grpc_web.d.ts +18 -0
- package/dist/meshtrade/common/grpc_web.js +34 -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 +91 -0
- package/dist/meshtrade/compliance/client/v1/client_pb.js +645 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.d.ts +178 -0
- package/dist/meshtrade/compliance/client/v1/company_pb.js +1322 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.d.ts +56 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_pb.js +422 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.d.ts +15 -0
- package/dist/meshtrade/compliance/client/v1/company_representative_role_pb.js +40 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.d.ts +42 -0
- package/dist/meshtrade/compliance/client/v1/fund_pb.js +321 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.d.ts +11 -0
- package/dist/meshtrade/compliance/client/v1/identification_document_type_pb.js +36 -0
- package/dist/meshtrade/compliance/client/v1/index.d.ts +18 -0
- package/dist/meshtrade/compliance/client/v1/index.js +61 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.d.ts +50 -0
- package/dist/meshtrade/compliance/client/v1/industry_classification_pb.js +386 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.d.ts +22 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_connection_type_pb.js +47 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.d.ts +94 -0
- package/dist/meshtrade/compliance/client/v1/natural_person_pb.js +729 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.d.ts +10 -0
- package/dist/meshtrade/compliance/client/v1/pep_status_pb.js +35 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.d.ts +47 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.js +78 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.d.ts +56 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.js +270 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +79 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +660 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.d.ts +29 -0
- package/dist/meshtrade/compliance/client/v1/source_of_income_and_wealth_pb.js +54 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.d.ts +27 -0
- package/dist/meshtrade/compliance/client/v1/tax_residency_pb.js +208 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.d.ts +42 -0
- package/dist/meshtrade/compliance/client/v1/trust_pb.js +321 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.d.ts +11 -0
- package/dist/meshtrade/compliance/client/v1/verification_status_pb.js +36 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.d.ts +27 -0
- package/dist/meshtrade/iam/api_user/v1/api_credentials_pb.js +208 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +57 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +376 -0
- package/dist/meshtrade/iam/api_user/v1/index.d.ts +5 -0
- package/dist/meshtrade/iam/api_user/v1/index.js +46 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_client_meshts.d.ts +83 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_client_meshts.js +126 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_pb.d.ts +128 -0
- package/dist/meshtrade/iam/api_user/v1/service_grpc_web_pb.js +636 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.d.ts +219 -0
- package/dist/meshtrade/iam/api_user/v1/service_pb.js +1866 -0
- package/dist/meshtrade/iam/group/v1/group_pb.d.ts +35 -0
- package/dist/meshtrade/iam/group/v1/group_pb.js +268 -0
- package/dist/meshtrade/iam/group/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/group/v1/index.js +45 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_client_meshts.d.ts +59 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_client_meshts.js +94 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_pb.d.ts +80 -0
- package/dist/meshtrade/iam/group/v1/service_grpc_web_pb.js +394 -0
- package/dist/meshtrade/iam/group/v1/service_pb.d.ts +200 -0
- package/dist/meshtrade/iam/group/v1/service_pb.js +1664 -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 +41 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +66 -0
- package/dist/meshtrade/iam/user/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/user/v1/index.js +45 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.d.ts +77 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +118 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.d.ts +116 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.js +577 -0
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +262 -0
- package/dist/meshtrade/iam/user/v1/service_pb.js +2202 -0
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +37 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +294 -0
- package/dist/meshtrade/ledger/transaction/v1/index.d.ts +6 -0
- package/dist/meshtrade/ledger/transaction/v1/index.js +47 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_client_meshts.d.ts +56 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_client_meshts.js +96 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_pb.d.ts +41 -0
- package/dist/meshtrade/ledger/transaction/v1/service_grpc_web_pb.js +204 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.d.ts +79 -0
- package/dist/meshtrade/ledger/transaction/v1/service_pb.js +638 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.d.ts +13 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_action_pb.js +38 -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 +14 -0
- package/dist/meshtrade/ledger/transaction/v1/transaction_state_pb.js +39 -0
- package/dist/meshtrade/market_data/price/v1/index.d.ts +4 -0
- package/dist/meshtrade/market_data/price/v1/index.js +45 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.d.ts +45 -0
- package/dist/meshtrade/market_data/price/v1/price_pb.js +356 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_client_meshts.d.ts +35 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_client_meshts.js +62 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_pb.d.ts +32 -0
- package/dist/meshtrade/market_data/price/v1/service_grpc_web_pb.js +150 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.d.ts +34 -0
- package/dist/meshtrade/market_data/price/v1/service_pb.js +256 -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 +44 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +314 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.d.ts +112 -0
- package/dist/meshtrade/reporting/account_report/v1/account_report_pb.js +897 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.d.ts +26 -0
- package/dist/meshtrade/reporting/account_report/v1/disclaimer_pb.js +206 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.d.ts +50 -0
- package/dist/meshtrade/reporting/account_report/v1/fee_entry_pb.js +393 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.d.ts +66 -0
- package/dist/meshtrade/reporting/account_report/v1/income_entry_pb.js +460 -0
- package/dist/meshtrade/reporting/account_report/v1/index.d.ts +8 -0
- package/dist/meshtrade/reporting/account_report/v1/index.js +49 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_client_meshts.d.ts +41 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_client_meshts.js +70 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_pb.d.ts +44 -0
- package/dist/meshtrade/reporting/account_report/v1/service_grpc_web_pb.js +213 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.d.ts +99 -0
- package/dist/meshtrade/reporting/account_report/v1/service_pb.js +796 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.d.ts +62 -0
- package/dist/meshtrade/reporting/account_report/v1/trading_statement_entry_pb.js +495 -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 +38 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +291 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.d.ts +34 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_type_pb.js +59 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.d.ts +25 -0
- package/dist/meshtrade/studio/instrument/v1/unit_pb.js +50 -0
- package/dist/meshtrade/trading/limit_order/v1/index.d.ts +4 -0
- package/dist/meshtrade/trading/limit_order/v1/index.js +45 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +83 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +559 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_client_meshts.d.ts +87 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_client_meshts.js +136 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_pb.d.ts +102 -0
- package/dist/meshtrade/trading/limit_order/v1/service_grpc_web_pb.js +509 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +203 -0
- package/dist/meshtrade/trading/limit_order/v1/service_pb.js +1692 -0
- package/dist/meshtrade/trading/market_order/v1/index.d.ts +4 -0
- package/dist/meshtrade/trading/market_order/v1/index.js +45 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.d.ts +22 -0
- package/dist/meshtrade/trading/market_order/v1/market_order_pb.js +176 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_client_meshts.d.ts +35 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_client_meshts.js +62 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_pb.d.ts +32 -0
- package/dist/meshtrade/trading/market_order/v1/service_grpc_web_pb.js +146 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.d.ts +24 -0
- package/dist/meshtrade/trading/market_order/v1/service_pb.js +180 -0
- package/dist/meshtrade/type/v1/address_pb.d.ts +44 -0
- package/dist/meshtrade/type/v1/address_pb.js +352 -0
- package/dist/meshtrade/type/v1/amount.d.ts +13 -0
- package/dist/meshtrade/type/v1/amount.js +66 -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 +32 -0
- package/dist/meshtrade/type/v1/amount_pb.js +252 -0
- package/dist/meshtrade/type/v1/contact_details_pb.d.ts +54 -0
- package/dist/meshtrade/type/v1/contact_details_pb.js +416 -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 +30 -0
- package/dist/meshtrade/type/v1/date_pb.js +236 -0
- package/dist/meshtrade/type/v1/decimalConversions.d.ts +24 -0
- package/dist/meshtrade/type/v1/decimalConversions.js +40 -0
- package/dist/meshtrade/type/v1/decimal_pb.d.ts +22 -0
- package/dist/meshtrade/type/v1/decimal_pb.js +176 -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 +14 -0
- package/dist/meshtrade/type/v1/ledger_pb.js +39 -0
- package/dist/meshtrade/type/v1/sorting_pb.d.ts +9 -0
- package/dist/meshtrade/type/v1/sorting_pb.js +34 -0
- package/dist/meshtrade/type/v1/time_of_day.d.ts +74 -0
- package/dist/meshtrade/type/v1/time_of_day.js +205 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.d.ts +34 -0
- package/dist/meshtrade/type/v1/time_of_day_pb.js +266 -0
- package/dist/meshtrade/type/v1/token.d.ts +4 -0
- package/dist/meshtrade/type/v1/token.js +24 -0
- package/dist/meshtrade/type/v1/tokenWrapper.d.ts +49 -0
- package/dist/meshtrade/type/v1/tokenWrapper.js +76 -0
- package/dist/meshtrade/type/v1/token_pb.d.ts +31 -0
- package/dist/meshtrade/type/v1/token_pb.js +238 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +149 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +1160 -0
- package/dist/meshtrade/wallet/account/v1/index.d.ts +4 -0
- package/dist/meshtrade/wallet/account/v1/index.js +45 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.d.ts +83 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_client_meshts.js +126 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.d.ts +128 -0
- package/dist/meshtrade/wallet/account/v1/service_grpc_web_pb.js +638 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.d.ts +350 -0
- package/dist/meshtrade/wallet/account/v1/service_pb.js +2930 -0
- package/package.json +171 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
2
|
+
|
|
3
|
+
import * as meshtrade_market_data_price_v1_service_pb from '../../../../meshtrade/market_data/price/v1/service_pb'; // proto import: "meshtrade/market_data/price/v1/service.proto"
|
|
4
|
+
import * as meshtrade_market_data_price_v1_price_pb from '../../../../meshtrade/market_data/price/v1/price_pb'; // proto import: "meshtrade/market_data/price/v1/price.proto"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class PriceServiceClient {
|
|
8
|
+
constructor (hostname: string,
|
|
9
|
+
credentials?: null | { [index: string]: string; },
|
|
10
|
+
options?: null | { [index: string]: any; });
|
|
11
|
+
|
|
12
|
+
getCurrentPriceByTokenPair(
|
|
13
|
+
request: meshtrade_market_data_price_v1_service_pb.GetCurrentPriceByTokenPairRequest,
|
|
14
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
15
|
+
callback: (err: grpcWeb.RpcError,
|
|
16
|
+
response: meshtrade_market_data_price_v1_price_pb.Price) => void
|
|
17
|
+
): grpcWeb.ClientReadableStream<meshtrade_market_data_price_v1_price_pb.Price>;
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class PriceServicePromiseClient {
|
|
22
|
+
constructor (hostname: string,
|
|
23
|
+
credentials?: null | { [index: string]: string; },
|
|
24
|
+
options?: null | { [index: string]: any; });
|
|
25
|
+
|
|
26
|
+
getCurrentPriceByTokenPair(
|
|
27
|
+
request: meshtrade_market_data_price_v1_service_pb.GetCurrentPriceByTokenPairRequest,
|
|
28
|
+
metadata?: grpcWeb.Metadata
|
|
29
|
+
): Promise<meshtrade_market_data_price_v1_price_pb.Price>;
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for meshtrade.market_data.price.v1
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v0.0.0
|
|
11
|
+
// source: meshtrade/market_data/price/v1/service.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
const grpc = {};
|
|
20
|
+
grpc.web = require('grpc-web');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js')
|
|
24
|
+
|
|
25
|
+
var meshtrade_market_data_price_v1_price_pb = require('../../../../meshtrade/market_data/price/v1/price_pb.js')
|
|
26
|
+
|
|
27
|
+
var meshtrade_option_method_options_v1_method_options_pb = require('../../../../meshtrade/option/method_options/v1/method_options_pb.js')
|
|
28
|
+
|
|
29
|
+
var meshtrade_type_v1_token_pb = require('../../../../meshtrade/type/v1/token_pb.js')
|
|
30
|
+
const proto = {};
|
|
31
|
+
proto.meshtrade = {};
|
|
32
|
+
proto.meshtrade.market_data = {};
|
|
33
|
+
proto.meshtrade.market_data.price = {};
|
|
34
|
+
proto.meshtrade.market_data.price.v1 = require('./service_pb.js');
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} hostname
|
|
38
|
+
* @param {?Object} credentials
|
|
39
|
+
* @param {?grpc.web.ClientOptions} options
|
|
40
|
+
* @constructor
|
|
41
|
+
* @struct
|
|
42
|
+
* @final
|
|
43
|
+
*/
|
|
44
|
+
proto.meshtrade.market_data.price.v1.PriceServiceClient =
|
|
45
|
+
function(hostname, credentials, options) {
|
|
46
|
+
if (!options) options = {};
|
|
47
|
+
options.format = 'binary';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
51
|
+
*/
|
|
52
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @private @const {string} The hostname
|
|
56
|
+
*/
|
|
57
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
58
|
+
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @param {string} hostname
|
|
64
|
+
* @param {?Object} credentials
|
|
65
|
+
* @param {?grpc.web.ClientOptions} options
|
|
66
|
+
* @constructor
|
|
67
|
+
* @struct
|
|
68
|
+
* @final
|
|
69
|
+
*/
|
|
70
|
+
proto.meshtrade.market_data.price.v1.PriceServicePromiseClient =
|
|
71
|
+
function(hostname, credentials, options) {
|
|
72
|
+
if (!options) options = {};
|
|
73
|
+
options.format = 'binary';
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
77
|
+
*/
|
|
78
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @private @const {string} The hostname
|
|
82
|
+
*/
|
|
83
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
84
|
+
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @const
|
|
90
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
91
|
+
* !proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest,
|
|
92
|
+
* !proto.meshtrade.market_data.price.v1.Price>}
|
|
93
|
+
*/
|
|
94
|
+
const methodDescriptor_PriceService_GetCurrentPriceByTokenPair = new grpc.web.MethodDescriptor(
|
|
95
|
+
'/meshtrade.market_data.price.v1.PriceService/GetCurrentPriceByTokenPair',
|
|
96
|
+
grpc.web.MethodType.UNARY,
|
|
97
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest,
|
|
98
|
+
meshtrade_market_data_price_v1_price_pb.Price,
|
|
99
|
+
/**
|
|
100
|
+
* @param {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} request
|
|
101
|
+
* @return {!Uint8Array}
|
|
102
|
+
*/
|
|
103
|
+
function(request) {
|
|
104
|
+
return request.serializeBinary();
|
|
105
|
+
},
|
|
106
|
+
meshtrade_market_data_price_v1_price_pb.Price.deserializeBinary
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @param {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} request The
|
|
112
|
+
* request proto
|
|
113
|
+
* @param {?Object<string, string>} metadata User defined
|
|
114
|
+
* call metadata
|
|
115
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.market_data.price.v1.Price)}
|
|
116
|
+
* callback The callback function(error, response)
|
|
117
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.market_data.price.v1.Price>|undefined}
|
|
118
|
+
* The XHR Node Readable Stream
|
|
119
|
+
*/
|
|
120
|
+
proto.meshtrade.market_data.price.v1.PriceServiceClient.prototype.getCurrentPriceByTokenPair =
|
|
121
|
+
function(request, metadata, callback) {
|
|
122
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
123
|
+
'/meshtrade.market_data.price.v1.PriceService/GetCurrentPriceByTokenPair',
|
|
124
|
+
request,
|
|
125
|
+
metadata || {},
|
|
126
|
+
methodDescriptor_PriceService_GetCurrentPriceByTokenPair,
|
|
127
|
+
callback);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @param {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} request The
|
|
133
|
+
* request proto
|
|
134
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
135
|
+
* call metadata
|
|
136
|
+
* @return {!Promise<!proto.meshtrade.market_data.price.v1.Price>}
|
|
137
|
+
* Promise that resolves to the response
|
|
138
|
+
*/
|
|
139
|
+
proto.meshtrade.market_data.price.v1.PriceServicePromiseClient.prototype.getCurrentPriceByTokenPair =
|
|
140
|
+
function(request, metadata) {
|
|
141
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
142
|
+
'/meshtrade.market_data.price.v1.PriceService/GetCurrentPriceByTokenPair',
|
|
143
|
+
request,
|
|
144
|
+
metadata || {},
|
|
145
|
+
methodDescriptor_PriceService_GetCurrentPriceByTokenPair);
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
module.exports = proto.meshtrade.market_data.price.v1;
|
|
150
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
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_market_data_price_v1_price_pb from '../../../../meshtrade/market_data/price/v1/price_pb'; // proto import: "meshtrade/market_data/price/v1/price.proto"
|
|
5
|
+
import * as meshtrade_option_method_options_v1_method_options_pb from '../../../../meshtrade/option/method_options/v1/method_options_pb'; // proto import: "meshtrade/option/method_options/v1/method_options.proto"
|
|
6
|
+
import * as meshtrade_type_v1_token_pb from '../../../../meshtrade/type/v1/token_pb'; // proto import: "meshtrade/type/v1/token.proto"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export class GetCurrentPriceByTokenPairRequest extends jspb.Message {
|
|
10
|
+
getBaseToken(): meshtrade_type_v1_token_pb.Token | undefined;
|
|
11
|
+
setBaseToken(value?: meshtrade_type_v1_token_pb.Token): GetCurrentPriceByTokenPairRequest;
|
|
12
|
+
hasBaseToken(): boolean;
|
|
13
|
+
clearBaseToken(): GetCurrentPriceByTokenPairRequest;
|
|
14
|
+
|
|
15
|
+
getQuoteToken(): meshtrade_type_v1_token_pb.Token | undefined;
|
|
16
|
+
setQuoteToken(value?: meshtrade_type_v1_token_pb.Token): GetCurrentPriceByTokenPairRequest;
|
|
17
|
+
hasQuoteToken(): boolean;
|
|
18
|
+
clearQuoteToken(): GetCurrentPriceByTokenPairRequest;
|
|
19
|
+
|
|
20
|
+
serializeBinary(): Uint8Array;
|
|
21
|
+
toObject(includeInstance?: boolean): GetCurrentPriceByTokenPairRequest.AsObject;
|
|
22
|
+
static toObject(includeInstance: boolean, msg: GetCurrentPriceByTokenPairRequest): GetCurrentPriceByTokenPairRequest.AsObject;
|
|
23
|
+
static serializeBinaryToWriter(message: GetCurrentPriceByTokenPairRequest, writer: jspb.BinaryWriter): void;
|
|
24
|
+
static deserializeBinary(bytes: Uint8Array): GetCurrentPriceByTokenPairRequest;
|
|
25
|
+
static deserializeBinaryFromReader(message: GetCurrentPriceByTokenPairRequest, reader: jspb.BinaryReader): GetCurrentPriceByTokenPairRequest;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace GetCurrentPriceByTokenPairRequest {
|
|
29
|
+
export type AsObject = {
|
|
30
|
+
baseToken?: meshtrade_type_v1_token_pb.Token.AsObject,
|
|
31
|
+
quoteToken?: meshtrade_type_v1_token_pb.Token.AsObject,
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
// source: meshtrade/market_data/price/v1/service.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 buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js');
|
|
25
|
+
goog.object.extend(proto, buf_validate_validate_pb);
|
|
26
|
+
var meshtrade_market_data_price_v1_price_pb = require('../../../../meshtrade/market_data/price/v1/price_pb.js');
|
|
27
|
+
goog.object.extend(proto, meshtrade_market_data_price_v1_price_pb);
|
|
28
|
+
var meshtrade_option_method_options_v1_method_options_pb = require('../../../../meshtrade/option/method_options/v1/method_options_pb.js');
|
|
29
|
+
goog.object.extend(proto, meshtrade_option_method_options_v1_method_options_pb);
|
|
30
|
+
var meshtrade_type_v1_token_pb = require('../../../../meshtrade/type/v1/token_pb.js');
|
|
31
|
+
goog.object.extend(proto, meshtrade_type_v1_token_pb);
|
|
32
|
+
goog.exportSymbol('proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest', null, global);
|
|
33
|
+
/**
|
|
34
|
+
* Generated by JsPbCodeGenerator.
|
|
35
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
36
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
37
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
38
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
39
|
+
* valid.
|
|
40
|
+
* @extends {jspb.Message}
|
|
41
|
+
* @constructor
|
|
42
|
+
*/
|
|
43
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest = function(opt_data) {
|
|
44
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
45
|
+
};
|
|
46
|
+
goog.inherits(proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest, jspb.Message);
|
|
47
|
+
if (goog.DEBUG && !COMPILED) {
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
* @override
|
|
51
|
+
*/
|
|
52
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.displayName = 'proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
58
|
+
/**
|
|
59
|
+
* Creates an object representation of this proto.
|
|
60
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
61
|
+
* Optional fields that are not set will be set to undefined.
|
|
62
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
63
|
+
* For the list of reserved names please see:
|
|
64
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
65
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
66
|
+
* JSPB instance for transitional soy proto support:
|
|
67
|
+
* http://goto/soy-param-migration
|
|
68
|
+
* @return {!Object}
|
|
69
|
+
*/
|
|
70
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.toObject = function(opt_includeInstance) {
|
|
71
|
+
return proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.toObject(opt_includeInstance, this);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Static version of the {@see toObject} method.
|
|
77
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
78
|
+
* the JSPB instance for transitional soy proto support:
|
|
79
|
+
* http://goto/soy-param-migration
|
|
80
|
+
* @param {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} msg The msg instance to transform.
|
|
81
|
+
* @return {!Object}
|
|
82
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
83
|
+
*/
|
|
84
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.toObject = function(includeInstance, msg) {
|
|
85
|
+
var f, obj = {
|
|
86
|
+
baseToken: (f = msg.getBaseToken()) && meshtrade_type_v1_token_pb.Token.toObject(includeInstance, f),
|
|
87
|
+
quoteToken: (f = msg.getQuoteToken()) && meshtrade_type_v1_token_pb.Token.toObject(includeInstance, f)
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
if (includeInstance) {
|
|
91
|
+
obj.$jspbMessageInstance = msg;
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Deserializes binary data (in protobuf wire format).
|
|
100
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
101
|
+
* @return {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest}
|
|
102
|
+
*/
|
|
103
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.deserializeBinary = function(bytes) {
|
|
104
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
105
|
+
var msg = new proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest;
|
|
106
|
+
return proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.deserializeBinaryFromReader(msg, reader);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
112
|
+
* given reader into the given message object.
|
|
113
|
+
* @param {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} msg The message object to deserialize into.
|
|
114
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
115
|
+
* @return {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest}
|
|
116
|
+
*/
|
|
117
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
118
|
+
while (reader.nextField()) {
|
|
119
|
+
if (reader.isEndGroup()) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
var field = reader.getFieldNumber();
|
|
123
|
+
switch (field) {
|
|
124
|
+
case 1:
|
|
125
|
+
var value = new meshtrade_type_v1_token_pb.Token;
|
|
126
|
+
reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
|
|
127
|
+
msg.setBaseToken(value);
|
|
128
|
+
break;
|
|
129
|
+
case 2:
|
|
130
|
+
var value = new meshtrade_type_v1_token_pb.Token;
|
|
131
|
+
reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
|
|
132
|
+
msg.setQuoteToken(value);
|
|
133
|
+
break;
|
|
134
|
+
default:
|
|
135
|
+
reader.skipField();
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return msg;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
145
|
+
* @return {!Uint8Array}
|
|
146
|
+
*/
|
|
147
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.serializeBinary = function() {
|
|
148
|
+
var writer = new jspb.BinaryWriter();
|
|
149
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.serializeBinaryToWriter(this, writer);
|
|
150
|
+
return writer.getResultBuffer();
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
156
|
+
* format), writing to the given BinaryWriter.
|
|
157
|
+
* @param {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} message
|
|
158
|
+
* @param {!jspb.BinaryWriter} writer
|
|
159
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
160
|
+
*/
|
|
161
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.serializeBinaryToWriter = function(message, writer) {
|
|
162
|
+
var f = undefined;
|
|
163
|
+
f = message.getBaseToken();
|
|
164
|
+
if (f != null) {
|
|
165
|
+
writer.writeMessage(
|
|
166
|
+
1,
|
|
167
|
+
f,
|
|
168
|
+
meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
f = message.getQuoteToken();
|
|
172
|
+
if (f != null) {
|
|
173
|
+
writer.writeMessage(
|
|
174
|
+
2,
|
|
175
|
+
f,
|
|
176
|
+
meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* optional meshtrade.type.v1.Token base_token = 1;
|
|
184
|
+
* @return {?proto.meshtrade.type.v1.Token}
|
|
185
|
+
*/
|
|
186
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.getBaseToken = function() {
|
|
187
|
+
return /** @type{?proto.meshtrade.type.v1.Token} */ (
|
|
188
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_token_pb.Token, 1));
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @param {?proto.meshtrade.type.v1.Token|undefined} value
|
|
194
|
+
* @return {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} returns this
|
|
195
|
+
*/
|
|
196
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.setBaseToken = function(value) {
|
|
197
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Clears the message field making it undefined.
|
|
203
|
+
* @return {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} returns this
|
|
204
|
+
*/
|
|
205
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.clearBaseToken = function() {
|
|
206
|
+
return this.setBaseToken(undefined);
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Returns whether this field is set.
|
|
212
|
+
* @return {boolean}
|
|
213
|
+
*/
|
|
214
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.hasBaseToken = function() {
|
|
215
|
+
return jspb.Message.getField(this, 1) != null;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* optional meshtrade.type.v1.Token quote_token = 2;
|
|
221
|
+
* @return {?proto.meshtrade.type.v1.Token}
|
|
222
|
+
*/
|
|
223
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.getQuoteToken = function() {
|
|
224
|
+
return /** @type{?proto.meshtrade.type.v1.Token} */ (
|
|
225
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_token_pb.Token, 2));
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @param {?proto.meshtrade.type.v1.Token|undefined} value
|
|
231
|
+
* @return {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} returns this
|
|
232
|
+
*/
|
|
233
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.setQuoteToken = function(value) {
|
|
234
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Clears the message field making it undefined.
|
|
240
|
+
* @return {!proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest} returns this
|
|
241
|
+
*/
|
|
242
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.clearQuoteToken = function() {
|
|
243
|
+
return this.setQuoteToken(undefined);
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Returns whether this field is set.
|
|
249
|
+
* @return {boolean}
|
|
250
|
+
*/
|
|
251
|
+
proto.meshtrade.market_data.price.v1.GetCurrentPriceByTokenPairRequest.prototype.hasQuoteToken = function() {
|
|
252
|
+
return jspb.Message.getField(this, 2) != null;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
goog.object.extend(exports, proto.meshtrade.market_data.price.v1);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./method_options_pb";
|
|
@@ -0,0 +1,42 @@
|
|
|
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("./method_options_pb"), exports);
|
|
30
|
+
// ===================================================================
|
|
31
|
+
// END OF AUTO-GENERATED SECTION
|
|
32
|
+
// ===================================================================
|
|
33
|
+
//
|
|
34
|
+
// MANUAL EXPORTS - ADD YOUR CUSTOM EXPORTS BELOW
|
|
35
|
+
//
|
|
36
|
+
// You can safely add your own export statements in this section.
|
|
37
|
+
// They will be preserved across code generation.
|
|
38
|
+
//
|
|
39
|
+
// Example:
|
|
40
|
+
// export * from "./my_custom_module";
|
|
41
|
+
// export { MyCustomClass } from "./another_module";
|
|
42
|
+
// ===================================================================
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; // proto import: "google/protobuf/descriptor.proto"
|
|
4
|
+
import * as meshtrade_iam_role_v1_role_pb from '../../../../meshtrade/iam/role/v1/role_pb'; // proto import: "meshtrade/iam/role/v1/role.proto"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class MethodOptions extends jspb.Message {
|
|
8
|
+
getType(): MethodType;
|
|
9
|
+
setType(value: MethodType): MethodOptions;
|
|
10
|
+
|
|
11
|
+
getAccessLevel(): MethodAccessLevel;
|
|
12
|
+
setAccessLevel(value: MethodAccessLevel): MethodOptions;
|
|
13
|
+
|
|
14
|
+
getRolesList(): Array<meshtrade_iam_role_v1_role_pb.Role>;
|
|
15
|
+
setRolesList(value: Array<meshtrade_iam_role_v1_role_pb.Role>): MethodOptions;
|
|
16
|
+
clearRolesList(): MethodOptions;
|
|
17
|
+
addRoles(value: meshtrade_iam_role_v1_role_pb.Role, index?: number): MethodOptions;
|
|
18
|
+
|
|
19
|
+
serializeBinary(): Uint8Array;
|
|
20
|
+
toObject(includeInstance?: boolean): MethodOptions.AsObject;
|
|
21
|
+
static toObject(includeInstance: boolean, msg: MethodOptions): MethodOptions.AsObject;
|
|
22
|
+
static serializeBinaryToWriter(message: MethodOptions, writer: jspb.BinaryWriter): void;
|
|
23
|
+
static deserializeBinary(bytes: Uint8Array): MethodOptions;
|
|
24
|
+
static deserializeBinaryFromReader(message: MethodOptions, reader: jspb.BinaryReader): MethodOptions;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export namespace MethodOptions {
|
|
28
|
+
export type AsObject = {
|
|
29
|
+
type: MethodType,
|
|
30
|
+
accessLevel: MethodAccessLevel,
|
|
31
|
+
rolesList: Array<meshtrade_iam_role_v1_role_pb.Role>,
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum MethodType {
|
|
36
|
+
METHOD_TYPE_UNSPECIFIED = 0,
|
|
37
|
+
METHOD_TYPE_READ = 1,
|
|
38
|
+
METHOD_TYPE_WRITE = 2,
|
|
39
|
+
}
|
|
40
|
+
export enum MethodAccessLevel {
|
|
41
|
+
METHOD_ACCESS_LEVEL_UNSPECIFIED = 0,
|
|
42
|
+
METHOD_ACCESS_LEVEL_PUBLIC = 1,
|
|
43
|
+
METHOD_ACCESS_LEVEL_AUTHORISED = 2,
|
|
44
|
+
}
|