@woodger/t-invest-node-sdk 0.5.6 → 0.5.8
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 +317 -524
- package/NOTICE +8 -8
- package/dist/application/dto/t-invest-options.d.ts +8 -6
- package/dist/application/dto/t-invest-options.js +4 -4
- package/dist/application/dto/t-invest-services.d.ts +26 -1
- package/dist/application/dto/t-invest-services.js +2 -1
- package/dist/application/errors/sdk-error.d.ts +21 -7
- package/dist/application/errors/sdk-error.js +20 -17
- package/dist/application/reports/accounts.report.d.ts +7 -2
- package/dist/application/reports/accrued-interests.report.d.ts +8 -2
- package/dist/application/reports/asset.report.d.ts +5 -0
- package/dist/application/reports/bond-coupons.report.d.ts +3 -1
- package/dist/application/reports/bond.report.d.ts +3 -1
- package/dist/application/reports/brands.report.d.ts +4 -1
- package/dist/application/reports/broker-report.report.d.ts +14 -2
- package/dist/application/reports/candles.report.d.ts +4 -1
- package/dist/application/reports/close-prices.report.d.ts +7 -2
- package/dist/application/reports/currency.report.d.ts +4 -1
- package/dist/application/reports/dividends-foreign-issuer.report.d.ts +12 -1
- package/dist/application/reports/dividends.report.d.ts +4 -1
- package/dist/application/reports/find-instrument.report.d.ts +3 -1
- package/dist/application/reports/future.report.d.ts +3 -1
- package/dist/application/reports/futures-margin.report.d.ts +10 -3
- package/dist/application/reports/instrument.report.d.ts +7 -2
- package/dist/application/reports/last-prices.report.d.ts +7 -2
- package/dist/application/reports/last-trades.report.d.ts +4 -2
- package/dist/application/reports/margin-attributes.report.d.ts +6 -2
- package/dist/application/reports/operations-by-cursor.report.d.ts +7 -2
- package/dist/application/reports/option.report.d.ts +4 -1
- package/dist/application/reports/order-book.report.d.ts +1 -1
- package/dist/application/reports/order-mutation.report.d.ts +6 -2
- package/dist/application/reports/portfolio.report.d.ts +4 -1
- package/dist/application/reports/sandbox-account.report.d.ts +6 -0
- package/dist/application/reports/stop-orders.report.d.ts +3 -1
- package/dist/application/reports/trading-schedules.report.d.ts +12 -4
- package/dist/application/reports/trading-status.report.d.ts +3 -1
- package/dist/application/reports/trading-statuses.report.d.ts +4 -1
- package/dist/application/reports/user-tariff.report.d.ts +2 -0
- package/dist/application/reports/withdraw-limits.report.d.ts +4 -1
- package/dist/application/services/unary-limiter.d.ts +18 -14
- package/dist/application/services/unary-limiter.js +91 -33
- package/dist/bootstrap/args/command-options.d.ts +5 -0
- package/dist/bootstrap/args/command-options.js +24 -15
- package/dist/bootstrap/args/instrument-id-options.d.ts +12 -6
- package/dist/bootstrap/args/instrument-id-options.js +4 -2
- package/dist/bootstrap/args/instruments-args.d.ts +2 -2
- package/dist/bootstrap/args/instruments-args.js +2 -1
- package/dist/bootstrap/args/sdk-options.d.ts +7 -3
- package/dist/bootstrap/args/sdk-options.js +3 -3
- package/dist/bootstrap/args/side-effect-args.js +7 -3
- package/dist/bootstrap/cli/contract.d.ts +2 -1
- package/dist/bootstrap/cli/contract.js +2 -1
- package/dist/bootstrap/cli/domains.d.ts +13 -10
- package/dist/bootstrap/cli/domains.js +8 -3
- package/dist/bootstrap/cli/error.d.ts +7 -1
- package/dist/bootstrap/cli/error.js +11 -3
- package/dist/bootstrap/cli/help-catalog.d.ts +4 -1
- package/dist/bootstrap/cli/help-catalog.js +5 -0
- package/dist/bootstrap/cli/help.d.ts +5 -4
- package/dist/bootstrap/cli/help.js +4 -3
- package/dist/bootstrap/cli/registry.d.ts +288 -287
- package/dist/bootstrap/cli/registry.js +4 -2
- package/dist/bootstrap/cli/runner.js +1 -1
- package/dist/bootstrap/cli/version.d.ts +2 -1
- package/dist/bootstrap/cli/version.js +2 -1
- package/dist/bootstrap/commands/accounts/cli.d.ts +6 -5
- package/dist/bootstrap/commands/accounts/cli.js +17 -22
- package/dist/bootstrap/commands/accounts/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/accounts/reporter.js +2 -1
- package/dist/bootstrap/commands/accrued-interests/cli.d.ts +16 -15
- package/dist/bootstrap/commands/accrued-interests/cli.js +14 -21
- package/dist/bootstrap/commands/accrued-interests/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/accrued-interests/reporter.js +2 -1
- package/dist/bootstrap/commands/asset/cli.d.ts +13 -12
- package/dist/bootstrap/commands/asset/cli.js +14 -21
- package/dist/bootstrap/commands/asset/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/asset/reporter.js +2 -1
- package/dist/bootstrap/commands/assets/cli.d.ts +16 -15
- package/dist/bootstrap/commands/assets/cli.js +14 -21
- package/dist/bootstrap/commands/assets/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/assets/reporter.js +2 -1
- package/dist/bootstrap/commands/bond/cli.d.ts +6 -5
- package/dist/bootstrap/commands/bond/cli.js +19 -24
- package/dist/bootstrap/commands/bond/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/bond/reporter.js +5 -2
- package/dist/bootstrap/commands/bond-coupons/cli.d.ts +16 -15
- package/dist/bootstrap/commands/bond-coupons/cli.js +14 -21
- package/dist/bootstrap/commands/bond-coupons/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/bond-coupons/reporter.js +2 -1
- package/dist/bootstrap/commands/bonds/cli.d.ts +6 -5
- package/dist/bootstrap/commands/bonds/cli.js +19 -24
- package/dist/bootstrap/commands/bonds/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/bonds/reporter.js +2 -1
- package/dist/bootstrap/commands/brand/cli.d.ts +13 -12
- package/dist/bootstrap/commands/brand/cli.js +14 -21
- package/dist/bootstrap/commands/brand/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/brand/reporter.js +2 -1
- package/dist/bootstrap/commands/brands/cli.d.ts +6 -5
- package/dist/bootstrap/commands/brands/cli.js +17 -22
- package/dist/bootstrap/commands/brands/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/brands/reporter.js +2 -1
- package/dist/bootstrap/commands/broker-report/cli.d.ts +25 -24
- package/dist/bootstrap/commands/broker-report/cli.js +14 -21
- package/dist/bootstrap/commands/broker-report/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/broker-report/reporter.js +2 -1
- package/dist/bootstrap/commands/cancel-order/cli.d.ts +10 -9
- package/dist/bootstrap/commands/cancel-order/cli.js +28 -35
- package/dist/bootstrap/commands/cancel-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/cancel-order/reporter.js +2 -1
- package/dist/bootstrap/commands/cancel-stop-order/cli.d.ts +16 -15
- package/dist/bootstrap/commands/cancel-stop-order/cli.js +16 -22
- package/dist/bootstrap/commands/cancel-stop-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/cancel-stop-order/reporter.js +2 -1
- package/dist/bootstrap/commands/candles/cli.d.ts +22 -21
- package/dist/bootstrap/commands/candles/cli.js +14 -21
- package/dist/bootstrap/commands/candles/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/candles/reporter.js +2 -1
- package/dist/bootstrap/commands/close-prices/cli.d.ts +13 -12
- package/dist/bootstrap/commands/close-prices/cli.js +14 -21
- package/dist/bootstrap/commands/close-prices/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/close-prices/reporter.js +2 -1
- package/dist/bootstrap/commands/compile-proto/cli.d.ts +2 -1
- package/dist/bootstrap/commands/compile-proto/cli.js +2 -1
- package/dist/bootstrap/commands/countries/cli.d.ts +6 -5
- package/dist/bootstrap/commands/countries/cli.js +17 -22
- package/dist/bootstrap/commands/countries/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/countries/reporter.js +2 -1
- package/dist/bootstrap/commands/currencies/cli.d.ts +6 -5
- package/dist/bootstrap/commands/currencies/cli.js +19 -24
- package/dist/bootstrap/commands/currencies/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/currencies/reporter.js +2 -1
- package/dist/bootstrap/commands/currency/cli.d.ts +6 -5
- package/dist/bootstrap/commands/currency/cli.js +19 -24
- package/dist/bootstrap/commands/currency/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/currency/reporter.js +2 -1
- package/dist/bootstrap/commands/dividends/cli.d.ts +16 -15
- package/dist/bootstrap/commands/dividends/cli.js +14 -21
- package/dist/bootstrap/commands/dividends/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/dividends/reporter.js +2 -1
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.d.ts +25 -24
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.js +14 -21
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.js +2 -1
- package/dist/bootstrap/commands/edit-favorites/cli.d.ts +13 -12
- package/dist/bootstrap/commands/edit-favorites/cli.js +16 -22
- package/dist/bootstrap/commands/edit-favorites/reporter.d.ts +2 -1
- package/dist/bootstrap/commands/etf/cli.d.ts +6 -5
- package/dist/bootstrap/commands/etf/cli.js +19 -24
- package/dist/bootstrap/commands/etf/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/etf/reporter.js +5 -2
- package/dist/bootstrap/commands/etfs/cli.d.ts +6 -5
- package/dist/bootstrap/commands/etfs/cli.js +19 -24
- package/dist/bootstrap/commands/etfs/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/etfs/reporter.js +2 -1
- package/dist/bootstrap/commands/favorites/cli.d.ts +6 -5
- package/dist/bootstrap/commands/favorites/cli.js +17 -22
- package/dist/bootstrap/commands/favorites/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/favorites/reporter.js +2 -1
- package/dist/bootstrap/commands/find-instrument/cli.d.ts +22 -21
- package/dist/bootstrap/commands/find-instrument/cli.js +14 -21
- package/dist/bootstrap/commands/find-instrument/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/find-instrument/reporter.js +2 -1
- package/dist/bootstrap/commands/future/cli.d.ts +6 -5
- package/dist/bootstrap/commands/future/cli.js +19 -24
- package/dist/bootstrap/commands/future/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/future/reporter.js +2 -1
- package/dist/bootstrap/commands/futures/cli.d.ts +6 -5
- package/dist/bootstrap/commands/futures/cli.js +19 -24
- package/dist/bootstrap/commands/futures/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/futures/reporter.js +2 -1
- package/dist/bootstrap/commands/futures-margin/cli.d.ts +10 -9
- package/dist/bootstrap/commands/futures-margin/cli.js +14 -21
- package/dist/bootstrap/commands/futures-margin/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/futures-margin/reporter.js +8 -2
- package/dist/bootstrap/commands/help/cli.js +1 -4
- package/dist/bootstrap/commands/instrument/cli.d.ts +6 -5
- package/dist/bootstrap/commands/instrument/cli.js +19 -24
- package/dist/bootstrap/commands/instrument/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/instrument/reporter.js +5 -2
- package/dist/bootstrap/commands/last-prices/cli.d.ts +13 -12
- package/dist/bootstrap/commands/last-prices/cli.js +14 -21
- package/dist/bootstrap/commands/last-prices/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/last-prices/reporter.js +2 -1
- package/dist/bootstrap/commands/last-trades/cli.d.ts +19 -18
- package/dist/bootstrap/commands/last-trades/cli.js +14 -21
- package/dist/bootstrap/commands/last-trades/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/last-trades/reporter.js +2 -1
- package/dist/bootstrap/commands/margin-attributes/cli.d.ts +13 -12
- package/dist/bootstrap/commands/margin-attributes/cli.js +14 -21
- package/dist/bootstrap/commands/margin-attributes/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/margin-attributes/reporter.js +2 -1
- package/dist/bootstrap/commands/operations/cli.d.ts +22 -21
- package/dist/bootstrap/commands/operations/cli.js +42 -47
- package/dist/bootstrap/commands/operations/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/operations/reporter.js +2 -1
- package/dist/bootstrap/commands/operations/request.mapper.d.ts +6 -6
- package/dist/bootstrap/commands/operations-by-cursor/cli.d.ts +44 -43
- package/dist/bootstrap/commands/operations-by-cursor/cli.js +63 -75
- package/dist/bootstrap/commands/operations-by-cursor/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/operations-by-cursor/reporter.js +2 -1
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.d.ts +8 -7
- package/dist/bootstrap/commands/operations-by-cursor/request.mapper.js +10 -4
- package/dist/bootstrap/commands/option/cli.d.ts +6 -5
- package/dist/bootstrap/commands/option/cli.js +19 -24
- package/dist/bootstrap/commands/option/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/option/reporter.js +2 -1
- package/dist/bootstrap/commands/options-by/cli.d.ts +16 -15
- package/dist/bootstrap/commands/options-by/cli.js +14 -21
- package/dist/bootstrap/commands/options-by/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/options-by/reporter.js +2 -1
- package/dist/bootstrap/commands/order-book/cli.d.ts +22 -21
- package/dist/bootstrap/commands/order-book/cli.js +18 -28
- package/dist/bootstrap/commands/order-book/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/order-book/reporter.js +11 -2
- package/dist/bootstrap/commands/order-state/cli.d.ts +10 -9
- package/dist/bootstrap/commands/order-state/cli.js +26 -34
- package/dist/bootstrap/commands/order-state/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/order-state/reporter.js +2 -1
- package/dist/bootstrap/commands/orders/cli.d.ts +8 -7
- package/dist/bootstrap/commands/orders/cli.js +22 -30
- package/dist/bootstrap/commands/orders/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/orders/reporter.js +2 -1
- package/dist/bootstrap/commands/portfolio/cli.d.ts +12 -11
- package/dist/bootstrap/commands/portfolio/cli.js +27 -35
- package/dist/bootstrap/commands/portfolio/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/portfolio/reporter.js +2 -1
- package/dist/bootstrap/commands/portfolio/request.mapper.d.ts +6 -5
- package/dist/bootstrap/commands/portfolio/request.mapper.js +2 -1
- package/dist/bootstrap/commands/positions/cli.d.ts +8 -7
- package/dist/bootstrap/commands/positions/cli.js +22 -30
- package/dist/bootstrap/commands/positions/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/positions/reporter.js +11 -2
- package/dist/bootstrap/commands/post-order/cli.d.ts +18 -17
- package/dist/bootstrap/commands/post-order/cli.js +49 -56
- package/dist/bootstrap/commands/post-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/post-order/reporter.js +2 -1
- package/dist/bootstrap/commands/post-order/request.mapper.d.ts +9 -9
- package/dist/bootstrap/commands/post-stop-order/cli.d.ts +34 -33
- package/dist/bootstrap/commands/post-stop-order/cli.js +18 -23
- package/dist/bootstrap/commands/post-stop-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/post-stop-order/reporter.js +2 -1
- package/dist/bootstrap/commands/replace-order/cli.d.ts +16 -15
- package/dist/bootstrap/commands/replace-order/cli.js +45 -52
- package/dist/bootstrap/commands/replace-order/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/replace-order/reporter.js +2 -1
- package/dist/bootstrap/commands/replace-order/request.mapper.d.ts +4 -4
- package/dist/bootstrap/commands/sandbox-accounts/cli.d.ts +6 -6
- package/dist/bootstrap/commands/sandbox-accounts/cli.js +17 -26
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.d.ts +10 -44
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.js +28 -39
- package/dist/bootstrap/commands/sandbox-close-account/cli.d.ts +13 -12
- package/dist/bootstrap/commands/sandbox-close-account/cli.js +16 -22
- package/dist/bootstrap/commands/sandbox-close-account/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/sandbox-close-account/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-open-account/cli.d.ts +6 -6
- package/dist/bootstrap/commands/sandbox-open-account/cli.js +19 -28
- package/dist/bootstrap/commands/sandbox-open-account/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/sandbox-open-account/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-operations/cli.d.ts +18 -64
- package/dist/bootstrap/commands/sandbox-operations/cli.js +36 -48
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.d.ts +32 -94
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.js +57 -69
- package/dist/bootstrap/commands/sandbox-order-state/cli.d.ts +10 -41
- package/dist/bootstrap/commands/sandbox-order-state/cli.js +26 -38
- package/dist/bootstrap/commands/sandbox-orders/cli.d.ts +8 -35
- package/dist/bootstrap/commands/sandbox-orders/cli.js +22 -34
- package/dist/bootstrap/commands/sandbox-pay-in/cli.d.ts +22 -21
- package/dist/bootstrap/commands/sandbox-pay-in/cli.js +16 -22
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.js +2 -1
- package/dist/bootstrap/commands/sandbox-portfolio/cli.d.ts +14 -46
- package/dist/bootstrap/commands/sandbox-portfolio/cli.js +27 -39
- package/dist/bootstrap/commands/sandbox-positions/cli.d.ts +8 -35
- package/dist/bootstrap/commands/sandbox-positions/cli.js +22 -34
- package/dist/bootstrap/commands/sandbox-post-order/cli.d.ts +22 -80
- package/dist/bootstrap/commands/sandbox-post-order/cli.js +49 -60
- package/dist/bootstrap/commands/sandbox-replace-order/cli.d.ts +18 -72
- package/dist/bootstrap/commands/sandbox-replace-order/cli.js +45 -56
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.d.ts +8 -35
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.js +22 -34
- package/dist/bootstrap/commands/share/cli.d.ts +6 -5
- package/dist/bootstrap/commands/share/cli.js +19 -24
- package/dist/bootstrap/commands/share/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/share/reporter.js +5 -2
- package/dist/bootstrap/commands/shares/cli.d.ts +6 -5
- package/dist/bootstrap/commands/shares/cli.js +19 -24
- package/dist/bootstrap/commands/shares/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/shares/reporter.js +2 -1
- package/dist/bootstrap/commands/stop-orders/cli.d.ts +13 -12
- package/dist/bootstrap/commands/stop-orders/cli.js +14 -21
- package/dist/bootstrap/commands/stop-orders/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/stop-orders/reporter.js +2 -1
- package/dist/bootstrap/commands/stream-run/cli.d.ts +6 -4
- package/dist/bootstrap/commands/stream-run/cli.js +7 -7
- package/dist/bootstrap/commands/stream-run/config.d.ts +18 -1
- package/dist/bootstrap/commands/stream-run/config.js +5 -3
- package/dist/bootstrap/commands/stream-run/reporter.d.ts +6 -1
- package/dist/bootstrap/commands/stream-run/request.mapper.js +15 -5
- package/dist/bootstrap/commands/stream-run/stream-session.d.ts +14 -0
- package/dist/bootstrap/commands/stream-run/stream-session.js +7 -2
- package/dist/bootstrap/commands/trading-schedules/cli.d.ts +19 -18
- package/dist/bootstrap/commands/trading-schedules/cli.js +14 -21
- package/dist/bootstrap/commands/trading-schedules/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/trading-schedules/reporter.js +11 -2
- package/dist/bootstrap/commands/trading-status/cli.d.ts +13 -12
- package/dist/bootstrap/commands/trading-status/cli.js +14 -21
- package/dist/bootstrap/commands/trading-status/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/trading-status/reporter.js +2 -1
- package/dist/bootstrap/commands/trading-statuses/cli.d.ts +13 -12
- package/dist/bootstrap/commands/trading-statuses/cli.js +14 -21
- package/dist/bootstrap/commands/trading-statuses/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/trading-statuses/reporter.js +2 -1
- package/dist/bootstrap/commands/user-info/cli.d.ts +6 -5
- package/dist/bootstrap/commands/user-info/cli.js +17 -22
- package/dist/bootstrap/commands/user-info/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/user-info/reporter.js +2 -1
- package/dist/bootstrap/commands/user-tariff/cli.d.ts +6 -5
- package/dist/bootstrap/commands/user-tariff/cli.js +17 -22
- package/dist/bootstrap/commands/user-tariff/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/user-tariff/reporter.js +17 -2
- package/dist/bootstrap/commands/withdraw-limits/cli.d.ts +12 -7
- package/dist/bootstrap/commands/withdraw-limits/cli.js +29 -30
- package/dist/bootstrap/commands/withdraw-limits/reporter.d.ts +4 -2
- package/dist/bootstrap/commands/withdraw-limits/reporter.js +2 -1
- package/dist/bootstrap/generated-exports.d.ts +1 -1
- package/dist/bootstrap/generated-exports.js +14 -11
- package/dist/bootstrap/index.js +5 -2
- package/dist/bootstrap/proto/compile-proto.d.ts +4 -2
- package/dist/bootstrap/proto/compile-proto.js +11 -6
- package/dist/bootstrap/sdk-config.d.ts +9 -7
- package/dist/bootstrap/sdk-config.js +8 -7
- package/dist/bootstrap/t-invest-node-sdk.d.ts +26 -6
- package/dist/bootstrap/t-invest-node-sdk.js +48 -23
- package/dist/bootstrap/unary-limit-config.d.ts +13 -14
- package/dist/bootstrap/unary-limit-config.js +12 -13
- package/dist/config.d.ts +13 -11
- package/dist/config.js +13 -11
- package/dist/config.types.d.ts +18 -19
- package/dist/config.types.js +6 -6
- package/dist/generated/common.d.ts +1 -0
- package/dist/generated/common.js +3 -2
- package/dist/generated/google/api/field_behavior.d.ts +1 -0
- package/dist/generated/google/api/field_behavior.js +3 -2
- package/dist/generated/google/protobuf/descriptor.d.ts +1 -0
- package/dist/generated/google/protobuf/descriptor.js +26 -16
- package/dist/generated/google/protobuf/timestamp.d.ts +1 -0
- package/dist/generated/google/protobuf/timestamp.js +20 -2
- package/dist/generated/instruments.d.ts +1 -0
- package/dist/generated/instruments.js +59 -55
- package/dist/generated/marketdata.d.ts +1 -0
- package/dist/generated/marketdata.js +10 -7
- package/dist/generated/operations.d.ts +1 -0
- package/dist/generated/operations.js +10 -7
- package/dist/generated/orders.d.ts +5 -2
- package/dist/generated/orders.js +29 -7
- package/dist/generated/sandbox.d.ts +1 -0
- package/dist/generated/sandbox.js +3 -2
- package/dist/generated/signals.d.ts +1 -0
- package/dist/generated/signals.js +3 -2
- package/dist/generated/stoporders.d.ts +1 -0
- package/dist/generated/stoporders.js +3 -2
- package/dist/generated/users.d.ts +1 -0
- package/dist/generated/users.js +9 -6
- package/dist/infrastructure/interceptor/warning-interceptor.d.ts +3 -1
- package/dist/infrastructure/interceptor/warning-interceptor.js +4 -3
- package/dist/infrastructure/report-values.js +8 -2
- package/dist/infrastructure/transport/grpc/call-callback-boundary.d.ts +23 -0
- package/dist/infrastructure/transport/grpc/call-callback-boundary.js +56 -0
- package/dist/infrastructure/transport/grpc/sdk-call-error.js +2 -2
- package/dist/infrastructure/transport/grpc/sdk-channel.d.ts +5 -5
- package/dist/infrastructure/transport/grpc/sdk-channel.js +5 -5
- package/dist/infrastructure/transport/grpc/sdk-client.d.ts +4 -3
- package/dist/infrastructure/transport/grpc/sdk-client.js +4 -3
- package/dist/infrastructure/transport/grpc/sdk-middleware.d.ts +20 -11
- package/dist/infrastructure/transport/grpc/sdk-middleware.js +96 -109
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.d.ts +21 -3
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.js +22 -6
- package/docs/architecture.md +93 -116
- package/docs/bundled-ca.md +31 -48
- package/docs/clean-architecture/adapters.md +14 -14
- package/docs/clean-architecture/api-commands.md +106 -102
- package/docs/clean-architecture/application.md +78 -94
- package/docs/clean-architecture/cli-output-boundaries.md +109 -119
- package/docs/clean-architecture/dto.md +18 -18
- package/docs/clean-architecture/index.md +9 -34
- package/docs/cli-reference.md +38 -30
- package/docs/cli-stream-configuration.md +57 -41
- package/docs/cli-stream-reference.md +51 -83
- package/docs/examples/custom-unary-limiter.md +454 -0
- package/docs/examples/deprecated-fields.md +27 -0
- package/docs/examples/errors-and-lifecycle.md +180 -0
- package/docs/examples/getting-started.md +45 -0
- package/docs/examples/index.md +43 -0
- package/docs/examples/instrument-lookup.md +38 -0
- package/docs/examples/market-data-recovery.md +327 -0
- package/docs/examples/operations-pagination.md +47 -0
- package/docs/examples/order-state-stream.md +39 -0
- package/docs/examples/sandbox-orders.md +85 -0
- package/docs/examples/streams-and-cancellation.md +218 -0
- package/docs/examples/testing-with-service-definitions.md +79 -0
- package/docs/examples/unary-calls.md +156 -0
- package/docs/examples/unary-limits.md +96 -0
- package/docs/index.md +23 -48
- package/docs/limits-policy.md +26 -48
- package/docs/roadmap.md +54 -54
- package/docs/tls-policy.md +39 -21
- package/package.json +8 -8
- package/readme.md +29 -214
- package/docs/guides/custom-unary-limiter.md +0 -500
- package/docs/guides/errors-and-lifecycle.md +0 -184
- package/docs/guides/getting-started.md +0 -86
- package/docs/guides/index.md +0 -32
- package/docs/guides/streams-and-cancellation.md +0 -162
- package/docs/guides/testing-with-service-definitions.md +0 -102
- package/docs/guides/unary-calls.md +0 -181
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Модуль CLI-репортинга команды `market statuses`.
|
|
4
4
|
*
|
|
5
5
|
* Здесь допустимы mapping generated DTO в application report contract и
|
|
6
|
-
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
6
|
+
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
7
|
+
* `cli.ts`.
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.tradingStatusesFormats = void 0;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* - преобразование CLI options в generated request;
|
|
7
7
|
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
8
8
|
*
|
|
9
|
-
* Здесь не должно быть ручного table/json rendering или application report
|
|
9
|
+
* Здесь не должно быть ручного table/json rendering или application report
|
|
10
|
+
* contracts.
|
|
10
11
|
*/
|
|
11
12
|
import type { TInvestOptions } from '../../../application/dto/t-invest-options';
|
|
12
13
|
import type { GetInfoResponse } from '../../../generated/users';
|
|
@@ -31,9 +32,9 @@ export declare function createUserInfoCommand(createSdk?: UserInfoSdkFactory): O
|
|
|
31
32
|
readonly type: 'boolean';
|
|
32
33
|
};
|
|
33
34
|
readonly format: {
|
|
34
|
-
readonly type:
|
|
35
|
+
readonly type: "string";
|
|
35
36
|
readonly choices: readonly ["json", "table"];
|
|
36
|
-
readonly default:
|
|
37
|
+
readonly default: "table";
|
|
37
38
|
};
|
|
38
39
|
}, undefined, string, readonly ["account", "info"], undefined, void, readonly []>, "metadata"> & {
|
|
39
40
|
metadata?: undefined;
|
|
@@ -52,9 +53,9 @@ export declare const userInfoCommand: Omit<import("icore").CommandDefinition<{
|
|
|
52
53
|
readonly type: 'boolean';
|
|
53
54
|
};
|
|
54
55
|
readonly format: {
|
|
55
|
-
readonly type:
|
|
56
|
+
readonly type: "string";
|
|
56
57
|
readonly choices: readonly ["json", "table"];
|
|
57
|
-
readonly default:
|
|
58
|
+
readonly default: "table";
|
|
58
59
|
};
|
|
59
60
|
}, undefined, string, readonly ["account", "info"], undefined, void, readonly []>, "metadata"> & {
|
|
60
61
|
metadata?: undefined;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* - преобразование CLI options в generated request;
|
|
8
8
|
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
9
9
|
*
|
|
10
|
-
* Здесь не должно быть ручного table/json rendering или application report
|
|
10
|
+
* Здесь не должно быть ручного table/json rendering или application report
|
|
11
|
+
* contracts.
|
|
11
12
|
*/
|
|
12
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
14
|
exports.userInfoCommand = void 0;
|
|
@@ -17,29 +18,23 @@ const sdk_command_lifecycle_1 = require("../sdk-command-lifecycle");
|
|
|
17
18
|
const command_options_1 = require("../../args/command-options");
|
|
18
19
|
const t_invest_node_sdk_1 = require("../../t-invest-node-sdk");
|
|
19
20
|
const reporter_1 = require("./reporter");
|
|
20
|
-
|
|
21
|
-
const defaultUserInfoSdkFactory = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options);
|
|
22
|
-
const userInfoOptionsSchema = (0, command_options_1.withSdkOptions)({
|
|
23
|
-
format: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
choices: reporter_1.userInfoFormats,
|
|
26
|
-
default: 'table'
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
function createUserInfoCommand(createSdk = defaultUserInfoSdkFactory) {
|
|
21
|
+
function createUserInfoCommand(createSdk = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options)) {
|
|
30
22
|
return contract_1.command.define({
|
|
31
|
-
path:
|
|
32
|
-
options:
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
path: ['account', 'info'],
|
|
24
|
+
options: (0, command_options_1.withSdkOptions)({
|
|
25
|
+
format: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
choices: reporter_1.userInfoFormats,
|
|
28
|
+
default: 'table'
|
|
29
|
+
}
|
|
30
|
+
}),
|
|
31
|
+
async handle({ options }) {
|
|
32
|
+
const { format } = options;
|
|
33
|
+
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
34
|
+
const response = await sdk.users.getInfo({});
|
|
35
|
+
return (0, reporter_1.formatUserInfo)(response, format);
|
|
36
|
+
});
|
|
35
37
|
}
|
|
36
38
|
});
|
|
37
39
|
}
|
|
38
40
|
exports.userInfoCommand = createUserInfoCommand();
|
|
39
|
-
async function runUserInfoCommand(options, createSdk) {
|
|
40
|
-
const { format } = options;
|
|
41
|
-
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
42
|
-
const response = await sdk.users.getInfo({});
|
|
43
|
-
return (0, reporter_1.formatUserInfo)(response, format);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* Модуль CLI-репортинга команды `account info`.
|
|
3
3
|
*
|
|
4
4
|
* Здесь допустимы mapping generated DTO в application report contract и
|
|
5
|
-
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
5
|
+
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
6
|
+
* `cli.ts`.
|
|
6
7
|
*/
|
|
7
8
|
import type { UserInfoReport } from '../../../application/reports';
|
|
8
9
|
import type { GetInfoResponse } from '../../../generated/users';
|
|
9
|
-
|
|
10
|
+
/** Представление профиля пользователя: JSON или таблица. */
|
|
10
11
|
export type UserInfoFormat = typeof userInfoFormats[number];
|
|
12
|
+
export declare const userInfoFormats: readonly ['json', 'table'];
|
|
11
13
|
export declare function createUserInfoReport(response: GetInfoResponse): UserInfoReport;
|
|
12
14
|
export declare function formatUserInfoReport(report: UserInfoReport, format: UserInfoFormat): string;
|
|
13
15
|
export declare function formatUserInfo(response: GetInfoResponse, format: UserInfoFormat): string;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Модуль CLI-репортинга команды `account info`.
|
|
4
4
|
*
|
|
5
5
|
* Здесь допустимы mapping generated DTO в application report contract и
|
|
6
|
-
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
6
|
+
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
7
|
+
* `cli.ts`.
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.userInfoFormats = void 0;
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* - преобразование CLI options в generated request;
|
|
7
7
|
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
8
8
|
*
|
|
9
|
-
* Здесь не должно быть ручного table/json rendering или application report
|
|
9
|
+
* Здесь не должно быть ручного table/json rendering или application report
|
|
10
|
+
* contracts.
|
|
10
11
|
*/
|
|
11
12
|
import type { TInvestOptions } from '../../../application/dto/t-invest-options';
|
|
12
13
|
import type { GetUserTariffResponse } from '../../../generated/users';
|
|
@@ -31,9 +32,9 @@ export declare function createUserTariffCommand(createSdk?: UserTariffSdkFactory
|
|
|
31
32
|
readonly type: 'boolean';
|
|
32
33
|
};
|
|
33
34
|
readonly format: {
|
|
34
|
-
readonly type:
|
|
35
|
+
readonly type: "string";
|
|
35
36
|
readonly choices: readonly ["json", "table"];
|
|
36
|
-
readonly default:
|
|
37
|
+
readonly default: "table";
|
|
37
38
|
};
|
|
38
39
|
}, undefined, string, readonly ["account", "tariff"], undefined, void, readonly []>, "metadata"> & {
|
|
39
40
|
metadata?: undefined;
|
|
@@ -52,9 +53,9 @@ export declare const userTariffCommand: Omit<import("icore").CommandDefinition<{
|
|
|
52
53
|
readonly type: 'boolean';
|
|
53
54
|
};
|
|
54
55
|
readonly format: {
|
|
55
|
-
readonly type:
|
|
56
|
+
readonly type: "string";
|
|
56
57
|
readonly choices: readonly ["json", "table"];
|
|
57
|
-
readonly default:
|
|
58
|
+
readonly default: "table";
|
|
58
59
|
};
|
|
59
60
|
}, undefined, string, readonly ["account", "tariff"], undefined, void, readonly []>, "metadata"> & {
|
|
60
61
|
metadata?: undefined;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* - преобразование CLI options в generated request;
|
|
8
8
|
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
9
9
|
*
|
|
10
|
-
* Здесь не должно быть ручного table/json rendering или application report
|
|
10
|
+
* Здесь не должно быть ручного table/json rendering или application report
|
|
11
|
+
* contracts.
|
|
11
12
|
*/
|
|
12
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
14
|
exports.userTariffCommand = void 0;
|
|
@@ -17,29 +18,23 @@ const sdk_command_lifecycle_1 = require("../sdk-command-lifecycle");
|
|
|
17
18
|
const command_options_1 = require("../../args/command-options");
|
|
18
19
|
const t_invest_node_sdk_1 = require("../../t-invest-node-sdk");
|
|
19
20
|
const reporter_1 = require("./reporter");
|
|
20
|
-
|
|
21
|
-
const defaultUserTariffSdkFactory = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options);
|
|
22
|
-
const userTariffOptionsSchema = (0, command_options_1.withSdkOptions)({
|
|
23
|
-
format: {
|
|
24
|
-
type: 'string',
|
|
25
|
-
choices: reporter_1.userTariffFormats,
|
|
26
|
-
default: 'table'
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
function createUserTariffCommand(createSdk = defaultUserTariffSdkFactory) {
|
|
21
|
+
function createUserTariffCommand(createSdk = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options)) {
|
|
30
22
|
return contract_1.command.define({
|
|
31
|
-
path:
|
|
32
|
-
options:
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
path: ['account', 'tariff'],
|
|
24
|
+
options: (0, command_options_1.withSdkOptions)({
|
|
25
|
+
format: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
choices: reporter_1.userTariffFormats,
|
|
28
|
+
default: 'table'
|
|
29
|
+
}
|
|
30
|
+
}),
|
|
31
|
+
async handle({ options }) {
|
|
32
|
+
const { format } = options;
|
|
33
|
+
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
34
|
+
const response = await sdk.users.getUserTariff({});
|
|
35
|
+
return (0, reporter_1.formatUserTariff)(response, format);
|
|
36
|
+
});
|
|
35
37
|
}
|
|
36
38
|
});
|
|
37
39
|
}
|
|
38
40
|
exports.userTariffCommand = createUserTariffCommand();
|
|
39
|
-
async function runUserTariffCommand(options, createSdk) {
|
|
40
|
-
const { format } = options;
|
|
41
|
-
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
42
|
-
const response = await sdk.users.getUserTariff({});
|
|
43
|
-
return (0, reporter_1.formatUserTariff)(response, format);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* Модуль CLI-репортинга команды `account tariff`.
|
|
3
3
|
*
|
|
4
4
|
* Здесь допустимы mapping generated DTO в application report contract и
|
|
5
|
-
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
5
|
+
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
6
|
+
* `cli.ts`.
|
|
6
7
|
*/
|
|
7
8
|
import type { UserTariffReport } from '../../../application/reports';
|
|
8
9
|
import type { GetUserTariffResponse } from '../../../generated/users';
|
|
9
|
-
|
|
10
|
+
/** Представление тарифа и лимитов пользователя: JSON или таблица. */
|
|
10
11
|
export type UserTariffFormat = typeof userTariffFormats[number];
|
|
12
|
+
export declare const userTariffFormats: readonly ['json', 'table'];
|
|
11
13
|
export declare function createUserTariffReport(response: GetUserTariffResponse): UserTariffReport;
|
|
12
14
|
export declare function formatUserTariffReport(report: UserTariffReport, format: UserTariffFormat): string;
|
|
13
15
|
export declare function formatUserTariff(response: GetUserTariffResponse, format: UserTariffFormat): string;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Модуль CLI-репортинга команды `account tariff`.
|
|
4
4
|
*
|
|
5
5
|
* Здесь допустимы mapping generated DTO в application report contract и
|
|
6
|
-
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
6
|
+
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
7
|
+
* `cli.ts`.
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.userTariffFormats = void 0;
|
|
@@ -16,6 +17,9 @@ function createUserTariffReport(response) {
|
|
|
16
17
|
return {
|
|
17
18
|
unaryLimits: response.unaryLimits.map((limit) => ({
|
|
18
19
|
limitPerMinute: limit.limitPerMinute,
|
|
20
|
+
...(limit.limitPerSecond === undefined
|
|
21
|
+
? {}
|
|
22
|
+
: { limitPerSecond: limit.limitPerSecond }),
|
|
19
23
|
methods: limit.methods
|
|
20
24
|
})),
|
|
21
25
|
streamLimits: response.streamLimits.map((limit) => ({
|
|
@@ -30,15 +34,26 @@ function formatUserTariffReport(report, format) {
|
|
|
30
34
|
return (0, icore_1.renderJson)(report);
|
|
31
35
|
}
|
|
32
36
|
return (0, icore_1.renderTextTable)([
|
|
33
|
-
[
|
|
37
|
+
[
|
|
38
|
+
'type',
|
|
39
|
+
'limit/min',
|
|
40
|
+
'limit/sec',
|
|
41
|
+
'connections',
|
|
42
|
+
'open',
|
|
43
|
+
'methods/streams'
|
|
44
|
+
],
|
|
34
45
|
...report.unaryLimits.map((limit) => [
|
|
35
46
|
'unary',
|
|
36
47
|
String(limit.limitPerMinute),
|
|
48
|
+
limit.limitPerSecond === undefined ? '' : String(limit.limitPerSecond),
|
|
49
|
+
'',
|
|
37
50
|
'',
|
|
38
51
|
limit.methods.join(', ')
|
|
39
52
|
]),
|
|
40
53
|
...report.streamLimits.map((limit) => [
|
|
41
54
|
'stream',
|
|
55
|
+
'',
|
|
56
|
+
'',
|
|
42
57
|
String(limit.limit),
|
|
43
58
|
String(limit.open),
|
|
44
59
|
limit.streams.join(', ')
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* - делегирование request mapping в command-owned mapper;
|
|
7
7
|
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
8
8
|
*
|
|
9
|
-
* Здесь не должно быть ручного table/json rendering или application report
|
|
9
|
+
* Здесь не должно быть ручного table/json rendering или application report
|
|
10
|
+
* contracts.
|
|
10
11
|
*/
|
|
11
12
|
import type { TInvestOptions } from '../../../application/dto/t-invest-options';
|
|
12
13
|
import type { WithdrawLimitsRequest, WithdrawLimitsResponse } from '../../../generated/operations';
|
|
@@ -17,6 +18,10 @@ type WithdrawLimitsSdk = {
|
|
|
17
18
|
close(): void;
|
|
18
19
|
};
|
|
19
20
|
type WithdrawLimitsSdkFactory = (options: TInvestOptions) => WithdrawLimitsSdk;
|
|
21
|
+
/**
|
|
22
|
+
* Описывает команду без открытия соединения; SDK создаётся при выполнении.
|
|
23
|
+
* Фабрику SDK можно подменить в тестах.
|
|
24
|
+
*/
|
|
20
25
|
export declare function createWithdrawLimitsCommand(createSdk?: WithdrawLimitsSdkFactory): Omit<import("icore").CommandDefinition<{
|
|
21
26
|
readonly token: {
|
|
22
27
|
readonly type: 'string';
|
|
@@ -31,13 +36,13 @@ export declare function createWithdrawLimitsCommand(createSdk?: WithdrawLimitsSd
|
|
|
31
36
|
readonly type: 'boolean';
|
|
32
37
|
};
|
|
33
38
|
readonly 'account-id': {
|
|
34
|
-
readonly type:
|
|
39
|
+
readonly type: "string";
|
|
35
40
|
readonly required: true;
|
|
36
41
|
};
|
|
37
42
|
readonly format: {
|
|
38
|
-
readonly type:
|
|
43
|
+
readonly type: "string";
|
|
39
44
|
readonly choices: readonly ["json", "table"];
|
|
40
|
-
readonly default:
|
|
45
|
+
readonly default: "table";
|
|
41
46
|
};
|
|
42
47
|
}, undefined, string, readonly ["operation", "withdraw-limits"], undefined, void, readonly []>, "metadata"> & {
|
|
43
48
|
metadata?: undefined;
|
|
@@ -56,13 +61,13 @@ export declare const withdrawLimitsCommand: Omit<import("icore").CommandDefiniti
|
|
|
56
61
|
readonly type: 'boolean';
|
|
57
62
|
};
|
|
58
63
|
readonly 'account-id': {
|
|
59
|
-
readonly type:
|
|
64
|
+
readonly type: "string";
|
|
60
65
|
readonly required: true;
|
|
61
66
|
};
|
|
62
67
|
readonly format: {
|
|
63
|
-
readonly type:
|
|
68
|
+
readonly type: "string";
|
|
64
69
|
readonly choices: readonly ["json", "table"];
|
|
65
|
-
readonly default:
|
|
70
|
+
readonly default: "table";
|
|
66
71
|
};
|
|
67
72
|
}, undefined, string, readonly ["operation", "withdraw-limits"], undefined, void, readonly []>, "metadata"> & {
|
|
68
73
|
metadata?: undefined;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* - делегирование request mapping в command-owned mapper;
|
|
8
8
|
* - выполнение короткого SDK lifecycle через общий bootstrap helper;
|
|
9
9
|
*
|
|
10
|
-
* Здесь не должно быть ручного table/json rendering или application report
|
|
10
|
+
* Здесь не должно быть ручного table/json rendering или application report
|
|
11
|
+
* contracts.
|
|
11
12
|
*/
|
|
12
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
14
|
exports.withdrawLimitsCommand = void 0;
|
|
@@ -18,37 +19,35 @@ const command_options_1 = require("../../args/command-options");
|
|
|
18
19
|
const t_invest_node_sdk_1 = require("../../t-invest-node-sdk");
|
|
19
20
|
const reporter_1 = require("./reporter");
|
|
20
21
|
const request_mapper_1 = require("./request.mapper");
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
required: true
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const withdrawLimitsFormatOptionsSchema = {
|
|
30
|
-
format: {
|
|
31
|
-
type: 'string',
|
|
32
|
-
choices: reporter_1.withdrawLimitsFormats,
|
|
33
|
-
default: 'table'
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const withdrawLimitsOptionsSchema = (0, command_options_1.withSdkOptions)(withdrawLimitsRequestOptionsSchema, withdrawLimitsFormatOptionsSchema);
|
|
37
|
-
function createWithdrawLimitsCommand(createSdk = defaultWithdrawLimitsSdkFactory) {
|
|
22
|
+
/**
|
|
23
|
+
* Описывает команду без открытия соединения; SDK создаётся при выполнении.
|
|
24
|
+
* Фабрику SDK можно подменить в тестах.
|
|
25
|
+
*/
|
|
26
|
+
function createWithdrawLimitsCommand(createSdk = (options) => new t_invest_node_sdk_1.TInvestNodeSDK(options)) {
|
|
38
27
|
return contract_1.command.define({
|
|
39
|
-
path:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
path: ['operation', 'withdraw-limits'],
|
|
29
|
+
// icore проверяет опции команды вместе с общими настройками SDK.
|
|
30
|
+
options: (0, command_options_1.withSdkOptions)({
|
|
31
|
+
'account-id': {
|
|
32
|
+
type: 'string',
|
|
33
|
+
required: true
|
|
34
|
+
},
|
|
35
|
+
format: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
choices: reporter_1.withdrawLimitsFormats,
|
|
38
|
+
default: 'table'
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
async handle({ options }) {
|
|
42
|
+
// Общий с песочницей запрос готовим до создания SDK.
|
|
43
|
+
const request = (0, request_mapper_1.createWithdrawLimitsRequest)(options);
|
|
44
|
+
const { format } = options;
|
|
45
|
+
// SDK закрывается после запроса и форматирования, включая ошибки.
|
|
46
|
+
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
47
|
+
const response = await sdk.operations.getWithdrawLimits(request);
|
|
48
|
+
return (0, reporter_1.formatWithdrawLimits)(response, format);
|
|
49
|
+
});
|
|
43
50
|
}
|
|
44
51
|
});
|
|
45
52
|
}
|
|
46
53
|
exports.withdrawLimitsCommand = createWithdrawLimitsCommand();
|
|
47
|
-
async function runWithdrawLimitsCommand(options, createSdk) {
|
|
48
|
-
const request = (0, request_mapper_1.createWithdrawLimitsRequest)(options);
|
|
49
|
-
const { format } = options;
|
|
50
|
-
return (0, sdk_command_lifecycle_1.runSdkCommand)(options, createSdk, async (sdk) => {
|
|
51
|
-
const response = await sdk.operations.getWithdrawLimits(request);
|
|
52
|
-
return (0, reporter_1.formatWithdrawLimits)(response, format);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
* Модуль CLI-репортинга команды `operation withdraw-limits`.
|
|
3
3
|
*
|
|
4
4
|
* Здесь допустимы mapping generated DTO в application report contract и
|
|
5
|
-
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
5
|
+
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
6
|
+
* `cli.ts`.
|
|
6
7
|
*/
|
|
7
8
|
import type { WithdrawLimitsReport } from '../../../application/reports';
|
|
8
9
|
import type { WithdrawLimitsResponse } from '../../../generated/operations';
|
|
9
|
-
|
|
10
|
+
/** Представление доступных для вывода средств: JSON или таблица. */
|
|
10
11
|
export type WithdrawLimitsFormat = typeof withdrawLimitsFormats[number];
|
|
12
|
+
export declare const withdrawLimitsFormats: readonly ['json', 'table'];
|
|
11
13
|
export declare function createWithdrawLimitsReport(response: WithdrawLimitsResponse): WithdrawLimitsReport;
|
|
12
14
|
export declare function formatWithdrawLimitsReport(report: WithdrawLimitsReport, format: WithdrawLimitsFormat): string;
|
|
13
15
|
export declare function formatWithdrawLimits(response: WithdrawLimitsResponse, format: WithdrawLimitsFormat): string;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Модуль CLI-репортинга команды `operation withdraw-limits`.
|
|
4
4
|
*
|
|
5
5
|
* Здесь допустимы mapping generated DTO в application report contract и
|
|
6
|
-
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
6
|
+
* presentation formatting. Разбор command options и запуск SDK остаются в
|
|
7
|
+
* `cli.ts`.
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.withdrawLimitsFormats = void 0;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { Timestamp } from '../generated/google/protobuf/timestamp';
|
|
11
11
|
export { protobufPackage, Edition, editionFromJSON, editionToJSON, FileDescriptorSet, FileDescriptorProto, DescriptorProto, DescriptorProto_ExtensionRange, DescriptorProto_ReservedRange, ExtensionRangeOptions, ExtensionRangeOptions_VerificationState, extensionRangeOptions_VerificationStateFromJSON, extensionRangeOptions_VerificationStateToJSON, ExtensionRangeOptions_Declaration, FieldDescriptorProto, FieldDescriptorProto_Type, fieldDescriptorProto_TypeFromJSON, fieldDescriptorProto_TypeToJSON, FieldDescriptorProto_Label, fieldDescriptorProto_LabelFromJSON, fieldDescriptorProto_LabelToJSON, OneofDescriptorProto, EnumDescriptorProto, EnumDescriptorProto_EnumReservedRange, EnumValueDescriptorProto, ServiceDescriptorProto, MethodDescriptorProto, FileOptions, FileOptions_OptimizeMode, fileOptions_OptimizeModeFromJSON, fileOptions_OptimizeModeToJSON, MessageOptions, FieldOptions, FieldOptions_CType, fieldOptions_CTypeFromJSON, fieldOptions_CTypeToJSON, FieldOptions_JSType, fieldOptions_JSTypeFromJSON, fieldOptions_JSTypeToJSON, FieldOptions_OptionRetention, fieldOptions_OptionRetentionFromJSON, fieldOptions_OptionRetentionToJSON, FieldOptions_OptionTargetType, fieldOptions_OptionTargetTypeFromJSON, fieldOptions_OptionTargetTypeToJSON, FieldOptions_EditionDefault, FieldOptions_FeatureSupport, OneofOptions, EnumOptions, EnumValueOptions, ServiceOptions, MethodOptions, MethodOptions_IdempotencyLevel, methodOptions_IdempotencyLevelFromJSON, methodOptions_IdempotencyLevelToJSON, UninterpretedOption, UninterpretedOption_NamePart, FeatureSet, FeatureSet_FieldPresence, featureSet_FieldPresenceFromJSON, featureSet_FieldPresenceToJSON, FeatureSet_EnumType, featureSet_EnumTypeFromJSON, featureSet_EnumTypeToJSON, FeatureSet_RepeatedFieldEncoding, featureSet_RepeatedFieldEncodingFromJSON, featureSet_RepeatedFieldEncodingToJSON, FeatureSet_Utf8Validation, featureSet_Utf8ValidationFromJSON, featureSet_Utf8ValidationToJSON, FeatureSet_MessageEncoding, featureSet_MessageEncodingFromJSON, featureSet_MessageEncodingToJSON, FeatureSet_JsonFormat, featureSet_JsonFormatFromJSON, featureSet_JsonFormatToJSON, FeatureSetDefaults, FeatureSetDefaults_FeatureSetEditionDefault, SourceCodeInfo, SourceCodeInfo_Location, GeneratedCodeInfo, GeneratedCodeInfo_Annotation, GeneratedCodeInfo_Annotation_Semantic, generatedCodeInfo_Annotation_SemanticFromJSON, generatedCodeInfo_Annotation_SemanticToJSON } from '../generated/google/protobuf/descriptor';
|
|
12
|
-
export { InstrumentType, instrumentTypeFromJSON, instrumentTypeToJSON, InstrumentStatus, instrumentStatusFromJSON, instrumentStatusToJSON, SecurityTradingStatus, securityTradingStatusFromJSON, securityTradingStatusToJSON, PriceType, priceTypeFromJSON, priceTypeToJSON, RealExchange, realExchangeFromJSON, realExchangeToJSON, MoneyValue, Quotation, Ping } from '../generated/common';
|
|
12
|
+
export { InstrumentType, instrumentTypeFromJSON, instrumentTypeToJSON, InstrumentStatus, instrumentStatusFromJSON, instrumentStatusToJSON, SecurityTradingStatus, securityTradingStatusFromJSON, securityTradingStatusToJSON, PriceType, priceTypeFromJSON, priceTypeToJSON, ResultSubscriptionStatus, resultSubscriptionStatusFromJSON, resultSubscriptionStatusToJSON, RealExchange, realExchangeFromJSON, realExchangeToJSON, MoneyValue, Quotation, Ping } from '../generated/common';
|
|
13
13
|
export type { DeepPartial, MessageFns } from '../generated/common';
|
|
14
14
|
export { CouponType, couponTypeFromJSON, couponTypeToJSON, OptionDirection, optionDirectionFromJSON, optionDirectionToJSON, OptionPaymentType, optionPaymentTypeFromJSON, optionPaymentTypeToJSON, OptionStyle, optionStyleFromJSON, optionStyleToJSON, OptionSettlementType, optionSettlementTypeFromJSON, optionSettlementTypeToJSON, InstrumentIdType, instrumentIdTypeFromJSON, instrumentIdTypeToJSON, ShareType, shareTypeFromJSON, shareTypeToJSON, AssetType, assetTypeFromJSON, assetTypeToJSON, StructuredProductType, structuredProductTypeFromJSON, structuredProductTypeToJSON, EditFavoritesActionType, editFavoritesActionTypeFromJSON, editFavoritesActionTypeToJSON, RiskLevel, riskLevelFromJSON, riskLevelToJSON, Recommendation, recommendationFromJSON, recommendationToJSON, BondType, bondTypeFromJSON, bondTypeToJSON, InstrumentExchangeType, instrumentExchangeTypeFromJSON, instrumentExchangeTypeToJSON, GetBondEventsRequest_EventType, getBondEventsRequest_EventTypeFromJSON, getBondEventsRequest_EventTypeToJSON, StructuredNote_LogicPortfolio, structuredNote_LogicPortfolioFromJSON, structuredNote_LogicPortfolioToJSON, StructuredNote_ObservationPrinciple, structuredNote_ObservationPrincipleFromJSON, structuredNote_ObservationPrincipleToJSON, StructuredNote_YieldType, structuredNote_YieldTypeFromJSON, structuredNote_YieldTypeToJSON, GetAssetReportsResponse_AssetReportPeriodType, getAssetReportsResponse_AssetReportPeriodTypeFromJSON, getAssetReportsResponse_AssetReportPeriodTypeToJSON, GetInsiderDealsResponse_TradeDirection, getInsiderDealsResponse_TradeDirectionFromJSON, getInsiderDealsResponse_TradeDirectionToJSON, TradingSchedulesRequest, TradingSchedulesResponse, TradingSchedule, TradingDay, InstrumentRequest, InstrumentsRequest, FilterOptionsRequest, BondResponse, BondsResponse, GetBondCouponsRequest, GetBondCouponsResponse, GetBondEventsRequest, GetBondEventsResponse, Coupon, CurrencyResponse, CurrenciesResponse, DfaResponse, DfasRequest, DfasResponse, EtfResponse, EtfsResponse, FutureResponse, FuturesResponse, IndicativesRequest, IndicativesResponse, OptionResponse, OptionsResponse, Option, ShareResponse, SharesResponse, Bond, Rating, Currency, Etf, Future, Share, GetAccruedInterestsRequest, GetAccruedInterestsResponse, AccruedInterest, GetFuturesMarginRequest, GetFuturesMarginResponse, InstrumentResponse, Instrument, GetDividendsRequest, GetDividendsResponse, Dividend, AssetRequest, AssetResponse, AssetsRequest, AssetsResponse, AssetFull, Asset, AssetCurrency, AssetSecurity, AssetShare, AssetBond, AssetStructuredProduct, AssetEtf, AssetClearingCertificate, Brand, AssetInstrument, InstrumentLink, GetFavoritesRequest, GetFavoritesResponse, FavoriteInstrument, CreateFavoriteGroupRequest, CreateFavoriteGroupResponse, DeleteFavoriteGroupRequest, DeleteFavoriteGroupResponse, GetFavoriteGroupsRequest, GetFavoriteGroupsResponse, EditFavoritesRequest, EditFavoritesRequestInstrument, EditFavoritesResponse, GetCountriesRequest, GetCountriesResponse, CountryResponse, FindInstrumentRequest, FindInstrumentResponse, InstrumentShort, GetBrandsRequest, GetBrandRequest, GetBrandsResponse, GetAssetFundamentalsRequest, GetAssetFundamentalsResponse, GetAssetReportsRequest, GetAssetReportsResponse, GetConsensusForecastsRequest, GetConsensusForecastsResponse, GetForecastRequest, GetForecastResponse, RiskRatesRequest, RiskRatesResponse, GetInsiderDealsRequest, GetInsiderDealsResponse, StructuredNoteResponse, StructuredNotesResponse, NewsRequest, NewsResponse, InstrumentsServiceDefinition } from '../generated/instruments';
|
|
15
15
|
export type { InstrumentsServiceImplementation } from '../generated/instruments';
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_FeatureSupport = exports.FieldOptions_EditionDefault = exports.fieldOptions_OptionTargetTypeToJSON = exports.fieldOptions_OptionTargetTypeFromJSON = exports.FieldOptions_OptionTargetType = exports.fieldOptions_OptionRetentionToJSON = exports.fieldOptions_OptionRetentionFromJSON = exports.FieldOptions_OptionRetention = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.FieldOptions = exports.MessageOptions = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_Type = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.extensionRangeOptions_VerificationStateToJSON = exports.extensionRangeOptions_VerificationStateFromJSON = exports.ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.editionToJSON = exports.editionFromJSON = exports.Edition = exports.protobufPackage = exports.Timestamp = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.UsersServiceDefinition = exports.GetInfoResponse = exports.GetInfoRequest = exports.GetAccountValuesResponse = exports.GetAccountValuesRequest = exports.PayInResponse = exports.PayInRequest = exports.CurrencyTransferResponse = void 0;
|
|
13
|
+
exports.resultSubscriptionStatusFromJSON = exports.ResultSubscriptionStatus = exports.priceTypeToJSON = exports.priceTypeFromJSON = exports.PriceType = exports.securityTradingStatusToJSON = exports.securityTradingStatusFromJSON = exports.SecurityTradingStatus = exports.instrumentStatusToJSON = exports.instrumentStatusFromJSON = exports.InstrumentStatus = exports.instrumentTypeToJSON = exports.instrumentTypeFromJSON = exports.InstrumentType = exports.generatedCodeInfo_Annotation_SemanticToJSON = exports.generatedCodeInfo_Annotation_SemanticFromJSON = exports.GeneratedCodeInfo_Annotation_Semantic = exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.featureSet_JsonFormatToJSON = exports.featureSet_JsonFormatFromJSON = exports.FeatureSet_JsonFormat = exports.featureSet_MessageEncodingToJSON = exports.featureSet_MessageEncodingFromJSON = exports.FeatureSet_MessageEncoding = exports.featureSet_Utf8ValidationToJSON = exports.featureSet_Utf8ValidationFromJSON = exports.FeatureSet_Utf8Validation = exports.featureSet_RepeatedFieldEncodingToJSON = exports.featureSet_RepeatedFieldEncodingFromJSON = exports.FeatureSet_RepeatedFieldEncoding = exports.featureSet_EnumTypeToJSON = exports.featureSet_EnumTypeFromJSON = exports.FeatureSet_EnumType = exports.featureSet_FieldPresenceToJSON = exports.featureSet_FieldPresenceFromJSON = exports.FeatureSet_FieldPresence = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = void 0;
|
|
14
|
+
exports.GetBondEventsRequest_EventType = exports.instrumentExchangeTypeToJSON = exports.instrumentExchangeTypeFromJSON = exports.InstrumentExchangeType = exports.bondTypeToJSON = exports.bondTypeFromJSON = exports.BondType = exports.recommendationToJSON = exports.recommendationFromJSON = exports.Recommendation = exports.riskLevelToJSON = exports.riskLevelFromJSON = exports.RiskLevel = exports.editFavoritesActionTypeToJSON = exports.editFavoritesActionTypeFromJSON = exports.EditFavoritesActionType = exports.structuredProductTypeToJSON = exports.structuredProductTypeFromJSON = exports.StructuredProductType = exports.assetTypeToJSON = exports.assetTypeFromJSON = exports.AssetType = exports.shareTypeToJSON = exports.shareTypeFromJSON = exports.ShareType = exports.instrumentIdTypeToJSON = exports.instrumentIdTypeFromJSON = exports.InstrumentIdType = exports.optionSettlementTypeToJSON = exports.optionSettlementTypeFromJSON = exports.OptionSettlementType = exports.optionStyleToJSON = exports.optionStyleFromJSON = exports.OptionStyle = exports.optionPaymentTypeToJSON = exports.optionPaymentTypeFromJSON = exports.OptionPaymentType = exports.optionDirectionToJSON = exports.optionDirectionFromJSON = exports.OptionDirection = exports.couponTypeToJSON = exports.couponTypeFromJSON = exports.CouponType = exports.Ping = exports.Quotation = exports.MoneyValue = exports.realExchangeToJSON = exports.realExchangeFromJSON = exports.RealExchange = exports.resultSubscriptionStatusToJSON = void 0;
|
|
15
|
+
exports.Currency = exports.Rating = exports.Bond = exports.SharesResponse = exports.ShareResponse = exports.Option = exports.OptionsResponse = exports.OptionResponse = exports.IndicativesResponse = exports.IndicativesRequest = exports.FuturesResponse = exports.FutureResponse = exports.EtfsResponse = exports.EtfResponse = exports.DfasResponse = exports.DfasRequest = exports.DfaResponse = exports.CurrenciesResponse = exports.CurrencyResponse = exports.Coupon = exports.GetBondEventsResponse = exports.GetBondEventsRequest = exports.GetBondCouponsResponse = exports.GetBondCouponsRequest = exports.BondsResponse = exports.BondResponse = exports.FilterOptionsRequest = exports.InstrumentsRequest = exports.InstrumentRequest = exports.TradingDay = exports.TradingSchedule = exports.TradingSchedulesResponse = exports.TradingSchedulesRequest = exports.getInsiderDealsResponse_TradeDirectionToJSON = exports.getInsiderDealsResponse_TradeDirectionFromJSON = exports.GetInsiderDealsResponse_TradeDirection = exports.getAssetReportsResponse_AssetReportPeriodTypeToJSON = exports.getAssetReportsResponse_AssetReportPeriodTypeFromJSON = exports.GetAssetReportsResponse_AssetReportPeriodType = exports.structuredNote_YieldTypeToJSON = exports.structuredNote_YieldTypeFromJSON = exports.StructuredNote_YieldType = exports.structuredNote_ObservationPrincipleToJSON = exports.structuredNote_ObservationPrincipleFromJSON = exports.StructuredNote_ObservationPrinciple = exports.structuredNote_LogicPortfolioToJSON = exports.structuredNote_LogicPortfolioFromJSON = exports.StructuredNote_LogicPortfolio = exports.getBondEventsRequest_EventTypeToJSON = exports.getBondEventsRequest_EventTypeFromJSON = void 0;
|
|
16
|
+
exports.GetBrandsResponse = exports.GetBrandRequest = exports.GetBrandsRequest = exports.InstrumentShort = exports.FindInstrumentResponse = exports.FindInstrumentRequest = exports.CountryResponse = exports.GetCountriesResponse = exports.GetCountriesRequest = exports.EditFavoritesResponse = exports.EditFavoritesRequestInstrument = exports.EditFavoritesRequest = exports.GetFavoriteGroupsResponse = exports.GetFavoriteGroupsRequest = exports.DeleteFavoriteGroupResponse = exports.DeleteFavoriteGroupRequest = exports.CreateFavoriteGroupResponse = exports.CreateFavoriteGroupRequest = exports.FavoriteInstrument = exports.GetFavoritesResponse = exports.GetFavoritesRequest = exports.InstrumentLink = exports.AssetInstrument = exports.Brand = exports.AssetClearingCertificate = exports.AssetEtf = exports.AssetStructuredProduct = exports.AssetBond = exports.AssetShare = exports.AssetSecurity = exports.AssetCurrency = exports.Asset = exports.AssetFull = exports.AssetsResponse = exports.AssetsRequest = exports.AssetResponse = exports.AssetRequest = exports.Dividend = exports.GetDividendsResponse = exports.GetDividendsRequest = exports.Instrument = exports.InstrumentResponse = exports.GetFuturesMarginResponse = exports.GetFuturesMarginRequest = exports.AccruedInterest = exports.GetAccruedInterestsResponse = exports.GetAccruedInterestsRequest = exports.Share = exports.Future = exports.Etf = void 0;
|
|
17
|
+
exports.getCandlesRequest_CandleSourceToJSON = exports.getCandlesRequest_CandleSourceFromJSON = exports.GetCandlesRequest_CandleSource = exports.lastPriceTypeToJSON = exports.lastPriceTypeFromJSON = exports.LastPriceType = exports.orderBookTypeToJSON = exports.orderBookTypeFromJSON = exports.OrderBookType = exports.marketValueTypeToJSON = exports.marketValueTypeFromJSON = exports.MarketValueType = exports.candleSourceToJSON = exports.candleSourceFromJSON = exports.CandleSource = exports.tradeSourceTypeToJSON = exports.tradeSourceTypeFromJSON = exports.TradeSourceType = exports.candleIntervalToJSON = exports.candleIntervalFromJSON = exports.CandleInterval = exports.tradeDirectionToJSON = exports.tradeDirectionFromJSON = exports.TradeDirection = exports.subscriptionStatusToJSON = exports.subscriptionStatusFromJSON = exports.SubscriptionStatus = exports.subscriptionIntervalToJSON = exports.subscriptionIntervalFromJSON = exports.SubscriptionInterval = exports.subscriptionActionToJSON = exports.subscriptionActionFromJSON = exports.SubscriptionAction = exports.InstrumentsServiceDefinition = exports.NewsResponse = exports.NewsRequest = exports.StructuredNotesResponse = exports.StructuredNoteResponse = exports.GetInsiderDealsResponse = exports.GetInsiderDealsRequest = exports.RiskRatesResponse = exports.RiskRatesRequest = exports.GetForecastResponse = exports.GetForecastRequest = exports.GetConsensusForecastsResponse = exports.GetConsensusForecastsRequest = exports.GetAssetReportsResponse = exports.GetAssetReportsRequest = exports.GetAssetFundamentalsResponse = exports.GetAssetFundamentalsRequest = void 0;
|
|
18
|
+
exports.GetLastTradesRequest = exports.GetTradingStatusResponse = exports.GetTradingStatusesResponse = exports.GetTradingStatusesRequest = exports.GetTradingStatusRequest = exports.GetOrderBookResponse = exports.GetOrderBookRequest = exports.LastPrice = exports.GetLastPricesResponse = exports.GetLastPricesRequest = exports.HistoricCandle = exports.GetCandlesResponse = exports.GetCandlesRequest = exports.TradingStatus = exports.Trade = exports.Order = exports.OrderBook = exports.Candle = exports.LastPriceSubscription = exports.SubscribeLastPriceResponse = exports.LastPriceInstrument = exports.SubscribeLastPriceRequest = exports.InfoSubscription = exports.SubscribeInfoResponse = exports.InfoInstrument = exports.SubscribeInfoRequest = exports.TradeSubscription = exports.SubscribeTradesResponse = exports.TradeInstrument = exports.SubscribeTradesRequest = exports.OrderBookSubscription = exports.SubscribeOrderBookResponse = exports.OrderBookInstrument = exports.SubscribeOrderBookRequest = exports.CandleSubscription = exports.SubscribeCandlesResponse = exports.CandleInstrument = exports.SubscribeCandlesRequest = exports.MarketDataResponse = exports.MarketDataServerSideStreamRequest = exports.MarketDataRequest = exports.getTechAnalysisRequest_IndicatorTypeToJSON = exports.getTechAnalysisRequest_IndicatorTypeFromJSON = exports.GetTechAnalysisRequest_IndicatorType = exports.getTechAnalysisRequest_TypeOfPriceToJSON = exports.getTechAnalysisRequest_TypeOfPriceFromJSON = exports.GetTechAnalysisRequest_TypeOfPrice = exports.getTechAnalysisRequest_IndicatorIntervalToJSON = exports.getTechAnalysisRequest_IndicatorIntervalFromJSON = exports.GetTechAnalysisRequest_IndicatorInterval = void 0;
|
|
19
|
+
exports.GenerateBrokerReportResponse = exports.GenerateBrokerReportRequest = exports.BrokerReportResponse = exports.BrokerReportRequest = exports.PositionsOptions = exports.PositionsFutures = exports.PositionsSecurities = exports.VirtualPortfolioPosition = exports.PortfolioPosition = exports.WithdrawLimitsResponse = exports.WithdrawLimitsRequest = exports.PositionsResponse = exports.PositionsRequest = exports.PortfolioResponse = exports.PortfolioRequest = exports.OperationTrade = exports.Operation = exports.OperationsResponse = exports.OperationsRequest = exports.portfolioRequest_CurrencyRequestToJSON = exports.portfolioRequest_CurrencyRequestFromJSON = exports.PortfolioRequest_CurrencyRequest = exports.operationsAccountSubscriptionStatusToJSON = exports.operationsAccountSubscriptionStatusFromJSON = exports.OperationsAccountSubscriptionStatus = exports.positionsAccountSubscriptionStatusToJSON = exports.positionsAccountSubscriptionStatusFromJSON = exports.PositionsAccountSubscriptionStatus = exports.portfolioSubscriptionStatusToJSON = exports.portfolioSubscriptionStatusFromJSON = exports.PortfolioSubscriptionStatus = exports.operationTypeToJSON = exports.operationTypeFromJSON = exports.OperationType = exports.operationStateToJSON = exports.operationStateFromJSON = exports.OperationState = exports.MarketDataStreamServiceDefinition = exports.MarketDataServiceDefinition = exports.MarketValueStatistic = exports.GetMarketValuesResponse = exports.GetMarketValuesRequest = exports.GetTechAnalysisResponse = exports.GetTechAnalysisRequest = exports.InstrumentClosePriceResponse = exports.GetClosePricesResponse = exports.InstrumentClosePriceRequest = exports.GetClosePricesRequest = exports.GetMySubscriptions = exports.GetLastTradesResponse = void 0;
|
|
20
|
+
exports.orderStateStreamResponse_StatusCauseInfoToJSON = exports.orderStateStreamResponse_StatusCauseInfoFromJSON = exports.OrderStateStreamResponse_StatusCauseInfo = exports.orderStateStreamResponse_MarkerTypeToJSON = exports.orderStateStreamResponse_MarkerTypeFromJSON = exports.OrderStateStreamResponse_MarkerType = exports.orderExecutionReportStatusToJSON = exports.orderExecutionReportStatusFromJSON = exports.OrderExecutionReportStatus = exports.orderIdTypeToJSON = exports.orderIdTypeFromJSON = exports.OrderIdType = exports.timeInForceTypeToJSON = exports.timeInForceTypeFromJSON = exports.TimeInForceType = exports.orderTypeToJSON = exports.orderTypeFromJSON = exports.OrderType = exports.orderDirectionToJSON = exports.orderDirectionFromJSON = exports.OrderDirection = exports.OperationsStreamServiceDefinition = exports.OperationsServiceDefinition = exports.OperationsStreamResponse = exports.OperationsStreamRequest = exports.PositionsMoney = exports.PositionData = exports.PositionsSubscriptionStatus = exports.PositionsSubscriptionResult = exports.PositionsStreamResponse = exports.PositionsStreamRequest = exports.OperationItemTrade = exports.OperationItemTrades = exports.OperationItem = exports.GetOperationsByCursorResponse = exports.GetOperationsByCursorRequest = exports.AccountSubscriptionStatus = exports.PortfolioSubscriptionResult = exports.PortfolioStreamResponse = exports.PortfolioStreamRequest = exports.DividendsForeignIssuerReport = exports.GetDividendsForeignIssuerReportResponse = exports.GenerateDividendsForeignIssuerReportResponse = exports.GetDividendsForeignIssuerReportRequest = exports.GenerateDividendsForeignIssuerReportRequest = exports.GetDividendsForeignIssuerResponse = exports.GetDividendsForeignIssuerRequest = exports.BrokerReport = exports.GetBrokerReportResponse = exports.GetBrokerReportRequest = void 0;
|
|
21
|
+
exports.stopOrderDirectionToJSON = exports.stopOrderDirectionFromJSON = exports.StopOrderDirection = exports.SignalServiceDefinition = exports.Signal = exports.GetSignalsResponse = exports.GetSignalsRequest = exports.Strategy = exports.GetStrategiesResponse = exports.GetStrategiesRequest = exports.signalStateToJSON = exports.signalStateFromJSON = exports.SignalState = exports.signalDirectionToJSON = exports.signalDirectionFromJSON = exports.SignalDirection = exports.strategyTypeToJSON = exports.strategyTypeFromJSON = exports.StrategyType = exports.SandboxServiceDefinition = exports.SandboxPayInResponse = exports.SandboxPayInRequest = exports.CloseSandboxAccountResponse = exports.CloseSandboxAccountRequest = exports.OpenSandboxAccountResponse = exports.OpenSandboxAccountRequest = exports.OrdersStreamServiceDefinition = exports.OrdersServiceDefinition = exports.OrderStateStreamResponse = exports.OrderStateStreamRequest = exports.ReplaceOrderRequest = exports.OrderStage = exports.OrderState = exports.GetOrderPriceResponse = exports.GetOrderPriceRequest = exports.GetMaxLotsResponse = exports.GetMaxLotsRequest = exports.GetOrdersResponse = exports.GetOrdersRequest = exports.GetOrderStateRequest = exports.CancelOrderResponse = exports.CancelOrderRequest = exports.PostOrderAsyncResponse = exports.PostOrderAsyncRequest = exports.PostOrderResponse = exports.PostOrderRequest = exports.OrderTrade = exports.OrderTrades = exports.TradesStreamResponse = exports.TradesStreamRequest = void 0;
|
|
22
|
+
exports.StreamLimit = exports.UnaryLimit = exports.GetUserTariffResponse = exports.GetUserTariffRequest = exports.GetMarginAttributesResponse = exports.GetMarginAttributesRequest = exports.Account = exports.GetAccountsResponse = exports.GetAccountsRequest = exports.accountValueToJSON = exports.accountValueFromJSON = exports.AccountValue = exports.accessLevelToJSON = exports.accessLevelFromJSON = exports.AccessLevel = exports.accountStatusToJSON = exports.accountStatusFromJSON = exports.AccountStatus = exports.accountTypeToJSON = exports.accountTypeFromJSON = exports.AccountType = exports.StopOrdersServiceDefinition = exports.StopOrder = exports.CancelStopOrderResponse = exports.CancelStopOrderRequest = exports.GetStopOrdersResponse = exports.GetStopOrdersRequest = exports.PostStopOrderResponse = exports.PostStopOrderRequest = exports.trailingStopStatusToJSON = exports.trailingStopStatusFromJSON = exports.TrailingStopStatus = exports.trailingValueTypeToJSON = exports.trailingValueTypeFromJSON = exports.TrailingValueType = exports.takeProfitTypeToJSON = exports.takeProfitTypeFromJSON = exports.TakeProfitType = exports.exchangeOrderTypeToJSON = exports.exchangeOrderTypeFromJSON = exports.ExchangeOrderType = exports.stopOrderStatusOptionToJSON = exports.stopOrderStatusOptionFromJSON = exports.StopOrderStatusOption = exports.stopOrderTypeToJSON = exports.stopOrderTypeFromJSON = exports.StopOrderType = exports.stopOrderExpirationTypeToJSON = exports.stopOrderExpirationTypeFromJSON = exports.StopOrderExpirationType = void 0;
|
|
23
|
+
exports.UsersServiceDefinition = exports.GetInfoResponse = exports.GetInfoRequest = exports.GetAccountValuesResponse = exports.GetAccountValuesRequest = exports.PayInResponse = exports.PayInRequest = exports.CurrencyTransferResponse = exports.CurrencyTransferRequest = exports.GetBankAccountsResponse = exports.GetBankAccountsRequest = void 0;
|
|
24
24
|
var timestamp_1 = require("../generated/google/protobuf/timestamp");
|
|
25
25
|
Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return timestamp_1.Timestamp; } });
|
|
26
26
|
var descriptor_1 = require("../generated/google/protobuf/descriptor");
|
|
@@ -122,6 +122,9 @@ Object.defineProperty(exports, "securityTradingStatusToJSON", { enumerable: true
|
|
|
122
122
|
Object.defineProperty(exports, "PriceType", { enumerable: true, get: function () { return common_1.PriceType; } });
|
|
123
123
|
Object.defineProperty(exports, "priceTypeFromJSON", { enumerable: true, get: function () { return common_1.priceTypeFromJSON; } });
|
|
124
124
|
Object.defineProperty(exports, "priceTypeToJSON", { enumerable: true, get: function () { return common_1.priceTypeToJSON; } });
|
|
125
|
+
Object.defineProperty(exports, "ResultSubscriptionStatus", { enumerable: true, get: function () { return common_1.ResultSubscriptionStatus; } });
|
|
126
|
+
Object.defineProperty(exports, "resultSubscriptionStatusFromJSON", { enumerable: true, get: function () { return common_1.resultSubscriptionStatusFromJSON; } });
|
|
127
|
+
Object.defineProperty(exports, "resultSubscriptionStatusToJSON", { enumerable: true, get: function () { return common_1.resultSubscriptionStatusToJSON; } });
|
|
125
128
|
Object.defineProperty(exports, "RealExchange", { enumerable: true, get: function () { return common_1.RealExchange; } });
|
|
126
129
|
Object.defineProperty(exports, "realExchangeFromJSON", { enumerable: true, get: function () { return common_1.realExchangeFromJSON; } });
|
|
127
130
|
Object.defineProperty(exports, "realExchangeToJSON", { enumerable: true, get: function () { return common_1.realExchangeToJSON; } });
|
package/dist/bootstrap/index.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* `dist/bootstrap/index.js` и делегирует bootstrap-механику CLI runner-у.
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const error_1 = require("./cli/error");
|
|
8
9
|
const runner_1 = require("./cli/runner");
|
|
9
10
|
const warning_interceptor_1 = require("../infrastructure/interceptor/warning-interceptor");
|
|
10
11
|
(0, warning_interceptor_1.installWarningInterceptor)({
|
|
@@ -12,11 +13,13 @@ const warning_interceptor_1 = require("../infrastructure/interceptor/warning-int
|
|
|
12
13
|
{ messageIncludes: 'client.query() when the client is already executing' }
|
|
13
14
|
]
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
+
// Node.js оставляет первые два argv-элемента для исполняемого файла и entry module.
|
|
17
|
+
const nodeCliArgumentStartIndex = 2;
|
|
18
|
+
void (0, runner_1.runCli)(process.argv.slice(nodeCliArgumentStartIndex))
|
|
16
19
|
.then((exitCode) => {
|
|
17
20
|
process.exitCode = exitCode;
|
|
18
21
|
})
|
|
19
22
|
.catch((error) => {
|
|
20
23
|
console.error(error);
|
|
21
|
-
process.exitCode =
|
|
24
|
+
process.exitCode = error_1.cliExitCodes.runtimeError;
|
|
22
25
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Модуль proto compiler запускает генерацию TypeScript contracts из локальных
|
|
2
|
+
* Модуль proto compiler запускает генерацию TypeScript contracts из локальных
|
|
3
|
+
* proto-файлов.
|
|
3
4
|
*
|
|
4
5
|
* Здесь допустимы:
|
|
5
6
|
* - чтение локальных generation paths из proto upstream manifest;
|
|
@@ -7,7 +8,8 @@
|
|
|
7
8
|
* - вызов закреплённого локального `protoc` с текущими ts-proto options;
|
|
8
9
|
* - проверка обязательных tool/runtime prerequisites перед генерацией;
|
|
9
10
|
*
|
|
10
|
-
* Здесь не должно быть post-processing generated sources или SDK runtime
|
|
11
|
+
* Здесь не должно быть post-processing generated sources или SDK runtime
|
|
12
|
+
* wiring.
|
|
11
13
|
*/
|
|
12
14
|
type ProtoGenerationPaths = {
|
|
13
15
|
contractsDir: string;
|