@woodger/t-invest-node-sdk 0.5.1
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/CHANGELOG.md +611 -0
- package/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES.md +307 -0
- package/certificates/russian-trusted-root-ca.pem +33 -0
- package/dist/application/dto/t-invest-options.d.ts +30 -0
- package/dist/application/dto/t-invest-options.js +11 -0
- package/dist/application/dto/t-invest-services.d.ts +168 -0
- package/dist/application/dto/t-invest-services.js +12 -0
- package/dist/application/errors/sdk-error.d.ts +47 -0
- package/dist/application/errors/sdk-error.js +84 -0
- package/dist/application/reports/accounts.report.d.ts +26 -0
- package/dist/application/reports/accounts.report.js +11 -0
- package/dist/application/reports/accrued-interests.report.d.ts +22 -0
- package/dist/application/reports/accrued-interests.report.js +11 -0
- package/dist/application/reports/asset.report.d.ts +72 -0
- package/dist/application/reports/asset.report.js +11 -0
- package/dist/application/reports/bond-coupons.report.d.ts +31 -0
- package/dist/application/reports/bond-coupons.report.js +11 -0
- package/dist/application/reports/bond.report.d.ts +82 -0
- package/dist/application/reports/bond.report.js +11 -0
- package/dist/application/reports/brands.report.d.ts +24 -0
- package/dist/application/reports/brands.report.js +11 -0
- package/dist/application/reports/broker-report.report.d.ts +74 -0
- package/dist/application/reports/broker-report.report.js +11 -0
- package/dist/application/reports/cancel-order.report.d.ts +14 -0
- package/dist/application/reports/cancel-order.report.js +11 -0
- package/dist/application/reports/cancel-stop-order.report.d.ts +14 -0
- package/dist/application/reports/cancel-stop-order.report.js +11 -0
- package/dist/application/reports/candles.report.d.ts +26 -0
- package/dist/application/reports/candles.report.js +11 -0
- package/dist/application/reports/close-prices.report.d.ts +20 -0
- package/dist/application/reports/close-prices.report.js +11 -0
- package/dist/application/reports/countries.report.d.ts +20 -0
- package/dist/application/reports/countries.report.js +11 -0
- package/dist/application/reports/currency.report.d.ts +58 -0
- package/dist/application/reports/currency.report.js +11 -0
- package/dist/application/reports/dividends-foreign-issuer.report.d.ts +51 -0
- package/dist/application/reports/dividends-foreign-issuer.report.js +11 -0
- package/dist/application/reports/dividends.report.d.ts +33 -0
- package/dist/application/reports/dividends.report.js +11 -0
- package/dist/application/reports/etf.report.d.ts +62 -0
- package/dist/application/reports/etf.report.js +11 -0
- package/dist/application/reports/favorites.report.d.ts +24 -0
- package/dist/application/reports/favorites.report.js +11 -0
- package/dist/application/reports/find-instrument.report.d.ts +34 -0
- package/dist/application/reports/find-instrument.report.js +11 -0
- package/dist/application/reports/future.report.d.ts +66 -0
- package/dist/application/reports/future.report.js +11 -0
- package/dist/application/reports/futures-margin.report.d.ts +21 -0
- package/dist/application/reports/futures-margin.report.js +11 -0
- package/dist/application/reports/index.d.ts +50 -0
- package/dist/application/reports/index.js +66 -0
- package/dist/application/reports/instrument.report.d.ts +47 -0
- package/dist/application/reports/instrument.report.js +11 -0
- package/dist/application/reports/last-prices.report.d.ts +20 -0
- package/dist/application/reports/last-prices.report.js +11 -0
- package/dist/application/reports/last-trades.report.d.ts +24 -0
- package/dist/application/reports/last-trades.report.js +11 -0
- package/dist/application/reports/margin-attributes.report.d.ts +25 -0
- package/dist/application/reports/margin-attributes.report.js +11 -0
- package/dist/application/reports/money.report.d.ts +15 -0
- package/dist/application/reports/money.report.js +11 -0
- package/dist/application/reports/operations-by-cursor.report.d.ts +65 -0
- package/dist/application/reports/operations-by-cursor.report.js +11 -0
- package/dist/application/reports/operations.report.d.ts +40 -0
- package/dist/application/reports/operations.report.js +11 -0
- package/dist/application/reports/option.report.d.ts +76 -0
- package/dist/application/reports/option.report.js +11 -0
- package/dist/application/reports/order-book.report.d.ts +38 -0
- package/dist/application/reports/order-book.report.js +11 -0
- package/dist/application/reports/order-mutation.report.d.ts +45 -0
- package/dist/application/reports/order-mutation.report.js +11 -0
- package/dist/application/reports/order-state.report.d.ts +12 -0
- package/dist/application/reports/order-state.report.js +11 -0
- package/dist/application/reports/orders.report.d.ts +53 -0
- package/dist/application/reports/orders.report.js +11 -0
- package/dist/application/reports/portfolio.report.d.ts +54 -0
- package/dist/application/reports/portfolio.report.js +11 -0
- package/dist/application/reports/positions.report.d.ts +45 -0
- package/dist/application/reports/positions.report.js +11 -0
- package/dist/application/reports/post-stop-order.report.d.ts +14 -0
- package/dist/application/reports/post-stop-order.report.js +11 -0
- package/dist/application/reports/sandbox-account.report.d.ts +20 -0
- package/dist/application/reports/sandbox-account.report.js +11 -0
- package/dist/application/reports/share.report.d.ts +66 -0
- package/dist/application/reports/share.report.js +11 -0
- package/dist/application/reports/stop-orders.report.d.ts +34 -0
- package/dist/application/reports/stop-orders.report.js +11 -0
- package/dist/application/reports/trading-schedules.report.d.ts +44 -0
- package/dist/application/reports/trading-schedules.report.js +11 -0
- package/dist/application/reports/trading-status.report.d.ts +19 -0
- package/dist/application/reports/trading-status.report.js +11 -0
- package/dist/application/reports/trading-statuses.report.d.ts +12 -0
- package/dist/application/reports/trading-statuses.report.js +11 -0
- package/dist/application/reports/user-info.report.d.ts +16 -0
- package/dist/application/reports/user-info.report.js +11 -0
- package/dist/application/reports/user-tariff.report.d.ts +28 -0
- package/dist/application/reports/user-tariff.report.js +11 -0
- package/dist/application/reports/withdraw-limits.report.d.ts +16 -0
- package/dist/application/reports/withdraw-limits.report.js +11 -0
- package/dist/application/services/unary-limiter.d.ts +44 -0
- package/dist/application/services/unary-limiter.js +138 -0
- package/dist/bootstrap/args/command-options.d.ts +43 -0
- package/dist/bootstrap/args/command-options.js +125 -0
- package/dist/bootstrap/args/index.d.ts +1 -0
- package/dist/bootstrap/args/index.js +5 -0
- package/dist/bootstrap/args/instrument-id-options.d.ts +24 -0
- package/dist/bootstrap/args/instrument-id-options.js +47 -0
- package/dist/bootstrap/args/instruments-args.d.ts +49 -0
- package/dist/bootstrap/args/instruments-args.js +89 -0
- package/dist/bootstrap/args/sdk-options.d.ts +19 -0
- package/dist/bootstrap/args/sdk-options.js +40 -0
- package/dist/bootstrap/args/side-effect-args.d.ts +20 -0
- package/dist/bootstrap/args/side-effect-args.js +50 -0
- package/dist/bootstrap/cli/contract.d.ts +16 -0
- package/dist/bootstrap/cli/contract.js +15 -0
- package/dist/bootstrap/cli/domains.d.ts +260 -0
- package/dist/bootstrap/cli/domains.js +631 -0
- package/dist/bootstrap/cli/error.d.ts +15 -0
- package/dist/bootstrap/cli/error.js +40 -0
- package/dist/bootstrap/cli/help.d.ts +751 -0
- package/dist/bootstrap/cli/help.js +1789 -0
- package/dist/bootstrap/cli/registry.d.ts +2102 -0
- package/dist/bootstrap/cli/registry.js +186 -0
- package/dist/bootstrap/cli/runner.d.ts +10 -0
- package/dist/bootstrap/cli/runner.js +151 -0
- package/dist/bootstrap/cli/version.d.ts +17 -0
- package/dist/bootstrap/cli/version.js +26 -0
- package/dist/bootstrap/commands/accounts/cli.d.ts +63 -0
- package/dist/bootstrap/commands/accounts/cli.js +50 -0
- package/dist/bootstrap/commands/accounts/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/accounts/reporter.js +50 -0
- package/dist/bootstrap/commands/accrued-interests/cli.d.ts +129 -0
- package/dist/bootstrap/commands/accrued-interests/cli.js +80 -0
- package/dist/bootstrap/commands/accrued-interests/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/accrued-interests/reporter.js +43 -0
- package/dist/bootstrap/commands/asset/cli.d.ts +99 -0
- package/dist/bootstrap/commands/asset/cli.js +64 -0
- package/dist/bootstrap/commands/asset/reporter.d.ts +16 -0
- package/dist/bootstrap/commands/asset/reporter.js +122 -0
- package/dist/bootstrap/commands/assets/cli.d.ts +102 -0
- package/dist/bootstrap/commands/assets/cli.js +78 -0
- package/dist/bootstrap/commands/assets/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/assets/reporter.js +27 -0
- package/dist/bootstrap/commands/bond/cli.d.ts +83 -0
- package/dist/bootstrap/commands/bond/cli.js +53 -0
- package/dist/bootstrap/commands/bond/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/bond/reporter.js +123 -0
- package/dist/bootstrap/commands/bond-coupons/cli.d.ts +129 -0
- package/dist/bootstrap/commands/bond-coupons/cli.js +80 -0
- package/dist/bootstrap/commands/bond-coupons/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/bond-coupons/reporter.js +64 -0
- package/dist/bootstrap/commands/bonds/cli.d.ts +73 -0
- package/dist/bootstrap/commands/bonds/cli.js +53 -0
- package/dist/bootstrap/commands/bonds/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/bonds/reporter.js +27 -0
- package/dist/bootstrap/commands/brand/cli.d.ts +99 -0
- package/dist/bootstrap/commands/brand/cli.js +64 -0
- package/dist/bootstrap/commands/brand/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/brand/reporter.js +37 -0
- package/dist/bootstrap/commands/brands/cli.d.ts +63 -0
- package/dist/bootstrap/commands/brands/cli.js +50 -0
- package/dist/bootstrap/commands/brands/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/brands/reporter.js +49 -0
- package/dist/bootstrap/commands/broker-report/cli.d.ts +132 -0
- package/dist/bootstrap/commands/broker-report/cli.js +105 -0
- package/dist/bootstrap/commands/broker-report/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/broker-report/reporter.js +123 -0
- package/dist/bootstrap/commands/cancel-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/cancel-order/cli.js +71 -0
- package/dist/bootstrap/commands/cancel-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/cancel-order/reporter.js +32 -0
- package/dist/bootstrap/commands/cancel-stop-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/cancel-stop-order/cli.js +71 -0
- package/dist/bootstrap/commands/cancel-stop-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/cancel-stop-order/reporter.js +32 -0
- package/dist/bootstrap/commands/candles/cli.d.ts +138 -0
- package/dist/bootstrap/commands/candles/cli.js +104 -0
- package/dist/bootstrap/commands/candles/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/candles/reporter.js +49 -0
- package/dist/bootstrap/commands/close-prices/cli.d.ts +99 -0
- package/dist/bootstrap/commands/close-prices/cli.js +66 -0
- package/dist/bootstrap/commands/close-prices/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/close-prices/reporter.js +43 -0
- package/dist/bootstrap/commands/compile-proto/cli.d.ts +12 -0
- package/dist/bootstrap/commands/compile-proto/cli.js +22 -0
- package/dist/bootstrap/commands/countries/cli.d.ts +63 -0
- package/dist/bootstrap/commands/countries/cli.js +50 -0
- package/dist/bootstrap/commands/countries/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/countries/reporter.js +42 -0
- package/dist/bootstrap/commands/currencies/cli.d.ts +73 -0
- package/dist/bootstrap/commands/currencies/cli.js +53 -0
- package/dist/bootstrap/commands/currencies/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/currencies/reporter.js +27 -0
- package/dist/bootstrap/commands/currency/cli.d.ts +83 -0
- package/dist/bootstrap/commands/currency/cli.js +53 -0
- package/dist/bootstrap/commands/currency/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/currency/reporter.js +104 -0
- package/dist/bootstrap/commands/dividends/cli.d.ts +129 -0
- package/dist/bootstrap/commands/dividends/cli.js +80 -0
- package/dist/bootstrap/commands/dividends/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/dividends/reporter.js +62 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.d.ts +132 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.js +105 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.js +108 -0
- package/dist/bootstrap/commands/edit-favorites/cli.d.ts +129 -0
- package/dist/bootstrap/commands/edit-favorites/cli.js +78 -0
- package/dist/bootstrap/commands/edit-favorites/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/edit-favorites/reporter.js +23 -0
- package/dist/bootstrap/commands/etf/cli.d.ts +83 -0
- package/dist/bootstrap/commands/etf/cli.js +53 -0
- package/dist/bootstrap/commands/etf/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/etf/reporter.js +109 -0
- package/dist/bootstrap/commands/etfs/cli.d.ts +73 -0
- package/dist/bootstrap/commands/etfs/cli.js +53 -0
- package/dist/bootstrap/commands/etfs/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/etfs/reporter.js +27 -0
- package/dist/bootstrap/commands/favorites/cli.d.ts +63 -0
- package/dist/bootstrap/commands/favorites/cli.js +50 -0
- package/dist/bootstrap/commands/favorites/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/favorites/reporter.js +60 -0
- package/dist/bootstrap/commands/find-instrument/cli.d.ts +126 -0
- package/dist/bootstrap/commands/find-instrument/cli.js +88 -0
- package/dist/bootstrap/commands/find-instrument/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/find-instrument/reporter.js +71 -0
- package/dist/bootstrap/commands/future/cli.d.ts +83 -0
- package/dist/bootstrap/commands/future/cli.js +53 -0
- package/dist/bootstrap/commands/future/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/future/reporter.js +116 -0
- package/dist/bootstrap/commands/futures/cli.d.ts +73 -0
- package/dist/bootstrap/commands/futures/cli.js +53 -0
- package/dist/bootstrap/commands/futures/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/futures/reporter.js +27 -0
- package/dist/bootstrap/commands/futures-margin/cli.d.ts +105 -0
- package/dist/bootstrap/commands/futures-margin/cli.js +64 -0
- package/dist/bootstrap/commands/futures-margin/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/futures-margin/reporter.js +40 -0
- package/dist/bootstrap/commands/help/cli.d.ts +13 -0
- package/dist/bootstrap/commands/help/cli.js +26 -0
- package/dist/bootstrap/commands/instrument/cli.d.ts +83 -0
- package/dist/bootstrap/commands/instrument/cli.js +53 -0
- package/dist/bootstrap/commands/instrument/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/instrument/reporter.js +91 -0
- package/dist/bootstrap/commands/last-prices/cli.d.ts +99 -0
- package/dist/bootstrap/commands/last-prices/cli.js +66 -0
- package/dist/bootstrap/commands/last-prices/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/last-prices/reporter.js +43 -0
- package/dist/bootstrap/commands/last-trades/cli.d.ts +123 -0
- package/dist/bootstrap/commands/last-trades/cli.js +82 -0
- package/dist/bootstrap/commands/last-trades/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/last-trades/reporter.js +48 -0
- package/dist/bootstrap/commands/margin-attributes/cli.d.ts +99 -0
- package/dist/bootstrap/commands/margin-attributes/cli.js +64 -0
- package/dist/bootstrap/commands/margin-attributes/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/margin-attributes/reporter.js +51 -0
- package/dist/bootstrap/commands/operations/cli.d.ts +156 -0
- package/dist/bootstrap/commands/operations/cli.js +99 -0
- package/dist/bootstrap/commands/operations/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/operations/reporter.js +78 -0
- package/dist/bootstrap/commands/operations-by-cursor/cli.d.ts +204 -0
- package/dist/bootstrap/commands/operations-by-cursor/cli.js +164 -0
- package/dist/bootstrap/commands/operations-by-cursor/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/operations-by-cursor/reporter.js +107 -0
- package/dist/bootstrap/commands/option/cli.d.ts +83 -0
- package/dist/bootstrap/commands/option/cli.js +53 -0
- package/dist/bootstrap/commands/option/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/option/reporter.js +125 -0
- package/dist/bootstrap/commands/options-by/cli.d.ts +108 -0
- package/dist/bootstrap/commands/options-by/cli.js +68 -0
- package/dist/bootstrap/commands/options-by/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/options-by/reporter.js +27 -0
- package/dist/bootstrap/commands/order-book/cli.d.ts +120 -0
- package/dist/bootstrap/commands/order-book/cli.js +73 -0
- package/dist/bootstrap/commands/order-book/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/order-book/reporter.js +60 -0
- package/dist/bootstrap/commands/order-state/cli.d.ts +111 -0
- package/dist/bootstrap/commands/order-state/cli.js +71 -0
- package/dist/bootstrap/commands/order-state/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/order-state/reporter.js +57 -0
- package/dist/bootstrap/commands/orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/orders/cli.js +64 -0
- package/dist/bootstrap/commands/orders/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/orders/reporter.js +88 -0
- package/dist/bootstrap/commands/portfolio/cli.d.ts +114 -0
- package/dist/bootstrap/commands/portfolio/cli.js +77 -0
- package/dist/bootstrap/commands/portfolio/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/portfolio/reporter.js +95 -0
- package/dist/bootstrap/commands/positions/cli.d.ts +99 -0
- package/dist/bootstrap/commands/positions/cli.js +64 -0
- package/dist/bootstrap/commands/positions/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/positions/reporter.js +116 -0
- package/dist/bootstrap/commands/post-order/cli.d.ts +192 -0
- package/dist/bootstrap/commands/post-order/cli.js +113 -0
- package/dist/bootstrap/commands/post-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/post-order/reporter.js +77 -0
- package/dist/bootstrap/commands/post-stop-order/cli.d.ts +216 -0
- package/dist/bootstrap/commands/post-stop-order/cli.js +145 -0
- package/dist/bootstrap/commands/post-stop-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/post-stop-order/reporter.js +31 -0
- package/dist/bootstrap/commands/replace-order/cli.d.ts +180 -0
- package/dist/bootstrap/commands/replace-order/cli.js +99 -0
- package/dist/bootstrap/commands/replace-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/replace-order/reporter.js +17 -0
- package/dist/bootstrap/commands/sandbox-accounts/cli.d.ts +64 -0
- package/dist/bootstrap/commands/sandbox-accounts/cli.js +54 -0
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.js +69 -0
- package/dist/bootstrap/commands/sandbox-close-account/cli.d.ts +108 -0
- package/dist/bootstrap/commands/sandbox-close-account/cli.js +66 -0
- package/dist/bootstrap/commands/sandbox-close-account/reporter.d.ts +12 -0
- package/dist/bootstrap/commands/sandbox-close-account/reporter.js +32 -0
- package/dist/bootstrap/commands/sandbox-open-account/cli.d.ts +70 -0
- package/dist/bootstrap/commands/sandbox-open-account/cli.js +57 -0
- package/dist/bootstrap/commands/sandbox-open-account/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/sandbox-open-account/reporter.js +31 -0
- package/dist/bootstrap/commands/sandbox-operations/cli.d.ts +156 -0
- package/dist/bootstrap/commands/sandbox-operations/cli.js +78 -0
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.d.ts +204 -0
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.js +98 -0
- package/dist/bootstrap/commands/sandbox-order-state/cli.d.ts +111 -0
- package/dist/bootstrap/commands/sandbox-order-state/cli.js +67 -0
- package/dist/bootstrap/commands/sandbox-orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-orders/cli.js +63 -0
- package/dist/bootstrap/commands/sandbox-pay-in/cli.d.ts +135 -0
- package/dist/bootstrap/commands/sandbox-pay-in/cli.js +86 -0
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.js +32 -0
- package/dist/bootstrap/commands/sandbox-portfolio/cli.d.ts +114 -0
- package/dist/bootstrap/commands/sandbox-portfolio/cli.js +68 -0
- package/dist/bootstrap/commands/sandbox-positions/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-positions/cli.js +63 -0
- package/dist/bootstrap/commands/sandbox-post-order/cli.d.ts +192 -0
- package/dist/bootstrap/commands/sandbox-post-order/cli.js +90 -0
- package/dist/bootstrap/commands/sandbox-replace-order/cli.d.ts +180 -0
- package/dist/bootstrap/commands/sandbox-replace-order/cli.js +86 -0
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.js +63 -0
- package/dist/bootstrap/commands/share/cli.d.ts +83 -0
- package/dist/bootstrap/commands/share/cli.js +53 -0
- package/dist/bootstrap/commands/share/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/share/reporter.js +111 -0
- package/dist/bootstrap/commands/shares/cli.d.ts +73 -0
- package/dist/bootstrap/commands/shares/cli.js +53 -0
- package/dist/bootstrap/commands/shares/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/shares/reporter.js +27 -0
- package/dist/bootstrap/commands/stop-orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/stop-orders/cli.js +68 -0
- package/dist/bootstrap/commands/stop-orders/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/stop-orders/reporter.js +69 -0
- package/dist/bootstrap/commands/stream-run/cli.d.ts +138 -0
- package/dist/bootstrap/commands/stream-run/cli.js +229 -0
- package/dist/bootstrap/commands/stream-run/config.d.ts +56 -0
- package/dist/bootstrap/commands/stream-run/config.js +468 -0
- package/dist/bootstrap/commands/stream-run/reporter.d.ts +30 -0
- package/dist/bootstrap/commands/stream-run/reporter.js +76 -0
- package/dist/bootstrap/commands/trading-schedules/cli.d.ts +120 -0
- package/dist/bootstrap/commands/trading-schedules/cli.js +79 -0
- package/dist/bootstrap/commands/trading-schedules/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/trading-schedules/reporter.js +58 -0
- package/dist/bootstrap/commands/trading-status/cli.d.ts +99 -0
- package/dist/bootstrap/commands/trading-status/cli.js +65 -0
- package/dist/bootstrap/commands/trading-status/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/trading-status/reporter.js +51 -0
- package/dist/bootstrap/commands/trading-statuses/cli.d.ts +99 -0
- package/dist/bootstrap/commands/trading-statuses/cli.js +64 -0
- package/dist/bootstrap/commands/trading-statuses/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/trading-statuses/reporter.js +44 -0
- package/dist/bootstrap/commands/user-info/cli.d.ts +63 -0
- package/dist/bootstrap/commands/user-info/cli.js +50 -0
- package/dist/bootstrap/commands/user-info/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/user-info/reporter.js +39 -0
- package/dist/bootstrap/commands/user-tariff/cli.d.ts +63 -0
- package/dist/bootstrap/commands/user-tariff/cli.js +50 -0
- package/dist/bootstrap/commands/user-tariff/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/user-tariff/reporter.js +50 -0
- package/dist/bootstrap/commands/version/cli.d.ts +13 -0
- package/dist/bootstrap/commands/version/cli.js +22 -0
- package/dist/bootstrap/commands/withdraw-limits/cli.d.ts +99 -0
- package/dist/bootstrap/commands/withdraw-limits/cli.js +64 -0
- package/dist/bootstrap/commands/withdraw-limits/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/withdraw-limits/reporter.js +59 -0
- package/dist/bootstrap/generated-exports.d.ts +29 -0
- package/dist/bootstrap/generated-exports.js +590 -0
- package/dist/bootstrap/index.d.ts +6 -0
- package/dist/bootstrap/index.js +22 -0
- package/dist/bootstrap/proto/compile-proto.d.ts +18 -0
- package/dist/bootstrap/proto/compile-proto.js +122 -0
- package/dist/bootstrap/sdk-config.d.ts +21 -0
- package/dist/bootstrap/sdk-config.js +152 -0
- package/dist/bootstrap/t-invest-node-sdk.d.ts +42 -0
- package/dist/bootstrap/t-invest-node-sdk.js +115 -0
- package/dist/bootstrap/unary-limit-config.d.ts +38 -0
- package/dist/bootstrap/unary-limit-config.js +130 -0
- package/dist/config.d.ts +160 -0
- package/dist/config.js +173 -0
- package/dist/config.types.d.ts +89 -0
- package/dist/config.types.js +13 -0
- package/dist/generated/common.d.ts +214 -0
- package/dist/generated/common.js +1336 -0
- package/dist/generated/google/api/field_behavior.d.ts +61 -0
- package/dist/generated/google/api/field_behavior.js +126 -0
- package/dist/generated/google/protobuf/descriptor.d.ts +1330 -0
- package/dist/generated/google/protobuf/descriptor.js +5984 -0
- package/dist/generated/google/protobuf/timestamp.d.ts +122 -0
- package/dist/generated/google/protobuf/timestamp.js +102 -0
- package/dist/generated/instruments.d.ts +3230 -0
- package/dist/generated/instruments.js +24246 -0
- package/dist/generated/marketdata.d.ts +1268 -0
- package/dist/generated/marketdata.js +8922 -0
- package/dist/generated/operations.d.ts +1165 -0
- package/dist/generated/operations.js +8625 -0
- package/dist/generated/orders.d.ts +806 -0
- package/dist/generated/orders.js +5639 -0
- package/dist/generated/sandbox.d.ts +356 -0
- package/dist/generated/sandbox.js +603 -0
- package/dist/generated/signals.d.ts +196 -0
- package/dist/generated/signals.js +1261 -0
- package/dist/generated/stoporders.d.ts +328 -0
- package/dist/generated/stoporders.js +1990 -0
- package/dist/generated/users.d.ts +453 -0
- package/dist/generated/users.js +2334 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +30 -0
- package/dist/infrastructure/interceptor/index.d.ts +1 -0
- package/dist/infrastructure/interceptor/index.js +17 -0
- package/dist/infrastructure/interceptor/warning-interceptor.d.ts +23 -0
- package/dist/infrastructure/interceptor/warning-interceptor.js +38 -0
- package/dist/infrastructure/report-values.d.ts +19 -0
- package/dist/infrastructure/report-values.js +50 -0
- package/dist/infrastructure/transport/grpc/index.d.ts +5 -0
- package/dist/infrastructure/transport/grpc/index.js +13 -0
- package/dist/infrastructure/transport/grpc/sdk-channel.d.ts +12 -0
- package/dist/infrastructure/transport/grpc/sdk-channel.js +23 -0
- package/dist/infrastructure/transport/grpc/sdk-client.d.ts +16 -0
- package/dist/infrastructure/transport/grpc/sdk-client.js +33 -0
- package/dist/infrastructure/transport/grpc/sdk-metadata.d.ts +12 -0
- package/dist/infrastructure/transport/grpc/sdk-metadata.js +22 -0
- package/dist/infrastructure/transport/grpc/sdk-middleware.d.ts +22 -0
- package/dist/infrastructure/transport/grpc/sdk-middleware.js +312 -0
- package/dist/infrastructure/transport/grpc/tls-root-certificates.d.ts +10 -0
- package/dist/infrastructure/transport/grpc/tls-root-certificates.js +20 -0
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.d.ts +22 -0
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.js +60 -0
- package/dist/infrastructure/transport/grpc/unary-limits.d.ts +1 -0
- package/dist/infrastructure/transport/grpc/unary-limits.js +7 -0
- package/docs/architecture.md +378 -0
- package/docs/bundled-ca.md +157 -0
- package/docs/clean-architecture/adapters.md +173 -0
- package/docs/clean-architecture/api-commands.md +487 -0
- package/docs/clean-architecture/application.md +137 -0
- package/docs/clean-architecture/cli-output-boundaries.md +256 -0
- package/docs/clean-architecture/dto.md +153 -0
- package/docs/clean-architecture/index.md +89 -0
- package/docs/cli-stream-configuration.md +305 -0
- package/docs/cli-stream-reference.md +195 -0
- package/docs/guides/custom-unary-limiter.md +552 -0
- package/docs/guides/errors-and-lifecycle.md +196 -0
- package/docs/guides/getting-started.md +100 -0
- package/docs/guides/index.md +43 -0
- package/docs/guides/streams-and-cancellation.md +177 -0
- package/docs/guides/testing-with-service-definitions.md +110 -0
- package/docs/guides/unary-calls.md +216 -0
- package/docs/index.md +86 -0
- package/docs/limits-policy.md +201 -0
- package/docs/roadmap.md +204 -0
- package/docs/tls-policy.md +62 -0
- package/package.json +62 -0
- package/readme.md +472 -0
|
@@ -0,0 +1,2334 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.12.2
|
|
5
|
+
// protoc v3.19.6
|
|
6
|
+
// source: users.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.UsersServiceDefinition = exports.InstrumentParameter = exports.AccountValuesWithParameters = exports.GetAccountValuesResponse = exports.GetAccountValuesRequest = exports.PayInResponse = exports.PayInRequest = exports.CurrencyTransferResponse = exports.CurrencyTransferRequest = exports.BankAccount = exports.GetBankAccountsResponse = exports.GetBankAccountsRequest = exports.GetInfoResponse = exports.GetInfoRequest = exports.StreamLimit = exports.UnaryLimit = exports.GetUserTariffResponse = exports.GetUserTariffRequest = exports.GetMarginAttributesResponse = exports.GetMarginAttributesRequest = exports.Account = exports.GetAccountsResponse = exports.GetAccountsRequest = exports.AccountValue = exports.AccessLevel = exports.AccountStatus = exports.AccountType = exports.protobufPackage = void 0;
|
|
9
|
+
exports.accountTypeFromJSON = accountTypeFromJSON;
|
|
10
|
+
exports.accountTypeToJSON = accountTypeToJSON;
|
|
11
|
+
exports.accountStatusFromJSON = accountStatusFromJSON;
|
|
12
|
+
exports.accountStatusToJSON = accountStatusToJSON;
|
|
13
|
+
exports.accessLevelFromJSON = accessLevelFromJSON;
|
|
14
|
+
exports.accessLevelToJSON = accessLevelToJSON;
|
|
15
|
+
exports.accountValueFromJSON = accountValueFromJSON;
|
|
16
|
+
exports.accountValueToJSON = accountValueToJSON;
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
19
|
+
const common_1 = require("./common");
|
|
20
|
+
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
21
|
+
exports.protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
22
|
+
/** Тип счeта. */
|
|
23
|
+
var AccountType;
|
|
24
|
+
(function (AccountType) {
|
|
25
|
+
/** ACCOUNT_TYPE_UNSPECIFIED - Тип аккаунта не определeн. */
|
|
26
|
+
AccountType[AccountType["ACCOUNT_TYPE_UNSPECIFIED"] = 0] = "ACCOUNT_TYPE_UNSPECIFIED";
|
|
27
|
+
/** ACCOUNT_TYPE_TINKOFF - Брокерский счeт Т-Инвестиций. */
|
|
28
|
+
AccountType[AccountType["ACCOUNT_TYPE_TINKOFF"] = 1] = "ACCOUNT_TYPE_TINKOFF";
|
|
29
|
+
/** ACCOUNT_TYPE_TINKOFF_IIS - ИИС. */
|
|
30
|
+
AccountType[AccountType["ACCOUNT_TYPE_TINKOFF_IIS"] = 2] = "ACCOUNT_TYPE_TINKOFF_IIS";
|
|
31
|
+
/** ACCOUNT_TYPE_INVEST_BOX - Инвесткопилка. */
|
|
32
|
+
AccountType[AccountType["ACCOUNT_TYPE_INVEST_BOX"] = 3] = "ACCOUNT_TYPE_INVEST_BOX";
|
|
33
|
+
/** ACCOUNT_TYPE_INVEST_FUND - Фонд денежного рынка. */
|
|
34
|
+
AccountType[AccountType["ACCOUNT_TYPE_INVEST_FUND"] = 4] = "ACCOUNT_TYPE_INVEST_FUND";
|
|
35
|
+
/** ACCOUNT_TYPE_DEBIT - Дебетовый карточный счeт. */
|
|
36
|
+
AccountType[AccountType["ACCOUNT_TYPE_DEBIT"] = 5] = "ACCOUNT_TYPE_DEBIT";
|
|
37
|
+
/** ACCOUNT_TYPE_SAVING - Накопительный счeт. */
|
|
38
|
+
AccountType[AccountType["ACCOUNT_TYPE_SAVING"] = 6] = "ACCOUNT_TYPE_SAVING";
|
|
39
|
+
/** ACCOUNT_TYPE_DFA - Смарт-счет. */
|
|
40
|
+
AccountType[AccountType["ACCOUNT_TYPE_DFA"] = 7] = "ACCOUNT_TYPE_DFA";
|
|
41
|
+
AccountType[AccountType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
42
|
+
})(AccountType || (exports.AccountType = AccountType = {}));
|
|
43
|
+
function accountTypeFromJSON(object) {
|
|
44
|
+
switch (object) {
|
|
45
|
+
case 0:
|
|
46
|
+
case "ACCOUNT_TYPE_UNSPECIFIED":
|
|
47
|
+
return AccountType.ACCOUNT_TYPE_UNSPECIFIED;
|
|
48
|
+
case 1:
|
|
49
|
+
case "ACCOUNT_TYPE_TINKOFF":
|
|
50
|
+
return AccountType.ACCOUNT_TYPE_TINKOFF;
|
|
51
|
+
case 2:
|
|
52
|
+
case "ACCOUNT_TYPE_TINKOFF_IIS":
|
|
53
|
+
return AccountType.ACCOUNT_TYPE_TINKOFF_IIS;
|
|
54
|
+
case 3:
|
|
55
|
+
case "ACCOUNT_TYPE_INVEST_BOX":
|
|
56
|
+
return AccountType.ACCOUNT_TYPE_INVEST_BOX;
|
|
57
|
+
case 4:
|
|
58
|
+
case "ACCOUNT_TYPE_INVEST_FUND":
|
|
59
|
+
return AccountType.ACCOUNT_TYPE_INVEST_FUND;
|
|
60
|
+
case 5:
|
|
61
|
+
case "ACCOUNT_TYPE_DEBIT":
|
|
62
|
+
return AccountType.ACCOUNT_TYPE_DEBIT;
|
|
63
|
+
case 6:
|
|
64
|
+
case "ACCOUNT_TYPE_SAVING":
|
|
65
|
+
return AccountType.ACCOUNT_TYPE_SAVING;
|
|
66
|
+
case 7:
|
|
67
|
+
case "ACCOUNT_TYPE_DFA":
|
|
68
|
+
return AccountType.ACCOUNT_TYPE_DFA;
|
|
69
|
+
case -1:
|
|
70
|
+
case "UNRECOGNIZED":
|
|
71
|
+
default:
|
|
72
|
+
return AccountType.UNRECOGNIZED;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function accountTypeToJSON(object) {
|
|
76
|
+
switch (object) {
|
|
77
|
+
case AccountType.ACCOUNT_TYPE_UNSPECIFIED:
|
|
78
|
+
return "ACCOUNT_TYPE_UNSPECIFIED";
|
|
79
|
+
case AccountType.ACCOUNT_TYPE_TINKOFF:
|
|
80
|
+
return "ACCOUNT_TYPE_TINKOFF";
|
|
81
|
+
case AccountType.ACCOUNT_TYPE_TINKOFF_IIS:
|
|
82
|
+
return "ACCOUNT_TYPE_TINKOFF_IIS";
|
|
83
|
+
case AccountType.ACCOUNT_TYPE_INVEST_BOX:
|
|
84
|
+
return "ACCOUNT_TYPE_INVEST_BOX";
|
|
85
|
+
case AccountType.ACCOUNT_TYPE_INVEST_FUND:
|
|
86
|
+
return "ACCOUNT_TYPE_INVEST_FUND";
|
|
87
|
+
case AccountType.ACCOUNT_TYPE_DEBIT:
|
|
88
|
+
return "ACCOUNT_TYPE_DEBIT";
|
|
89
|
+
case AccountType.ACCOUNT_TYPE_SAVING:
|
|
90
|
+
return "ACCOUNT_TYPE_SAVING";
|
|
91
|
+
case AccountType.ACCOUNT_TYPE_DFA:
|
|
92
|
+
return "ACCOUNT_TYPE_DFA";
|
|
93
|
+
case AccountType.UNRECOGNIZED:
|
|
94
|
+
default:
|
|
95
|
+
return "UNRECOGNIZED";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/** Статус счeта. */
|
|
99
|
+
var AccountStatus;
|
|
100
|
+
(function (AccountStatus) {
|
|
101
|
+
/** ACCOUNT_STATUS_UNSPECIFIED - Статус счeта не определeн. */
|
|
102
|
+
AccountStatus[AccountStatus["ACCOUNT_STATUS_UNSPECIFIED"] = 0] = "ACCOUNT_STATUS_UNSPECIFIED";
|
|
103
|
+
/** ACCOUNT_STATUS_NEW - Новый, в процессе открытия. */
|
|
104
|
+
AccountStatus[AccountStatus["ACCOUNT_STATUS_NEW"] = 1] = "ACCOUNT_STATUS_NEW";
|
|
105
|
+
/** ACCOUNT_STATUS_OPEN - Открытый и активный счeт. */
|
|
106
|
+
AccountStatus[AccountStatus["ACCOUNT_STATUS_OPEN"] = 2] = "ACCOUNT_STATUS_OPEN";
|
|
107
|
+
/** ACCOUNT_STATUS_CLOSED - Закрытый счeт. */
|
|
108
|
+
AccountStatus[AccountStatus["ACCOUNT_STATUS_CLOSED"] = 3] = "ACCOUNT_STATUS_CLOSED";
|
|
109
|
+
/** ACCOUNT_STATUS_ALL - Все счета. */
|
|
110
|
+
AccountStatus[AccountStatus["ACCOUNT_STATUS_ALL"] = 4] = "ACCOUNT_STATUS_ALL";
|
|
111
|
+
AccountStatus[AccountStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
112
|
+
})(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
|
|
113
|
+
function accountStatusFromJSON(object) {
|
|
114
|
+
switch (object) {
|
|
115
|
+
case 0:
|
|
116
|
+
case "ACCOUNT_STATUS_UNSPECIFIED":
|
|
117
|
+
return AccountStatus.ACCOUNT_STATUS_UNSPECIFIED;
|
|
118
|
+
case 1:
|
|
119
|
+
case "ACCOUNT_STATUS_NEW":
|
|
120
|
+
return AccountStatus.ACCOUNT_STATUS_NEW;
|
|
121
|
+
case 2:
|
|
122
|
+
case "ACCOUNT_STATUS_OPEN":
|
|
123
|
+
return AccountStatus.ACCOUNT_STATUS_OPEN;
|
|
124
|
+
case 3:
|
|
125
|
+
case "ACCOUNT_STATUS_CLOSED":
|
|
126
|
+
return AccountStatus.ACCOUNT_STATUS_CLOSED;
|
|
127
|
+
case 4:
|
|
128
|
+
case "ACCOUNT_STATUS_ALL":
|
|
129
|
+
return AccountStatus.ACCOUNT_STATUS_ALL;
|
|
130
|
+
case -1:
|
|
131
|
+
case "UNRECOGNIZED":
|
|
132
|
+
default:
|
|
133
|
+
return AccountStatus.UNRECOGNIZED;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function accountStatusToJSON(object) {
|
|
137
|
+
switch (object) {
|
|
138
|
+
case AccountStatus.ACCOUNT_STATUS_UNSPECIFIED:
|
|
139
|
+
return "ACCOUNT_STATUS_UNSPECIFIED";
|
|
140
|
+
case AccountStatus.ACCOUNT_STATUS_NEW:
|
|
141
|
+
return "ACCOUNT_STATUS_NEW";
|
|
142
|
+
case AccountStatus.ACCOUNT_STATUS_OPEN:
|
|
143
|
+
return "ACCOUNT_STATUS_OPEN";
|
|
144
|
+
case AccountStatus.ACCOUNT_STATUS_CLOSED:
|
|
145
|
+
return "ACCOUNT_STATUS_CLOSED";
|
|
146
|
+
case AccountStatus.ACCOUNT_STATUS_ALL:
|
|
147
|
+
return "ACCOUNT_STATUS_ALL";
|
|
148
|
+
case AccountStatus.UNRECOGNIZED:
|
|
149
|
+
default:
|
|
150
|
+
return "UNRECOGNIZED";
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/** Уровень доступа к счeту. */
|
|
154
|
+
var AccessLevel;
|
|
155
|
+
(function (AccessLevel) {
|
|
156
|
+
/** ACCOUNT_ACCESS_LEVEL_UNSPECIFIED - Уровень доступа не определeн. */
|
|
157
|
+
AccessLevel[AccessLevel["ACCOUNT_ACCESS_LEVEL_UNSPECIFIED"] = 0] = "ACCOUNT_ACCESS_LEVEL_UNSPECIFIED";
|
|
158
|
+
/** ACCOUNT_ACCESS_LEVEL_FULL_ACCESS - Полный доступ к счeту. */
|
|
159
|
+
AccessLevel[AccessLevel["ACCOUNT_ACCESS_LEVEL_FULL_ACCESS"] = 1] = "ACCOUNT_ACCESS_LEVEL_FULL_ACCESS";
|
|
160
|
+
/** ACCOUNT_ACCESS_LEVEL_READ_ONLY - Доступ с уровнем прав «только чтение». */
|
|
161
|
+
AccessLevel[AccessLevel["ACCOUNT_ACCESS_LEVEL_READ_ONLY"] = 2] = "ACCOUNT_ACCESS_LEVEL_READ_ONLY";
|
|
162
|
+
/** ACCOUNT_ACCESS_LEVEL_NO_ACCESS - Доступа нет. */
|
|
163
|
+
AccessLevel[AccessLevel["ACCOUNT_ACCESS_LEVEL_NO_ACCESS"] = 3] = "ACCOUNT_ACCESS_LEVEL_NO_ACCESS";
|
|
164
|
+
AccessLevel[AccessLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
165
|
+
})(AccessLevel || (exports.AccessLevel = AccessLevel = {}));
|
|
166
|
+
function accessLevelFromJSON(object) {
|
|
167
|
+
switch (object) {
|
|
168
|
+
case 0:
|
|
169
|
+
case "ACCOUNT_ACCESS_LEVEL_UNSPECIFIED":
|
|
170
|
+
return AccessLevel.ACCOUNT_ACCESS_LEVEL_UNSPECIFIED;
|
|
171
|
+
case 1:
|
|
172
|
+
case "ACCOUNT_ACCESS_LEVEL_FULL_ACCESS":
|
|
173
|
+
return AccessLevel.ACCOUNT_ACCESS_LEVEL_FULL_ACCESS;
|
|
174
|
+
case 2:
|
|
175
|
+
case "ACCOUNT_ACCESS_LEVEL_READ_ONLY":
|
|
176
|
+
return AccessLevel.ACCOUNT_ACCESS_LEVEL_READ_ONLY;
|
|
177
|
+
case 3:
|
|
178
|
+
case "ACCOUNT_ACCESS_LEVEL_NO_ACCESS":
|
|
179
|
+
return AccessLevel.ACCOUNT_ACCESS_LEVEL_NO_ACCESS;
|
|
180
|
+
case -1:
|
|
181
|
+
case "UNRECOGNIZED":
|
|
182
|
+
default:
|
|
183
|
+
return AccessLevel.UNRECOGNIZED;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function accessLevelToJSON(object) {
|
|
187
|
+
switch (object) {
|
|
188
|
+
case AccessLevel.ACCOUNT_ACCESS_LEVEL_UNSPECIFIED:
|
|
189
|
+
return "ACCOUNT_ACCESS_LEVEL_UNSPECIFIED";
|
|
190
|
+
case AccessLevel.ACCOUNT_ACCESS_LEVEL_FULL_ACCESS:
|
|
191
|
+
return "ACCOUNT_ACCESS_LEVEL_FULL_ACCESS";
|
|
192
|
+
case AccessLevel.ACCOUNT_ACCESS_LEVEL_READ_ONLY:
|
|
193
|
+
return "ACCOUNT_ACCESS_LEVEL_READ_ONLY";
|
|
194
|
+
case AccessLevel.ACCOUNT_ACCESS_LEVEL_NO_ACCESS:
|
|
195
|
+
return "ACCOUNT_ACCESS_LEVEL_NO_ACCESS";
|
|
196
|
+
case AccessLevel.UNRECOGNIZED:
|
|
197
|
+
default:
|
|
198
|
+
return "UNRECOGNIZED";
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
var AccountValue;
|
|
202
|
+
(function (AccountValue) {
|
|
203
|
+
/** ACCOUNT_VALUE_UNSPECIFIED - Не определён. */
|
|
204
|
+
AccountValue[AccountValue["ACCOUNT_VALUE_UNSPECIFIED"] = 0] = "ACCOUNT_VALUE_UNSPECIFIED";
|
|
205
|
+
/** ACCOUNT_VALUE_MARGIN_FEE - Размер комиссии за маржинальное кредитование. */
|
|
206
|
+
AccountValue[AccountValue["ACCOUNT_VALUE_MARGIN_FEE"] = 1] = "ACCOUNT_VALUE_MARGIN_FEE";
|
|
207
|
+
/** ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE - Остаток доступного лимита с текущей комиссией. */
|
|
208
|
+
AccountValue[AccountValue["ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE"] = 2] = "ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE";
|
|
209
|
+
AccountValue[AccountValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
210
|
+
})(AccountValue || (exports.AccountValue = AccountValue = {}));
|
|
211
|
+
function accountValueFromJSON(object) {
|
|
212
|
+
switch (object) {
|
|
213
|
+
case 0:
|
|
214
|
+
case "ACCOUNT_VALUE_UNSPECIFIED":
|
|
215
|
+
return AccountValue.ACCOUNT_VALUE_UNSPECIFIED;
|
|
216
|
+
case 1:
|
|
217
|
+
case "ACCOUNT_VALUE_MARGIN_FEE":
|
|
218
|
+
return AccountValue.ACCOUNT_VALUE_MARGIN_FEE;
|
|
219
|
+
case 2:
|
|
220
|
+
case "ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE":
|
|
221
|
+
return AccountValue.ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE;
|
|
222
|
+
case -1:
|
|
223
|
+
case "UNRECOGNIZED":
|
|
224
|
+
default:
|
|
225
|
+
return AccountValue.UNRECOGNIZED;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function accountValueToJSON(object) {
|
|
229
|
+
switch (object) {
|
|
230
|
+
case AccountValue.ACCOUNT_VALUE_UNSPECIFIED:
|
|
231
|
+
return "ACCOUNT_VALUE_UNSPECIFIED";
|
|
232
|
+
case AccountValue.ACCOUNT_VALUE_MARGIN_FEE:
|
|
233
|
+
return "ACCOUNT_VALUE_MARGIN_FEE";
|
|
234
|
+
case AccountValue.ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE:
|
|
235
|
+
return "ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE";
|
|
236
|
+
case AccountValue.UNRECOGNIZED:
|
|
237
|
+
default:
|
|
238
|
+
return "UNRECOGNIZED";
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function createBaseGetAccountsRequest() {
|
|
242
|
+
return { status: undefined };
|
|
243
|
+
}
|
|
244
|
+
exports.GetAccountsRequest = {
|
|
245
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
246
|
+
if (message.status !== undefined) {
|
|
247
|
+
writer.uint32(8).int32(message.status);
|
|
248
|
+
}
|
|
249
|
+
return writer;
|
|
250
|
+
},
|
|
251
|
+
decode(input, length) {
|
|
252
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
253
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
254
|
+
if (previousRecursionDepth >= 100) {
|
|
255
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
256
|
+
}
|
|
257
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
258
|
+
try {
|
|
259
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
260
|
+
const message = createBaseGetAccountsRequest();
|
|
261
|
+
while (reader.pos < end) {
|
|
262
|
+
const tag = reader.uint32();
|
|
263
|
+
switch (tag >>> 3) {
|
|
264
|
+
case 1: {
|
|
265
|
+
if (tag !== 8) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.status = reader.int32();
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
reader.skip(tag & 7);
|
|
276
|
+
}
|
|
277
|
+
return message;
|
|
278
|
+
}
|
|
279
|
+
finally {
|
|
280
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
fromJSON(object) {
|
|
284
|
+
return { status: isSet(object.status) ? accountStatusFromJSON(object.status) : undefined };
|
|
285
|
+
},
|
|
286
|
+
toJSON(message) {
|
|
287
|
+
const obj = {};
|
|
288
|
+
if (message.status !== undefined) {
|
|
289
|
+
obj.status = accountStatusToJSON(message.status);
|
|
290
|
+
}
|
|
291
|
+
return obj;
|
|
292
|
+
},
|
|
293
|
+
create(base) {
|
|
294
|
+
return exports.GetAccountsRequest.fromPartial(base ?? {});
|
|
295
|
+
},
|
|
296
|
+
fromPartial(object) {
|
|
297
|
+
const message = createBaseGetAccountsRequest();
|
|
298
|
+
message.status = object.status ?? undefined;
|
|
299
|
+
return message;
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
function createBaseGetAccountsResponse() {
|
|
303
|
+
return { accounts: [] };
|
|
304
|
+
}
|
|
305
|
+
exports.GetAccountsResponse = {
|
|
306
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
307
|
+
for (const v of message.accounts) {
|
|
308
|
+
exports.Account.encode(v, writer.uint32(10).fork()).join();
|
|
309
|
+
}
|
|
310
|
+
return writer;
|
|
311
|
+
},
|
|
312
|
+
decode(input, length) {
|
|
313
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
314
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
315
|
+
if (previousRecursionDepth >= 100) {
|
|
316
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
317
|
+
}
|
|
318
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
319
|
+
try {
|
|
320
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
321
|
+
const message = createBaseGetAccountsResponse();
|
|
322
|
+
while (reader.pos < end) {
|
|
323
|
+
const tag = reader.uint32();
|
|
324
|
+
switch (tag >>> 3) {
|
|
325
|
+
case 1: {
|
|
326
|
+
if (tag !== 10) {
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
message.accounts.push(exports.Account.decode(reader, reader.uint32()));
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
reader.skip(tag & 7);
|
|
337
|
+
}
|
|
338
|
+
return message;
|
|
339
|
+
}
|
|
340
|
+
finally {
|
|
341
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
fromJSON(object) {
|
|
345
|
+
return {
|
|
346
|
+
accounts: globalThis.Array.isArray(object?.accounts) ? object.accounts.map((e) => exports.Account.fromJSON(e)) : [],
|
|
347
|
+
};
|
|
348
|
+
},
|
|
349
|
+
toJSON(message) {
|
|
350
|
+
const obj = {};
|
|
351
|
+
if (message.accounts?.length) {
|
|
352
|
+
obj.accounts = message.accounts.map((e) => exports.Account.toJSON(e));
|
|
353
|
+
}
|
|
354
|
+
return obj;
|
|
355
|
+
},
|
|
356
|
+
create(base) {
|
|
357
|
+
return exports.GetAccountsResponse.fromPartial(base ?? {});
|
|
358
|
+
},
|
|
359
|
+
fromPartial(object) {
|
|
360
|
+
const message = createBaseGetAccountsResponse();
|
|
361
|
+
message.accounts = object.accounts?.map((e) => exports.Account.fromPartial(e)) || [];
|
|
362
|
+
return message;
|
|
363
|
+
},
|
|
364
|
+
};
|
|
365
|
+
function createBaseAccount() {
|
|
366
|
+
return { id: "", type: 0, name: "", status: 0, openedDate: undefined, closedDate: undefined, accessLevel: 0 };
|
|
367
|
+
}
|
|
368
|
+
exports.Account = {
|
|
369
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
370
|
+
if (message.id !== "") {
|
|
371
|
+
writer.uint32(10).string(message.id);
|
|
372
|
+
}
|
|
373
|
+
if (message.type !== 0) {
|
|
374
|
+
writer.uint32(16).int32(message.type);
|
|
375
|
+
}
|
|
376
|
+
if (message.name !== "") {
|
|
377
|
+
writer.uint32(26).string(message.name);
|
|
378
|
+
}
|
|
379
|
+
if (message.status !== 0) {
|
|
380
|
+
writer.uint32(32).int32(message.status);
|
|
381
|
+
}
|
|
382
|
+
if (message.openedDate !== undefined) {
|
|
383
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.openedDate), writer.uint32(42).fork()).join();
|
|
384
|
+
}
|
|
385
|
+
if (message.closedDate !== undefined) {
|
|
386
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.closedDate), writer.uint32(50).fork()).join();
|
|
387
|
+
}
|
|
388
|
+
if (message.accessLevel !== 0) {
|
|
389
|
+
writer.uint32(56).int32(message.accessLevel);
|
|
390
|
+
}
|
|
391
|
+
return writer;
|
|
392
|
+
},
|
|
393
|
+
decode(input, length) {
|
|
394
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
395
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
396
|
+
if (previousRecursionDepth >= 100) {
|
|
397
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
398
|
+
}
|
|
399
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
400
|
+
try {
|
|
401
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
402
|
+
const message = createBaseAccount();
|
|
403
|
+
while (reader.pos < end) {
|
|
404
|
+
const tag = reader.uint32();
|
|
405
|
+
switch (tag >>> 3) {
|
|
406
|
+
case 1: {
|
|
407
|
+
if (tag !== 10) {
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
message.id = reader.string();
|
|
411
|
+
continue;
|
|
412
|
+
}
|
|
413
|
+
case 2: {
|
|
414
|
+
if (tag !== 16) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.type = reader.int32();
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
case 3: {
|
|
421
|
+
if (tag !== 26) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
message.name = reader.string();
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
case 4: {
|
|
428
|
+
if (tag !== 32) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
message.status = reader.int32();
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
case 5: {
|
|
435
|
+
if (tag !== 42) {
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
message.openedDate = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
case 6: {
|
|
442
|
+
if (tag !== 50) {
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
message.closedDate = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
case 7: {
|
|
449
|
+
if (tag !== 56) {
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
message.accessLevel = reader.int32();
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
457
|
+
break;
|
|
458
|
+
}
|
|
459
|
+
reader.skip(tag & 7);
|
|
460
|
+
}
|
|
461
|
+
return message;
|
|
462
|
+
}
|
|
463
|
+
finally {
|
|
464
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
fromJSON(object) {
|
|
468
|
+
return {
|
|
469
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
470
|
+
type: isSet(object.type) ? accountTypeFromJSON(object.type) : 0,
|
|
471
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
472
|
+
status: isSet(object.status) ? accountStatusFromJSON(object.status) : 0,
|
|
473
|
+
openedDate: isSet(object.openedDate)
|
|
474
|
+
? fromJsonTimestamp(object.openedDate)
|
|
475
|
+
: isSet(object.opened_date)
|
|
476
|
+
? fromJsonTimestamp(object.opened_date)
|
|
477
|
+
: undefined,
|
|
478
|
+
closedDate: isSet(object.closedDate)
|
|
479
|
+
? fromJsonTimestamp(object.closedDate)
|
|
480
|
+
: isSet(object.closed_date)
|
|
481
|
+
? fromJsonTimestamp(object.closed_date)
|
|
482
|
+
: undefined,
|
|
483
|
+
accessLevel: isSet(object.accessLevel)
|
|
484
|
+
? accessLevelFromJSON(object.accessLevel)
|
|
485
|
+
: isSet(object.access_level)
|
|
486
|
+
? accessLevelFromJSON(object.access_level)
|
|
487
|
+
: 0,
|
|
488
|
+
};
|
|
489
|
+
},
|
|
490
|
+
toJSON(message) {
|
|
491
|
+
const obj = {};
|
|
492
|
+
if (message.id !== "") {
|
|
493
|
+
obj.id = message.id;
|
|
494
|
+
}
|
|
495
|
+
if (message.type !== 0) {
|
|
496
|
+
obj.type = accountTypeToJSON(message.type);
|
|
497
|
+
}
|
|
498
|
+
if (message.name !== "") {
|
|
499
|
+
obj.name = message.name;
|
|
500
|
+
}
|
|
501
|
+
if (message.status !== 0) {
|
|
502
|
+
obj.status = accountStatusToJSON(message.status);
|
|
503
|
+
}
|
|
504
|
+
if (message.openedDate !== undefined) {
|
|
505
|
+
obj.openedDate = message.openedDate.toISOString();
|
|
506
|
+
}
|
|
507
|
+
if (message.closedDate !== undefined) {
|
|
508
|
+
obj.closedDate = message.closedDate.toISOString();
|
|
509
|
+
}
|
|
510
|
+
if (message.accessLevel !== 0) {
|
|
511
|
+
obj.accessLevel = accessLevelToJSON(message.accessLevel);
|
|
512
|
+
}
|
|
513
|
+
return obj;
|
|
514
|
+
},
|
|
515
|
+
create(base) {
|
|
516
|
+
return exports.Account.fromPartial(base ?? {});
|
|
517
|
+
},
|
|
518
|
+
fromPartial(object) {
|
|
519
|
+
const message = createBaseAccount();
|
|
520
|
+
message.id = object.id ?? "";
|
|
521
|
+
message.type = object.type ?? 0;
|
|
522
|
+
message.name = object.name ?? "";
|
|
523
|
+
message.status = object.status ?? 0;
|
|
524
|
+
message.openedDate = object.openedDate ?? undefined;
|
|
525
|
+
message.closedDate = object.closedDate ?? undefined;
|
|
526
|
+
message.accessLevel = object.accessLevel ?? 0;
|
|
527
|
+
return message;
|
|
528
|
+
},
|
|
529
|
+
};
|
|
530
|
+
function createBaseGetMarginAttributesRequest() {
|
|
531
|
+
return { accountId: "" };
|
|
532
|
+
}
|
|
533
|
+
exports.GetMarginAttributesRequest = {
|
|
534
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
535
|
+
if (message.accountId !== "") {
|
|
536
|
+
writer.uint32(10).string(message.accountId);
|
|
537
|
+
}
|
|
538
|
+
return writer;
|
|
539
|
+
},
|
|
540
|
+
decode(input, length) {
|
|
541
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
542
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
543
|
+
if (previousRecursionDepth >= 100) {
|
|
544
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
545
|
+
}
|
|
546
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
547
|
+
try {
|
|
548
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
549
|
+
const message = createBaseGetMarginAttributesRequest();
|
|
550
|
+
while (reader.pos < end) {
|
|
551
|
+
const tag = reader.uint32();
|
|
552
|
+
switch (tag >>> 3) {
|
|
553
|
+
case 1: {
|
|
554
|
+
if (tag !== 10) {
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
message.accountId = reader.string();
|
|
558
|
+
continue;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
562
|
+
break;
|
|
563
|
+
}
|
|
564
|
+
reader.skip(tag & 7);
|
|
565
|
+
}
|
|
566
|
+
return message;
|
|
567
|
+
}
|
|
568
|
+
finally {
|
|
569
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
fromJSON(object) {
|
|
573
|
+
return {
|
|
574
|
+
accountId: isSet(object.accountId)
|
|
575
|
+
? globalThis.String(object.accountId)
|
|
576
|
+
: isSet(object.account_id)
|
|
577
|
+
? globalThis.String(object.account_id)
|
|
578
|
+
: "",
|
|
579
|
+
};
|
|
580
|
+
},
|
|
581
|
+
toJSON(message) {
|
|
582
|
+
const obj = {};
|
|
583
|
+
if (message.accountId !== "") {
|
|
584
|
+
obj.accountId = message.accountId;
|
|
585
|
+
}
|
|
586
|
+
return obj;
|
|
587
|
+
},
|
|
588
|
+
create(base) {
|
|
589
|
+
return exports.GetMarginAttributesRequest.fromPartial(base ?? {});
|
|
590
|
+
},
|
|
591
|
+
fromPartial(object) {
|
|
592
|
+
const message = createBaseGetMarginAttributesRequest();
|
|
593
|
+
message.accountId = object.accountId ?? "";
|
|
594
|
+
return message;
|
|
595
|
+
},
|
|
596
|
+
};
|
|
597
|
+
function createBaseGetMarginAttributesResponse() {
|
|
598
|
+
return {
|
|
599
|
+
liquidPortfolio: undefined,
|
|
600
|
+
startingMargin: undefined,
|
|
601
|
+
minimalMargin: undefined,
|
|
602
|
+
fundsSufficiencyLevel: undefined,
|
|
603
|
+
amountOfMissingFunds: undefined,
|
|
604
|
+
correctedMargin: undefined,
|
|
605
|
+
guaranteeForFutures: undefined,
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
exports.GetMarginAttributesResponse = {
|
|
609
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
610
|
+
if (message.liquidPortfolio !== undefined) {
|
|
611
|
+
common_1.MoneyValue.encode(message.liquidPortfolio, writer.uint32(10).fork()).join();
|
|
612
|
+
}
|
|
613
|
+
if (message.startingMargin !== undefined) {
|
|
614
|
+
common_1.MoneyValue.encode(message.startingMargin, writer.uint32(18).fork()).join();
|
|
615
|
+
}
|
|
616
|
+
if (message.minimalMargin !== undefined) {
|
|
617
|
+
common_1.MoneyValue.encode(message.minimalMargin, writer.uint32(26).fork()).join();
|
|
618
|
+
}
|
|
619
|
+
if (message.fundsSufficiencyLevel !== undefined) {
|
|
620
|
+
common_1.Quotation.encode(message.fundsSufficiencyLevel, writer.uint32(34).fork()).join();
|
|
621
|
+
}
|
|
622
|
+
if (message.amountOfMissingFunds !== undefined) {
|
|
623
|
+
common_1.MoneyValue.encode(message.amountOfMissingFunds, writer.uint32(42).fork()).join();
|
|
624
|
+
}
|
|
625
|
+
if (message.correctedMargin !== undefined) {
|
|
626
|
+
common_1.MoneyValue.encode(message.correctedMargin, writer.uint32(50).fork()).join();
|
|
627
|
+
}
|
|
628
|
+
if (message.guaranteeForFutures !== undefined) {
|
|
629
|
+
common_1.MoneyValue.encode(message.guaranteeForFutures, writer.uint32(58).fork()).join();
|
|
630
|
+
}
|
|
631
|
+
return writer;
|
|
632
|
+
},
|
|
633
|
+
decode(input, length) {
|
|
634
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
635
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
636
|
+
if (previousRecursionDepth >= 100) {
|
|
637
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
638
|
+
}
|
|
639
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
640
|
+
try {
|
|
641
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
642
|
+
const message = createBaseGetMarginAttributesResponse();
|
|
643
|
+
while (reader.pos < end) {
|
|
644
|
+
const tag = reader.uint32();
|
|
645
|
+
switch (tag >>> 3) {
|
|
646
|
+
case 1: {
|
|
647
|
+
if (tag !== 10) {
|
|
648
|
+
break;
|
|
649
|
+
}
|
|
650
|
+
message.liquidPortfolio = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
651
|
+
continue;
|
|
652
|
+
}
|
|
653
|
+
case 2: {
|
|
654
|
+
if (tag !== 18) {
|
|
655
|
+
break;
|
|
656
|
+
}
|
|
657
|
+
message.startingMargin = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
658
|
+
continue;
|
|
659
|
+
}
|
|
660
|
+
case 3: {
|
|
661
|
+
if (tag !== 26) {
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
message.minimalMargin = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
665
|
+
continue;
|
|
666
|
+
}
|
|
667
|
+
case 4: {
|
|
668
|
+
if (tag !== 34) {
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
message.fundsSufficiencyLevel = common_1.Quotation.decode(reader, reader.uint32());
|
|
672
|
+
continue;
|
|
673
|
+
}
|
|
674
|
+
case 5: {
|
|
675
|
+
if (tag !== 42) {
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
message.amountOfMissingFunds = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
679
|
+
continue;
|
|
680
|
+
}
|
|
681
|
+
case 6: {
|
|
682
|
+
if (tag !== 50) {
|
|
683
|
+
break;
|
|
684
|
+
}
|
|
685
|
+
message.correctedMargin = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
686
|
+
continue;
|
|
687
|
+
}
|
|
688
|
+
case 7: {
|
|
689
|
+
if (tag !== 58) {
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
message.guaranteeForFutures = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
693
|
+
continue;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
697
|
+
break;
|
|
698
|
+
}
|
|
699
|
+
reader.skip(tag & 7);
|
|
700
|
+
}
|
|
701
|
+
return message;
|
|
702
|
+
}
|
|
703
|
+
finally {
|
|
704
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
fromJSON(object) {
|
|
708
|
+
return {
|
|
709
|
+
liquidPortfolio: isSet(object.liquidPortfolio)
|
|
710
|
+
? common_1.MoneyValue.fromJSON(object.liquidPortfolio)
|
|
711
|
+
: isSet(object.liquid_portfolio)
|
|
712
|
+
? common_1.MoneyValue.fromJSON(object.liquid_portfolio)
|
|
713
|
+
: undefined,
|
|
714
|
+
startingMargin: isSet(object.startingMargin)
|
|
715
|
+
? common_1.MoneyValue.fromJSON(object.startingMargin)
|
|
716
|
+
: isSet(object.starting_margin)
|
|
717
|
+
? common_1.MoneyValue.fromJSON(object.starting_margin)
|
|
718
|
+
: undefined,
|
|
719
|
+
minimalMargin: isSet(object.minimalMargin)
|
|
720
|
+
? common_1.MoneyValue.fromJSON(object.minimalMargin)
|
|
721
|
+
: isSet(object.minimal_margin)
|
|
722
|
+
? common_1.MoneyValue.fromJSON(object.minimal_margin)
|
|
723
|
+
: undefined,
|
|
724
|
+
fundsSufficiencyLevel: isSet(object.fundsSufficiencyLevel)
|
|
725
|
+
? common_1.Quotation.fromJSON(object.fundsSufficiencyLevel)
|
|
726
|
+
: isSet(object.funds_sufficiency_level)
|
|
727
|
+
? common_1.Quotation.fromJSON(object.funds_sufficiency_level)
|
|
728
|
+
: undefined,
|
|
729
|
+
amountOfMissingFunds: isSet(object.amountOfMissingFunds)
|
|
730
|
+
? common_1.MoneyValue.fromJSON(object.amountOfMissingFunds)
|
|
731
|
+
: isSet(object.amount_of_missing_funds)
|
|
732
|
+
? common_1.MoneyValue.fromJSON(object.amount_of_missing_funds)
|
|
733
|
+
: undefined,
|
|
734
|
+
correctedMargin: isSet(object.correctedMargin)
|
|
735
|
+
? common_1.MoneyValue.fromJSON(object.correctedMargin)
|
|
736
|
+
: isSet(object.corrected_margin)
|
|
737
|
+
? common_1.MoneyValue.fromJSON(object.corrected_margin)
|
|
738
|
+
: undefined,
|
|
739
|
+
guaranteeForFutures: isSet(object.guaranteeForFutures)
|
|
740
|
+
? common_1.MoneyValue.fromJSON(object.guaranteeForFutures)
|
|
741
|
+
: isSet(object.guarantee_for_futures)
|
|
742
|
+
? common_1.MoneyValue.fromJSON(object.guarantee_for_futures)
|
|
743
|
+
: undefined,
|
|
744
|
+
};
|
|
745
|
+
},
|
|
746
|
+
toJSON(message) {
|
|
747
|
+
const obj = {};
|
|
748
|
+
if (message.liquidPortfolio !== undefined) {
|
|
749
|
+
obj.liquidPortfolio = common_1.MoneyValue.toJSON(message.liquidPortfolio);
|
|
750
|
+
}
|
|
751
|
+
if (message.startingMargin !== undefined) {
|
|
752
|
+
obj.startingMargin = common_1.MoneyValue.toJSON(message.startingMargin);
|
|
753
|
+
}
|
|
754
|
+
if (message.minimalMargin !== undefined) {
|
|
755
|
+
obj.minimalMargin = common_1.MoneyValue.toJSON(message.minimalMargin);
|
|
756
|
+
}
|
|
757
|
+
if (message.fundsSufficiencyLevel !== undefined) {
|
|
758
|
+
obj.fundsSufficiencyLevel = common_1.Quotation.toJSON(message.fundsSufficiencyLevel);
|
|
759
|
+
}
|
|
760
|
+
if (message.amountOfMissingFunds !== undefined) {
|
|
761
|
+
obj.amountOfMissingFunds = common_1.MoneyValue.toJSON(message.amountOfMissingFunds);
|
|
762
|
+
}
|
|
763
|
+
if (message.correctedMargin !== undefined) {
|
|
764
|
+
obj.correctedMargin = common_1.MoneyValue.toJSON(message.correctedMargin);
|
|
765
|
+
}
|
|
766
|
+
if (message.guaranteeForFutures !== undefined) {
|
|
767
|
+
obj.guaranteeForFutures = common_1.MoneyValue.toJSON(message.guaranteeForFutures);
|
|
768
|
+
}
|
|
769
|
+
return obj;
|
|
770
|
+
},
|
|
771
|
+
create(base) {
|
|
772
|
+
return exports.GetMarginAttributesResponse.fromPartial(base ?? {});
|
|
773
|
+
},
|
|
774
|
+
fromPartial(object) {
|
|
775
|
+
const message = createBaseGetMarginAttributesResponse();
|
|
776
|
+
message.liquidPortfolio = (object.liquidPortfolio !== undefined && object.liquidPortfolio !== null)
|
|
777
|
+
? common_1.MoneyValue.fromPartial(object.liquidPortfolio)
|
|
778
|
+
: undefined;
|
|
779
|
+
message.startingMargin = (object.startingMargin !== undefined && object.startingMargin !== null)
|
|
780
|
+
? common_1.MoneyValue.fromPartial(object.startingMargin)
|
|
781
|
+
: undefined;
|
|
782
|
+
message.minimalMargin = (object.minimalMargin !== undefined && object.minimalMargin !== null)
|
|
783
|
+
? common_1.MoneyValue.fromPartial(object.minimalMargin)
|
|
784
|
+
: undefined;
|
|
785
|
+
message.fundsSufficiencyLevel =
|
|
786
|
+
(object.fundsSufficiencyLevel !== undefined && object.fundsSufficiencyLevel !== null)
|
|
787
|
+
? common_1.Quotation.fromPartial(object.fundsSufficiencyLevel)
|
|
788
|
+
: undefined;
|
|
789
|
+
message.amountOfMissingFunds = (object.amountOfMissingFunds !== undefined && object.amountOfMissingFunds !== null)
|
|
790
|
+
? common_1.MoneyValue.fromPartial(object.amountOfMissingFunds)
|
|
791
|
+
: undefined;
|
|
792
|
+
message.correctedMargin = (object.correctedMargin !== undefined && object.correctedMargin !== null)
|
|
793
|
+
? common_1.MoneyValue.fromPartial(object.correctedMargin)
|
|
794
|
+
: undefined;
|
|
795
|
+
message.guaranteeForFutures = (object.guaranteeForFutures !== undefined && object.guaranteeForFutures !== null)
|
|
796
|
+
? common_1.MoneyValue.fromPartial(object.guaranteeForFutures)
|
|
797
|
+
: undefined;
|
|
798
|
+
return message;
|
|
799
|
+
},
|
|
800
|
+
};
|
|
801
|
+
function createBaseGetUserTariffRequest() {
|
|
802
|
+
return {};
|
|
803
|
+
}
|
|
804
|
+
exports.GetUserTariffRequest = {
|
|
805
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
806
|
+
return writer;
|
|
807
|
+
},
|
|
808
|
+
decode(input, length) {
|
|
809
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
810
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
811
|
+
if (previousRecursionDepth >= 100) {
|
|
812
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
813
|
+
}
|
|
814
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
815
|
+
try {
|
|
816
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
817
|
+
const message = createBaseGetUserTariffRequest();
|
|
818
|
+
while (reader.pos < end) {
|
|
819
|
+
const tag = reader.uint32();
|
|
820
|
+
switch (tag >>> 3) {
|
|
821
|
+
}
|
|
822
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
823
|
+
break;
|
|
824
|
+
}
|
|
825
|
+
reader.skip(tag & 7);
|
|
826
|
+
}
|
|
827
|
+
return message;
|
|
828
|
+
}
|
|
829
|
+
finally {
|
|
830
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
fromJSON(_) {
|
|
834
|
+
return {};
|
|
835
|
+
},
|
|
836
|
+
toJSON(_) {
|
|
837
|
+
const obj = {};
|
|
838
|
+
return obj;
|
|
839
|
+
},
|
|
840
|
+
create(base) {
|
|
841
|
+
return exports.GetUserTariffRequest.fromPartial(base ?? {});
|
|
842
|
+
},
|
|
843
|
+
fromPartial(_) {
|
|
844
|
+
const message = createBaseGetUserTariffRequest();
|
|
845
|
+
return message;
|
|
846
|
+
},
|
|
847
|
+
};
|
|
848
|
+
function createBaseGetUserTariffResponse() {
|
|
849
|
+
return { unaryLimits: [], streamLimits: [] };
|
|
850
|
+
}
|
|
851
|
+
exports.GetUserTariffResponse = {
|
|
852
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
853
|
+
for (const v of message.unaryLimits) {
|
|
854
|
+
exports.UnaryLimit.encode(v, writer.uint32(10).fork()).join();
|
|
855
|
+
}
|
|
856
|
+
for (const v of message.streamLimits) {
|
|
857
|
+
exports.StreamLimit.encode(v, writer.uint32(18).fork()).join();
|
|
858
|
+
}
|
|
859
|
+
return writer;
|
|
860
|
+
},
|
|
861
|
+
decode(input, length) {
|
|
862
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
863
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
864
|
+
if (previousRecursionDepth >= 100) {
|
|
865
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
866
|
+
}
|
|
867
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
868
|
+
try {
|
|
869
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
870
|
+
const message = createBaseGetUserTariffResponse();
|
|
871
|
+
while (reader.pos < end) {
|
|
872
|
+
const tag = reader.uint32();
|
|
873
|
+
switch (tag >>> 3) {
|
|
874
|
+
case 1: {
|
|
875
|
+
if (tag !== 10) {
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
message.unaryLimits.push(exports.UnaryLimit.decode(reader, reader.uint32()));
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
case 2: {
|
|
882
|
+
if (tag !== 18) {
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
message.streamLimits.push(exports.StreamLimit.decode(reader, reader.uint32()));
|
|
886
|
+
continue;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
892
|
+
reader.skip(tag & 7);
|
|
893
|
+
}
|
|
894
|
+
return message;
|
|
895
|
+
}
|
|
896
|
+
finally {
|
|
897
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
fromJSON(object) {
|
|
901
|
+
return {
|
|
902
|
+
unaryLimits: globalThis.Array.isArray(object?.unaryLimits)
|
|
903
|
+
? object.unaryLimits.map((e) => exports.UnaryLimit.fromJSON(e))
|
|
904
|
+
: globalThis.Array.isArray(object?.unary_limits)
|
|
905
|
+
? object.unary_limits.map((e) => exports.UnaryLimit.fromJSON(e))
|
|
906
|
+
: [],
|
|
907
|
+
streamLimits: globalThis.Array.isArray(object?.streamLimits)
|
|
908
|
+
? object.streamLimits.map((e) => exports.StreamLimit.fromJSON(e))
|
|
909
|
+
: globalThis.Array.isArray(object?.stream_limits)
|
|
910
|
+
? object.stream_limits.map((e) => exports.StreamLimit.fromJSON(e))
|
|
911
|
+
: [],
|
|
912
|
+
};
|
|
913
|
+
},
|
|
914
|
+
toJSON(message) {
|
|
915
|
+
const obj = {};
|
|
916
|
+
if (message.unaryLimits?.length) {
|
|
917
|
+
obj.unaryLimits = message.unaryLimits.map((e) => exports.UnaryLimit.toJSON(e));
|
|
918
|
+
}
|
|
919
|
+
if (message.streamLimits?.length) {
|
|
920
|
+
obj.streamLimits = message.streamLimits.map((e) => exports.StreamLimit.toJSON(e));
|
|
921
|
+
}
|
|
922
|
+
return obj;
|
|
923
|
+
},
|
|
924
|
+
create(base) {
|
|
925
|
+
return exports.GetUserTariffResponse.fromPartial(base ?? {});
|
|
926
|
+
},
|
|
927
|
+
fromPartial(object) {
|
|
928
|
+
const message = createBaseGetUserTariffResponse();
|
|
929
|
+
message.unaryLimits = object.unaryLimits?.map((e) => exports.UnaryLimit.fromPartial(e)) || [];
|
|
930
|
+
message.streamLimits = object.streamLimits?.map((e) => exports.StreamLimit.fromPartial(e)) || [];
|
|
931
|
+
return message;
|
|
932
|
+
},
|
|
933
|
+
};
|
|
934
|
+
function createBaseUnaryLimit() {
|
|
935
|
+
return { limitPerMinute: 0, methods: [], limitPerSecond: undefined };
|
|
936
|
+
}
|
|
937
|
+
exports.UnaryLimit = {
|
|
938
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
939
|
+
if (message.limitPerMinute !== 0) {
|
|
940
|
+
writer.uint32(8).int32(message.limitPerMinute);
|
|
941
|
+
}
|
|
942
|
+
for (const v of message.methods) {
|
|
943
|
+
writer.uint32(18).string(v);
|
|
944
|
+
}
|
|
945
|
+
if (message.limitPerSecond !== undefined) {
|
|
946
|
+
writer.uint32(24).int32(message.limitPerSecond);
|
|
947
|
+
}
|
|
948
|
+
return writer;
|
|
949
|
+
},
|
|
950
|
+
decode(input, length) {
|
|
951
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
952
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
953
|
+
if (previousRecursionDepth >= 100) {
|
|
954
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
955
|
+
}
|
|
956
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
957
|
+
try {
|
|
958
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
959
|
+
const message = createBaseUnaryLimit();
|
|
960
|
+
while (reader.pos < end) {
|
|
961
|
+
const tag = reader.uint32();
|
|
962
|
+
switch (tag >>> 3) {
|
|
963
|
+
case 1: {
|
|
964
|
+
if (tag !== 8) {
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
message.limitPerMinute = reader.int32();
|
|
968
|
+
continue;
|
|
969
|
+
}
|
|
970
|
+
case 2: {
|
|
971
|
+
if (tag !== 18) {
|
|
972
|
+
break;
|
|
973
|
+
}
|
|
974
|
+
message.methods.push(reader.string());
|
|
975
|
+
continue;
|
|
976
|
+
}
|
|
977
|
+
case 3: {
|
|
978
|
+
if (tag !== 24) {
|
|
979
|
+
break;
|
|
980
|
+
}
|
|
981
|
+
message.limitPerSecond = reader.int32();
|
|
982
|
+
continue;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
986
|
+
break;
|
|
987
|
+
}
|
|
988
|
+
reader.skip(tag & 7);
|
|
989
|
+
}
|
|
990
|
+
return message;
|
|
991
|
+
}
|
|
992
|
+
finally {
|
|
993
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
fromJSON(object) {
|
|
997
|
+
return {
|
|
998
|
+
limitPerMinute: isSet(object.limitPerMinute)
|
|
999
|
+
? globalThis.Number(object.limitPerMinute)
|
|
1000
|
+
: isSet(object.limit_per_minute)
|
|
1001
|
+
? globalThis.Number(object.limit_per_minute)
|
|
1002
|
+
: 0,
|
|
1003
|
+
methods: globalThis.Array.isArray(object?.methods) ? object.methods.map((e) => globalThis.String(e)) : [],
|
|
1004
|
+
limitPerSecond: isSet(object.limitPerSecond)
|
|
1005
|
+
? globalThis.Number(object.limitPerSecond)
|
|
1006
|
+
: isSet(object.limit_per_second)
|
|
1007
|
+
? globalThis.Number(object.limit_per_second)
|
|
1008
|
+
: undefined,
|
|
1009
|
+
};
|
|
1010
|
+
},
|
|
1011
|
+
toJSON(message) {
|
|
1012
|
+
const obj = {};
|
|
1013
|
+
if (message.limitPerMinute !== 0) {
|
|
1014
|
+
obj.limitPerMinute = Math.round(message.limitPerMinute);
|
|
1015
|
+
}
|
|
1016
|
+
if (message.methods?.length) {
|
|
1017
|
+
obj.methods = message.methods;
|
|
1018
|
+
}
|
|
1019
|
+
if (message.limitPerSecond !== undefined) {
|
|
1020
|
+
obj.limitPerSecond = Math.round(message.limitPerSecond);
|
|
1021
|
+
}
|
|
1022
|
+
return obj;
|
|
1023
|
+
},
|
|
1024
|
+
create(base) {
|
|
1025
|
+
return exports.UnaryLimit.fromPartial(base ?? {});
|
|
1026
|
+
},
|
|
1027
|
+
fromPartial(object) {
|
|
1028
|
+
const message = createBaseUnaryLimit();
|
|
1029
|
+
message.limitPerMinute = object.limitPerMinute ?? 0;
|
|
1030
|
+
message.methods = object.methods?.map((e) => e) || [];
|
|
1031
|
+
message.limitPerSecond = object.limitPerSecond ?? undefined;
|
|
1032
|
+
return message;
|
|
1033
|
+
},
|
|
1034
|
+
};
|
|
1035
|
+
function createBaseStreamLimit() {
|
|
1036
|
+
return { limit: 0, streams: [], open: 0 };
|
|
1037
|
+
}
|
|
1038
|
+
exports.StreamLimit = {
|
|
1039
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1040
|
+
if (message.limit !== 0) {
|
|
1041
|
+
writer.uint32(8).int32(message.limit);
|
|
1042
|
+
}
|
|
1043
|
+
for (const v of message.streams) {
|
|
1044
|
+
writer.uint32(18).string(v);
|
|
1045
|
+
}
|
|
1046
|
+
if (message.open !== 0) {
|
|
1047
|
+
writer.uint32(24).int32(message.open);
|
|
1048
|
+
}
|
|
1049
|
+
return writer;
|
|
1050
|
+
},
|
|
1051
|
+
decode(input, length) {
|
|
1052
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1053
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1054
|
+
if (previousRecursionDepth >= 100) {
|
|
1055
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1056
|
+
}
|
|
1057
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1058
|
+
try {
|
|
1059
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1060
|
+
const message = createBaseStreamLimit();
|
|
1061
|
+
while (reader.pos < end) {
|
|
1062
|
+
const tag = reader.uint32();
|
|
1063
|
+
switch (tag >>> 3) {
|
|
1064
|
+
case 1: {
|
|
1065
|
+
if (tag !== 8) {
|
|
1066
|
+
break;
|
|
1067
|
+
}
|
|
1068
|
+
message.limit = reader.int32();
|
|
1069
|
+
continue;
|
|
1070
|
+
}
|
|
1071
|
+
case 2: {
|
|
1072
|
+
if (tag !== 18) {
|
|
1073
|
+
break;
|
|
1074
|
+
}
|
|
1075
|
+
message.streams.push(reader.string());
|
|
1076
|
+
continue;
|
|
1077
|
+
}
|
|
1078
|
+
case 3: {
|
|
1079
|
+
if (tag !== 24) {
|
|
1080
|
+
break;
|
|
1081
|
+
}
|
|
1082
|
+
message.open = reader.int32();
|
|
1083
|
+
continue;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1087
|
+
break;
|
|
1088
|
+
}
|
|
1089
|
+
reader.skip(tag & 7);
|
|
1090
|
+
}
|
|
1091
|
+
return message;
|
|
1092
|
+
}
|
|
1093
|
+
finally {
|
|
1094
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
fromJSON(object) {
|
|
1098
|
+
return {
|
|
1099
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
1100
|
+
streams: globalThis.Array.isArray(object?.streams) ? object.streams.map((e) => globalThis.String(e)) : [],
|
|
1101
|
+
open: isSet(object.open) ? globalThis.Number(object.open) : 0,
|
|
1102
|
+
};
|
|
1103
|
+
},
|
|
1104
|
+
toJSON(message) {
|
|
1105
|
+
const obj = {};
|
|
1106
|
+
if (message.limit !== 0) {
|
|
1107
|
+
obj.limit = Math.round(message.limit);
|
|
1108
|
+
}
|
|
1109
|
+
if (message.streams?.length) {
|
|
1110
|
+
obj.streams = message.streams;
|
|
1111
|
+
}
|
|
1112
|
+
if (message.open !== 0) {
|
|
1113
|
+
obj.open = Math.round(message.open);
|
|
1114
|
+
}
|
|
1115
|
+
return obj;
|
|
1116
|
+
},
|
|
1117
|
+
create(base) {
|
|
1118
|
+
return exports.StreamLimit.fromPartial(base ?? {});
|
|
1119
|
+
},
|
|
1120
|
+
fromPartial(object) {
|
|
1121
|
+
const message = createBaseStreamLimit();
|
|
1122
|
+
message.limit = object.limit ?? 0;
|
|
1123
|
+
message.streams = object.streams?.map((e) => e) || [];
|
|
1124
|
+
message.open = object.open ?? 0;
|
|
1125
|
+
return message;
|
|
1126
|
+
},
|
|
1127
|
+
};
|
|
1128
|
+
function createBaseGetInfoRequest() {
|
|
1129
|
+
return {};
|
|
1130
|
+
}
|
|
1131
|
+
exports.GetInfoRequest = {
|
|
1132
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1133
|
+
return writer;
|
|
1134
|
+
},
|
|
1135
|
+
decode(input, length) {
|
|
1136
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1137
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1138
|
+
if (previousRecursionDepth >= 100) {
|
|
1139
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1140
|
+
}
|
|
1141
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1142
|
+
try {
|
|
1143
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1144
|
+
const message = createBaseGetInfoRequest();
|
|
1145
|
+
while (reader.pos < end) {
|
|
1146
|
+
const tag = reader.uint32();
|
|
1147
|
+
switch (tag >>> 3) {
|
|
1148
|
+
}
|
|
1149
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
reader.skip(tag & 7);
|
|
1153
|
+
}
|
|
1154
|
+
return message;
|
|
1155
|
+
}
|
|
1156
|
+
finally {
|
|
1157
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
fromJSON(_) {
|
|
1161
|
+
return {};
|
|
1162
|
+
},
|
|
1163
|
+
toJSON(_) {
|
|
1164
|
+
const obj = {};
|
|
1165
|
+
return obj;
|
|
1166
|
+
},
|
|
1167
|
+
create(base) {
|
|
1168
|
+
return exports.GetInfoRequest.fromPartial(base ?? {});
|
|
1169
|
+
},
|
|
1170
|
+
fromPartial(_) {
|
|
1171
|
+
const message = createBaseGetInfoRequest();
|
|
1172
|
+
return message;
|
|
1173
|
+
},
|
|
1174
|
+
};
|
|
1175
|
+
function createBaseGetInfoResponse() {
|
|
1176
|
+
return { premStatus: false, qualStatus: false, qualifiedForWorkWith: [], tariff: "", userId: "", riskLevelCode: "" };
|
|
1177
|
+
}
|
|
1178
|
+
exports.GetInfoResponse = {
|
|
1179
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1180
|
+
if (message.premStatus !== false) {
|
|
1181
|
+
writer.uint32(8).bool(message.premStatus);
|
|
1182
|
+
}
|
|
1183
|
+
if (message.qualStatus !== false) {
|
|
1184
|
+
writer.uint32(16).bool(message.qualStatus);
|
|
1185
|
+
}
|
|
1186
|
+
for (const v of message.qualifiedForWorkWith) {
|
|
1187
|
+
writer.uint32(26).string(v);
|
|
1188
|
+
}
|
|
1189
|
+
if (message.tariff !== "") {
|
|
1190
|
+
writer.uint32(34).string(message.tariff);
|
|
1191
|
+
}
|
|
1192
|
+
if (message.userId !== "") {
|
|
1193
|
+
writer.uint32(74).string(message.userId);
|
|
1194
|
+
}
|
|
1195
|
+
if (message.riskLevelCode !== "") {
|
|
1196
|
+
writer.uint32(98).string(message.riskLevelCode);
|
|
1197
|
+
}
|
|
1198
|
+
return writer;
|
|
1199
|
+
},
|
|
1200
|
+
decode(input, length) {
|
|
1201
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1202
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1203
|
+
if (previousRecursionDepth >= 100) {
|
|
1204
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1205
|
+
}
|
|
1206
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1207
|
+
try {
|
|
1208
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1209
|
+
const message = createBaseGetInfoResponse();
|
|
1210
|
+
while (reader.pos < end) {
|
|
1211
|
+
const tag = reader.uint32();
|
|
1212
|
+
switch (tag >>> 3) {
|
|
1213
|
+
case 1: {
|
|
1214
|
+
if (tag !== 8) {
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
1217
|
+
message.premStatus = reader.bool();
|
|
1218
|
+
continue;
|
|
1219
|
+
}
|
|
1220
|
+
case 2: {
|
|
1221
|
+
if (tag !== 16) {
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
message.qualStatus = reader.bool();
|
|
1225
|
+
continue;
|
|
1226
|
+
}
|
|
1227
|
+
case 3: {
|
|
1228
|
+
if (tag !== 26) {
|
|
1229
|
+
break;
|
|
1230
|
+
}
|
|
1231
|
+
message.qualifiedForWorkWith.push(reader.string());
|
|
1232
|
+
continue;
|
|
1233
|
+
}
|
|
1234
|
+
case 4: {
|
|
1235
|
+
if (tag !== 34) {
|
|
1236
|
+
break;
|
|
1237
|
+
}
|
|
1238
|
+
message.tariff = reader.string();
|
|
1239
|
+
continue;
|
|
1240
|
+
}
|
|
1241
|
+
case 9: {
|
|
1242
|
+
if (tag !== 74) {
|
|
1243
|
+
break;
|
|
1244
|
+
}
|
|
1245
|
+
message.userId = reader.string();
|
|
1246
|
+
continue;
|
|
1247
|
+
}
|
|
1248
|
+
case 12: {
|
|
1249
|
+
if (tag !== 98) {
|
|
1250
|
+
break;
|
|
1251
|
+
}
|
|
1252
|
+
message.riskLevelCode = reader.string();
|
|
1253
|
+
continue;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1257
|
+
break;
|
|
1258
|
+
}
|
|
1259
|
+
reader.skip(tag & 7);
|
|
1260
|
+
}
|
|
1261
|
+
return message;
|
|
1262
|
+
}
|
|
1263
|
+
finally {
|
|
1264
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
fromJSON(object) {
|
|
1268
|
+
return {
|
|
1269
|
+
premStatus: isSet(object.premStatus)
|
|
1270
|
+
? globalThis.Boolean(object.premStatus)
|
|
1271
|
+
: isSet(object.prem_status)
|
|
1272
|
+
? globalThis.Boolean(object.prem_status)
|
|
1273
|
+
: false,
|
|
1274
|
+
qualStatus: isSet(object.qualStatus)
|
|
1275
|
+
? globalThis.Boolean(object.qualStatus)
|
|
1276
|
+
: isSet(object.qual_status)
|
|
1277
|
+
? globalThis.Boolean(object.qual_status)
|
|
1278
|
+
: false,
|
|
1279
|
+
qualifiedForWorkWith: globalThis.Array.isArray(object?.qualifiedForWorkWith)
|
|
1280
|
+
? object.qualifiedForWorkWith.map((e) => globalThis.String(e))
|
|
1281
|
+
: globalThis.Array.isArray(object?.qualified_for_work_with)
|
|
1282
|
+
? object.qualified_for_work_with.map((e) => globalThis.String(e))
|
|
1283
|
+
: [],
|
|
1284
|
+
tariff: isSet(object.tariff) ? globalThis.String(object.tariff) : "",
|
|
1285
|
+
userId: isSet(object.userId)
|
|
1286
|
+
? globalThis.String(object.userId)
|
|
1287
|
+
: isSet(object.user_id)
|
|
1288
|
+
? globalThis.String(object.user_id)
|
|
1289
|
+
: "",
|
|
1290
|
+
riskLevelCode: isSet(object.riskLevelCode)
|
|
1291
|
+
? globalThis.String(object.riskLevelCode)
|
|
1292
|
+
: isSet(object.risk_level_code)
|
|
1293
|
+
? globalThis.String(object.risk_level_code)
|
|
1294
|
+
: "",
|
|
1295
|
+
};
|
|
1296
|
+
},
|
|
1297
|
+
toJSON(message) {
|
|
1298
|
+
const obj = {};
|
|
1299
|
+
if (message.premStatus !== false) {
|
|
1300
|
+
obj.premStatus = message.premStatus;
|
|
1301
|
+
}
|
|
1302
|
+
if (message.qualStatus !== false) {
|
|
1303
|
+
obj.qualStatus = message.qualStatus;
|
|
1304
|
+
}
|
|
1305
|
+
if (message.qualifiedForWorkWith?.length) {
|
|
1306
|
+
obj.qualifiedForWorkWith = message.qualifiedForWorkWith;
|
|
1307
|
+
}
|
|
1308
|
+
if (message.tariff !== "") {
|
|
1309
|
+
obj.tariff = message.tariff;
|
|
1310
|
+
}
|
|
1311
|
+
if (message.userId !== "") {
|
|
1312
|
+
obj.userId = message.userId;
|
|
1313
|
+
}
|
|
1314
|
+
if (message.riskLevelCode !== "") {
|
|
1315
|
+
obj.riskLevelCode = message.riskLevelCode;
|
|
1316
|
+
}
|
|
1317
|
+
return obj;
|
|
1318
|
+
},
|
|
1319
|
+
create(base) {
|
|
1320
|
+
return exports.GetInfoResponse.fromPartial(base ?? {});
|
|
1321
|
+
},
|
|
1322
|
+
fromPartial(object) {
|
|
1323
|
+
const message = createBaseGetInfoResponse();
|
|
1324
|
+
message.premStatus = object.premStatus ?? false;
|
|
1325
|
+
message.qualStatus = object.qualStatus ?? false;
|
|
1326
|
+
message.qualifiedForWorkWith = object.qualifiedForWorkWith?.map((e) => e) || [];
|
|
1327
|
+
message.tariff = object.tariff ?? "";
|
|
1328
|
+
message.userId = object.userId ?? "";
|
|
1329
|
+
message.riskLevelCode = object.riskLevelCode ?? "";
|
|
1330
|
+
return message;
|
|
1331
|
+
},
|
|
1332
|
+
};
|
|
1333
|
+
function createBaseGetBankAccountsRequest() {
|
|
1334
|
+
return {};
|
|
1335
|
+
}
|
|
1336
|
+
exports.GetBankAccountsRequest = {
|
|
1337
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1338
|
+
return writer;
|
|
1339
|
+
},
|
|
1340
|
+
decode(input, length) {
|
|
1341
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1342
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1343
|
+
if (previousRecursionDepth >= 100) {
|
|
1344
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1345
|
+
}
|
|
1346
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1347
|
+
try {
|
|
1348
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1349
|
+
const message = createBaseGetBankAccountsRequest();
|
|
1350
|
+
while (reader.pos < end) {
|
|
1351
|
+
const tag = reader.uint32();
|
|
1352
|
+
switch (tag >>> 3) {
|
|
1353
|
+
}
|
|
1354
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1355
|
+
break;
|
|
1356
|
+
}
|
|
1357
|
+
reader.skip(tag & 7);
|
|
1358
|
+
}
|
|
1359
|
+
return message;
|
|
1360
|
+
}
|
|
1361
|
+
finally {
|
|
1362
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
fromJSON(_) {
|
|
1366
|
+
return {};
|
|
1367
|
+
},
|
|
1368
|
+
toJSON(_) {
|
|
1369
|
+
const obj = {};
|
|
1370
|
+
return obj;
|
|
1371
|
+
},
|
|
1372
|
+
create(base) {
|
|
1373
|
+
return exports.GetBankAccountsRequest.fromPartial(base ?? {});
|
|
1374
|
+
},
|
|
1375
|
+
fromPartial(_) {
|
|
1376
|
+
const message = createBaseGetBankAccountsRequest();
|
|
1377
|
+
return message;
|
|
1378
|
+
},
|
|
1379
|
+
};
|
|
1380
|
+
function createBaseGetBankAccountsResponse() {
|
|
1381
|
+
return { bankAccounts: [] };
|
|
1382
|
+
}
|
|
1383
|
+
exports.GetBankAccountsResponse = {
|
|
1384
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1385
|
+
for (const v of message.bankAccounts) {
|
|
1386
|
+
exports.BankAccount.encode(v, writer.uint32(10).fork()).join();
|
|
1387
|
+
}
|
|
1388
|
+
return writer;
|
|
1389
|
+
},
|
|
1390
|
+
decode(input, length) {
|
|
1391
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1392
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1393
|
+
if (previousRecursionDepth >= 100) {
|
|
1394
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1395
|
+
}
|
|
1396
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1397
|
+
try {
|
|
1398
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1399
|
+
const message = createBaseGetBankAccountsResponse();
|
|
1400
|
+
while (reader.pos < end) {
|
|
1401
|
+
const tag = reader.uint32();
|
|
1402
|
+
switch (tag >>> 3) {
|
|
1403
|
+
case 1: {
|
|
1404
|
+
if (tag !== 10) {
|
|
1405
|
+
break;
|
|
1406
|
+
}
|
|
1407
|
+
message.bankAccounts.push(exports.BankAccount.decode(reader, reader.uint32()));
|
|
1408
|
+
continue;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1412
|
+
break;
|
|
1413
|
+
}
|
|
1414
|
+
reader.skip(tag & 7);
|
|
1415
|
+
}
|
|
1416
|
+
return message;
|
|
1417
|
+
}
|
|
1418
|
+
finally {
|
|
1419
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
fromJSON(object) {
|
|
1423
|
+
return {
|
|
1424
|
+
bankAccounts: globalThis.Array.isArray(object?.bankAccounts)
|
|
1425
|
+
? object.bankAccounts.map((e) => exports.BankAccount.fromJSON(e))
|
|
1426
|
+
: globalThis.Array.isArray(object?.bank_accounts)
|
|
1427
|
+
? object.bank_accounts.map((e) => exports.BankAccount.fromJSON(e))
|
|
1428
|
+
: [],
|
|
1429
|
+
};
|
|
1430
|
+
},
|
|
1431
|
+
toJSON(message) {
|
|
1432
|
+
const obj = {};
|
|
1433
|
+
if (message.bankAccounts?.length) {
|
|
1434
|
+
obj.bankAccounts = message.bankAccounts.map((e) => exports.BankAccount.toJSON(e));
|
|
1435
|
+
}
|
|
1436
|
+
return obj;
|
|
1437
|
+
},
|
|
1438
|
+
create(base) {
|
|
1439
|
+
return exports.GetBankAccountsResponse.fromPartial(base ?? {});
|
|
1440
|
+
},
|
|
1441
|
+
fromPartial(object) {
|
|
1442
|
+
const message = createBaseGetBankAccountsResponse();
|
|
1443
|
+
message.bankAccounts = object.bankAccounts?.map((e) => exports.BankAccount.fromPartial(e)) || [];
|
|
1444
|
+
return message;
|
|
1445
|
+
},
|
|
1446
|
+
};
|
|
1447
|
+
function createBaseBankAccount() {
|
|
1448
|
+
return { id: "", name: "", money: [], openedDate: undefined, type: 0 };
|
|
1449
|
+
}
|
|
1450
|
+
exports.BankAccount = {
|
|
1451
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1452
|
+
if (message.id !== "") {
|
|
1453
|
+
writer.uint32(10).string(message.id);
|
|
1454
|
+
}
|
|
1455
|
+
if (message.name !== "") {
|
|
1456
|
+
writer.uint32(18).string(message.name);
|
|
1457
|
+
}
|
|
1458
|
+
for (const v of message.money) {
|
|
1459
|
+
common_1.MoneyValue.encode(v, writer.uint32(26).fork()).join();
|
|
1460
|
+
}
|
|
1461
|
+
if (message.openedDate !== undefined) {
|
|
1462
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.openedDate), writer.uint32(34).fork()).join();
|
|
1463
|
+
}
|
|
1464
|
+
if (message.type !== 0) {
|
|
1465
|
+
writer.uint32(40).int32(message.type);
|
|
1466
|
+
}
|
|
1467
|
+
return writer;
|
|
1468
|
+
},
|
|
1469
|
+
decode(input, length) {
|
|
1470
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1471
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1472
|
+
if (previousRecursionDepth >= 100) {
|
|
1473
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1474
|
+
}
|
|
1475
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1476
|
+
try {
|
|
1477
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1478
|
+
const message = createBaseBankAccount();
|
|
1479
|
+
while (reader.pos < end) {
|
|
1480
|
+
const tag = reader.uint32();
|
|
1481
|
+
switch (tag >>> 3) {
|
|
1482
|
+
case 1: {
|
|
1483
|
+
if (tag !== 10) {
|
|
1484
|
+
break;
|
|
1485
|
+
}
|
|
1486
|
+
message.id = reader.string();
|
|
1487
|
+
continue;
|
|
1488
|
+
}
|
|
1489
|
+
case 2: {
|
|
1490
|
+
if (tag !== 18) {
|
|
1491
|
+
break;
|
|
1492
|
+
}
|
|
1493
|
+
message.name = reader.string();
|
|
1494
|
+
continue;
|
|
1495
|
+
}
|
|
1496
|
+
case 3: {
|
|
1497
|
+
if (tag !== 26) {
|
|
1498
|
+
break;
|
|
1499
|
+
}
|
|
1500
|
+
message.money.push(common_1.MoneyValue.decode(reader, reader.uint32()));
|
|
1501
|
+
continue;
|
|
1502
|
+
}
|
|
1503
|
+
case 4: {
|
|
1504
|
+
if (tag !== 34) {
|
|
1505
|
+
break;
|
|
1506
|
+
}
|
|
1507
|
+
message.openedDate = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1508
|
+
continue;
|
|
1509
|
+
}
|
|
1510
|
+
case 5: {
|
|
1511
|
+
if (tag !== 40) {
|
|
1512
|
+
break;
|
|
1513
|
+
}
|
|
1514
|
+
message.type = reader.int32();
|
|
1515
|
+
continue;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1519
|
+
break;
|
|
1520
|
+
}
|
|
1521
|
+
reader.skip(tag & 7);
|
|
1522
|
+
}
|
|
1523
|
+
return message;
|
|
1524
|
+
}
|
|
1525
|
+
finally {
|
|
1526
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
fromJSON(object) {
|
|
1530
|
+
return {
|
|
1531
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1532
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1533
|
+
money: globalThis.Array.isArray(object?.money) ? object.money.map((e) => common_1.MoneyValue.fromJSON(e)) : [],
|
|
1534
|
+
openedDate: isSet(object.openedDate)
|
|
1535
|
+
? fromJsonTimestamp(object.openedDate)
|
|
1536
|
+
: isSet(object.opened_date)
|
|
1537
|
+
? fromJsonTimestamp(object.opened_date)
|
|
1538
|
+
: undefined,
|
|
1539
|
+
type: isSet(object.type) ? accountTypeFromJSON(object.type) : 0,
|
|
1540
|
+
};
|
|
1541
|
+
},
|
|
1542
|
+
toJSON(message) {
|
|
1543
|
+
const obj = {};
|
|
1544
|
+
if (message.id !== "") {
|
|
1545
|
+
obj.id = message.id;
|
|
1546
|
+
}
|
|
1547
|
+
if (message.name !== "") {
|
|
1548
|
+
obj.name = message.name;
|
|
1549
|
+
}
|
|
1550
|
+
if (message.money?.length) {
|
|
1551
|
+
obj.money = message.money.map((e) => common_1.MoneyValue.toJSON(e));
|
|
1552
|
+
}
|
|
1553
|
+
if (message.openedDate !== undefined) {
|
|
1554
|
+
obj.openedDate = message.openedDate.toISOString();
|
|
1555
|
+
}
|
|
1556
|
+
if (message.type !== 0) {
|
|
1557
|
+
obj.type = accountTypeToJSON(message.type);
|
|
1558
|
+
}
|
|
1559
|
+
return obj;
|
|
1560
|
+
},
|
|
1561
|
+
create(base) {
|
|
1562
|
+
return exports.BankAccount.fromPartial(base ?? {});
|
|
1563
|
+
},
|
|
1564
|
+
fromPartial(object) {
|
|
1565
|
+
const message = createBaseBankAccount();
|
|
1566
|
+
message.id = object.id ?? "";
|
|
1567
|
+
message.name = object.name ?? "";
|
|
1568
|
+
message.money = object.money?.map((e) => common_1.MoneyValue.fromPartial(e)) || [];
|
|
1569
|
+
message.openedDate = object.openedDate ?? undefined;
|
|
1570
|
+
message.type = object.type ?? 0;
|
|
1571
|
+
return message;
|
|
1572
|
+
},
|
|
1573
|
+
};
|
|
1574
|
+
function createBaseCurrencyTransferRequest() {
|
|
1575
|
+
return { fromAccountId: "", toAccountId: "", amount: undefined, transactionId: "" };
|
|
1576
|
+
}
|
|
1577
|
+
exports.CurrencyTransferRequest = {
|
|
1578
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1579
|
+
if (message.fromAccountId !== "") {
|
|
1580
|
+
writer.uint32(10).string(message.fromAccountId);
|
|
1581
|
+
}
|
|
1582
|
+
if (message.toAccountId !== "") {
|
|
1583
|
+
writer.uint32(18).string(message.toAccountId);
|
|
1584
|
+
}
|
|
1585
|
+
if (message.amount !== undefined) {
|
|
1586
|
+
common_1.MoneyValue.encode(message.amount, writer.uint32(26).fork()).join();
|
|
1587
|
+
}
|
|
1588
|
+
if (message.transactionId !== "") {
|
|
1589
|
+
writer.uint32(34).string(message.transactionId);
|
|
1590
|
+
}
|
|
1591
|
+
return writer;
|
|
1592
|
+
},
|
|
1593
|
+
decode(input, length) {
|
|
1594
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1595
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1596
|
+
if (previousRecursionDepth >= 100) {
|
|
1597
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1598
|
+
}
|
|
1599
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1600
|
+
try {
|
|
1601
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1602
|
+
const message = createBaseCurrencyTransferRequest();
|
|
1603
|
+
while (reader.pos < end) {
|
|
1604
|
+
const tag = reader.uint32();
|
|
1605
|
+
switch (tag >>> 3) {
|
|
1606
|
+
case 1: {
|
|
1607
|
+
if (tag !== 10) {
|
|
1608
|
+
break;
|
|
1609
|
+
}
|
|
1610
|
+
message.fromAccountId = reader.string();
|
|
1611
|
+
continue;
|
|
1612
|
+
}
|
|
1613
|
+
case 2: {
|
|
1614
|
+
if (tag !== 18) {
|
|
1615
|
+
break;
|
|
1616
|
+
}
|
|
1617
|
+
message.toAccountId = reader.string();
|
|
1618
|
+
continue;
|
|
1619
|
+
}
|
|
1620
|
+
case 3: {
|
|
1621
|
+
if (tag !== 26) {
|
|
1622
|
+
break;
|
|
1623
|
+
}
|
|
1624
|
+
message.amount = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1625
|
+
continue;
|
|
1626
|
+
}
|
|
1627
|
+
case 4: {
|
|
1628
|
+
if (tag !== 34) {
|
|
1629
|
+
break;
|
|
1630
|
+
}
|
|
1631
|
+
message.transactionId = reader.string();
|
|
1632
|
+
continue;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1636
|
+
break;
|
|
1637
|
+
}
|
|
1638
|
+
reader.skip(tag & 7);
|
|
1639
|
+
}
|
|
1640
|
+
return message;
|
|
1641
|
+
}
|
|
1642
|
+
finally {
|
|
1643
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
fromJSON(object) {
|
|
1647
|
+
return {
|
|
1648
|
+
fromAccountId: isSet(object.fromAccountId)
|
|
1649
|
+
? globalThis.String(object.fromAccountId)
|
|
1650
|
+
: isSet(object.from_account_id)
|
|
1651
|
+
? globalThis.String(object.from_account_id)
|
|
1652
|
+
: "",
|
|
1653
|
+
toAccountId: isSet(object.toAccountId)
|
|
1654
|
+
? globalThis.String(object.toAccountId)
|
|
1655
|
+
: isSet(object.to_account_id)
|
|
1656
|
+
? globalThis.String(object.to_account_id)
|
|
1657
|
+
: "",
|
|
1658
|
+
amount: isSet(object.amount) ? common_1.MoneyValue.fromJSON(object.amount) : undefined,
|
|
1659
|
+
transactionId: isSet(object.transactionId)
|
|
1660
|
+
? globalThis.String(object.transactionId)
|
|
1661
|
+
: isSet(object.transaction_id)
|
|
1662
|
+
? globalThis.String(object.transaction_id)
|
|
1663
|
+
: "",
|
|
1664
|
+
};
|
|
1665
|
+
},
|
|
1666
|
+
toJSON(message) {
|
|
1667
|
+
const obj = {};
|
|
1668
|
+
if (message.fromAccountId !== "") {
|
|
1669
|
+
obj.fromAccountId = message.fromAccountId;
|
|
1670
|
+
}
|
|
1671
|
+
if (message.toAccountId !== "") {
|
|
1672
|
+
obj.toAccountId = message.toAccountId;
|
|
1673
|
+
}
|
|
1674
|
+
if (message.amount !== undefined) {
|
|
1675
|
+
obj.amount = common_1.MoneyValue.toJSON(message.amount);
|
|
1676
|
+
}
|
|
1677
|
+
if (message.transactionId !== "") {
|
|
1678
|
+
obj.transactionId = message.transactionId;
|
|
1679
|
+
}
|
|
1680
|
+
return obj;
|
|
1681
|
+
},
|
|
1682
|
+
create(base) {
|
|
1683
|
+
return exports.CurrencyTransferRequest.fromPartial(base ?? {});
|
|
1684
|
+
},
|
|
1685
|
+
fromPartial(object) {
|
|
1686
|
+
const message = createBaseCurrencyTransferRequest();
|
|
1687
|
+
message.fromAccountId = object.fromAccountId ?? "";
|
|
1688
|
+
message.toAccountId = object.toAccountId ?? "";
|
|
1689
|
+
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
1690
|
+
? common_1.MoneyValue.fromPartial(object.amount)
|
|
1691
|
+
: undefined;
|
|
1692
|
+
message.transactionId = object.transactionId ?? "";
|
|
1693
|
+
return message;
|
|
1694
|
+
},
|
|
1695
|
+
};
|
|
1696
|
+
function createBaseCurrencyTransferResponse() {
|
|
1697
|
+
return {};
|
|
1698
|
+
}
|
|
1699
|
+
exports.CurrencyTransferResponse = {
|
|
1700
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1701
|
+
return writer;
|
|
1702
|
+
},
|
|
1703
|
+
decode(input, length) {
|
|
1704
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1705
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1706
|
+
if (previousRecursionDepth >= 100) {
|
|
1707
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1708
|
+
}
|
|
1709
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1710
|
+
try {
|
|
1711
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1712
|
+
const message = createBaseCurrencyTransferResponse();
|
|
1713
|
+
while (reader.pos < end) {
|
|
1714
|
+
const tag = reader.uint32();
|
|
1715
|
+
switch (tag >>> 3) {
|
|
1716
|
+
}
|
|
1717
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1718
|
+
break;
|
|
1719
|
+
}
|
|
1720
|
+
reader.skip(tag & 7);
|
|
1721
|
+
}
|
|
1722
|
+
return message;
|
|
1723
|
+
}
|
|
1724
|
+
finally {
|
|
1725
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1726
|
+
}
|
|
1727
|
+
},
|
|
1728
|
+
fromJSON(_) {
|
|
1729
|
+
return {};
|
|
1730
|
+
},
|
|
1731
|
+
toJSON(_) {
|
|
1732
|
+
const obj = {};
|
|
1733
|
+
return obj;
|
|
1734
|
+
},
|
|
1735
|
+
create(base) {
|
|
1736
|
+
return exports.CurrencyTransferResponse.fromPartial(base ?? {});
|
|
1737
|
+
},
|
|
1738
|
+
fromPartial(_) {
|
|
1739
|
+
const message = createBaseCurrencyTransferResponse();
|
|
1740
|
+
return message;
|
|
1741
|
+
},
|
|
1742
|
+
};
|
|
1743
|
+
function createBasePayInRequest() {
|
|
1744
|
+
return { fromAccountId: "", toAccountId: "", amount: undefined };
|
|
1745
|
+
}
|
|
1746
|
+
exports.PayInRequest = {
|
|
1747
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1748
|
+
if (message.fromAccountId !== "") {
|
|
1749
|
+
writer.uint32(10).string(message.fromAccountId);
|
|
1750
|
+
}
|
|
1751
|
+
if (message.toAccountId !== "") {
|
|
1752
|
+
writer.uint32(18).string(message.toAccountId);
|
|
1753
|
+
}
|
|
1754
|
+
if (message.amount !== undefined) {
|
|
1755
|
+
common_1.MoneyValue.encode(message.amount, writer.uint32(26).fork()).join();
|
|
1756
|
+
}
|
|
1757
|
+
return writer;
|
|
1758
|
+
},
|
|
1759
|
+
decode(input, length) {
|
|
1760
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1761
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1762
|
+
if (previousRecursionDepth >= 100) {
|
|
1763
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1764
|
+
}
|
|
1765
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1766
|
+
try {
|
|
1767
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1768
|
+
const message = createBasePayInRequest();
|
|
1769
|
+
while (reader.pos < end) {
|
|
1770
|
+
const tag = reader.uint32();
|
|
1771
|
+
switch (tag >>> 3) {
|
|
1772
|
+
case 1: {
|
|
1773
|
+
if (tag !== 10) {
|
|
1774
|
+
break;
|
|
1775
|
+
}
|
|
1776
|
+
message.fromAccountId = reader.string();
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1779
|
+
case 2: {
|
|
1780
|
+
if (tag !== 18) {
|
|
1781
|
+
break;
|
|
1782
|
+
}
|
|
1783
|
+
message.toAccountId = reader.string();
|
|
1784
|
+
continue;
|
|
1785
|
+
}
|
|
1786
|
+
case 3: {
|
|
1787
|
+
if (tag !== 26) {
|
|
1788
|
+
break;
|
|
1789
|
+
}
|
|
1790
|
+
message.amount = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
1791
|
+
continue;
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1795
|
+
break;
|
|
1796
|
+
}
|
|
1797
|
+
reader.skip(tag & 7);
|
|
1798
|
+
}
|
|
1799
|
+
return message;
|
|
1800
|
+
}
|
|
1801
|
+
finally {
|
|
1802
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1803
|
+
}
|
|
1804
|
+
},
|
|
1805
|
+
fromJSON(object) {
|
|
1806
|
+
return {
|
|
1807
|
+
fromAccountId: isSet(object.fromAccountId)
|
|
1808
|
+
? globalThis.String(object.fromAccountId)
|
|
1809
|
+
: isSet(object.from_account_id)
|
|
1810
|
+
? globalThis.String(object.from_account_id)
|
|
1811
|
+
: "",
|
|
1812
|
+
toAccountId: isSet(object.toAccountId)
|
|
1813
|
+
? globalThis.String(object.toAccountId)
|
|
1814
|
+
: isSet(object.to_account_id)
|
|
1815
|
+
? globalThis.String(object.to_account_id)
|
|
1816
|
+
: "",
|
|
1817
|
+
amount: isSet(object.amount) ? common_1.MoneyValue.fromJSON(object.amount) : undefined,
|
|
1818
|
+
};
|
|
1819
|
+
},
|
|
1820
|
+
toJSON(message) {
|
|
1821
|
+
const obj = {};
|
|
1822
|
+
if (message.fromAccountId !== "") {
|
|
1823
|
+
obj.fromAccountId = message.fromAccountId;
|
|
1824
|
+
}
|
|
1825
|
+
if (message.toAccountId !== "") {
|
|
1826
|
+
obj.toAccountId = message.toAccountId;
|
|
1827
|
+
}
|
|
1828
|
+
if (message.amount !== undefined) {
|
|
1829
|
+
obj.amount = common_1.MoneyValue.toJSON(message.amount);
|
|
1830
|
+
}
|
|
1831
|
+
return obj;
|
|
1832
|
+
},
|
|
1833
|
+
create(base) {
|
|
1834
|
+
return exports.PayInRequest.fromPartial(base ?? {});
|
|
1835
|
+
},
|
|
1836
|
+
fromPartial(object) {
|
|
1837
|
+
const message = createBasePayInRequest();
|
|
1838
|
+
message.fromAccountId = object.fromAccountId ?? "";
|
|
1839
|
+
message.toAccountId = object.toAccountId ?? "";
|
|
1840
|
+
message.amount = (object.amount !== undefined && object.amount !== null)
|
|
1841
|
+
? common_1.MoneyValue.fromPartial(object.amount)
|
|
1842
|
+
: undefined;
|
|
1843
|
+
return message;
|
|
1844
|
+
},
|
|
1845
|
+
};
|
|
1846
|
+
function createBasePayInResponse() {
|
|
1847
|
+
return {};
|
|
1848
|
+
}
|
|
1849
|
+
exports.PayInResponse = {
|
|
1850
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1851
|
+
return writer;
|
|
1852
|
+
},
|
|
1853
|
+
decode(input, length) {
|
|
1854
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1855
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1856
|
+
if (previousRecursionDepth >= 100) {
|
|
1857
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1858
|
+
}
|
|
1859
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1860
|
+
try {
|
|
1861
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1862
|
+
const message = createBasePayInResponse();
|
|
1863
|
+
while (reader.pos < end) {
|
|
1864
|
+
const tag = reader.uint32();
|
|
1865
|
+
switch (tag >>> 3) {
|
|
1866
|
+
}
|
|
1867
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1868
|
+
break;
|
|
1869
|
+
}
|
|
1870
|
+
reader.skip(tag & 7);
|
|
1871
|
+
}
|
|
1872
|
+
return message;
|
|
1873
|
+
}
|
|
1874
|
+
finally {
|
|
1875
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1876
|
+
}
|
|
1877
|
+
},
|
|
1878
|
+
fromJSON(_) {
|
|
1879
|
+
return {};
|
|
1880
|
+
},
|
|
1881
|
+
toJSON(_) {
|
|
1882
|
+
const obj = {};
|
|
1883
|
+
return obj;
|
|
1884
|
+
},
|
|
1885
|
+
create(base) {
|
|
1886
|
+
return exports.PayInResponse.fromPartial(base ?? {});
|
|
1887
|
+
},
|
|
1888
|
+
fromPartial(_) {
|
|
1889
|
+
const message = createBasePayInResponse();
|
|
1890
|
+
return message;
|
|
1891
|
+
},
|
|
1892
|
+
};
|
|
1893
|
+
function createBaseGetAccountValuesRequest() {
|
|
1894
|
+
return { accounts: [], values: [] };
|
|
1895
|
+
}
|
|
1896
|
+
exports.GetAccountValuesRequest = {
|
|
1897
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1898
|
+
for (const v of message.accounts) {
|
|
1899
|
+
writer.uint32(10).string(v);
|
|
1900
|
+
}
|
|
1901
|
+
writer.uint32(18).fork();
|
|
1902
|
+
for (const v of message.values) {
|
|
1903
|
+
writer.int32(v);
|
|
1904
|
+
}
|
|
1905
|
+
writer.join();
|
|
1906
|
+
return writer;
|
|
1907
|
+
},
|
|
1908
|
+
decode(input, length) {
|
|
1909
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1910
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1911
|
+
if (previousRecursionDepth >= 100) {
|
|
1912
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1913
|
+
}
|
|
1914
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1915
|
+
try {
|
|
1916
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1917
|
+
const message = createBaseGetAccountValuesRequest();
|
|
1918
|
+
while (reader.pos < end) {
|
|
1919
|
+
const tag = reader.uint32();
|
|
1920
|
+
switch (tag >>> 3) {
|
|
1921
|
+
case 1: {
|
|
1922
|
+
if (tag !== 10) {
|
|
1923
|
+
break;
|
|
1924
|
+
}
|
|
1925
|
+
message.accounts.push(reader.string());
|
|
1926
|
+
continue;
|
|
1927
|
+
}
|
|
1928
|
+
case 2: {
|
|
1929
|
+
if (tag === 16) {
|
|
1930
|
+
message.values.push(reader.int32());
|
|
1931
|
+
continue;
|
|
1932
|
+
}
|
|
1933
|
+
if (tag === 18) {
|
|
1934
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1935
|
+
while (reader.pos < end2) {
|
|
1936
|
+
message.values.push(reader.int32());
|
|
1937
|
+
}
|
|
1938
|
+
continue;
|
|
1939
|
+
}
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1944
|
+
break;
|
|
1945
|
+
}
|
|
1946
|
+
reader.skip(tag & 7);
|
|
1947
|
+
}
|
|
1948
|
+
return message;
|
|
1949
|
+
}
|
|
1950
|
+
finally {
|
|
1951
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1952
|
+
}
|
|
1953
|
+
},
|
|
1954
|
+
fromJSON(object) {
|
|
1955
|
+
return {
|
|
1956
|
+
accounts: globalThis.Array.isArray(object?.accounts) ? object.accounts.map((e) => globalThis.String(e)) : [],
|
|
1957
|
+
values: globalThis.Array.isArray(object?.values) ? object.values.map((e) => accountValueFromJSON(e)) : [],
|
|
1958
|
+
};
|
|
1959
|
+
},
|
|
1960
|
+
toJSON(message) {
|
|
1961
|
+
const obj = {};
|
|
1962
|
+
if (message.accounts?.length) {
|
|
1963
|
+
obj.accounts = message.accounts;
|
|
1964
|
+
}
|
|
1965
|
+
if (message.values?.length) {
|
|
1966
|
+
obj.values = message.values.map((e) => accountValueToJSON(e));
|
|
1967
|
+
}
|
|
1968
|
+
return obj;
|
|
1969
|
+
},
|
|
1970
|
+
create(base) {
|
|
1971
|
+
return exports.GetAccountValuesRequest.fromPartial(base ?? {});
|
|
1972
|
+
},
|
|
1973
|
+
fromPartial(object) {
|
|
1974
|
+
const message = createBaseGetAccountValuesRequest();
|
|
1975
|
+
message.accounts = object.accounts?.map((e) => e) || [];
|
|
1976
|
+
message.values = object.values?.map((e) => e) || [];
|
|
1977
|
+
return message;
|
|
1978
|
+
},
|
|
1979
|
+
};
|
|
1980
|
+
function createBaseGetAccountValuesResponse() {
|
|
1981
|
+
return { accounts: [] };
|
|
1982
|
+
}
|
|
1983
|
+
exports.GetAccountValuesResponse = {
|
|
1984
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1985
|
+
for (const v of message.accounts) {
|
|
1986
|
+
exports.AccountValuesWithParameters.encode(v, writer.uint32(10).fork()).join();
|
|
1987
|
+
}
|
|
1988
|
+
return writer;
|
|
1989
|
+
},
|
|
1990
|
+
decode(input, length) {
|
|
1991
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1992
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1993
|
+
if (previousRecursionDepth >= 100) {
|
|
1994
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1995
|
+
}
|
|
1996
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1997
|
+
try {
|
|
1998
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1999
|
+
const message = createBaseGetAccountValuesResponse();
|
|
2000
|
+
while (reader.pos < end) {
|
|
2001
|
+
const tag = reader.uint32();
|
|
2002
|
+
switch (tag >>> 3) {
|
|
2003
|
+
case 1: {
|
|
2004
|
+
if (tag !== 10) {
|
|
2005
|
+
break;
|
|
2006
|
+
}
|
|
2007
|
+
message.accounts.push(exports.AccountValuesWithParameters.decode(reader, reader.uint32()));
|
|
2008
|
+
continue;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2012
|
+
break;
|
|
2013
|
+
}
|
|
2014
|
+
reader.skip(tag & 7);
|
|
2015
|
+
}
|
|
2016
|
+
return message;
|
|
2017
|
+
}
|
|
2018
|
+
finally {
|
|
2019
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
fromJSON(object) {
|
|
2023
|
+
return {
|
|
2024
|
+
accounts: globalThis.Array.isArray(object?.accounts)
|
|
2025
|
+
? object.accounts.map((e) => exports.AccountValuesWithParameters.fromJSON(e))
|
|
2026
|
+
: [],
|
|
2027
|
+
};
|
|
2028
|
+
},
|
|
2029
|
+
toJSON(message) {
|
|
2030
|
+
const obj = {};
|
|
2031
|
+
if (message.accounts?.length) {
|
|
2032
|
+
obj.accounts = message.accounts.map((e) => exports.AccountValuesWithParameters.toJSON(e));
|
|
2033
|
+
}
|
|
2034
|
+
return obj;
|
|
2035
|
+
},
|
|
2036
|
+
create(base) {
|
|
2037
|
+
return exports.GetAccountValuesResponse.fromPartial(base ?? {});
|
|
2038
|
+
},
|
|
2039
|
+
fromPartial(object) {
|
|
2040
|
+
const message = createBaseGetAccountValuesResponse();
|
|
2041
|
+
message.accounts = object.accounts?.map((e) => exports.AccountValuesWithParameters.fromPartial(e)) || [];
|
|
2042
|
+
return message;
|
|
2043
|
+
},
|
|
2044
|
+
};
|
|
2045
|
+
function createBaseAccountValuesWithParameters() {
|
|
2046
|
+
return { accountId: "", values: [] };
|
|
2047
|
+
}
|
|
2048
|
+
exports.AccountValuesWithParameters = {
|
|
2049
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2050
|
+
if (message.accountId !== "") {
|
|
2051
|
+
writer.uint32(10).string(message.accountId);
|
|
2052
|
+
}
|
|
2053
|
+
for (const v of message.values) {
|
|
2054
|
+
exports.InstrumentParameter.encode(v, writer.uint32(18).fork()).join();
|
|
2055
|
+
}
|
|
2056
|
+
return writer;
|
|
2057
|
+
},
|
|
2058
|
+
decode(input, length) {
|
|
2059
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2060
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2061
|
+
if (previousRecursionDepth >= 100) {
|
|
2062
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2063
|
+
}
|
|
2064
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2065
|
+
try {
|
|
2066
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2067
|
+
const message = createBaseAccountValuesWithParameters();
|
|
2068
|
+
while (reader.pos < end) {
|
|
2069
|
+
const tag = reader.uint32();
|
|
2070
|
+
switch (tag >>> 3) {
|
|
2071
|
+
case 1: {
|
|
2072
|
+
if (tag !== 10) {
|
|
2073
|
+
break;
|
|
2074
|
+
}
|
|
2075
|
+
message.accountId = reader.string();
|
|
2076
|
+
continue;
|
|
2077
|
+
}
|
|
2078
|
+
case 2: {
|
|
2079
|
+
if (tag !== 18) {
|
|
2080
|
+
break;
|
|
2081
|
+
}
|
|
2082
|
+
message.values.push(exports.InstrumentParameter.decode(reader, reader.uint32()));
|
|
2083
|
+
continue;
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2087
|
+
break;
|
|
2088
|
+
}
|
|
2089
|
+
reader.skip(tag & 7);
|
|
2090
|
+
}
|
|
2091
|
+
return message;
|
|
2092
|
+
}
|
|
2093
|
+
finally {
|
|
2094
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
fromJSON(object) {
|
|
2098
|
+
return {
|
|
2099
|
+
accountId: isSet(object.accountId)
|
|
2100
|
+
? globalThis.String(object.accountId)
|
|
2101
|
+
: isSet(object.account_id)
|
|
2102
|
+
? globalThis.String(object.account_id)
|
|
2103
|
+
: "",
|
|
2104
|
+
values: globalThis.Array.isArray(object?.values)
|
|
2105
|
+
? object.values.map((e) => exports.InstrumentParameter.fromJSON(e))
|
|
2106
|
+
: [],
|
|
2107
|
+
};
|
|
2108
|
+
},
|
|
2109
|
+
toJSON(message) {
|
|
2110
|
+
const obj = {};
|
|
2111
|
+
if (message.accountId !== "") {
|
|
2112
|
+
obj.accountId = message.accountId;
|
|
2113
|
+
}
|
|
2114
|
+
if (message.values?.length) {
|
|
2115
|
+
obj.values = message.values.map((e) => exports.InstrumentParameter.toJSON(e));
|
|
2116
|
+
}
|
|
2117
|
+
return obj;
|
|
2118
|
+
},
|
|
2119
|
+
create(base) {
|
|
2120
|
+
return exports.AccountValuesWithParameters.fromPartial(base ?? {});
|
|
2121
|
+
},
|
|
2122
|
+
fromPartial(object) {
|
|
2123
|
+
const message = createBaseAccountValuesWithParameters();
|
|
2124
|
+
message.accountId = object.accountId ?? "";
|
|
2125
|
+
message.values = object.values?.map((e) => exports.InstrumentParameter.fromPartial(e)) || [];
|
|
2126
|
+
return message;
|
|
2127
|
+
},
|
|
2128
|
+
};
|
|
2129
|
+
function createBaseInstrumentParameter() {
|
|
2130
|
+
return { name: 0, value: undefined };
|
|
2131
|
+
}
|
|
2132
|
+
exports.InstrumentParameter = {
|
|
2133
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2134
|
+
if (message.name !== 0) {
|
|
2135
|
+
writer.uint32(8).int32(message.name);
|
|
2136
|
+
}
|
|
2137
|
+
if (message.value !== undefined) {
|
|
2138
|
+
common_1.MoneyValue.encode(message.value, writer.uint32(18).fork()).join();
|
|
2139
|
+
}
|
|
2140
|
+
return writer;
|
|
2141
|
+
},
|
|
2142
|
+
decode(input, length) {
|
|
2143
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2144
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2145
|
+
if (previousRecursionDepth >= 100) {
|
|
2146
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2147
|
+
}
|
|
2148
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2149
|
+
try {
|
|
2150
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2151
|
+
const message = createBaseInstrumentParameter();
|
|
2152
|
+
while (reader.pos < end) {
|
|
2153
|
+
const tag = reader.uint32();
|
|
2154
|
+
switch (tag >>> 3) {
|
|
2155
|
+
case 1: {
|
|
2156
|
+
if (tag !== 8) {
|
|
2157
|
+
break;
|
|
2158
|
+
}
|
|
2159
|
+
message.name = reader.int32();
|
|
2160
|
+
continue;
|
|
2161
|
+
}
|
|
2162
|
+
case 2: {
|
|
2163
|
+
if (tag !== 18) {
|
|
2164
|
+
break;
|
|
2165
|
+
}
|
|
2166
|
+
message.value = common_1.MoneyValue.decode(reader, reader.uint32());
|
|
2167
|
+
continue;
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2171
|
+
break;
|
|
2172
|
+
}
|
|
2173
|
+
reader.skip(tag & 7);
|
|
2174
|
+
}
|
|
2175
|
+
return message;
|
|
2176
|
+
}
|
|
2177
|
+
finally {
|
|
2178
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
fromJSON(object) {
|
|
2182
|
+
return {
|
|
2183
|
+
name: isSet(object.name) ? accountValueFromJSON(object.name) : 0,
|
|
2184
|
+
value: isSet(object.value) ? common_1.MoneyValue.fromJSON(object.value) : undefined,
|
|
2185
|
+
};
|
|
2186
|
+
},
|
|
2187
|
+
toJSON(message) {
|
|
2188
|
+
const obj = {};
|
|
2189
|
+
if (message.name !== 0) {
|
|
2190
|
+
obj.name = accountValueToJSON(message.name);
|
|
2191
|
+
}
|
|
2192
|
+
if (message.value !== undefined) {
|
|
2193
|
+
obj.value = common_1.MoneyValue.toJSON(message.value);
|
|
2194
|
+
}
|
|
2195
|
+
return obj;
|
|
2196
|
+
},
|
|
2197
|
+
create(base) {
|
|
2198
|
+
return exports.InstrumentParameter.fromPartial(base ?? {});
|
|
2199
|
+
},
|
|
2200
|
+
fromPartial(object) {
|
|
2201
|
+
const message = createBaseInstrumentParameter();
|
|
2202
|
+
message.name = object.name ?? 0;
|
|
2203
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
2204
|
+
? common_1.MoneyValue.fromPartial(object.value)
|
|
2205
|
+
: undefined;
|
|
2206
|
+
return message;
|
|
2207
|
+
},
|
|
2208
|
+
};
|
|
2209
|
+
exports.UsersServiceDefinition = {
|
|
2210
|
+
name: "UsersService",
|
|
2211
|
+
fullName: "tinkoff.public.invest.api.contract.v1.UsersService",
|
|
2212
|
+
methods: {
|
|
2213
|
+
/**
|
|
2214
|
+
* GetAccounts — счета пользователя
|
|
2215
|
+
* Получить список счетов.
|
|
2216
|
+
*/
|
|
2217
|
+
getAccounts: {
|
|
2218
|
+
name: "GetAccounts",
|
|
2219
|
+
requestType: exports.GetAccountsRequest,
|
|
2220
|
+
requestStream: false,
|
|
2221
|
+
responseType: exports.GetAccountsResponse,
|
|
2222
|
+
responseStream: false,
|
|
2223
|
+
options: {},
|
|
2224
|
+
},
|
|
2225
|
+
/**
|
|
2226
|
+
* GetMarginAttributes — маржинальные показатели по счeту
|
|
2227
|
+
* Метод позволяет получить маржинальные показатели и ликвидность по заданному счeту.
|
|
2228
|
+
*/
|
|
2229
|
+
getMarginAttributes: {
|
|
2230
|
+
name: "GetMarginAttributes",
|
|
2231
|
+
requestType: exports.GetMarginAttributesRequest,
|
|
2232
|
+
requestStream: false,
|
|
2233
|
+
responseType: exports.GetMarginAttributesResponse,
|
|
2234
|
+
responseStream: false,
|
|
2235
|
+
options: {},
|
|
2236
|
+
},
|
|
2237
|
+
/**
|
|
2238
|
+
* GetUserTariff — тариф пользователя
|
|
2239
|
+
* Получить информацию о текущих лимитах на подклчение, согласно текущему тарифу пользователя.
|
|
2240
|
+
*/
|
|
2241
|
+
getUserTariff: {
|
|
2242
|
+
name: "GetUserTariff",
|
|
2243
|
+
requestType: exports.GetUserTariffRequest,
|
|
2244
|
+
requestStream: false,
|
|
2245
|
+
responseType: exports.GetUserTariffResponse,
|
|
2246
|
+
responseStream: false,
|
|
2247
|
+
options: {},
|
|
2248
|
+
},
|
|
2249
|
+
/**
|
|
2250
|
+
* GetInfo — информация о пользователе
|
|
2251
|
+
* Получить информацию о пользователе: тариф, признак квалификации, пройденные тесты и др.
|
|
2252
|
+
*/
|
|
2253
|
+
getInfo: {
|
|
2254
|
+
name: "GetInfo",
|
|
2255
|
+
requestType: exports.GetInfoRequest,
|
|
2256
|
+
requestStream: false,
|
|
2257
|
+
responseType: exports.GetInfoResponse,
|
|
2258
|
+
responseStream: false,
|
|
2259
|
+
options: {},
|
|
2260
|
+
},
|
|
2261
|
+
/**
|
|
2262
|
+
* GetBankAccounts — банковские счета пользователя
|
|
2263
|
+
* Получить список счетов пользователя, в том числе и банковских.
|
|
2264
|
+
*/
|
|
2265
|
+
getBankAccounts: {
|
|
2266
|
+
name: "GetBankAccounts",
|
|
2267
|
+
requestType: exports.GetBankAccountsRequest,
|
|
2268
|
+
requestStream: false,
|
|
2269
|
+
responseType: exports.GetBankAccountsResponse,
|
|
2270
|
+
responseStream: false,
|
|
2271
|
+
options: {},
|
|
2272
|
+
},
|
|
2273
|
+
/**
|
|
2274
|
+
* CurrencyTransfer — перевод денежных средств между счетами
|
|
2275
|
+
* Перевести денежные средства между брокерскими счетами
|
|
2276
|
+
*/
|
|
2277
|
+
currencyTransfer: {
|
|
2278
|
+
name: "CurrencyTransfer",
|
|
2279
|
+
requestType: exports.CurrencyTransferRequest,
|
|
2280
|
+
requestStream: false,
|
|
2281
|
+
responseType: exports.CurrencyTransferResponse,
|
|
2282
|
+
responseStream: false,
|
|
2283
|
+
options: {},
|
|
2284
|
+
},
|
|
2285
|
+
/**
|
|
2286
|
+
* PayIn — пополнение брокерского счета
|
|
2287
|
+
* Пополнить брокерский счёт с банковского
|
|
2288
|
+
*/
|
|
2289
|
+
payIn: {
|
|
2290
|
+
name: "PayIn",
|
|
2291
|
+
requestType: exports.PayInRequest,
|
|
2292
|
+
requestStream: false,
|
|
2293
|
+
responseType: exports.PayInResponse,
|
|
2294
|
+
responseStream: false,
|
|
2295
|
+
options: {},
|
|
2296
|
+
},
|
|
2297
|
+
/**
|
|
2298
|
+
* GetAccountValues — дополнительные показатели счетов
|
|
2299
|
+
* Метод предназначен для получения дополнительных показателей счетов
|
|
2300
|
+
*/
|
|
2301
|
+
getAccountValues: {
|
|
2302
|
+
name: "GetAccountValues",
|
|
2303
|
+
requestType: exports.GetAccountValuesRequest,
|
|
2304
|
+
requestStream: false,
|
|
2305
|
+
responseType: exports.GetAccountValuesResponse,
|
|
2306
|
+
responseStream: false,
|
|
2307
|
+
options: {},
|
|
2308
|
+
},
|
|
2309
|
+
},
|
|
2310
|
+
};
|
|
2311
|
+
function toTimestamp(date) {
|
|
2312
|
+
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
2313
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
2314
|
+
return { seconds, nanos };
|
|
2315
|
+
}
|
|
2316
|
+
function fromTimestamp(t) {
|
|
2317
|
+
let millis = (t.seconds || 0) * 1_000;
|
|
2318
|
+
millis += (t.nanos || 0) / 1_000_000;
|
|
2319
|
+
return new globalThis.Date(millis);
|
|
2320
|
+
}
|
|
2321
|
+
function fromJsonTimestamp(o) {
|
|
2322
|
+
if (o instanceof globalThis.Date) {
|
|
2323
|
+
return o;
|
|
2324
|
+
}
|
|
2325
|
+
else if (typeof o === "string") {
|
|
2326
|
+
return new globalThis.Date(o);
|
|
2327
|
+
}
|
|
2328
|
+
else {
|
|
2329
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
function isSet(value) {
|
|
2333
|
+
return value !== null && value !== undefined;
|
|
2334
|
+
}
|