jr-common-micro 0.6.1-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/common/dto/by_id_request_dto.d.ts +11 -0
- package/dist/common/dto/by_id_request_dto.js +10 -0
- package/dist/common/dto/index.d.ts +3 -0
- package/dist/common/dto/index.js +7 -0
- package/dist/common/dto/paginate_from_request_dto.d.ts +58 -0
- package/dist/common/dto/paginate_from_request_dto.js +22 -0
- package/dist/common/dto/paginate_request_dto.d.ts +23 -0
- package/dist/common/dto/paginate_request_dto.js +14 -0
- package/dist/common/exception/base_exception.d.ts +4 -0
- package/dist/common/exception/base_exception.js +14 -0
- package/dist/common/exception/index.d.ts +1 -0
- package/dist/common/exception/index.js +5 -0
- package/dist/common/factory/grpc_options_factory.d.ts +15 -0
- package/dist/common/factory/grpc_options_factory.js +63 -0
- package/dist/common/factory/index.d.ts +5 -0
- package/dist/common/factory/index.js +9 -0
- package/dist/common/factory/logger/index.d.ts +2 -0
- package/dist/common/factory/logger/index.js +6 -0
- package/dist/common/factory/logger/kafka_transport.d.ts +16 -0
- package/dist/common/factory/logger/kafka_transport.js +54 -0
- package/dist/common/factory/logger/winston_config.d.ts +22 -0
- package/dist/common/factory/logger/winston_config.js +141 -0
- package/dist/common/factory/module_metadata_factory.d.ts +24 -0
- package/dist/common/factory/module_metadata_factory.js +186 -0
- package/dist/common/factory/redis_client_factory.d.ts +5 -0
- package/dist/common/factory/redis_client_factory.js +22 -0
- package/dist/common/factory/redis_cluster_factory.d.ts +5 -0
- package/dist/common/factory/redis_cluster_factory.js +25 -0
- package/dist/common/filters/grpc_exceptions_filter.d.ts +6 -0
- package/dist/common/filters/grpc_exceptions_filter.js +26 -0
- package/dist/common/filters/index.d.ts +1 -0
- package/dist/common/filters/index.js +5 -0
- package/dist/common/guards/app_auth_guard.d.ts +5 -0
- package/dist/common/guards/app_auth_guard.js +38 -0
- package/dist/common/guards/app_internal_guard.d.ts +5 -0
- package/dist/common/guards/app_internal_guard.js +38 -0
- package/dist/common/guards/app_role_guard.d.ts +5 -0
- package/dist/common/guards/app_role_guard.js +43 -0
- package/dist/common/guards/index.d.ts +4 -0
- package/dist/common/guards/index.js +8 -0
- package/dist/common/guards/jwt_auth_user_decorator.d.ts +1 -0
- package/dist/common/guards/jwt_auth_user_decorator.js +31 -0
- package/dist/common/index.d.ts +8 -0
- package/dist/common/index.js +12 -0
- package/dist/common/interceptors/grpc/grpc_error_interceptors.d.ts +7 -0
- package/dist/common/interceptors/grpc/grpc_error_interceptors.js +35 -0
- package/dist/common/interceptors/grpc/index.d.ts +1 -0
- package/dist/common/interceptors/grpc/index.js +5 -0
- package/dist/common/interceptors/http/http_error_interceptors.d.ts +7 -0
- package/dist/common/interceptors/http/http_error_interceptors.js +30 -0
- package/dist/common/interceptors/http/http_response_interceptors.d.ts +7 -0
- package/dist/common/interceptors/http/http_response_interceptors.js +20 -0
- package/dist/common/interceptors/http/index.d.ts +2 -0
- package/dist/common/interceptors/http/index.js +6 -0
- package/dist/common/interceptors/index.d.ts +2 -0
- package/dist/common/interceptors/index.js +6 -0
- package/dist/common/kafka/index.d.ts +3 -0
- package/dist/common/kafka/index.js +7 -0
- package/dist/common/kafka/kafka_admin_service.d.ts +13 -0
- package/dist/common/kafka/kafka_admin_service.js +64 -0
- package/dist/common/kafka/kafka_consumer_service.d.ts +19 -0
- package/dist/common/kafka/kafka_consumer_service.js +80 -0
- package/dist/common/kafka/kafka_producer_service.d.ts +14 -0
- package/dist/common/kafka/kafka_producer_service.js +49 -0
- package/dist/common/service/crud/crud_service_interface.d.ts +20 -0
- package/dist/common/service/crud/crud_service_interface.js +2 -0
- package/dist/common/service/crud/index.d.ts +1 -0
- package/dist/common/service/crud/index.js +5 -0
- package/dist/common/service/index.d.ts +1 -0
- package/dist/common/service/index.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -0
- package/dist/proto/index.d.ts +1 -0
- package/dist/proto/index.js +5 -0
- package/dist/proto/micro/index.d.ts +1 -0
- package/dist/proto/micro/index.js +5 -0
- package/dist/proto/micro/v1/coin/analytics_messages_nest.d.ts +335 -0
- package/dist/proto/micro/v1/coin/analytics_messages_nest.js +18 -0
- package/dist/proto/micro/v1/coin/analytics_messages_pb.d.ts +670 -0
- package/dist/proto/micro/v1/coin/analytics_messages_pb.js +1456 -0
- package/dist/proto/micro/v1/coin/coin_messages_nest.d.ts +110 -0
- package/dist/proto/micro/v1/coin/coin_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/coin_messages_pb.d.ts +258 -0
- package/dist/proto/micro/v1/coin/coin_messages_pb.js +568 -0
- package/dist/proto/micro/v1/coin/coin_websocket_messages_nest.d.ts +72 -0
- package/dist/proto/micro/v1/coin/coin_websocket_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/coin_websocket_messages_pb.d.ts +128 -0
- package/dist/proto/micro/v1/coin/coin_websocket_messages_pb.js +276 -0
- package/dist/proto/micro/v1/coin/data_general_messages_nest.d.ts +54 -0
- package/dist/proto/micro/v1/coin/data_general_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/data_general_messages_pb.d.ts +118 -0
- package/dist/proto/micro/v1/coin/data_general_messages_pb.js +259 -0
- package/dist/proto/micro/v1/coin/data_microservice_messages_nest.d.ts +43 -0
- package/dist/proto/micro/v1/coin/data_microservice_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/data_microservice_messages_pb.d.ts +91 -0
- package/dist/proto/micro/v1/coin/data_microservice_messages_pb.js +199 -0
- package/dist/proto/micro/v1/coin/etf_messages_nest.d.ts +98 -0
- package/dist/proto/micro/v1/coin/etf_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/etf_messages_pb.d.ts +226 -0
- package/dist/proto/micro/v1/coin/etf_messages_pb.js +499 -0
- package/dist/proto/micro/v1/coin/index.d.ts +11 -0
- package/dist/proto/micro/v1/coin/index.js +15 -0
- package/dist/proto/micro/v1/coin/long_short_ratio_messages_nest.d.ts +55 -0
- package/dist/proto/micro/v1/coin/long_short_ratio_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/long_short_ratio_messages_pb.d.ts +115 -0
- package/dist/proto/micro/v1/coin/long_short_ratio_messages_pb.js +249 -0
- package/dist/proto/micro/v1/coin/rsi_messages_nest.d.ts +42 -0
- package/dist/proto/micro/v1/coin/rsi_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/rsi_messages_pb.d.ts +98 -0
- package/dist/proto/micro/v1/coin/rsi_messages_pb.js +216 -0
- package/dist/proto/micro/v1/coin/services_connect.d.ts +413 -0
- package/dist/proto/micro/v1/coin/services_connect.js +416 -0
- package/dist/proto/micro/v1/coin/services_nest.d.ts +200 -0
- package/dist/proto/micro/v1/coin/services_nest.js +244 -0
- package/dist/proto/micro/v1/coin/token_unlocks_messages_nest.d.ts +53 -0
- package/dist/proto/micro/v1/coin/token_unlocks_messages_nest.js +5 -0
- package/dist/proto/micro/v1/coin/token_unlocks_messages_pb.d.ts +101 -0
- package/dist/proto/micro/v1/coin/token_unlocks_messages_pb.js +214 -0
- package/dist/proto/micro/v1/data/daily_market_data_messages_nest.d.ts +18 -0
- package/dist/proto/micro/v1/data/daily_market_data_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/daily_market_data_messages_pb.d.ts +42 -0
- package/dist/proto/micro/v1/data/daily_market_data_messages_pb.js +92 -0
- package/dist/proto/micro/v1/data/dominance_messages_nest.d.ts +35 -0
- package/dist/proto/micro/v1/data/dominance_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/dominance_messages_pb.d.ts +75 -0
- package/dist/proto/micro/v1/data/dominance_messages_pb.js +164 -0
- package/dist/proto/micro/v1/data/exchanges_messages_nest.d.ts +153 -0
- package/dist/proto/micro/v1/data/exchanges_messages_nest.js +11 -0
- package/dist/proto/micro/v1/data/exchanges_messages_pb.d.ts +256 -0
- package/dist/proto/micro/v1/data/exchanges_messages_pb.js +546 -0
- package/dist/proto/micro/v1/data/funding_rate_messages_nest.d.ts +52 -0
- package/dist/proto/micro/v1/data/funding_rate_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/funding_rate_messages_pb.d.ts +68 -0
- package/dist/proto/micro/v1/data/funding_rate_messages_pb.js +131 -0
- package/dist/proto/micro/v1/data/global_stats_messages_nest.d.ts +17 -0
- package/dist/proto/micro/v1/data/global_stats_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/global_stats_messages_pb.d.ts +25 -0
- package/dist/proto/micro/v1/data/global_stats_messages_pb.js +53 -0
- package/dist/proto/micro/v1/data/homepage_messages_nest.d.ts +35 -0
- package/dist/proto/micro/v1/data/homepage_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/homepage_messages_pb.d.ts +83 -0
- package/dist/proto/micro/v1/data/homepage_messages_pb.js +183 -0
- package/dist/proto/micro/v1/data/index.d.ts +22 -0
- package/dist/proto/micro/v1/data/index.js +26 -0
- package/dist/proto/micro/v1/data/inflow_outflow_messages_nest.d.ts +72 -0
- package/dist/proto/micro/v1/data/inflow_outflow_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/inflow_outflow_messages_pb.d.ts +136 -0
- package/dist/proto/micro/v1/data/inflow_outflow_messages_pb.js +295 -0
- package/dist/proto/micro/v1/data/liquidation_heat_map_m2_messages_nest.d.ts +44 -0
- package/dist/proto/micro/v1/data/liquidation_heat_map_m2_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/liquidation_heat_map_m2_messages_pb.d.ts +100 -0
- package/dist/proto/micro/v1/data/liquidation_heat_map_m2_messages_pb.js +221 -0
- package/dist/proto/micro/v1/data/liquidation_v1_messages_nest.d.ts +34 -0
- package/dist/proto/micro/v1/data/liquidation_v1_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/liquidation_v1_messages_pb.d.ts +82 -0
- package/dist/proto/micro/v1/data/liquidation_v1_messages_pb.js +181 -0
- package/dist/proto/micro/v1/data/mvrvz_score_messages_nest.d.ts +10 -0
- package/dist/proto/micro/v1/data/mvrvz_score_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/mvrvz_score_messages_pb.d.ts +26 -0
- package/dist/proto/micro/v1/data/mvrvz_score_messages_pb.js +58 -0
- package/dist/proto/micro/v1/data/puell_multiple_messages_nest.d.ts +14 -0
- package/dist/proto/micro/v1/data/puell_multiple_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/puell_multiple_messages_pb.d.ts +30 -0
- package/dist/proto/micro/v1/data/puell_multiple_messages_pb.js +65 -0
- package/dist/proto/micro/v1/data/puppeteer_messages_nest.d.ts +24 -0
- package/dist/proto/micro/v1/data/puppeteer_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/puppeteer_messages_pb.d.ts +40 -0
- package/dist/proto/micro/v1/data/puppeteer_messages_pb.js +84 -0
- package/dist/proto/micro/v1/data/rainbow_messages_nest.d.ts +10 -0
- package/dist/proto/micro/v1/data/rainbow_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/rainbow_messages_pb.d.ts +26 -0
- package/dist/proto/micro/v1/data/rainbow_messages_pb.js +57 -0
- package/dist/proto/micro/v1/data/rsi_list_messages_nest.d.ts +23 -0
- package/dist/proto/micro/v1/data/rsi_list_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/rsi_list_messages_pb.d.ts +39 -0
- package/dist/proto/micro/v1/data/rsi_list_messages_pb.js +83 -0
- package/dist/proto/micro/v1/data/scrape_assets_messages_nest.d.ts +20 -0
- package/dist/proto/micro/v1/data/scrape_assets_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/scrape_assets_messages_pb.d.ts +36 -0
- package/dist/proto/micro/v1/data/scrape_assets_messages_pb.js +77 -0
- package/dist/proto/micro/v1/data/scrape_treasuries_messages_nest.d.ts +37 -0
- package/dist/proto/micro/v1/data/scrape_treasuries_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/scrape_treasuries_messages_pb.d.ts +69 -0
- package/dist/proto/micro/v1/data/scrape_treasuries_messages_pb.js +149 -0
- package/dist/proto/micro/v1/data/services_connect.d.ts +325 -0
- package/dist/proto/micro/v1/data/services_connect.js +328 -0
- package/dist/proto/micro/v1/data/services_nest.d.ts +207 -0
- package/dist/proto/micro/v1/data/services_nest.js +326 -0
- package/dist/proto/micro/v1/data/token_unlocks_connect.d.ts +19 -0
- package/dist/proto/micro/v1/data/token_unlocks_connect.js +22 -0
- package/dist/proto/micro/v1/data/token_unlocks_nest.d.ts +69 -0
- package/dist/proto/micro/v1/data/token_unlocks_nest.js +22 -0
- package/dist/proto/micro/v1/data/token_unlocks_pb.d.ts +109 -0
- package/dist/proto/micro/v1/data/token_unlocks_pb.js +234 -0
- package/dist/proto/micro/v1/data/two_hundred_week_moving_average_messages_nest.d.ts +15 -0
- package/dist/proto/micro/v1/data/two_hundred_week_moving_average_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/two_hundred_week_moving_average_messages_pb.d.ts +31 -0
- package/dist/proto/micro/v1/data/two_hundred_week_moving_average_messages_pb.js +68 -0
- package/dist/proto/micro/v1/data/two_year_ma_multipler_messages_nest.d.ts +15 -0
- package/dist/proto/micro/v1/data/two_year_ma_multipler_messages_nest.js +5 -0
- package/dist/proto/micro/v1/data/two_year_ma_multipler_messages_pb.d.ts +31 -0
- package/dist/proto/micro/v1/data/two_year_ma_multipler_messages_pb.js +67 -0
- package/dist/proto/micro/v1/education/education_messages_nest.d.ts +370 -0
- package/dist/proto/micro/v1/education/education_messages_nest.js +5 -0
- package/dist/proto/micro/v1/education/education_messages_pb.d.ts +610 -0
- package/dist/proto/micro/v1/education/education_messages_pb.js +1264 -0
- package/dist/proto/micro/v1/education/index.d.ts +3 -0
- package/dist/proto/micro/v1/education/index.js +7 -0
- package/dist/proto/micro/v1/education/services_connect.d.ts +375 -0
- package/dist/proto/micro/v1/education/services_connect.js +378 -0
- package/dist/proto/micro/v1/education/services_nest.d.ts +182 -0
- package/dist/proto/micro/v1/education/services_nest.js +198 -0
- package/dist/proto/micro/v1/general_nest.d.ts +115 -0
- package/dist/proto/micro/v1/general_nest.js +51 -0
- package/dist/proto/micro/v1/general_pb.d.ts +211 -0
- package/dist/proto/micro/v1/general_pb.js +460 -0
- package/dist/proto/micro/v1/index.d.ts +10 -0
- package/dist/proto/micro/v1/index.js +14 -0
- package/dist/proto/micro/v1/media/index.d.ts +3 -0
- package/dist/proto/micro/v1/media/index.js +7 -0
- package/dist/proto/micro/v1/media/media_messages_nest.d.ts +92 -0
- package/dist/proto/micro/v1/media/media_messages_nest.js +21 -0
- package/dist/proto/micro/v1/media/media_messages_pb.d.ts +202 -0
- package/dist/proto/micro/v1/media/media_messages_pb.js +447 -0
- package/dist/proto/micro/v1/media/services_connect.d.ts +55 -0
- package/dist/proto/micro/v1/media/services_connect.js +58 -0
- package/dist/proto/micro/v1/media/services_nest.d.ts +32 -0
- package/dist/proto/micro/v1/media/services_nest.js +45 -0
- package/dist/proto/micro/v1/news/app_version_message_nest.d.ts +40 -0
- package/dist/proto/micro/v1/news/app_version_message_nest.js +5 -0
- package/dist/proto/micro/v1/news/app_version_message_pb.d.ts +72 -0
- package/dist/proto/micro/v1/news/app_version_message_pb.js +150 -0
- package/dist/proto/micro/v1/news/blog_messages_nest.d.ts +162 -0
- package/dist/proto/micro/v1/news/blog_messages_nest.js +5 -0
- package/dist/proto/micro/v1/news/blog_messages_pb.d.ts +246 -0
- package/dist/proto/micro/v1/news/blog_messages_pb.js +495 -0
- package/dist/proto/micro/v1/news/calendar_messages_nest.d.ts +70 -0
- package/dist/proto/micro/v1/news/calendar_messages_nest.js +5 -0
- package/dist/proto/micro/v1/news/calendar_messages_pb.d.ts +98 -0
- package/dist/proto/micro/v1/news/calendar_messages_pb.js +193 -0
- package/dist/proto/micro/v1/news/economic_calendar_messages_nest.d.ts +28 -0
- package/dist/proto/micro/v1/news/economic_calendar_messages_nest.js +5 -0
- package/dist/proto/micro/v1/news/economic_calendar_messages_pb.d.ts +48 -0
- package/dist/proto/micro/v1/news/economic_calendar_messages_pb.js +100 -0
- package/dist/proto/micro/v1/news/index.d.ts +9 -0
- package/dist/proto/micro/v1/news/index.js +13 -0
- package/dist/proto/micro/v1/news/jr_blog_messages_nest.d.ts +321 -0
- package/dist/proto/micro/v1/news/jr_blog_messages_nest.js +5 -0
- package/dist/proto/micro/v1/news/jr_blog_messages_pb.d.ts +477 -0
- package/dist/proto/micro/v1/news/jr_blog_messages_pb.js +954 -0
- package/dist/proto/micro/v1/news/news_messages_nest.d.ts +270 -0
- package/dist/proto/micro/v1/news/news_messages_nest.js +5 -0
- package/dist/proto/micro/v1/news/news_messages_pb.d.ts +418 -0
- package/dist/proto/micro/v1/news/news_messages_pb.js +848 -0
- package/dist/proto/micro/v1/news/services_connect.d.ts +549 -0
- package/dist/proto/micro/v1/news/services_connect.js +552 -0
- package/dist/proto/micro/v1/news/services_nest.d.ts +244 -0
- package/dist/proto/micro/v1/news/services_nest.js +261 -0
- package/dist/proto/micro/v1/news/sundown_messages_nest.d.ts +99 -0
- package/dist/proto/micro/v1/news/sundown_messages_nest.js +5 -0
- package/dist/proto/micro/v1/news/sundown_messages_pb.d.ts +131 -0
- package/dist/proto/micro/v1/news/sundown_messages_pb.js +253 -0
- package/dist/proto/micro/v1/notification/index.d.ts +4 -0
- package/dist/proto/micro/v1/notification/index.js +8 -0
- package/dist/proto/micro/v1/notification/mail_messages_nest.d.ts +31 -0
- package/dist/proto/micro/v1/notification/mail_messages_nest.js +5 -0
- package/dist/proto/micro/v1/notification/mail_messages_pb.d.ts +63 -0
- package/dist/proto/micro/v1/notification/mail_messages_pb.js +138 -0
- package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +164 -0
- package/dist/proto/micro/v1/notification/notification_messages_nest.js +5 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +356 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.js +783 -0
- package/dist/proto/micro/v1/notification/services_connect.d.ts +139 -0
- package/dist/proto/micro/v1/notification/services_connect.js +142 -0
- package/dist/proto/micro/v1/notification/services_nest.d.ts +65 -0
- package/dist/proto/micro/v1/notification/services_nest.js +70 -0
- package/dist/proto/micro/v1/portfolio/index.d.ts +5 -0
- package/dist/proto/micro/v1/portfolio/index.js +9 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_messages_nest.d.ts +17 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_messages_nest.js +5 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_messages_pb.d.ts +41 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_messages_pb.js +89 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages_nest.d.ts +34 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages_nest.js +5 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages_pb.d.ts +82 -0
- package/dist/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages_pb.js +180 -0
- package/dist/proto/micro/v1/portfolio/portfolio_messages_nest.d.ts +154 -0
- package/dist/proto/micro/v1/portfolio/portfolio_messages_nest.js +5 -0
- package/dist/proto/micro/v1/portfolio/portfolio_messages_pb.d.ts +370 -0
- package/dist/proto/micro/v1/portfolio/portfolio_messages_pb.js +820 -0
- package/dist/proto/micro/v1/portfolio/services_connect.d.ts +140 -0
- package/dist/proto/micro/v1/portfolio/services_connect.js +143 -0
- package/dist/proto/micro/v1/portfolio/services_nest.d.ts +66 -0
- package/dist/proto/micro/v1/portfolio/services_nest.js +74 -0
- package/dist/proto/micro/v1/puppeteer/index.d.ts +3 -0
- package/dist/proto/micro/v1/puppeteer/index.js +7 -0
- package/dist/proto/micro/v1/puppeteer/puppeteer_messages_nest.d.ts +2 -0
- package/dist/proto/micro/v1/puppeteer/puppeteer_messages_nest.js +5 -0
- package/dist/proto/micro/v1/puppeteer/services_connect.d.ts +89 -0
- package/dist/proto/micro/v1/puppeteer/services_connect.js +92 -0
- package/dist/proto/micro/v1/puppeteer/services_nest.d.ts +47 -0
- package/dist/proto/micro/v1/puppeteer/services_nest.js +63 -0
- package/dist/proto/micro/v1/user/auth_messages_nest.d.ts +87 -0
- package/dist/proto/micro/v1/user/auth_messages_nest.js +5 -0
- package/dist/proto/micro/v1/user/auth_messages_pb.d.ts +263 -0
- package/dist/proto/micro/v1/user/auth_messages_pb.js +590 -0
- package/dist/proto/micro/v1/user/authorization_messages_nest.d.ts +47 -0
- package/dist/proto/micro/v1/user/authorization_messages_nest.js +5 -0
- package/dist/proto/micro/v1/user/authorization_messages_pb.d.ts +111 -0
- package/dist/proto/micro/v1/user/authorization_messages_pb.js +245 -0
- package/dist/proto/micro/v1/user/index.d.ts +6 -0
- package/dist/proto/micro/v1/user/index.js +10 -0
- package/dist/proto/micro/v1/user/services_connect.d.ts +315 -0
- package/dist/proto/micro/v1/user/services_connect.js +318 -0
- package/dist/proto/micro/v1/user/services_nest.d.ts +151 -0
- package/dist/proto/micro/v1/user/services_nest.js +172 -0
- package/dist/proto/micro/v1/user/site_settings_messages_nest.d.ts +19 -0
- package/dist/proto/micro/v1/user/site_settings_messages_nest.js +12 -0
- package/dist/proto/micro/v1/user/site_settings_messages_pb.d.ts +42 -0
- package/dist/proto/micro/v1/user/site_settings_messages_pb.js +93 -0
- package/dist/proto/micro/v1/user/user_messages_nest.d.ts +175 -0
- package/dist/proto/micro/v1/user/user_messages_nest.js +12 -0
- package/dist/proto/micro/v1/user/user_messages_pb.d.ts +358 -0
- package/dist/proto/micro/v1/user/user_messages_pb.js +784 -0
- package/dist/utils/constants.d.ts +45 -0
- package/dist/utils/constants.js +48 -0
- package/dist/utils/functions.d.ts +70 -0
- package/dist/utils/functions.js +425 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/logger_names.d.ts +8 -0
- package/dist/utils/logger_names.js +41 -0
- package/dist/utils/minimatch/assert_valid_pattern.d.ts +1 -0
- package/dist/utils/minimatch/assert_valid_pattern.js +13 -0
- package/dist/utils/minimatch/ast.d.ts +19 -0
- package/dist/utils/minimatch/ast.js +446 -0
- package/dist/utils/minimatch/balanced_match.d.ts +2 -0
- package/dist/utils/minimatch/balanced_match.js +57 -0
- package/dist/utils/minimatch/brace_expansion.d.ts +1 -0
- package/dist/utils/minimatch/brace_expansion.js +181 -0
- package/dist/utils/minimatch/brace_expressions.d.ts +7 -0
- package/dist/utils/minimatch/brace_expressions.js +119 -0
- package/dist/utils/minimatch/escape.d.ts +2 -0
- package/dist/utils/minimatch/escape.js +9 -0
- package/dist/utils/minimatch/index.d.ts +93 -0
- package/dist/utils/minimatch/index.js +788 -0
- package/dist/utils/minimatch/matcher_collection.d.ts +9 -0
- package/dist/utils/minimatch/matcher_collection.js +30 -0
- package/dist/utils/minimatch/unescape.d.ts +2 -0
- package/dist/utils/minimatch/unescape.js +11 -0
- package/dist/utils/types.d.ts +70 -0
- package/dist/utils/types.js +22 -0
- package/dist/utils/walk_sync.d.ts +25 -0
- package/dist/utils/walk_sync.js +184 -0
- package/package.json +87 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.http = exports.grpc = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
exports.grpc = tslib_1.__importStar(require("./grpc"));
|
|
6
|
+
exports.http = tslib_1.__importStar(require("./http"));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.kafka_producer_service = exports.kafka_consumer_service = exports.kafka_admin_service = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
exports.kafka_admin_service = tslib_1.__importStar(require("./kafka_admin_service"));
|
|
6
|
+
exports.kafka_consumer_service = tslib_1.__importStar(require("./kafka_consumer_service"));
|
|
7
|
+
exports.kafka_producer_service = tslib_1.__importStar(require("./kafka_producer_service"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnApplicationShutdown, OnModuleInit } from '@nestjs/common';
|
|
2
|
+
import { ConfigService } from '@nestjs/config';
|
|
3
|
+
export declare class KafkaAdminService implements OnModuleInit, OnApplicationShutdown {
|
|
4
|
+
private readonly configService;
|
|
5
|
+
private kafka;
|
|
6
|
+
private admin;
|
|
7
|
+
constructor(configService: ConfigService);
|
|
8
|
+
onModuleInit(): void;
|
|
9
|
+
ensureTopicExists(topic: string): Promise<void>;
|
|
10
|
+
checkTopicFeatures(topic: string): Promise<void>;
|
|
11
|
+
getCurrentPartitionCount(topic: string): Promise<number>;
|
|
12
|
+
onApplicationShutdown(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KafkaAdminService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const config_1 = require("@nestjs/config");
|
|
7
|
+
const functions_1 = require("../../utils/functions");
|
|
8
|
+
let KafkaAdminService = class KafkaAdminService {
|
|
9
|
+
configService;
|
|
10
|
+
kafka;
|
|
11
|
+
admin;
|
|
12
|
+
constructor(configService) {
|
|
13
|
+
this.configService = configService;
|
|
14
|
+
}
|
|
15
|
+
onModuleInit() {
|
|
16
|
+
this.kafka = (0, functions_1.createKafka)('kafka-admin-service');
|
|
17
|
+
this.admin = this.kafka.admin();
|
|
18
|
+
}
|
|
19
|
+
async ensureTopicExists(topic) {
|
|
20
|
+
const topics = await this.admin.listTopics();
|
|
21
|
+
const numPartitions = this.configService.get('number_of_partitions');
|
|
22
|
+
if (!topics.includes(topic)) {
|
|
23
|
+
await this.admin.createTopics({
|
|
24
|
+
topics: [
|
|
25
|
+
{
|
|
26
|
+
topic: topic,
|
|
27
|
+
numPartitions: numPartitions,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
});
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const currentPartitions = await this.getCurrentPartitionCount(topic);
|
|
34
|
+
if (currentPartitions !== numPartitions &&
|
|
35
|
+
currentPartitions < numPartitions) {
|
|
36
|
+
await this.admin.createPartitions({
|
|
37
|
+
topicPartitions: [
|
|
38
|
+
{
|
|
39
|
+
topic: topic,
|
|
40
|
+
count: numPartitions,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
async checkTopicFeatures(topic) {
|
|
47
|
+
await this.admin.connect();
|
|
48
|
+
await this.ensureTopicExists(topic);
|
|
49
|
+
await this.admin.disconnect();
|
|
50
|
+
}
|
|
51
|
+
async getCurrentPartitionCount(topic) {
|
|
52
|
+
const metadata = await this.admin.fetchTopicMetadata({ topics: [topic] });
|
|
53
|
+
const topicMetadata = metadata.topics.find((t) => t.name === topic);
|
|
54
|
+
return topicMetadata?.partitions.length || 0;
|
|
55
|
+
}
|
|
56
|
+
async onApplicationShutdown() {
|
|
57
|
+
await this.admin.disconnect();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.KafkaAdminService = KafkaAdminService;
|
|
61
|
+
exports.KafkaAdminService = KafkaAdminService = tslib_1.__decorate([
|
|
62
|
+
(0, common_1.Injectable)(),
|
|
63
|
+
tslib_1.__metadata("design:paramtypes", [config_1.ConfigService])
|
|
64
|
+
], KafkaAdminService);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
import { ConsumerRunConfig, ConsumerSubscribeTopics } from '@nestjs/microservices/external/kafka.interface';
|
|
3
|
+
export declare class KafkaConsumerService {
|
|
4
|
+
private readonly configService;
|
|
5
|
+
private readonly groupId;
|
|
6
|
+
private readonly clientId;
|
|
7
|
+
private kafka?;
|
|
8
|
+
private consumer?;
|
|
9
|
+
private isRunning;
|
|
10
|
+
private objectId;
|
|
11
|
+
constructor(configService: ConfigService, groupId: string, clientId: string);
|
|
12
|
+
private initializeConsumer;
|
|
13
|
+
consume(topic: ConsumerSubscribeTopics, config: ConsumerRunConfig): Promise<void>;
|
|
14
|
+
commitOffset(topic: string, partition: number, offset: string): Promise<void>;
|
|
15
|
+
shutdown(): Promise<void>;
|
|
16
|
+
stop(): Promise<void>;
|
|
17
|
+
pause(topic: string): Promise<void>;
|
|
18
|
+
resume(topic: string): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KafkaConsumerService = void 0;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
5
|
+
const functions_1 = require("../../utils/functions");
|
|
6
|
+
class KafkaConsumerService {
|
|
7
|
+
configService;
|
|
8
|
+
groupId;
|
|
9
|
+
clientId;
|
|
10
|
+
kafka;
|
|
11
|
+
consumer;
|
|
12
|
+
isRunning = false;
|
|
13
|
+
objectId;
|
|
14
|
+
constructor(configService, groupId, clientId) {
|
|
15
|
+
this.configService = configService;
|
|
16
|
+
this.groupId = groupId;
|
|
17
|
+
this.clientId = clientId;
|
|
18
|
+
this.objectId = (0, crypto_1.randomUUID)();
|
|
19
|
+
}
|
|
20
|
+
async initializeConsumer() {
|
|
21
|
+
if (!this.consumer) {
|
|
22
|
+
this.kafka = (0, functions_1.createKafka)(this.clientId);
|
|
23
|
+
this.consumer = this.kafka.consumer({
|
|
24
|
+
groupId: this.groupId,
|
|
25
|
+
allowAutoTopicCreation: true,
|
|
26
|
+
});
|
|
27
|
+
await this.consumer.connect();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
async consume(topic, config) {
|
|
31
|
+
if (!this.consumer) {
|
|
32
|
+
await this.initializeConsumer();
|
|
33
|
+
}
|
|
34
|
+
if (this.isRunning) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (!this.consumer) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
await this.consumer.subscribe(topic);
|
|
41
|
+
await this.consumer.run(config);
|
|
42
|
+
this.isRunning = true;
|
|
43
|
+
}
|
|
44
|
+
async commitOffset(topic, partition, offset) {
|
|
45
|
+
if (this.consumer) {
|
|
46
|
+
await this.consumer.commitOffsets([{ topic, partition, offset }]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async shutdown() {
|
|
50
|
+
console.log('Shutting down ' + this.clientId);
|
|
51
|
+
if (!this.consumer) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
await this.consumer.disconnect();
|
|
55
|
+
delete this.consumer;
|
|
56
|
+
delete this.kafka;
|
|
57
|
+
this.consumer = undefined;
|
|
58
|
+
this.kafka = undefined;
|
|
59
|
+
this.isRunning = false;
|
|
60
|
+
}
|
|
61
|
+
async stop() {
|
|
62
|
+
if (!this.consumer) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
this.consumer.stop();
|
|
66
|
+
}
|
|
67
|
+
async pause(topic) {
|
|
68
|
+
if (!this.consumer) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.consumer.pause([{ topic }]);
|
|
72
|
+
}
|
|
73
|
+
async resume(topic) {
|
|
74
|
+
if (!this.consumer) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
this.consumer.resume([{ topic }]);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.KafkaConsumerService = KafkaConsumerService;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnApplicationShutdown, OnModuleInit } from '@nestjs/common';
|
|
2
|
+
import { ConfigService } from '@nestjs/config';
|
|
3
|
+
import { ProducerRecord } from '@nestjs/microservices/external/kafka.interface';
|
|
4
|
+
import { KafkaAdminService } from './kafka_admin_service';
|
|
5
|
+
export declare class KafkaProducerService implements OnModuleInit, OnApplicationShutdown {
|
|
6
|
+
private readonly configService;
|
|
7
|
+
private readonly adminKafkaService;
|
|
8
|
+
private kafka;
|
|
9
|
+
private producer;
|
|
10
|
+
constructor(configService: ConfigService, adminKafkaService: KafkaAdminService);
|
|
11
|
+
onModuleInit(): Promise<void>;
|
|
12
|
+
produce(record: ProducerRecord): Promise<void>;
|
|
13
|
+
onApplicationShutdown(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KafkaProducerService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const config_1 = require("@nestjs/config");
|
|
7
|
+
const crypto_1 = require("crypto");
|
|
8
|
+
const kafkajs_1 = require("kafkajs");
|
|
9
|
+
const functions_1 = require("../../utils/functions");
|
|
10
|
+
const kafka_admin_service_1 = require("./kafka_admin_service");
|
|
11
|
+
let KafkaProducerService = class KafkaProducerService {
|
|
12
|
+
configService;
|
|
13
|
+
adminKafkaService;
|
|
14
|
+
kafka;
|
|
15
|
+
producer;
|
|
16
|
+
constructor(configService, adminKafkaService) {
|
|
17
|
+
this.configService = configService;
|
|
18
|
+
this.adminKafkaService = adminKafkaService;
|
|
19
|
+
}
|
|
20
|
+
async onModuleInit() {
|
|
21
|
+
this.kafka = (0, functions_1.createKafka)('kafka-producer-service');
|
|
22
|
+
this.producer = this.kafka.producer({
|
|
23
|
+
createPartitioner: kafkajs_1.Partitioners.LegacyPartitioner,
|
|
24
|
+
});
|
|
25
|
+
await this.producer.connect();
|
|
26
|
+
}
|
|
27
|
+
async produce(record) {
|
|
28
|
+
await this.adminKafkaService.checkTopicFeatures(record.topic);
|
|
29
|
+
const messagesWithKeys = record.messages.map((message) => {
|
|
30
|
+
if (!message.key) {
|
|
31
|
+
message.key = (0, crypto_1.randomUUID)();
|
|
32
|
+
}
|
|
33
|
+
return message;
|
|
34
|
+
});
|
|
35
|
+
await this.producer.send({
|
|
36
|
+
...record,
|
|
37
|
+
messages: messagesWithKeys,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
async onApplicationShutdown() {
|
|
41
|
+
await this.producer.disconnect();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.KafkaProducerService = KafkaProducerService;
|
|
45
|
+
exports.KafkaProducerService = KafkaProducerService = tslib_1.__decorate([
|
|
46
|
+
(0, common_1.Injectable)(),
|
|
47
|
+
tslib_1.__metadata("design:paramtypes", [config_1.ConfigService,
|
|
48
|
+
kafka_admin_service_1.KafkaAdminService])
|
|
49
|
+
], KafkaProducerService);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Filter, Sort } from '../../../proto/micro/v1/general_nest';
|
|
2
|
+
export type PaginationResult<T> = {
|
|
3
|
+
draw?: number;
|
|
4
|
+
records_total: number;
|
|
5
|
+
records_filtered: number;
|
|
6
|
+
data: T[];
|
|
7
|
+
};
|
|
8
|
+
export type PaginateResponseType<T> = {
|
|
9
|
+
rows: T[];
|
|
10
|
+
count: number;
|
|
11
|
+
};
|
|
12
|
+
export type EmbraceBigInt = string | bigint | number;
|
|
13
|
+
export interface CrudServiceInterface<T> {
|
|
14
|
+
store(data: any): Promise<T>;
|
|
15
|
+
read(id: EmbraceBigInt): Promise<T>;
|
|
16
|
+
update(id: EmbraceBigInt, data: any): Promise<T>;
|
|
17
|
+
remove(id: EmbraceBigInt): Promise<boolean>;
|
|
18
|
+
paginate(rpp: number, page: number, filters?: Filter[], sort?: Sort[]): Promise<PaginateResponseType<T>>;
|
|
19
|
+
paginateFrom(rpp: number, fromId: EmbraceBigInt, filters?: Filter[], sort?: Sort[]): Promise<PaginateResponseType<T>>;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as crud_service_interface from './crud_service_interface';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as crud from './crud';
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.utils = exports.proto = exports.common = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
exports.common = tslib_1.__importStar(require("./common"));
|
|
6
|
+
exports.proto = tslib_1.__importStar(require("./proto"));
|
|
7
|
+
exports.utils = tslib_1.__importStar(require("./utils"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as micro from './micro';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from './v1';
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { Filter, PaginateRequest, PaginationMetaResult, ResponseStatus, Sort } from "../general_nest";
|
|
2
|
+
export declare const protobufPackage = "micro.v1.coin";
|
|
3
|
+
export declare enum AnalyticsHighlightTypeEnum {
|
|
4
|
+
trending_coins = "trending_coins",
|
|
5
|
+
top_gainers = "top_gainers",
|
|
6
|
+
top_losers = "top_losers",
|
|
7
|
+
new_coins = "new_coins",
|
|
8
|
+
most_viewed = "most_viewed",
|
|
9
|
+
highest_volume = "highest_volume",
|
|
10
|
+
price_change = "price_change",
|
|
11
|
+
most_voted = "most_voted",
|
|
12
|
+
upcoming_coins = "upcoming_coins",
|
|
13
|
+
UNRECOGNIZED = "UNRECOGNIZED"
|
|
14
|
+
}
|
|
15
|
+
export interface CoinDetailDto {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
symbol: string;
|
|
19
|
+
rank: number;
|
|
20
|
+
price: string;
|
|
21
|
+
price_change_percentage24h: string;
|
|
22
|
+
price_change_percentage1h: string;
|
|
23
|
+
price_change_percentage7d: string;
|
|
24
|
+
price_change_percentage14d: string;
|
|
25
|
+
price_change_percentage30d: string;
|
|
26
|
+
price_change_percentage1y: string;
|
|
27
|
+
market_cap: string;
|
|
28
|
+
fully_diluted_valuation: string;
|
|
29
|
+
trading_volume24h: string;
|
|
30
|
+
circulating_supply: string;
|
|
31
|
+
total_supply: string;
|
|
32
|
+
max_supply: string;
|
|
33
|
+
all_time_high: CoinDetailDto_AllTimePrice | undefined;
|
|
34
|
+
all_time_low: CoinDetailDto_AllTimePrice | undefined;
|
|
35
|
+
range24h: CoinDetailDto_Range | undefined;
|
|
36
|
+
range7d: CoinDetailDto_Range | undefined;
|
|
37
|
+
links: CoinDetailDto_Links | undefined;
|
|
38
|
+
categories: CoinDetailDto_Categories[];
|
|
39
|
+
converter: CoinDetailDto_Converter | undefined;
|
|
40
|
+
exchanges: string[];
|
|
41
|
+
api_id: string;
|
|
42
|
+
categories_json: {
|
|
43
|
+
[key: string]: CategoriesArr;
|
|
44
|
+
};
|
|
45
|
+
chart_image: string;
|
|
46
|
+
name_json: {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
coingecko_id?: string | undefined;
|
|
50
|
+
coinglass_spot_id?: string | undefined;
|
|
51
|
+
coinglass_futures_id?: string | undefined;
|
|
52
|
+
coinmarketcap_id?: string | undefined;
|
|
53
|
+
title: Title[];
|
|
54
|
+
about: About[];
|
|
55
|
+
info: Info | undefined;
|
|
56
|
+
}
|
|
57
|
+
export interface CoinDetailDto_AllTimePrice {
|
|
58
|
+
price: string;
|
|
59
|
+
date: string;
|
|
60
|
+
percentage_change: number;
|
|
61
|
+
}
|
|
62
|
+
export interface CoinDetailDto_Range {
|
|
63
|
+
low: string;
|
|
64
|
+
high: string;
|
|
65
|
+
}
|
|
66
|
+
export interface CoinDetailDto_UrlItem {
|
|
67
|
+
name: string;
|
|
68
|
+
url: string;
|
|
69
|
+
}
|
|
70
|
+
export interface CoinDetailDto_Links {
|
|
71
|
+
website: string;
|
|
72
|
+
whitepaper: string;
|
|
73
|
+
explorers: CoinDetailDto_UrlItem[];
|
|
74
|
+
wallets: CoinDetailDto_UrlItem[];
|
|
75
|
+
community: CoinDetailDto_UrlItem[];
|
|
76
|
+
source_code: CoinDetailDto_UrlItem[];
|
|
77
|
+
search_on: CoinDetailDto_UrlItem[];
|
|
78
|
+
api_id: string;
|
|
79
|
+
}
|
|
80
|
+
export interface CoinDetailDto_Categories {
|
|
81
|
+
name: string;
|
|
82
|
+
url: string;
|
|
83
|
+
}
|
|
84
|
+
export interface CoinDetailDto_Converter {
|
|
85
|
+
base_currency: string;
|
|
86
|
+
quote_currency: string;
|
|
87
|
+
base_amount: number;
|
|
88
|
+
quote_amount: number;
|
|
89
|
+
}
|
|
90
|
+
export interface CoinDetailDto_CategoriesJsonEntry {
|
|
91
|
+
key: string;
|
|
92
|
+
value: CategoriesArr | undefined;
|
|
93
|
+
}
|
|
94
|
+
export interface CoinDetailDto_NameJsonEntry {
|
|
95
|
+
key: string;
|
|
96
|
+
value: string;
|
|
97
|
+
}
|
|
98
|
+
export interface Info {
|
|
99
|
+
website: string[];
|
|
100
|
+
twitter: string[];
|
|
101
|
+
message_board: string[];
|
|
102
|
+
chat: string[];
|
|
103
|
+
facebook: string[];
|
|
104
|
+
explorer: string[];
|
|
105
|
+
reddit: string[];
|
|
106
|
+
technical_doc: string[];
|
|
107
|
+
announcement: string[];
|
|
108
|
+
source_code: string[];
|
|
109
|
+
contract: Contract[];
|
|
110
|
+
}
|
|
111
|
+
export interface Contract {
|
|
112
|
+
cmc_id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
address: string;
|
|
115
|
+
}
|
|
116
|
+
export interface Title {
|
|
117
|
+
data: {
|
|
118
|
+
[key: string]: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export interface Title_DataEntry {
|
|
122
|
+
key: string;
|
|
123
|
+
value: string;
|
|
124
|
+
}
|
|
125
|
+
export interface About {
|
|
126
|
+
data: {
|
|
127
|
+
[key: string]: string;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface About_DataEntry {
|
|
131
|
+
key: string;
|
|
132
|
+
value: string;
|
|
133
|
+
}
|
|
134
|
+
export interface CategoriesArr {
|
|
135
|
+
data: string[];
|
|
136
|
+
}
|
|
137
|
+
export interface AnalyticsCurrencyItem {
|
|
138
|
+
symbol: string;
|
|
139
|
+
name: string;
|
|
140
|
+
price: string;
|
|
141
|
+
rate_1h: number;
|
|
142
|
+
rate_24h: number;
|
|
143
|
+
rate_7d: number;
|
|
144
|
+
volume_24h: string;
|
|
145
|
+
market_cap: string;
|
|
146
|
+
chart_image: string;
|
|
147
|
+
}
|
|
148
|
+
export interface AnalyticsCurrenciesResponseData {
|
|
149
|
+
items: CoinDetailDto[];
|
|
150
|
+
}
|
|
151
|
+
export interface AnalyticsCurrenciesResponse {
|
|
152
|
+
status: ResponseStatus | undefined;
|
|
153
|
+
pagination: PaginationMetaResult | undefined;
|
|
154
|
+
data: AnalyticsCurrenciesResponseData | undefined;
|
|
155
|
+
}
|
|
156
|
+
export interface CurrenciesByChainResponseData {
|
|
157
|
+
chain: ChainDto | undefined;
|
|
158
|
+
items: CoinDetailDto[];
|
|
159
|
+
}
|
|
160
|
+
export interface CurrenciesByChainResponse {
|
|
161
|
+
status: ResponseStatus | undefined;
|
|
162
|
+
pagination: PaginationMetaResult | undefined;
|
|
163
|
+
data: CurrenciesByChainResponseData | undefined;
|
|
164
|
+
}
|
|
165
|
+
export interface ChainDto {
|
|
166
|
+
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
symbol: string;
|
|
169
|
+
protocols: string;
|
|
170
|
+
change1d: string;
|
|
171
|
+
change7d: string;
|
|
172
|
+
change30d: string;
|
|
173
|
+
tvl: string;
|
|
174
|
+
mcap: string;
|
|
175
|
+
mcap_tvl: string;
|
|
176
|
+
sequence_no: number;
|
|
177
|
+
coingecko_id: string;
|
|
178
|
+
}
|
|
179
|
+
export interface AnalyticsChainsResponseData {
|
|
180
|
+
items: ChainDto[];
|
|
181
|
+
}
|
|
182
|
+
export interface AnalyticsChainsResponse {
|
|
183
|
+
status: ResponseStatus | undefined;
|
|
184
|
+
pagination: PaginationMetaResult | undefined;
|
|
185
|
+
data: AnalyticsChainsResponseData | undefined;
|
|
186
|
+
}
|
|
187
|
+
export interface CurrenciesByCategoryResponseData {
|
|
188
|
+
category: CoinDetailDto | undefined;
|
|
189
|
+
items: CoinDetailDto[];
|
|
190
|
+
}
|
|
191
|
+
export interface CurrenciesByCategoryResponse {
|
|
192
|
+
status: ResponseStatus | undefined;
|
|
193
|
+
pagination: PaginationMetaResult | undefined;
|
|
194
|
+
data: CurrenciesByCategoryResponseData | undefined;
|
|
195
|
+
}
|
|
196
|
+
export interface AnalyticsCategoriesResponse {
|
|
197
|
+
status: ResponseStatus | undefined;
|
|
198
|
+
pagination: PaginationMetaResult | undefined;
|
|
199
|
+
data: AnalyticsCurrenciesResponseData | undefined;
|
|
200
|
+
}
|
|
201
|
+
export interface BlockchainGlobalDataResponseData {
|
|
202
|
+
volume: string;
|
|
203
|
+
market_cap: string;
|
|
204
|
+
open_interest: string;
|
|
205
|
+
liquidation_24: string;
|
|
206
|
+
longshort_24: string;
|
|
207
|
+
market_cap_change: number;
|
|
208
|
+
}
|
|
209
|
+
export interface BlockchainGlobalDataResponse {
|
|
210
|
+
status: ResponseStatus | undefined;
|
|
211
|
+
data: BlockchainGlobalDataResponseData | undefined;
|
|
212
|
+
}
|
|
213
|
+
export interface HighlightsItem {
|
|
214
|
+
symbol: string;
|
|
215
|
+
name: string;
|
|
216
|
+
change: number;
|
|
217
|
+
price: number;
|
|
218
|
+
volume: string;
|
|
219
|
+
}
|
|
220
|
+
export interface AnalyticsHighlightsDto {
|
|
221
|
+
type: AnalyticsHighlightTypeEnum;
|
|
222
|
+
items: HighlightsItem[];
|
|
223
|
+
}
|
|
224
|
+
export interface AnalyticsHighlightsResponseData {
|
|
225
|
+
items: AnalyticsHighlightsDto[];
|
|
226
|
+
}
|
|
227
|
+
export interface AnalyticsHighlightsResponse {
|
|
228
|
+
status: ResponseStatus | undefined;
|
|
229
|
+
pagination: PaginationMetaResult | undefined;
|
|
230
|
+
data: AnalyticsHighlightsResponseData | undefined;
|
|
231
|
+
}
|
|
232
|
+
export interface AnalyticsExchangeDto {
|
|
233
|
+
id: string;
|
|
234
|
+
exchange_name: string;
|
|
235
|
+
exchange_score: string;
|
|
236
|
+
coin: string;
|
|
237
|
+
price: string;
|
|
238
|
+
volume: string;
|
|
239
|
+
target: string;
|
|
240
|
+
}
|
|
241
|
+
export interface AnalyticsExchangeResponse {
|
|
242
|
+
status: ResponseStatus | undefined;
|
|
243
|
+
data: AnalyticsExchangeDto[];
|
|
244
|
+
}
|
|
245
|
+
export interface CoinWeeklyDataDto {
|
|
246
|
+
id: string;
|
|
247
|
+
symbol: string;
|
|
248
|
+
name: string;
|
|
249
|
+
change_24h_usd: string;
|
|
250
|
+
change_24h_try: string;
|
|
251
|
+
change_24h_usd_percent: string;
|
|
252
|
+
change_24h_try_percent: string;
|
|
253
|
+
market_cap_change_24h: string;
|
|
254
|
+
market_cap_change_24h_percent: string;
|
|
255
|
+
weekly_data: string[];
|
|
256
|
+
daily_data: string[];
|
|
257
|
+
}
|
|
258
|
+
export interface AnalyticsCoinWeeklyDataResponse {
|
|
259
|
+
status: ResponseStatus | undefined;
|
|
260
|
+
data: CoinWeeklyDataDto | undefined;
|
|
261
|
+
}
|
|
262
|
+
export interface NavbarDataDto {
|
|
263
|
+
id: string;
|
|
264
|
+
volume: string;
|
|
265
|
+
volume_percent: string;
|
|
266
|
+
oi: string;
|
|
267
|
+
oi_percent: string;
|
|
268
|
+
liquidation: string;
|
|
269
|
+
liquidation_percent: string;
|
|
270
|
+
long_short: string;
|
|
271
|
+
}
|
|
272
|
+
export interface NavbarDataResponse {
|
|
273
|
+
status: ResponseStatus | undefined;
|
|
274
|
+
data: NavbarDataDto | undefined;
|
|
275
|
+
}
|
|
276
|
+
export interface CurrenciesByCategoryRequest {
|
|
277
|
+
id: string;
|
|
278
|
+
pagination: PaginateRequest | undefined;
|
|
279
|
+
}
|
|
280
|
+
export interface CurrenciesByChainRequest {
|
|
281
|
+
id: string;
|
|
282
|
+
pagination: PaginateRequest | undefined;
|
|
283
|
+
}
|
|
284
|
+
export interface CurrenciesNewDto {
|
|
285
|
+
id: string;
|
|
286
|
+
symbol: string;
|
|
287
|
+
name: string;
|
|
288
|
+
chart_image: string;
|
|
289
|
+
market_cap: string;
|
|
290
|
+
price: string;
|
|
291
|
+
price_change_percentage1h: string;
|
|
292
|
+
price_change_percentage24h: string;
|
|
293
|
+
price_change_percentage7d: string;
|
|
294
|
+
trading_volume24h: string;
|
|
295
|
+
rank: number;
|
|
296
|
+
coingecko_id: string;
|
|
297
|
+
coinmarketcap_id: string;
|
|
298
|
+
coinglass_spot_id: string;
|
|
299
|
+
coinglass_futures_id: string;
|
|
300
|
+
}
|
|
301
|
+
export interface CurrenciesNewResponse {
|
|
302
|
+
status: ResponseStatus | undefined;
|
|
303
|
+
pagination: PaginationMetaResult | undefined;
|
|
304
|
+
data: CurrenciesNewDto[];
|
|
305
|
+
}
|
|
306
|
+
export interface CurrenciesNewsChangeDto {
|
|
307
|
+
symbol: string;
|
|
308
|
+
change: string;
|
|
309
|
+
}
|
|
310
|
+
export interface CurrenciesNewsChangeRequestData {
|
|
311
|
+
symbol: string;
|
|
312
|
+
}
|
|
313
|
+
export interface CurrenciesNewsChangeRequest {
|
|
314
|
+
data: CurrenciesNewsChangeRequestData[];
|
|
315
|
+
}
|
|
316
|
+
export interface CurrenciesNewsChangeResponse {
|
|
317
|
+
status: ResponseStatus | undefined;
|
|
318
|
+
data: CurrenciesNewsChangeDto[];
|
|
319
|
+
}
|
|
320
|
+
export interface PaginateRequestCurrency {
|
|
321
|
+
page: number;
|
|
322
|
+
per_page: number;
|
|
323
|
+
draw?: number | undefined;
|
|
324
|
+
filters: Filter[];
|
|
325
|
+
sort: Sort[];
|
|
326
|
+
columns: string[];
|
|
327
|
+
fulltextSearch?: string | undefined;
|
|
328
|
+
searchByMarketCap?: string | undefined;
|
|
329
|
+
searchBy24hrChange?: string | undefined;
|
|
330
|
+
searchByPrice?: string | undefined;
|
|
331
|
+
first100?: boolean | undefined;
|
|
332
|
+
first300?: boolean | undefined;
|
|
333
|
+
optimization?: boolean | undefined;
|
|
334
|
+
}
|
|
335
|
+
export declare const MICRO_V1_COIN_PACKAGE_NAME = "micro.v1.coin";
|