@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,1336 @@
|
|
|
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: common.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ErrorDetail = exports.BrandData = exports.ResponseMetadata = exports.PageResponse = exports.Page = exports.Ping = exports.PingDelaySettings = exports.PingRequest = exports.Quotation = exports.MoneyValue = exports.RealExchange = exports.ResultSubscriptionStatus = exports.PriceType = exports.SecurityTradingStatus = exports.InstrumentStatus = exports.InstrumentType = exports.protobufPackage = void 0;
|
|
9
|
+
exports.instrumentTypeFromJSON = instrumentTypeFromJSON;
|
|
10
|
+
exports.instrumentTypeToJSON = instrumentTypeToJSON;
|
|
11
|
+
exports.instrumentStatusFromJSON = instrumentStatusFromJSON;
|
|
12
|
+
exports.instrumentStatusToJSON = instrumentStatusToJSON;
|
|
13
|
+
exports.securityTradingStatusFromJSON = securityTradingStatusFromJSON;
|
|
14
|
+
exports.securityTradingStatusToJSON = securityTradingStatusToJSON;
|
|
15
|
+
exports.priceTypeFromJSON = priceTypeFromJSON;
|
|
16
|
+
exports.priceTypeToJSON = priceTypeToJSON;
|
|
17
|
+
exports.resultSubscriptionStatusFromJSON = resultSubscriptionStatusFromJSON;
|
|
18
|
+
exports.resultSubscriptionStatusToJSON = resultSubscriptionStatusToJSON;
|
|
19
|
+
exports.realExchangeFromJSON = realExchangeFromJSON;
|
|
20
|
+
exports.realExchangeToJSON = realExchangeToJSON;
|
|
21
|
+
/* eslint-disable */
|
|
22
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
23
|
+
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
24
|
+
exports.protobufPackage = "tinkoff.public.invest.api.contract.v1";
|
|
25
|
+
/** Тип инструмента. */
|
|
26
|
+
var InstrumentType;
|
|
27
|
+
(function (InstrumentType) {
|
|
28
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_UNSPECIFIED"] = 0] = "INSTRUMENT_TYPE_UNSPECIFIED";
|
|
29
|
+
/** INSTRUMENT_TYPE_BOND - Облигация. */
|
|
30
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_BOND"] = 1] = "INSTRUMENT_TYPE_BOND";
|
|
31
|
+
/** INSTRUMENT_TYPE_SHARE - Акция. */
|
|
32
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_SHARE"] = 2] = "INSTRUMENT_TYPE_SHARE";
|
|
33
|
+
/** INSTRUMENT_TYPE_CURRENCY - Валюта. */
|
|
34
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_CURRENCY"] = 3] = "INSTRUMENT_TYPE_CURRENCY";
|
|
35
|
+
/** INSTRUMENT_TYPE_ETF - Exchange-traded fund. Фонд. */
|
|
36
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_ETF"] = 4] = "INSTRUMENT_TYPE_ETF";
|
|
37
|
+
/** INSTRUMENT_TYPE_FUTURES - Фьючерс. */
|
|
38
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_FUTURES"] = 5] = "INSTRUMENT_TYPE_FUTURES";
|
|
39
|
+
/** INSTRUMENT_TYPE_SP - Структурная нота. */
|
|
40
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_SP"] = 6] = "INSTRUMENT_TYPE_SP";
|
|
41
|
+
/** INSTRUMENT_TYPE_OPTION - Опцион. */
|
|
42
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_OPTION"] = 7] = "INSTRUMENT_TYPE_OPTION";
|
|
43
|
+
/** INSTRUMENT_TYPE_CLEARING_CERTIFICATE - Clearing certificate. */
|
|
44
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_CLEARING_CERTIFICATE"] = 8] = "INSTRUMENT_TYPE_CLEARING_CERTIFICATE";
|
|
45
|
+
/** INSTRUMENT_TYPE_INDEX - Индекс. */
|
|
46
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_INDEX"] = 9] = "INSTRUMENT_TYPE_INDEX";
|
|
47
|
+
/** INSTRUMENT_TYPE_COMMODITY - Товар. */
|
|
48
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_COMMODITY"] = 10] = "INSTRUMENT_TYPE_COMMODITY";
|
|
49
|
+
/** INSTRUMENT_TYPE_DFA - Цифровой актив. */
|
|
50
|
+
InstrumentType[InstrumentType["INSTRUMENT_TYPE_DFA"] = 11] = "INSTRUMENT_TYPE_DFA";
|
|
51
|
+
InstrumentType[InstrumentType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
52
|
+
})(InstrumentType || (exports.InstrumentType = InstrumentType = {}));
|
|
53
|
+
function instrumentTypeFromJSON(object) {
|
|
54
|
+
switch (object) {
|
|
55
|
+
case 0:
|
|
56
|
+
case "INSTRUMENT_TYPE_UNSPECIFIED":
|
|
57
|
+
return InstrumentType.INSTRUMENT_TYPE_UNSPECIFIED;
|
|
58
|
+
case 1:
|
|
59
|
+
case "INSTRUMENT_TYPE_BOND":
|
|
60
|
+
return InstrumentType.INSTRUMENT_TYPE_BOND;
|
|
61
|
+
case 2:
|
|
62
|
+
case "INSTRUMENT_TYPE_SHARE":
|
|
63
|
+
return InstrumentType.INSTRUMENT_TYPE_SHARE;
|
|
64
|
+
case 3:
|
|
65
|
+
case "INSTRUMENT_TYPE_CURRENCY":
|
|
66
|
+
return InstrumentType.INSTRUMENT_TYPE_CURRENCY;
|
|
67
|
+
case 4:
|
|
68
|
+
case "INSTRUMENT_TYPE_ETF":
|
|
69
|
+
return InstrumentType.INSTRUMENT_TYPE_ETF;
|
|
70
|
+
case 5:
|
|
71
|
+
case "INSTRUMENT_TYPE_FUTURES":
|
|
72
|
+
return InstrumentType.INSTRUMENT_TYPE_FUTURES;
|
|
73
|
+
case 6:
|
|
74
|
+
case "INSTRUMENT_TYPE_SP":
|
|
75
|
+
return InstrumentType.INSTRUMENT_TYPE_SP;
|
|
76
|
+
case 7:
|
|
77
|
+
case "INSTRUMENT_TYPE_OPTION":
|
|
78
|
+
return InstrumentType.INSTRUMENT_TYPE_OPTION;
|
|
79
|
+
case 8:
|
|
80
|
+
case "INSTRUMENT_TYPE_CLEARING_CERTIFICATE":
|
|
81
|
+
return InstrumentType.INSTRUMENT_TYPE_CLEARING_CERTIFICATE;
|
|
82
|
+
case 9:
|
|
83
|
+
case "INSTRUMENT_TYPE_INDEX":
|
|
84
|
+
return InstrumentType.INSTRUMENT_TYPE_INDEX;
|
|
85
|
+
case 10:
|
|
86
|
+
case "INSTRUMENT_TYPE_COMMODITY":
|
|
87
|
+
return InstrumentType.INSTRUMENT_TYPE_COMMODITY;
|
|
88
|
+
case 11:
|
|
89
|
+
case "INSTRUMENT_TYPE_DFA":
|
|
90
|
+
return InstrumentType.INSTRUMENT_TYPE_DFA;
|
|
91
|
+
case -1:
|
|
92
|
+
case "UNRECOGNIZED":
|
|
93
|
+
default:
|
|
94
|
+
return InstrumentType.UNRECOGNIZED;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function instrumentTypeToJSON(object) {
|
|
98
|
+
switch (object) {
|
|
99
|
+
case InstrumentType.INSTRUMENT_TYPE_UNSPECIFIED:
|
|
100
|
+
return "INSTRUMENT_TYPE_UNSPECIFIED";
|
|
101
|
+
case InstrumentType.INSTRUMENT_TYPE_BOND:
|
|
102
|
+
return "INSTRUMENT_TYPE_BOND";
|
|
103
|
+
case InstrumentType.INSTRUMENT_TYPE_SHARE:
|
|
104
|
+
return "INSTRUMENT_TYPE_SHARE";
|
|
105
|
+
case InstrumentType.INSTRUMENT_TYPE_CURRENCY:
|
|
106
|
+
return "INSTRUMENT_TYPE_CURRENCY";
|
|
107
|
+
case InstrumentType.INSTRUMENT_TYPE_ETF:
|
|
108
|
+
return "INSTRUMENT_TYPE_ETF";
|
|
109
|
+
case InstrumentType.INSTRUMENT_TYPE_FUTURES:
|
|
110
|
+
return "INSTRUMENT_TYPE_FUTURES";
|
|
111
|
+
case InstrumentType.INSTRUMENT_TYPE_SP:
|
|
112
|
+
return "INSTRUMENT_TYPE_SP";
|
|
113
|
+
case InstrumentType.INSTRUMENT_TYPE_OPTION:
|
|
114
|
+
return "INSTRUMENT_TYPE_OPTION";
|
|
115
|
+
case InstrumentType.INSTRUMENT_TYPE_CLEARING_CERTIFICATE:
|
|
116
|
+
return "INSTRUMENT_TYPE_CLEARING_CERTIFICATE";
|
|
117
|
+
case InstrumentType.INSTRUMENT_TYPE_INDEX:
|
|
118
|
+
return "INSTRUMENT_TYPE_INDEX";
|
|
119
|
+
case InstrumentType.INSTRUMENT_TYPE_COMMODITY:
|
|
120
|
+
return "INSTRUMENT_TYPE_COMMODITY";
|
|
121
|
+
case InstrumentType.INSTRUMENT_TYPE_DFA:
|
|
122
|
+
return "INSTRUMENT_TYPE_DFA";
|
|
123
|
+
case InstrumentType.UNRECOGNIZED:
|
|
124
|
+
default:
|
|
125
|
+
return "UNRECOGNIZED";
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/** Статус запрашиваемых инструментов. */
|
|
129
|
+
var InstrumentStatus;
|
|
130
|
+
(function (InstrumentStatus) {
|
|
131
|
+
/** INSTRUMENT_STATUS_UNSPECIFIED - Значение не определено. */
|
|
132
|
+
InstrumentStatus[InstrumentStatus["INSTRUMENT_STATUS_UNSPECIFIED"] = 0] = "INSTRUMENT_STATUS_UNSPECIFIED";
|
|
133
|
+
/** INSTRUMENT_STATUS_BASE - По умолчанию — базовый список инструментов, которыми можно торговать через T-Invest API. Сейчас списки доступных бумаг в API и других интерфейсах совпадают — кроме внебиржевых бумаг, но в будущем списки могут различаться. */
|
|
134
|
+
InstrumentStatus[InstrumentStatus["INSTRUMENT_STATUS_BASE"] = 1] = "INSTRUMENT_STATUS_BASE";
|
|
135
|
+
/** INSTRUMENT_STATUS_ALL - Список всех инструментов. */
|
|
136
|
+
InstrumentStatus[InstrumentStatus["INSTRUMENT_STATUS_ALL"] = 2] = "INSTRUMENT_STATUS_ALL";
|
|
137
|
+
InstrumentStatus[InstrumentStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
138
|
+
})(InstrumentStatus || (exports.InstrumentStatus = InstrumentStatus = {}));
|
|
139
|
+
function instrumentStatusFromJSON(object) {
|
|
140
|
+
switch (object) {
|
|
141
|
+
case 0:
|
|
142
|
+
case "INSTRUMENT_STATUS_UNSPECIFIED":
|
|
143
|
+
return InstrumentStatus.INSTRUMENT_STATUS_UNSPECIFIED;
|
|
144
|
+
case 1:
|
|
145
|
+
case "INSTRUMENT_STATUS_BASE":
|
|
146
|
+
return InstrumentStatus.INSTRUMENT_STATUS_BASE;
|
|
147
|
+
case 2:
|
|
148
|
+
case "INSTRUMENT_STATUS_ALL":
|
|
149
|
+
return InstrumentStatus.INSTRUMENT_STATUS_ALL;
|
|
150
|
+
case -1:
|
|
151
|
+
case "UNRECOGNIZED":
|
|
152
|
+
default:
|
|
153
|
+
return InstrumentStatus.UNRECOGNIZED;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function instrumentStatusToJSON(object) {
|
|
157
|
+
switch (object) {
|
|
158
|
+
case InstrumentStatus.INSTRUMENT_STATUS_UNSPECIFIED:
|
|
159
|
+
return "INSTRUMENT_STATUS_UNSPECIFIED";
|
|
160
|
+
case InstrumentStatus.INSTRUMENT_STATUS_BASE:
|
|
161
|
+
return "INSTRUMENT_STATUS_BASE";
|
|
162
|
+
case InstrumentStatus.INSTRUMENT_STATUS_ALL:
|
|
163
|
+
return "INSTRUMENT_STATUS_ALL";
|
|
164
|
+
case InstrumentStatus.UNRECOGNIZED:
|
|
165
|
+
default:
|
|
166
|
+
return "UNRECOGNIZED";
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
/** Режим торгов инструмента */
|
|
170
|
+
var SecurityTradingStatus;
|
|
171
|
+
(function (SecurityTradingStatus) {
|
|
172
|
+
/** SECURITY_TRADING_STATUS_UNSPECIFIED - Торговый статус не определен. */
|
|
173
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_UNSPECIFIED"] = 0] = "SECURITY_TRADING_STATUS_UNSPECIFIED";
|
|
174
|
+
/** SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING - Недоступен для торгов. */
|
|
175
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING"] = 1] = "SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING";
|
|
176
|
+
/** SECURITY_TRADING_STATUS_OPENING_PERIOD - Период открытия торгов. */
|
|
177
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_OPENING_PERIOD"] = 2] = "SECURITY_TRADING_STATUS_OPENING_PERIOD";
|
|
178
|
+
/** SECURITY_TRADING_STATUS_CLOSING_PERIOD - Период закрытия торгов. */
|
|
179
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_CLOSING_PERIOD"] = 3] = "SECURITY_TRADING_STATUS_CLOSING_PERIOD";
|
|
180
|
+
/** SECURITY_TRADING_STATUS_BREAK_IN_TRADING - Перерыв в торговле. */
|
|
181
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_BREAK_IN_TRADING"] = 4] = "SECURITY_TRADING_STATUS_BREAK_IN_TRADING";
|
|
182
|
+
/** SECURITY_TRADING_STATUS_NORMAL_TRADING - Нормальная торговля. */
|
|
183
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_NORMAL_TRADING"] = 5] = "SECURITY_TRADING_STATUS_NORMAL_TRADING";
|
|
184
|
+
/** SECURITY_TRADING_STATUS_CLOSING_AUCTION - Аукцион закрытия. */
|
|
185
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_CLOSING_AUCTION"] = 6] = "SECURITY_TRADING_STATUS_CLOSING_AUCTION";
|
|
186
|
+
/** SECURITY_TRADING_STATUS_DARK_POOL_AUCTION - Аукцион крупных пакетов. */
|
|
187
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_DARK_POOL_AUCTION"] = 7] = "SECURITY_TRADING_STATUS_DARK_POOL_AUCTION";
|
|
188
|
+
/** SECURITY_TRADING_STATUS_DISCRETE_AUCTION - Дискретный аукцион. */
|
|
189
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_DISCRETE_AUCTION"] = 8] = "SECURITY_TRADING_STATUS_DISCRETE_AUCTION";
|
|
190
|
+
/** SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD - Аукцион открытия. */
|
|
191
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD"] = 9] = "SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD";
|
|
192
|
+
/** SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE - Период торгов по цене аукциона закрытия. */
|
|
193
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE"] = 10] = "SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE";
|
|
194
|
+
/** SECURITY_TRADING_STATUS_SESSION_ASSIGNED - Сессия назначена. */
|
|
195
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_SESSION_ASSIGNED"] = 11] = "SECURITY_TRADING_STATUS_SESSION_ASSIGNED";
|
|
196
|
+
/** SECURITY_TRADING_STATUS_SESSION_CLOSE - Сессия закрыта. */
|
|
197
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_SESSION_CLOSE"] = 12] = "SECURITY_TRADING_STATUS_SESSION_CLOSE";
|
|
198
|
+
/** SECURITY_TRADING_STATUS_SESSION_OPEN - Сессия открыта. */
|
|
199
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_SESSION_OPEN"] = 13] = "SECURITY_TRADING_STATUS_SESSION_OPEN";
|
|
200
|
+
/** SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING - Доступна торговля в режиме внутренней ликвидности брокера. */
|
|
201
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING"] = 14] = "SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING";
|
|
202
|
+
/** SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING - Перерыв торговли в режиме внутренней ликвидности брокера. */
|
|
203
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING"] = 15] = "SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING";
|
|
204
|
+
/** SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING - Недоступна торговля в режиме внутренней ликвидности брокера. */
|
|
205
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING"] = 16] = "SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING";
|
|
206
|
+
/** SECURITY_TRADING_STATUS_STABILIZATION_AUCTION - Аукцион обновления цен. */
|
|
207
|
+
SecurityTradingStatus[SecurityTradingStatus["SECURITY_TRADING_STATUS_STABILIZATION_AUCTION"] = 17] = "SECURITY_TRADING_STATUS_STABILIZATION_AUCTION";
|
|
208
|
+
SecurityTradingStatus[SecurityTradingStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
209
|
+
})(SecurityTradingStatus || (exports.SecurityTradingStatus = SecurityTradingStatus = {}));
|
|
210
|
+
function securityTradingStatusFromJSON(object) {
|
|
211
|
+
switch (object) {
|
|
212
|
+
case 0:
|
|
213
|
+
case "SECURITY_TRADING_STATUS_UNSPECIFIED":
|
|
214
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_UNSPECIFIED;
|
|
215
|
+
case 1:
|
|
216
|
+
case "SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING":
|
|
217
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING;
|
|
218
|
+
case 2:
|
|
219
|
+
case "SECURITY_TRADING_STATUS_OPENING_PERIOD":
|
|
220
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_OPENING_PERIOD;
|
|
221
|
+
case 3:
|
|
222
|
+
case "SECURITY_TRADING_STATUS_CLOSING_PERIOD":
|
|
223
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_CLOSING_PERIOD;
|
|
224
|
+
case 4:
|
|
225
|
+
case "SECURITY_TRADING_STATUS_BREAK_IN_TRADING":
|
|
226
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_BREAK_IN_TRADING;
|
|
227
|
+
case 5:
|
|
228
|
+
case "SECURITY_TRADING_STATUS_NORMAL_TRADING":
|
|
229
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_NORMAL_TRADING;
|
|
230
|
+
case 6:
|
|
231
|
+
case "SECURITY_TRADING_STATUS_CLOSING_AUCTION":
|
|
232
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_CLOSING_AUCTION;
|
|
233
|
+
case 7:
|
|
234
|
+
case "SECURITY_TRADING_STATUS_DARK_POOL_AUCTION":
|
|
235
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_DARK_POOL_AUCTION;
|
|
236
|
+
case 8:
|
|
237
|
+
case "SECURITY_TRADING_STATUS_DISCRETE_AUCTION":
|
|
238
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_DISCRETE_AUCTION;
|
|
239
|
+
case 9:
|
|
240
|
+
case "SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD":
|
|
241
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD;
|
|
242
|
+
case 10:
|
|
243
|
+
case "SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE":
|
|
244
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE;
|
|
245
|
+
case 11:
|
|
246
|
+
case "SECURITY_TRADING_STATUS_SESSION_ASSIGNED":
|
|
247
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_SESSION_ASSIGNED;
|
|
248
|
+
case 12:
|
|
249
|
+
case "SECURITY_TRADING_STATUS_SESSION_CLOSE":
|
|
250
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_SESSION_CLOSE;
|
|
251
|
+
case 13:
|
|
252
|
+
case "SECURITY_TRADING_STATUS_SESSION_OPEN":
|
|
253
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_SESSION_OPEN;
|
|
254
|
+
case 14:
|
|
255
|
+
case "SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING":
|
|
256
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING;
|
|
257
|
+
case 15:
|
|
258
|
+
case "SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING":
|
|
259
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING;
|
|
260
|
+
case 16:
|
|
261
|
+
case "SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING":
|
|
262
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING;
|
|
263
|
+
case 17:
|
|
264
|
+
case "SECURITY_TRADING_STATUS_STABILIZATION_AUCTION":
|
|
265
|
+
return SecurityTradingStatus.SECURITY_TRADING_STATUS_STABILIZATION_AUCTION;
|
|
266
|
+
case -1:
|
|
267
|
+
case "UNRECOGNIZED":
|
|
268
|
+
default:
|
|
269
|
+
return SecurityTradingStatus.UNRECOGNIZED;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
function securityTradingStatusToJSON(object) {
|
|
273
|
+
switch (object) {
|
|
274
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_UNSPECIFIED:
|
|
275
|
+
return "SECURITY_TRADING_STATUS_UNSPECIFIED";
|
|
276
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING:
|
|
277
|
+
return "SECURITY_TRADING_STATUS_NOT_AVAILABLE_FOR_TRADING";
|
|
278
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_OPENING_PERIOD:
|
|
279
|
+
return "SECURITY_TRADING_STATUS_OPENING_PERIOD";
|
|
280
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_CLOSING_PERIOD:
|
|
281
|
+
return "SECURITY_TRADING_STATUS_CLOSING_PERIOD";
|
|
282
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_BREAK_IN_TRADING:
|
|
283
|
+
return "SECURITY_TRADING_STATUS_BREAK_IN_TRADING";
|
|
284
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_NORMAL_TRADING:
|
|
285
|
+
return "SECURITY_TRADING_STATUS_NORMAL_TRADING";
|
|
286
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_CLOSING_AUCTION:
|
|
287
|
+
return "SECURITY_TRADING_STATUS_CLOSING_AUCTION";
|
|
288
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_DARK_POOL_AUCTION:
|
|
289
|
+
return "SECURITY_TRADING_STATUS_DARK_POOL_AUCTION";
|
|
290
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_DISCRETE_AUCTION:
|
|
291
|
+
return "SECURITY_TRADING_STATUS_DISCRETE_AUCTION";
|
|
292
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD:
|
|
293
|
+
return "SECURITY_TRADING_STATUS_OPENING_AUCTION_PERIOD";
|
|
294
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE:
|
|
295
|
+
return "SECURITY_TRADING_STATUS_TRADING_AT_CLOSING_AUCTION_PRICE";
|
|
296
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_SESSION_ASSIGNED:
|
|
297
|
+
return "SECURITY_TRADING_STATUS_SESSION_ASSIGNED";
|
|
298
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_SESSION_CLOSE:
|
|
299
|
+
return "SECURITY_TRADING_STATUS_SESSION_CLOSE";
|
|
300
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_SESSION_OPEN:
|
|
301
|
+
return "SECURITY_TRADING_STATUS_SESSION_OPEN";
|
|
302
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING:
|
|
303
|
+
return "SECURITY_TRADING_STATUS_DEALER_NORMAL_TRADING";
|
|
304
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING:
|
|
305
|
+
return "SECURITY_TRADING_STATUS_DEALER_BREAK_IN_TRADING";
|
|
306
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING:
|
|
307
|
+
return "SECURITY_TRADING_STATUS_DEALER_NOT_AVAILABLE_FOR_TRADING";
|
|
308
|
+
case SecurityTradingStatus.SECURITY_TRADING_STATUS_STABILIZATION_AUCTION:
|
|
309
|
+
return "SECURITY_TRADING_STATUS_STABILIZATION_AUCTION";
|
|
310
|
+
case SecurityTradingStatus.UNRECOGNIZED:
|
|
311
|
+
default:
|
|
312
|
+
return "UNRECOGNIZED";
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/** Тип цены. */
|
|
316
|
+
var PriceType;
|
|
317
|
+
(function (PriceType) {
|
|
318
|
+
/** PRICE_TYPE_UNSPECIFIED - Значение не определено. */
|
|
319
|
+
PriceType[PriceType["PRICE_TYPE_UNSPECIFIED"] = 0] = "PRICE_TYPE_UNSPECIFIED";
|
|
320
|
+
/** PRICE_TYPE_POINT - Цена в пунктах (только для фьючерсов и облигаций). */
|
|
321
|
+
PriceType[PriceType["PRICE_TYPE_POINT"] = 1] = "PRICE_TYPE_POINT";
|
|
322
|
+
/** PRICE_TYPE_CURRENCY - Цена в валюте расчетов по инструменту. */
|
|
323
|
+
PriceType[PriceType["PRICE_TYPE_CURRENCY"] = 2] = "PRICE_TYPE_CURRENCY";
|
|
324
|
+
PriceType[PriceType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
325
|
+
})(PriceType || (exports.PriceType = PriceType = {}));
|
|
326
|
+
function priceTypeFromJSON(object) {
|
|
327
|
+
switch (object) {
|
|
328
|
+
case 0:
|
|
329
|
+
case "PRICE_TYPE_UNSPECIFIED":
|
|
330
|
+
return PriceType.PRICE_TYPE_UNSPECIFIED;
|
|
331
|
+
case 1:
|
|
332
|
+
case "PRICE_TYPE_POINT":
|
|
333
|
+
return PriceType.PRICE_TYPE_POINT;
|
|
334
|
+
case 2:
|
|
335
|
+
case "PRICE_TYPE_CURRENCY":
|
|
336
|
+
return PriceType.PRICE_TYPE_CURRENCY;
|
|
337
|
+
case -1:
|
|
338
|
+
case "UNRECOGNIZED":
|
|
339
|
+
default:
|
|
340
|
+
return PriceType.UNRECOGNIZED;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function priceTypeToJSON(object) {
|
|
344
|
+
switch (object) {
|
|
345
|
+
case PriceType.PRICE_TYPE_UNSPECIFIED:
|
|
346
|
+
return "PRICE_TYPE_UNSPECIFIED";
|
|
347
|
+
case PriceType.PRICE_TYPE_POINT:
|
|
348
|
+
return "PRICE_TYPE_POINT";
|
|
349
|
+
case PriceType.PRICE_TYPE_CURRENCY:
|
|
350
|
+
return "PRICE_TYPE_CURRENCY";
|
|
351
|
+
case PriceType.UNRECOGNIZED:
|
|
352
|
+
default:
|
|
353
|
+
return "UNRECOGNIZED";
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
var ResultSubscriptionStatus;
|
|
357
|
+
(function (ResultSubscriptionStatus) {
|
|
358
|
+
/** RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED - Статус подписки не определен. */
|
|
359
|
+
ResultSubscriptionStatus[ResultSubscriptionStatus["RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED"] = 0] = "RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED";
|
|
360
|
+
/** RESULT_SUBSCRIPTION_STATUS_OK - Подписка успешно установлена. */
|
|
361
|
+
ResultSubscriptionStatus[ResultSubscriptionStatus["RESULT_SUBSCRIPTION_STATUS_OK"] = 1] = "RESULT_SUBSCRIPTION_STATUS_OK";
|
|
362
|
+
/** RESULT_SUBSCRIPTION_STATUS_ERROR - Ошибка подписки */
|
|
363
|
+
ResultSubscriptionStatus[ResultSubscriptionStatus["RESULT_SUBSCRIPTION_STATUS_ERROR"] = 13] = "RESULT_SUBSCRIPTION_STATUS_ERROR";
|
|
364
|
+
ResultSubscriptionStatus[ResultSubscriptionStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
365
|
+
})(ResultSubscriptionStatus || (exports.ResultSubscriptionStatus = ResultSubscriptionStatus = {}));
|
|
366
|
+
function resultSubscriptionStatusFromJSON(object) {
|
|
367
|
+
switch (object) {
|
|
368
|
+
case 0:
|
|
369
|
+
case "RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED":
|
|
370
|
+
return ResultSubscriptionStatus.RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED;
|
|
371
|
+
case 1:
|
|
372
|
+
case "RESULT_SUBSCRIPTION_STATUS_OK":
|
|
373
|
+
return ResultSubscriptionStatus.RESULT_SUBSCRIPTION_STATUS_OK;
|
|
374
|
+
case 13:
|
|
375
|
+
case "RESULT_SUBSCRIPTION_STATUS_ERROR":
|
|
376
|
+
return ResultSubscriptionStatus.RESULT_SUBSCRIPTION_STATUS_ERROR;
|
|
377
|
+
case -1:
|
|
378
|
+
case "UNRECOGNIZED":
|
|
379
|
+
default:
|
|
380
|
+
return ResultSubscriptionStatus.UNRECOGNIZED;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
function resultSubscriptionStatusToJSON(object) {
|
|
384
|
+
switch (object) {
|
|
385
|
+
case ResultSubscriptionStatus.RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED:
|
|
386
|
+
return "RESULT_SUBSCRIPTION_STATUS_UNSPECIFIED";
|
|
387
|
+
case ResultSubscriptionStatus.RESULT_SUBSCRIPTION_STATUS_OK:
|
|
388
|
+
return "RESULT_SUBSCRIPTION_STATUS_OK";
|
|
389
|
+
case ResultSubscriptionStatus.RESULT_SUBSCRIPTION_STATUS_ERROR:
|
|
390
|
+
return "RESULT_SUBSCRIPTION_STATUS_ERROR";
|
|
391
|
+
case ResultSubscriptionStatus.UNRECOGNIZED:
|
|
392
|
+
default:
|
|
393
|
+
return "UNRECOGNIZED";
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
/** Реальная площадка исполнения расчетов. */
|
|
397
|
+
var RealExchange;
|
|
398
|
+
(function (RealExchange) {
|
|
399
|
+
/** REAL_EXCHANGE_UNSPECIFIED - Тип не определен. */
|
|
400
|
+
RealExchange[RealExchange["REAL_EXCHANGE_UNSPECIFIED"] = 0] = "REAL_EXCHANGE_UNSPECIFIED";
|
|
401
|
+
/** REAL_EXCHANGE_MOEX - Московская биржа. */
|
|
402
|
+
RealExchange[RealExchange["REAL_EXCHANGE_MOEX"] = 1] = "REAL_EXCHANGE_MOEX";
|
|
403
|
+
/** REAL_EXCHANGE_RTS - Санкт-Петербургская биржа. */
|
|
404
|
+
RealExchange[RealExchange["REAL_EXCHANGE_RTS"] = 2] = "REAL_EXCHANGE_RTS";
|
|
405
|
+
/** REAL_EXCHANGE_OTC - Внебиржевой инструмент. */
|
|
406
|
+
RealExchange[RealExchange["REAL_EXCHANGE_OTC"] = 3] = "REAL_EXCHANGE_OTC";
|
|
407
|
+
/** REAL_EXCHANGE_DEALER - Инструмент, торгуемый на площадке брокера. */
|
|
408
|
+
RealExchange[RealExchange["REAL_EXCHANGE_DEALER"] = 4] = "REAL_EXCHANGE_DEALER";
|
|
409
|
+
RealExchange[RealExchange["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
410
|
+
})(RealExchange || (exports.RealExchange = RealExchange = {}));
|
|
411
|
+
function realExchangeFromJSON(object) {
|
|
412
|
+
switch (object) {
|
|
413
|
+
case 0:
|
|
414
|
+
case "REAL_EXCHANGE_UNSPECIFIED":
|
|
415
|
+
return RealExchange.REAL_EXCHANGE_UNSPECIFIED;
|
|
416
|
+
case 1:
|
|
417
|
+
case "REAL_EXCHANGE_MOEX":
|
|
418
|
+
return RealExchange.REAL_EXCHANGE_MOEX;
|
|
419
|
+
case 2:
|
|
420
|
+
case "REAL_EXCHANGE_RTS":
|
|
421
|
+
return RealExchange.REAL_EXCHANGE_RTS;
|
|
422
|
+
case 3:
|
|
423
|
+
case "REAL_EXCHANGE_OTC":
|
|
424
|
+
return RealExchange.REAL_EXCHANGE_OTC;
|
|
425
|
+
case 4:
|
|
426
|
+
case "REAL_EXCHANGE_DEALER":
|
|
427
|
+
return RealExchange.REAL_EXCHANGE_DEALER;
|
|
428
|
+
case -1:
|
|
429
|
+
case "UNRECOGNIZED":
|
|
430
|
+
default:
|
|
431
|
+
return RealExchange.UNRECOGNIZED;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
function realExchangeToJSON(object) {
|
|
435
|
+
switch (object) {
|
|
436
|
+
case RealExchange.REAL_EXCHANGE_UNSPECIFIED:
|
|
437
|
+
return "REAL_EXCHANGE_UNSPECIFIED";
|
|
438
|
+
case RealExchange.REAL_EXCHANGE_MOEX:
|
|
439
|
+
return "REAL_EXCHANGE_MOEX";
|
|
440
|
+
case RealExchange.REAL_EXCHANGE_RTS:
|
|
441
|
+
return "REAL_EXCHANGE_RTS";
|
|
442
|
+
case RealExchange.REAL_EXCHANGE_OTC:
|
|
443
|
+
return "REAL_EXCHANGE_OTC";
|
|
444
|
+
case RealExchange.REAL_EXCHANGE_DEALER:
|
|
445
|
+
return "REAL_EXCHANGE_DEALER";
|
|
446
|
+
case RealExchange.UNRECOGNIZED:
|
|
447
|
+
default:
|
|
448
|
+
return "UNRECOGNIZED";
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
function createBaseMoneyValue() {
|
|
452
|
+
return { currency: "", units: 0, nano: 0 };
|
|
453
|
+
}
|
|
454
|
+
exports.MoneyValue = {
|
|
455
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
456
|
+
if (message.currency !== "") {
|
|
457
|
+
writer.uint32(10).string(message.currency);
|
|
458
|
+
}
|
|
459
|
+
if (message.units !== 0) {
|
|
460
|
+
writer.uint32(16).int64(message.units);
|
|
461
|
+
}
|
|
462
|
+
if (message.nano !== 0) {
|
|
463
|
+
writer.uint32(24).int32(message.nano);
|
|
464
|
+
}
|
|
465
|
+
return writer;
|
|
466
|
+
},
|
|
467
|
+
decode(input, length) {
|
|
468
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
469
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
470
|
+
if (previousRecursionDepth >= 100) {
|
|
471
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
472
|
+
}
|
|
473
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
474
|
+
try {
|
|
475
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
476
|
+
const message = createBaseMoneyValue();
|
|
477
|
+
while (reader.pos < end) {
|
|
478
|
+
const tag = reader.uint32();
|
|
479
|
+
switch (tag >>> 3) {
|
|
480
|
+
case 1: {
|
|
481
|
+
if (tag !== 10) {
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
message.currency = reader.string();
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
case 2: {
|
|
488
|
+
if (tag !== 16) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
message.units = longToNumber(reader.int64());
|
|
492
|
+
continue;
|
|
493
|
+
}
|
|
494
|
+
case 3: {
|
|
495
|
+
if (tag !== 24) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
message.nano = reader.int32();
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
503
|
+
break;
|
|
504
|
+
}
|
|
505
|
+
reader.skip(tag & 7);
|
|
506
|
+
}
|
|
507
|
+
return message;
|
|
508
|
+
}
|
|
509
|
+
finally {
|
|
510
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
fromJSON(object) {
|
|
514
|
+
return {
|
|
515
|
+
currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
|
|
516
|
+
units: isSet(object.units) ? globalThis.Number(object.units) : 0,
|
|
517
|
+
nano: isSet(object.nano) ? globalThis.Number(object.nano) : 0,
|
|
518
|
+
};
|
|
519
|
+
},
|
|
520
|
+
toJSON(message) {
|
|
521
|
+
const obj = {};
|
|
522
|
+
if (message.currency !== "") {
|
|
523
|
+
obj.currency = message.currency;
|
|
524
|
+
}
|
|
525
|
+
if (message.units !== 0) {
|
|
526
|
+
obj.units = Math.round(message.units);
|
|
527
|
+
}
|
|
528
|
+
if (message.nano !== 0) {
|
|
529
|
+
obj.nano = Math.round(message.nano);
|
|
530
|
+
}
|
|
531
|
+
return obj;
|
|
532
|
+
},
|
|
533
|
+
create(base) {
|
|
534
|
+
return exports.MoneyValue.fromPartial(base ?? {});
|
|
535
|
+
},
|
|
536
|
+
fromPartial(object) {
|
|
537
|
+
const message = createBaseMoneyValue();
|
|
538
|
+
message.currency = object.currency ?? "";
|
|
539
|
+
message.units = object.units ?? 0;
|
|
540
|
+
message.nano = object.nano ?? 0;
|
|
541
|
+
return message;
|
|
542
|
+
},
|
|
543
|
+
};
|
|
544
|
+
function createBaseQuotation() {
|
|
545
|
+
return { units: 0, nano: 0 };
|
|
546
|
+
}
|
|
547
|
+
exports.Quotation = {
|
|
548
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
549
|
+
if (message.units !== 0) {
|
|
550
|
+
writer.uint32(8).int64(message.units);
|
|
551
|
+
}
|
|
552
|
+
if (message.nano !== 0) {
|
|
553
|
+
writer.uint32(16).int32(message.nano);
|
|
554
|
+
}
|
|
555
|
+
return writer;
|
|
556
|
+
},
|
|
557
|
+
decode(input, length) {
|
|
558
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
559
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
560
|
+
if (previousRecursionDepth >= 100) {
|
|
561
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
562
|
+
}
|
|
563
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
564
|
+
try {
|
|
565
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
566
|
+
const message = createBaseQuotation();
|
|
567
|
+
while (reader.pos < end) {
|
|
568
|
+
const tag = reader.uint32();
|
|
569
|
+
switch (tag >>> 3) {
|
|
570
|
+
case 1: {
|
|
571
|
+
if (tag !== 8) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
message.units = longToNumber(reader.int64());
|
|
575
|
+
continue;
|
|
576
|
+
}
|
|
577
|
+
case 2: {
|
|
578
|
+
if (tag !== 16) {
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
message.nano = reader.int32();
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
reader.skip(tag & 7);
|
|
589
|
+
}
|
|
590
|
+
return message;
|
|
591
|
+
}
|
|
592
|
+
finally {
|
|
593
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
fromJSON(object) {
|
|
597
|
+
return {
|
|
598
|
+
units: isSet(object.units) ? globalThis.Number(object.units) : 0,
|
|
599
|
+
nano: isSet(object.nano) ? globalThis.Number(object.nano) : 0,
|
|
600
|
+
};
|
|
601
|
+
},
|
|
602
|
+
toJSON(message) {
|
|
603
|
+
const obj = {};
|
|
604
|
+
if (message.units !== 0) {
|
|
605
|
+
obj.units = Math.round(message.units);
|
|
606
|
+
}
|
|
607
|
+
if (message.nano !== 0) {
|
|
608
|
+
obj.nano = Math.round(message.nano);
|
|
609
|
+
}
|
|
610
|
+
return obj;
|
|
611
|
+
},
|
|
612
|
+
create(base) {
|
|
613
|
+
return exports.Quotation.fromPartial(base ?? {});
|
|
614
|
+
},
|
|
615
|
+
fromPartial(object) {
|
|
616
|
+
const message = createBaseQuotation();
|
|
617
|
+
message.units = object.units ?? 0;
|
|
618
|
+
message.nano = object.nano ?? 0;
|
|
619
|
+
return message;
|
|
620
|
+
},
|
|
621
|
+
};
|
|
622
|
+
function createBasePingRequest() {
|
|
623
|
+
return { time: undefined };
|
|
624
|
+
}
|
|
625
|
+
exports.PingRequest = {
|
|
626
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
627
|
+
if (message.time !== undefined) {
|
|
628
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).join();
|
|
629
|
+
}
|
|
630
|
+
return writer;
|
|
631
|
+
},
|
|
632
|
+
decode(input, length) {
|
|
633
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
634
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
635
|
+
if (previousRecursionDepth >= 100) {
|
|
636
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
637
|
+
}
|
|
638
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
639
|
+
try {
|
|
640
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
641
|
+
const message = createBasePingRequest();
|
|
642
|
+
while (reader.pos < end) {
|
|
643
|
+
const tag = reader.uint32();
|
|
644
|
+
switch (tag >>> 3) {
|
|
645
|
+
case 1: {
|
|
646
|
+
if (tag !== 10) {
|
|
647
|
+
break;
|
|
648
|
+
}
|
|
649
|
+
message.time = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
650
|
+
continue;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
654
|
+
break;
|
|
655
|
+
}
|
|
656
|
+
reader.skip(tag & 7);
|
|
657
|
+
}
|
|
658
|
+
return message;
|
|
659
|
+
}
|
|
660
|
+
finally {
|
|
661
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
fromJSON(object) {
|
|
665
|
+
return { time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined };
|
|
666
|
+
},
|
|
667
|
+
toJSON(message) {
|
|
668
|
+
const obj = {};
|
|
669
|
+
if (message.time !== undefined) {
|
|
670
|
+
obj.time = message.time.toISOString();
|
|
671
|
+
}
|
|
672
|
+
return obj;
|
|
673
|
+
},
|
|
674
|
+
create(base) {
|
|
675
|
+
return exports.PingRequest.fromPartial(base ?? {});
|
|
676
|
+
},
|
|
677
|
+
fromPartial(object) {
|
|
678
|
+
const message = createBasePingRequest();
|
|
679
|
+
message.time = object.time ?? undefined;
|
|
680
|
+
return message;
|
|
681
|
+
},
|
|
682
|
+
};
|
|
683
|
+
function createBasePingDelaySettings() {
|
|
684
|
+
return { pingDelayMs: undefined };
|
|
685
|
+
}
|
|
686
|
+
exports.PingDelaySettings = {
|
|
687
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
688
|
+
if (message.pingDelayMs !== undefined) {
|
|
689
|
+
writer.uint32(120).int32(message.pingDelayMs);
|
|
690
|
+
}
|
|
691
|
+
return writer;
|
|
692
|
+
},
|
|
693
|
+
decode(input, length) {
|
|
694
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
695
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
696
|
+
if (previousRecursionDepth >= 100) {
|
|
697
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
698
|
+
}
|
|
699
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
700
|
+
try {
|
|
701
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
702
|
+
const message = createBasePingDelaySettings();
|
|
703
|
+
while (reader.pos < end) {
|
|
704
|
+
const tag = reader.uint32();
|
|
705
|
+
switch (tag >>> 3) {
|
|
706
|
+
case 15: {
|
|
707
|
+
if (tag !== 120) {
|
|
708
|
+
break;
|
|
709
|
+
}
|
|
710
|
+
message.pingDelayMs = reader.int32();
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
reader.skip(tag & 7);
|
|
718
|
+
}
|
|
719
|
+
return message;
|
|
720
|
+
}
|
|
721
|
+
finally {
|
|
722
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
fromJSON(object) {
|
|
726
|
+
return {
|
|
727
|
+
pingDelayMs: isSet(object.pingDelayMs)
|
|
728
|
+
? globalThis.Number(object.pingDelayMs)
|
|
729
|
+
: isSet(object.ping_delay_ms)
|
|
730
|
+
? globalThis.Number(object.ping_delay_ms)
|
|
731
|
+
: undefined,
|
|
732
|
+
};
|
|
733
|
+
},
|
|
734
|
+
toJSON(message) {
|
|
735
|
+
const obj = {};
|
|
736
|
+
if (message.pingDelayMs !== undefined) {
|
|
737
|
+
obj.pingDelayMs = Math.round(message.pingDelayMs);
|
|
738
|
+
}
|
|
739
|
+
return obj;
|
|
740
|
+
},
|
|
741
|
+
create(base) {
|
|
742
|
+
return exports.PingDelaySettings.fromPartial(base ?? {});
|
|
743
|
+
},
|
|
744
|
+
fromPartial(object) {
|
|
745
|
+
const message = createBasePingDelaySettings();
|
|
746
|
+
message.pingDelayMs = object.pingDelayMs ?? undefined;
|
|
747
|
+
return message;
|
|
748
|
+
},
|
|
749
|
+
};
|
|
750
|
+
function createBasePing() {
|
|
751
|
+
return { time: undefined, streamId: "", pingRequestTime: undefined };
|
|
752
|
+
}
|
|
753
|
+
exports.Ping = {
|
|
754
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
755
|
+
if (message.time !== undefined) {
|
|
756
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.time), writer.uint32(10).fork()).join();
|
|
757
|
+
}
|
|
758
|
+
if (message.streamId !== "") {
|
|
759
|
+
writer.uint32(18).string(message.streamId);
|
|
760
|
+
}
|
|
761
|
+
if (message.pingRequestTime !== undefined) {
|
|
762
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.pingRequestTime), writer.uint32(34).fork()).join();
|
|
763
|
+
}
|
|
764
|
+
return writer;
|
|
765
|
+
},
|
|
766
|
+
decode(input, length) {
|
|
767
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
768
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
769
|
+
if (previousRecursionDepth >= 100) {
|
|
770
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
771
|
+
}
|
|
772
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
773
|
+
try {
|
|
774
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
775
|
+
const message = createBasePing();
|
|
776
|
+
while (reader.pos < end) {
|
|
777
|
+
const tag = reader.uint32();
|
|
778
|
+
switch (tag >>> 3) {
|
|
779
|
+
case 1: {
|
|
780
|
+
if (tag !== 10) {
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
message.time = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
784
|
+
continue;
|
|
785
|
+
}
|
|
786
|
+
case 2: {
|
|
787
|
+
if (tag !== 18) {
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
message.streamId = reader.string();
|
|
791
|
+
continue;
|
|
792
|
+
}
|
|
793
|
+
case 4: {
|
|
794
|
+
if (tag !== 34) {
|
|
795
|
+
break;
|
|
796
|
+
}
|
|
797
|
+
message.pingRequestTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
798
|
+
continue;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
reader.skip(tag & 7);
|
|
805
|
+
}
|
|
806
|
+
return message;
|
|
807
|
+
}
|
|
808
|
+
finally {
|
|
809
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
fromJSON(object) {
|
|
813
|
+
return {
|
|
814
|
+
time: isSet(object.time) ? fromJsonTimestamp(object.time) : undefined,
|
|
815
|
+
streamId: isSet(object.streamId)
|
|
816
|
+
? globalThis.String(object.streamId)
|
|
817
|
+
: isSet(object.stream_id)
|
|
818
|
+
? globalThis.String(object.stream_id)
|
|
819
|
+
: "",
|
|
820
|
+
pingRequestTime: isSet(object.pingRequestTime)
|
|
821
|
+
? fromJsonTimestamp(object.pingRequestTime)
|
|
822
|
+
: isSet(object.ping_request_time)
|
|
823
|
+
? fromJsonTimestamp(object.ping_request_time)
|
|
824
|
+
: undefined,
|
|
825
|
+
};
|
|
826
|
+
},
|
|
827
|
+
toJSON(message) {
|
|
828
|
+
const obj = {};
|
|
829
|
+
if (message.time !== undefined) {
|
|
830
|
+
obj.time = message.time.toISOString();
|
|
831
|
+
}
|
|
832
|
+
if (message.streamId !== "") {
|
|
833
|
+
obj.streamId = message.streamId;
|
|
834
|
+
}
|
|
835
|
+
if (message.pingRequestTime !== undefined) {
|
|
836
|
+
obj.pingRequestTime = message.pingRequestTime.toISOString();
|
|
837
|
+
}
|
|
838
|
+
return obj;
|
|
839
|
+
},
|
|
840
|
+
create(base) {
|
|
841
|
+
return exports.Ping.fromPartial(base ?? {});
|
|
842
|
+
},
|
|
843
|
+
fromPartial(object) {
|
|
844
|
+
const message = createBasePing();
|
|
845
|
+
message.time = object.time ?? undefined;
|
|
846
|
+
message.streamId = object.streamId ?? "";
|
|
847
|
+
message.pingRequestTime = object.pingRequestTime ?? undefined;
|
|
848
|
+
return message;
|
|
849
|
+
},
|
|
850
|
+
};
|
|
851
|
+
function createBasePage() {
|
|
852
|
+
return { limit: 0, pageNumber: 0 };
|
|
853
|
+
}
|
|
854
|
+
exports.Page = {
|
|
855
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
856
|
+
if (message.limit !== 0) {
|
|
857
|
+
writer.uint32(8).int32(message.limit);
|
|
858
|
+
}
|
|
859
|
+
if (message.pageNumber !== 0) {
|
|
860
|
+
writer.uint32(16).int32(message.pageNumber);
|
|
861
|
+
}
|
|
862
|
+
return writer;
|
|
863
|
+
},
|
|
864
|
+
decode(input, length) {
|
|
865
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
866
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
867
|
+
if (previousRecursionDepth >= 100) {
|
|
868
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
869
|
+
}
|
|
870
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
871
|
+
try {
|
|
872
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
873
|
+
const message = createBasePage();
|
|
874
|
+
while (reader.pos < end) {
|
|
875
|
+
const tag = reader.uint32();
|
|
876
|
+
switch (tag >>> 3) {
|
|
877
|
+
case 1: {
|
|
878
|
+
if (tag !== 8) {
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
message.limit = reader.int32();
|
|
882
|
+
continue;
|
|
883
|
+
}
|
|
884
|
+
case 2: {
|
|
885
|
+
if (tag !== 16) {
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
message.pageNumber = reader.int32();
|
|
889
|
+
continue;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
reader.skip(tag & 7);
|
|
896
|
+
}
|
|
897
|
+
return message;
|
|
898
|
+
}
|
|
899
|
+
finally {
|
|
900
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
fromJSON(object) {
|
|
904
|
+
return {
|
|
905
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
906
|
+
pageNumber: isSet(object.pageNumber)
|
|
907
|
+
? globalThis.Number(object.pageNumber)
|
|
908
|
+
: isSet(object.page_number)
|
|
909
|
+
? globalThis.Number(object.page_number)
|
|
910
|
+
: 0,
|
|
911
|
+
};
|
|
912
|
+
},
|
|
913
|
+
toJSON(message) {
|
|
914
|
+
const obj = {};
|
|
915
|
+
if (message.limit !== 0) {
|
|
916
|
+
obj.limit = Math.round(message.limit);
|
|
917
|
+
}
|
|
918
|
+
if (message.pageNumber !== 0) {
|
|
919
|
+
obj.pageNumber = Math.round(message.pageNumber);
|
|
920
|
+
}
|
|
921
|
+
return obj;
|
|
922
|
+
},
|
|
923
|
+
create(base) {
|
|
924
|
+
return exports.Page.fromPartial(base ?? {});
|
|
925
|
+
},
|
|
926
|
+
fromPartial(object) {
|
|
927
|
+
const message = createBasePage();
|
|
928
|
+
message.limit = object.limit ?? 0;
|
|
929
|
+
message.pageNumber = object.pageNumber ?? 0;
|
|
930
|
+
return message;
|
|
931
|
+
},
|
|
932
|
+
};
|
|
933
|
+
function createBasePageResponse() {
|
|
934
|
+
return { limit: 0, pageNumber: 0, totalCount: 0 };
|
|
935
|
+
}
|
|
936
|
+
exports.PageResponse = {
|
|
937
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
938
|
+
if (message.limit !== 0) {
|
|
939
|
+
writer.uint32(8).int32(message.limit);
|
|
940
|
+
}
|
|
941
|
+
if (message.pageNumber !== 0) {
|
|
942
|
+
writer.uint32(16).int32(message.pageNumber);
|
|
943
|
+
}
|
|
944
|
+
if (message.totalCount !== 0) {
|
|
945
|
+
writer.uint32(24).int32(message.totalCount);
|
|
946
|
+
}
|
|
947
|
+
return writer;
|
|
948
|
+
},
|
|
949
|
+
decode(input, length) {
|
|
950
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
951
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
952
|
+
if (previousRecursionDepth >= 100) {
|
|
953
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
954
|
+
}
|
|
955
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
956
|
+
try {
|
|
957
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
958
|
+
const message = createBasePageResponse();
|
|
959
|
+
while (reader.pos < end) {
|
|
960
|
+
const tag = reader.uint32();
|
|
961
|
+
switch (tag >>> 3) {
|
|
962
|
+
case 1: {
|
|
963
|
+
if (tag !== 8) {
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
message.limit = reader.int32();
|
|
967
|
+
continue;
|
|
968
|
+
}
|
|
969
|
+
case 2: {
|
|
970
|
+
if (tag !== 16) {
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
message.pageNumber = reader.int32();
|
|
974
|
+
continue;
|
|
975
|
+
}
|
|
976
|
+
case 3: {
|
|
977
|
+
if (tag !== 24) {
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
message.totalCount = reader.int32();
|
|
981
|
+
continue;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985
|
+
break;
|
|
986
|
+
}
|
|
987
|
+
reader.skip(tag & 7);
|
|
988
|
+
}
|
|
989
|
+
return message;
|
|
990
|
+
}
|
|
991
|
+
finally {
|
|
992
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
fromJSON(object) {
|
|
996
|
+
return {
|
|
997
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
998
|
+
pageNumber: isSet(object.pageNumber)
|
|
999
|
+
? globalThis.Number(object.pageNumber)
|
|
1000
|
+
: isSet(object.page_number)
|
|
1001
|
+
? globalThis.Number(object.page_number)
|
|
1002
|
+
: 0,
|
|
1003
|
+
totalCount: isSet(object.totalCount)
|
|
1004
|
+
? globalThis.Number(object.totalCount)
|
|
1005
|
+
: isSet(object.total_count)
|
|
1006
|
+
? globalThis.Number(object.total_count)
|
|
1007
|
+
: 0,
|
|
1008
|
+
};
|
|
1009
|
+
},
|
|
1010
|
+
toJSON(message) {
|
|
1011
|
+
const obj = {};
|
|
1012
|
+
if (message.limit !== 0) {
|
|
1013
|
+
obj.limit = Math.round(message.limit);
|
|
1014
|
+
}
|
|
1015
|
+
if (message.pageNumber !== 0) {
|
|
1016
|
+
obj.pageNumber = Math.round(message.pageNumber);
|
|
1017
|
+
}
|
|
1018
|
+
if (message.totalCount !== 0) {
|
|
1019
|
+
obj.totalCount = Math.round(message.totalCount);
|
|
1020
|
+
}
|
|
1021
|
+
return obj;
|
|
1022
|
+
},
|
|
1023
|
+
create(base) {
|
|
1024
|
+
return exports.PageResponse.fromPartial(base ?? {});
|
|
1025
|
+
},
|
|
1026
|
+
fromPartial(object) {
|
|
1027
|
+
const message = createBasePageResponse();
|
|
1028
|
+
message.limit = object.limit ?? 0;
|
|
1029
|
+
message.pageNumber = object.pageNumber ?? 0;
|
|
1030
|
+
message.totalCount = object.totalCount ?? 0;
|
|
1031
|
+
return message;
|
|
1032
|
+
},
|
|
1033
|
+
};
|
|
1034
|
+
function createBaseResponseMetadata() {
|
|
1035
|
+
return { trackingId: "", serverTime: undefined };
|
|
1036
|
+
}
|
|
1037
|
+
exports.ResponseMetadata = {
|
|
1038
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1039
|
+
if (message.trackingId !== "") {
|
|
1040
|
+
writer.uint32(338).string(message.trackingId);
|
|
1041
|
+
}
|
|
1042
|
+
if (message.serverTime !== undefined) {
|
|
1043
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.serverTime), writer.uint32(346).fork()).join();
|
|
1044
|
+
}
|
|
1045
|
+
return writer;
|
|
1046
|
+
},
|
|
1047
|
+
decode(input, length) {
|
|
1048
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1049
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1050
|
+
if (previousRecursionDepth >= 100) {
|
|
1051
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1052
|
+
}
|
|
1053
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1054
|
+
try {
|
|
1055
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1056
|
+
const message = createBaseResponseMetadata();
|
|
1057
|
+
while (reader.pos < end) {
|
|
1058
|
+
const tag = reader.uint32();
|
|
1059
|
+
switch (tag >>> 3) {
|
|
1060
|
+
case 42: {
|
|
1061
|
+
if (tag !== 338) {
|
|
1062
|
+
break;
|
|
1063
|
+
}
|
|
1064
|
+
message.trackingId = reader.string();
|
|
1065
|
+
continue;
|
|
1066
|
+
}
|
|
1067
|
+
case 43: {
|
|
1068
|
+
if (tag !== 346) {
|
|
1069
|
+
break;
|
|
1070
|
+
}
|
|
1071
|
+
message.serverTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1072
|
+
continue;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1076
|
+
break;
|
|
1077
|
+
}
|
|
1078
|
+
reader.skip(tag & 7);
|
|
1079
|
+
}
|
|
1080
|
+
return message;
|
|
1081
|
+
}
|
|
1082
|
+
finally {
|
|
1083
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
fromJSON(object) {
|
|
1087
|
+
return {
|
|
1088
|
+
trackingId: isSet(object.trackingId)
|
|
1089
|
+
? globalThis.String(object.trackingId)
|
|
1090
|
+
: isSet(object.tracking_id)
|
|
1091
|
+
? globalThis.String(object.tracking_id)
|
|
1092
|
+
: "",
|
|
1093
|
+
serverTime: isSet(object.serverTime)
|
|
1094
|
+
? fromJsonTimestamp(object.serverTime)
|
|
1095
|
+
: isSet(object.server_time)
|
|
1096
|
+
? fromJsonTimestamp(object.server_time)
|
|
1097
|
+
: undefined,
|
|
1098
|
+
};
|
|
1099
|
+
},
|
|
1100
|
+
toJSON(message) {
|
|
1101
|
+
const obj = {};
|
|
1102
|
+
if (message.trackingId !== "") {
|
|
1103
|
+
obj.trackingId = message.trackingId;
|
|
1104
|
+
}
|
|
1105
|
+
if (message.serverTime !== undefined) {
|
|
1106
|
+
obj.serverTime = message.serverTime.toISOString();
|
|
1107
|
+
}
|
|
1108
|
+
return obj;
|
|
1109
|
+
},
|
|
1110
|
+
create(base) {
|
|
1111
|
+
return exports.ResponseMetadata.fromPartial(base ?? {});
|
|
1112
|
+
},
|
|
1113
|
+
fromPartial(object) {
|
|
1114
|
+
const message = createBaseResponseMetadata();
|
|
1115
|
+
message.trackingId = object.trackingId ?? "";
|
|
1116
|
+
message.serverTime = object.serverTime ?? undefined;
|
|
1117
|
+
return message;
|
|
1118
|
+
},
|
|
1119
|
+
};
|
|
1120
|
+
function createBaseBrandData() {
|
|
1121
|
+
return { logoName: "", logoBaseColor: "", textColor: "" };
|
|
1122
|
+
}
|
|
1123
|
+
exports.BrandData = {
|
|
1124
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1125
|
+
if (message.logoName !== "") {
|
|
1126
|
+
writer.uint32(10).string(message.logoName);
|
|
1127
|
+
}
|
|
1128
|
+
if (message.logoBaseColor !== "") {
|
|
1129
|
+
writer.uint32(18).string(message.logoBaseColor);
|
|
1130
|
+
}
|
|
1131
|
+
if (message.textColor !== "") {
|
|
1132
|
+
writer.uint32(26).string(message.textColor);
|
|
1133
|
+
}
|
|
1134
|
+
return writer;
|
|
1135
|
+
},
|
|
1136
|
+
decode(input, length) {
|
|
1137
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1138
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1139
|
+
if (previousRecursionDepth >= 100) {
|
|
1140
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1141
|
+
}
|
|
1142
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1143
|
+
try {
|
|
1144
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1145
|
+
const message = createBaseBrandData();
|
|
1146
|
+
while (reader.pos < end) {
|
|
1147
|
+
const tag = reader.uint32();
|
|
1148
|
+
switch (tag >>> 3) {
|
|
1149
|
+
case 1: {
|
|
1150
|
+
if (tag !== 10) {
|
|
1151
|
+
break;
|
|
1152
|
+
}
|
|
1153
|
+
message.logoName = reader.string();
|
|
1154
|
+
continue;
|
|
1155
|
+
}
|
|
1156
|
+
case 2: {
|
|
1157
|
+
if (tag !== 18) {
|
|
1158
|
+
break;
|
|
1159
|
+
}
|
|
1160
|
+
message.logoBaseColor = reader.string();
|
|
1161
|
+
continue;
|
|
1162
|
+
}
|
|
1163
|
+
case 3: {
|
|
1164
|
+
if (tag !== 26) {
|
|
1165
|
+
break;
|
|
1166
|
+
}
|
|
1167
|
+
message.textColor = reader.string();
|
|
1168
|
+
continue;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1172
|
+
break;
|
|
1173
|
+
}
|
|
1174
|
+
reader.skip(tag & 7);
|
|
1175
|
+
}
|
|
1176
|
+
return message;
|
|
1177
|
+
}
|
|
1178
|
+
finally {
|
|
1179
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
fromJSON(object) {
|
|
1183
|
+
return {
|
|
1184
|
+
logoName: isSet(object.logoName)
|
|
1185
|
+
? globalThis.String(object.logoName)
|
|
1186
|
+
: isSet(object.logo_name)
|
|
1187
|
+
? globalThis.String(object.logo_name)
|
|
1188
|
+
: "",
|
|
1189
|
+
logoBaseColor: isSet(object.logoBaseColor)
|
|
1190
|
+
? globalThis.String(object.logoBaseColor)
|
|
1191
|
+
: isSet(object.logo_base_color)
|
|
1192
|
+
? globalThis.String(object.logo_base_color)
|
|
1193
|
+
: "",
|
|
1194
|
+
textColor: isSet(object.textColor)
|
|
1195
|
+
? globalThis.String(object.textColor)
|
|
1196
|
+
: isSet(object.text_color)
|
|
1197
|
+
? globalThis.String(object.text_color)
|
|
1198
|
+
: "",
|
|
1199
|
+
};
|
|
1200
|
+
},
|
|
1201
|
+
toJSON(message) {
|
|
1202
|
+
const obj = {};
|
|
1203
|
+
if (message.logoName !== "") {
|
|
1204
|
+
obj.logoName = message.logoName;
|
|
1205
|
+
}
|
|
1206
|
+
if (message.logoBaseColor !== "") {
|
|
1207
|
+
obj.logoBaseColor = message.logoBaseColor;
|
|
1208
|
+
}
|
|
1209
|
+
if (message.textColor !== "") {
|
|
1210
|
+
obj.textColor = message.textColor;
|
|
1211
|
+
}
|
|
1212
|
+
return obj;
|
|
1213
|
+
},
|
|
1214
|
+
create(base) {
|
|
1215
|
+
return exports.BrandData.fromPartial(base ?? {});
|
|
1216
|
+
},
|
|
1217
|
+
fromPartial(object) {
|
|
1218
|
+
const message = createBaseBrandData();
|
|
1219
|
+
message.logoName = object.logoName ?? "";
|
|
1220
|
+
message.logoBaseColor = object.logoBaseColor ?? "";
|
|
1221
|
+
message.textColor = object.textColor ?? "";
|
|
1222
|
+
return message;
|
|
1223
|
+
},
|
|
1224
|
+
};
|
|
1225
|
+
function createBaseErrorDetail() {
|
|
1226
|
+
return { code: "", message: "" };
|
|
1227
|
+
}
|
|
1228
|
+
exports.ErrorDetail = {
|
|
1229
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1230
|
+
if (message.code !== "") {
|
|
1231
|
+
writer.uint32(10).string(message.code);
|
|
1232
|
+
}
|
|
1233
|
+
if (message.message !== "") {
|
|
1234
|
+
writer.uint32(26).string(message.message);
|
|
1235
|
+
}
|
|
1236
|
+
return writer;
|
|
1237
|
+
},
|
|
1238
|
+
decode(input, length) {
|
|
1239
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1240
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1241
|
+
if (previousRecursionDepth >= 100) {
|
|
1242
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1243
|
+
}
|
|
1244
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1245
|
+
try {
|
|
1246
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1247
|
+
const message = createBaseErrorDetail();
|
|
1248
|
+
while (reader.pos < end) {
|
|
1249
|
+
const tag = reader.uint32();
|
|
1250
|
+
switch (tag >>> 3) {
|
|
1251
|
+
case 1: {
|
|
1252
|
+
if (tag !== 10) {
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
message.code = reader.string();
|
|
1256
|
+
continue;
|
|
1257
|
+
}
|
|
1258
|
+
case 3: {
|
|
1259
|
+
if (tag !== 26) {
|
|
1260
|
+
break;
|
|
1261
|
+
}
|
|
1262
|
+
message.message = reader.string();
|
|
1263
|
+
continue;
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1267
|
+
break;
|
|
1268
|
+
}
|
|
1269
|
+
reader.skip(tag & 7);
|
|
1270
|
+
}
|
|
1271
|
+
return message;
|
|
1272
|
+
}
|
|
1273
|
+
finally {
|
|
1274
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
fromJSON(object) {
|
|
1278
|
+
return {
|
|
1279
|
+
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
1280
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
1281
|
+
};
|
|
1282
|
+
},
|
|
1283
|
+
toJSON(message) {
|
|
1284
|
+
const obj = {};
|
|
1285
|
+
if (message.code !== "") {
|
|
1286
|
+
obj.code = message.code;
|
|
1287
|
+
}
|
|
1288
|
+
if (message.message !== "") {
|
|
1289
|
+
obj.message = message.message;
|
|
1290
|
+
}
|
|
1291
|
+
return obj;
|
|
1292
|
+
},
|
|
1293
|
+
create(base) {
|
|
1294
|
+
return exports.ErrorDetail.fromPartial(base ?? {});
|
|
1295
|
+
},
|
|
1296
|
+
fromPartial(object) {
|
|
1297
|
+
const message = createBaseErrorDetail();
|
|
1298
|
+
message.code = object.code ?? "";
|
|
1299
|
+
message.message = object.message ?? "";
|
|
1300
|
+
return message;
|
|
1301
|
+
},
|
|
1302
|
+
};
|
|
1303
|
+
function toTimestamp(date) {
|
|
1304
|
+
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
1305
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
1306
|
+
return { seconds, nanos };
|
|
1307
|
+
}
|
|
1308
|
+
function fromTimestamp(t) {
|
|
1309
|
+
let millis = (t.seconds || 0) * 1_000;
|
|
1310
|
+
millis += (t.nanos || 0) / 1_000_000;
|
|
1311
|
+
return new globalThis.Date(millis);
|
|
1312
|
+
}
|
|
1313
|
+
function fromJsonTimestamp(o) {
|
|
1314
|
+
if (o instanceof globalThis.Date) {
|
|
1315
|
+
return o;
|
|
1316
|
+
}
|
|
1317
|
+
else if (typeof o === "string") {
|
|
1318
|
+
return new globalThis.Date(o);
|
|
1319
|
+
}
|
|
1320
|
+
else {
|
|
1321
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
function longToNumber(int64) {
|
|
1325
|
+
const num = globalThis.Number(int64.toString());
|
|
1326
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1327
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1328
|
+
}
|
|
1329
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1330
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1331
|
+
}
|
|
1332
|
+
return num;
|
|
1333
|
+
}
|
|
1334
|
+
function isSet(value) {
|
|
1335
|
+
return value !== null && value !== undefined;
|
|
1336
|
+
}
|