├── .dockerignore ├── .editorconfig ├── .github ├── scripts │ ├── build.bash │ └── check-release-version.bash └── workflows │ ├── docker_build.yml │ ├── dockerhub-description.yml │ ├── release.yml │ └── version_check.yml ├── .gitignore ├── .nvmrc ├── .releaserc ├── .shellcheckrc ├── Dockerfile ├── LICENSE ├── README.md ├── VERSION ├── build ├── back │ ├── .yarnclean │ ├── config │ │ ├── default.js │ │ ├── development.js │ │ ├── features-config.json │ │ ├── logger.js │ │ ├── ormconfig.js │ │ ├── production.js │ │ ├── stack.js │ │ ├── staging.js │ │ ├── swagger.js │ │ └── test.js │ ├── defaults │ │ ├── commands │ │ │ ├── main.json │ │ │ ├── redisai.json │ │ │ ├── redisbloom.json │ │ │ ├── redisearch.json │ │ │ ├── redisgears.json │ │ │ ├── redisgraph.json │ │ │ ├── redisjson.json │ │ │ ├── redistimeseries.json │ │ │ └── triggers_and_functions.json │ │ ├── content │ │ │ ├── build.json │ │ │ ├── create-redis.json │ │ │ ├── guide-links.json │ │ │ └── recommendations.json │ │ └── tutorials │ │ │ ├── build.json │ │ │ ├── ds │ │ │ ├── hashes.md │ │ │ ├── json │ │ │ │ ├── adv-jsonpath.md │ │ │ │ ├── arrays.md │ │ │ │ ├── create.md │ │ │ │ ├── intro.md │ │ │ │ ├── learn-more.md │ │ │ │ ├── modify.md │ │ │ │ ├── more-adv-jsonpath.md │ │ │ │ └── objects.md │ │ │ ├── lists.md │ │ │ ├── prob │ │ │ │ ├── bloom-cuckoo.md │ │ │ │ ├── count-min-sketch.md │ │ │ │ ├── hyperloglog.md │ │ │ │ ├── intro.md │ │ │ │ ├── learn-more.md │ │ │ │ ├── t-digest.md │ │ │ │ └── top-k.md │ │ │ ├── sets.md │ │ │ ├── sorted_sets.md │ │ │ ├── strings.md │ │ │ └── ts │ │ │ │ ├── add-mod-del.md │ │ │ │ ├── create-alter.md │ │ │ │ ├── cross-key.md │ │ │ │ ├── intro.md │ │ │ │ ├── learn-more.md │ │ │ │ ├── ret-compact.md │ │ │ │ ├── retrieve.md │ │ │ │ └── single-key.md │ │ │ ├── manifest.json │ │ │ ├── sq │ │ │ ├── aggregations.md │ │ │ ├── combined.md │ │ │ ├── exact-match.md │ │ │ ├── full-text.md │ │ │ ├── geospatial.md │ │ │ ├── intro.md │ │ │ ├── learn-more.md │ │ │ └── range.md │ │ │ └── tf │ │ │ ├── intro.md │ │ │ ├── learn-more.md │ │ │ ├── load.md │ │ │ └── triggers.md │ ├── migration │ │ ├── 1614164490968-initial-migration.js │ │ ├── 1615480887019-connection-type.js │ │ ├── 1615990079125-database-name-from-provider.js │ │ ├── 1615992183565-remove-database-type.js │ │ ├── 1616520395940-oss-sentinel.js │ │ ├── 1625771635418-agreements.js │ │ ├── 1626086601057-server-info.js │ │ ├── 1626904405170-database-hosting-provider.js │ │ ├── 1627556171227-settings.js │ │ ├── 1629729923740-database-modules.js │ │ ├── 1634219846022-database-db-index.js │ │ ├── 1634557312500-encryption.js │ │ ├── 1641795882696-command-execution.js │ │ ├── 1641805606399-plugin-state.js │ │ ├── 1650278664000-sni.js │ │ ├── 1655821010349-notification.js │ │ ├── 1659687030433-notification-category.js │ │ ├── 1660664717573-workbench-mode.js │ │ ├── 1663093411715-workbench-group-mode.js │ │ ├── 1664785208236-database-analysis.js │ │ ├── 1664886479051-database-analysis-expiration-groups.js │ │ ├── 1667368983699-workbench-execution-time.js │ │ ├── 1667477693934-database.js │ │ ├── 1670252337342-database-new.js │ │ ├── 1673035852335-ssh-options.js │ │ ├── 1673934231410-workbench-and-analysis-db.js │ │ ├── 1674539211397-browser-history.js │ │ ├── 1674660306971-database-analysis-recommendations.js │ │ ├── 1675398140189-database-timeout.js │ │ ├── 1677135091633-custom-tutorials.js │ │ ├── 1678182722874-database-compressor.js │ │ ├── 1681900503586-database-recommendations.js │ │ ├── 1683006064293-database-recommendation-params.js │ │ ├── 1684931530343-feature.js │ │ ├── 1686719451753-database-redis-server.js │ │ ├── 1687166457712-cloud-database-details.js │ │ ├── 1687435940110-database-recommendation-unique.js │ │ ├── 1688989337247-freeCloudDatabase.js │ │ ├── 1691061058385-cloud-capi-keys.js │ │ ├── 1691476419592-feature-sso.js │ │ └── index.js │ ├── package.json │ ├── scripts │ │ ├── default-commands.js │ │ ├── default-content.js │ │ └── default-tutorials.js │ ├── src │ │ ├── app.module.js │ │ ├── app.routes.js │ │ ├── common │ │ │ ├── constants │ │ │ │ ├── api.js │ │ │ │ ├── general.js │ │ │ │ ├── history.js │ │ │ │ ├── index.js │ │ │ │ ├── recommendations.js │ │ │ │ ├── redis-string.js │ │ │ │ └── user.js │ │ │ ├── decorators │ │ │ │ ├── client-metadata │ │ │ │ │ ├── client-metadata.decorator.js │ │ │ │ │ └── index.js │ │ │ │ ├── data-as-json-string.decorator.js │ │ │ │ ├── default.js │ │ │ │ ├── hidden-field.decorator.js │ │ │ │ ├── index.js │ │ │ │ ├── is-bigger-than.decorator.js │ │ │ │ ├── is-github-link.decorator.js │ │ │ │ ├── is-multi-number.decorator.js │ │ │ │ ├── object-as-map.decorator.js │ │ │ │ ├── redis-string │ │ │ │ │ ├── any-to-redis-string.decorator.js │ │ │ │ │ ├── api-query-redis-string-encoding.decorator.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── is-redis-string.decorator.js │ │ │ │ │ ├── redis-string-to-ascii.decorator.js │ │ │ │ │ ├── redis-string-to-buffer.decorator.js │ │ │ │ │ ├── redis-string-to-utf8.decorator.js │ │ │ │ │ └── redis-string-type.decorator.js │ │ │ │ ├── session │ │ │ │ │ ├── index.js │ │ │ │ │ └── session-metadata.decorator.js │ │ │ │ └── zset-score │ │ │ │ │ ├── index.js │ │ │ │ │ └── zset-score.decorator.js │ │ │ ├── exceptions │ │ │ │ ├── index.js │ │ │ │ └── validation.exception.js │ │ │ ├── interceptors │ │ │ │ ├── browser-serialize.interceptor.js │ │ │ │ ├── index.js │ │ │ │ └── timeout.interceptor.js │ │ │ ├── middlewares │ │ │ │ └── single-user-auth.middleware.js │ │ │ ├── models │ │ │ │ ├── client-metadata.js │ │ │ │ ├── common.js │ │ │ │ ├── database-index.js │ │ │ │ ├── endpoint.js │ │ │ │ ├── index.js │ │ │ │ └── session.js │ │ │ ├── pipes │ │ │ │ ├── database-index.validation.pipe.js │ │ │ │ └── index.js │ │ │ ├── transformers │ │ │ │ ├── index.js │ │ │ │ ├── redis-reply │ │ │ │ │ ├── formatter-manager.js │ │ │ │ │ ├── formatter.interface.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── strategies │ │ │ │ │ │ ├── ascii-formatter.strategy.js │ │ │ │ │ │ └── utf8-formatter.strategy.js │ │ │ │ └── redis-string │ │ │ │ │ ├── any-to-redis-string.transformer.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── redis-string-to-ascii.transformer.js │ │ │ │ │ ├── redis-string-to-buffer.transformer.js │ │ │ │ │ └── redis-string-to-utf8.transformer.js │ │ │ ├── utils │ │ │ │ ├── certificate-import.util.js │ │ │ │ ├── errors.util.js │ │ │ │ ├── index.js │ │ │ │ └── merge.util.js │ │ │ └── validators │ │ │ │ ├── bigger-than.validator.js │ │ │ │ ├── github-link.validator.js │ │ │ │ ├── index.js │ │ │ │ ├── multi-number.validator.js │ │ │ │ ├── redis-string.validator.js │ │ │ │ └── zset-score.validator.js │ │ ├── constants │ │ │ ├── agreements-spec.json │ │ │ ├── app-events.js │ │ │ ├── custom-error-codes.js │ │ │ ├── error-messages.js │ │ │ ├── exceptions.js │ │ │ ├── index.js │ │ │ ├── recommendations.js │ │ │ ├── redis-commands.js │ │ │ ├── redis-connection.js │ │ │ ├── redis-error-codes.js │ │ │ ├── redis-keys.js │ │ │ ├── redis-modules.js │ │ │ ├── regex.js │ │ │ ├── sort.js │ │ │ └── telemetry-events.js │ │ ├── core.module.js │ │ ├── decorators │ │ │ ├── api-endpoint.decorator.js │ │ │ ├── api-redis-instance-operation.decorator.js │ │ │ └── api-redis-params.decorator.js │ │ ├── dto │ │ │ └── dto-transformer.js │ │ ├── exceptions │ │ │ └── global-exception.filter.js │ │ ├── init-helper.js │ │ ├── local-database.module.js │ │ ├── main.js │ │ ├── middleware │ │ │ ├── exclude-route.middleware.js │ │ │ └── redis-connection.middleware.js │ │ ├── models │ │ │ ├── index.js │ │ │ ├── redis-client.js │ │ │ └── redis-cluster.js │ │ ├── modules │ │ │ ├── analytics │ │ │ │ ├── analytics.controller.js │ │ │ │ ├── analytics.module.js │ │ │ │ ├── analytics.service.js │ │ │ │ ├── command.telemetry.base.service.js │ │ │ │ ├── dto │ │ │ │ │ └── analytics.dto.js │ │ │ │ └── telemetry.base.service.js │ │ │ ├── auth │ │ │ │ ├── auth.module.js │ │ │ │ └── window-auth │ │ │ │ │ ├── adapters │ │ │ │ │ └── window-auth.adapter.js │ │ │ │ │ ├── constants │ │ │ │ │ └── exceptions.js │ │ │ │ │ ├── middleware │ │ │ │ │ └── window.auth.middleware.js │ │ │ │ │ ├── strategies │ │ │ │ │ └── abstract.window.auth.strategy.js │ │ │ │ │ ├── window-auth.module.js │ │ │ │ │ └── window-auth.service.js │ │ │ ├── autodiscovery │ │ │ │ ├── autodiscovery.module.js │ │ │ │ ├── autodiscovery.service.js │ │ │ │ └── utils │ │ │ │ │ └── autodiscovery.util.js │ │ │ ├── browser │ │ │ │ ├── __mocks__ │ │ │ │ │ ├── hash.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── keys.js │ │ │ │ │ ├── list.js │ │ │ │ │ ├── set.js │ │ │ │ │ ├── streams.js │ │ │ │ │ └── z-set.js │ │ │ │ ├── browser-history │ │ │ │ │ ├── browser-history.controller.js │ │ │ │ │ ├── browser-history.module.js │ │ │ │ │ ├── browser-history.service.js │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── create.browser-history.dto.js │ │ │ │ │ │ ├── delete.browser-history.dto.js │ │ │ │ │ │ ├── delete.browser-history.response.dto.js │ │ │ │ │ │ ├── get.browser-history.dto.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── entities │ │ │ │ │ │ └── browser-history.entity.js │ │ │ │ │ └── providers │ │ │ │ │ │ └── browser-history.provider.js │ │ │ │ ├── browser.module.js │ │ │ │ ├── constants │ │ │ │ │ └── browser-tool-commands.js │ │ │ │ ├── decorators │ │ │ │ │ └── browser-client-metadata.decorator.js │ │ │ │ ├── hash │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── add.fields-to-hash.dto.js │ │ │ │ │ │ ├── create.hash-with-expire.dto.js │ │ │ │ │ │ ├── delete.fields-from-hash.dto.js │ │ │ │ │ │ ├── delete.fields-from-hash.response.js │ │ │ │ │ │ ├── get.hash-fields.dto.js │ │ │ │ │ │ ├── get.hash-fields.response.js │ │ │ │ │ │ ├── hash-field.dto.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── hash.controller.js │ │ │ │ │ ├── hash.module.js │ │ │ │ │ └── hash.service.js │ │ │ │ ├── keys │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── delete.keys.dto.js │ │ │ │ │ │ ├── delete.keys.response.js │ │ │ │ │ │ ├── get.keys-info.dto.js │ │ │ │ │ │ ├── get.keys-info.response.js │ │ │ │ │ │ ├── get.keys-with-details.response.js │ │ │ │ │ │ ├── get.keys.dto.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── key-with-expire.dto.js │ │ │ │ │ │ ├── key.dto.js │ │ │ │ │ │ ├── rename.key.dto.js │ │ │ │ │ │ ├── rename.key.response.js │ │ │ │ │ │ ├── scan-data-type.dto.js │ │ │ │ │ │ ├── update.key-ttl.dto.js │ │ │ │ │ │ └── update.key-ttl.response.js │ │ │ │ │ ├── key-info │ │ │ │ │ │ ├── key-info.provider.js │ │ │ │ │ │ └── strategies │ │ │ │ │ │ │ ├── graph.key-info.strategy.js │ │ │ │ │ │ │ ├── hash.key-info.strategy.js │ │ │ │ │ │ │ ├── key-info.strategy.js │ │ │ │ │ │ │ ├── list.key-info.strategy.js │ │ │ │ │ │ │ ├── rejson-rl.key-info.strategy.js │ │ │ │ │ │ │ ├── set.key-info.strategy.js │ │ │ │ │ │ │ ├── stream.key-info.strategy.js │ │ │ │ │ │ │ ├── string.key-info.strategy.js │ │ │ │ │ │ │ ├── ts.key-info.strategy.js │ │ │ │ │ │ │ ├── unsupported.key-info.strategy.js │ │ │ │ │ │ │ └── z-set.key-info.strategy.js │ │ │ │ │ ├── keys.controller.js │ │ │ │ │ ├── keys.module.js │ │ │ │ │ ├── keys.service.js │ │ │ │ │ └── scanner │ │ │ │ │ │ ├── scanner.interface.js │ │ │ │ │ │ ├── scanner.js │ │ │ │ │ │ └── strategies │ │ │ │ │ │ ├── cluster.scanner.strategy.js │ │ │ │ │ │ ├── scanner.strategy.js │ │ │ │ │ │ └── standalone.scanner.strategy.js │ │ │ │ ├── list │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── create.list-with-expire.dto.js │ │ │ │ │ │ ├── delete.list-elements.dto.js │ │ │ │ │ │ ├── delete.list-elements.response.js │ │ │ │ │ │ ├── get.list-element.response.js │ │ │ │ │ │ ├── get.list-elements.dto.js │ │ │ │ │ │ ├── get.list-elements.response.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── push.element-to-list.dto.js │ │ │ │ │ │ ├── push.list-elements.response.js │ │ │ │ │ │ ├── set.list-element.dto.js │ │ │ │ │ │ └── set.list-element.response.js │ │ │ │ │ ├── list.controller.js │ │ │ │ │ ├── list.module.js │ │ │ │ │ └── list.service.js │ │ │ │ ├── redisearch │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── create.redisearch-index.dto.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── list.redisearch-indexes.response.js │ │ │ │ │ │ └── search.redisearch.dto.js │ │ │ │ │ ├── redisearch.controller.js │ │ │ │ │ ├── redisearch.module.js │ │ │ │ │ └── redisearch.service.js │ │ │ │ ├── rejson-rl │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── create.rejson-rl-with-expire.dto.js │ │ │ │ │ │ ├── create.rejson-rl.dto.js │ │ │ │ │ │ ├── get.rejson-rl.dto.js │ │ │ │ │ │ ├── get.rejson-rl.response.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── modify.rejson-rl-arr-append.dto.js │ │ │ │ │ │ ├── modify.rejson-rl-set.dto.js │ │ │ │ │ │ ├── remove.rejson-rl.dto.js │ │ │ │ │ │ ├── remove.rejson-rl.response.js │ │ │ │ │ │ └── safe.rejson-rl-data.dto.js │ │ │ │ │ ├── rejson-rl.controller.js │ │ │ │ │ ├── rejson-rl.module.js │ │ │ │ │ └── rejson-rl.service.js │ │ │ │ ├── services │ │ │ │ │ └── keys-business │ │ │ │ │ │ └── scanner │ │ │ │ │ │ └── strategies │ │ │ │ │ │ └── standalone.strategy.js │ │ │ │ ├── set │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── add.members-to-set.dto.js │ │ │ │ │ │ ├── create.set-with-expire.dto.js │ │ │ │ │ │ ├── delete.members-from-set.dto.js │ │ │ │ │ │ ├── delete.members-from-set.response.js │ │ │ │ │ │ ├── get.set-members.dto.js │ │ │ │ │ │ ├── get.set-members.response.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── set.controller.js │ │ │ │ │ ├── set.module.js │ │ │ │ │ └── set.service.js │ │ │ │ ├── stream │ │ │ │ │ ├── controllers │ │ │ │ │ │ ├── consumer-group.controller.js │ │ │ │ │ │ ├── consumer.controller.js │ │ │ │ │ │ └── stream.controller.js │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── ack.pending-entries.dto.js │ │ │ │ │ │ ├── ack.pending-entries.response.js │ │ │ │ │ │ ├── add.stream-entries.dto.js │ │ │ │ │ │ ├── add.stream-entries.response.js │ │ │ │ │ │ ├── claim.pending-entries.response.js │ │ │ │ │ │ ├── claim.pending-entry.dto.js │ │ │ │ │ │ ├── create.consumer-groups.dto.js │ │ │ │ │ │ ├── create.stream.dto.js │ │ │ │ │ │ ├── delete.consumer-groups.dto.js │ │ │ │ │ │ ├── delete.consumer-groups.response.js │ │ │ │ │ │ ├── delete.consumers.dto.js │ │ │ │ │ │ ├── delete.stream-entries.dto.js │ │ │ │ │ │ ├── delete.stream-entries.response.js │ │ │ │ │ │ ├── get.consumers.dto.js │ │ │ │ │ │ ├── get.pending-entries.dto.js │ │ │ │ │ │ ├── get.stream-entries.dto.js │ │ │ │ │ │ ├── get.stream-entries.response.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── stream-entry.dto.js │ │ │ │ │ │ └── update.consumer-group.dto.js │ │ │ │ │ ├── services │ │ │ │ │ │ ├── consumer-group.service.js │ │ │ │ │ │ ├── consumer.service.js │ │ │ │ │ │ └── stream.service.js │ │ │ │ │ └── stream.module.js │ │ │ │ ├── string │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── get.string-info.dto.js │ │ │ │ │ │ ├── get.string-value.response.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── set.string-with-expire.dto.js │ │ │ │ │ │ └── set.string.dto.js │ │ │ │ │ ├── string.controller.js │ │ │ │ │ ├── string.module.js │ │ │ │ │ └── string.service.js │ │ │ │ ├── utils │ │ │ │ │ ├── checkKeyExistsing.js │ │ │ │ │ ├── clusterCursor.js │ │ │ │ │ └── index.js │ │ │ │ └── z-set │ │ │ │ │ ├── dto │ │ │ │ │ ├── add.members-to-z-set.dto.js │ │ │ │ │ ├── create.z-set-with-expire.dto.js │ │ │ │ │ ├── delete.members-from-z-set.dto.js │ │ │ │ │ ├── delete.members-from-z-set.response.js │ │ │ │ │ ├── get.z-set-members.dto.js │ │ │ │ │ ├── get.z-set.response.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── search.z-set-members.dto.js │ │ │ │ │ ├── search.z-set-members.response.js │ │ │ │ │ ├── search.z-set.response.js │ │ │ │ │ ├── update.member-in-z-set.dto.js │ │ │ │ │ └── z-set-member.dto.js │ │ │ │ │ ├── z-set.controller.js │ │ │ │ │ ├── z-set.module.js │ │ │ │ │ └── z-set.service.js │ │ │ ├── bulk-actions │ │ │ │ ├── bulk-actions.analytics.js │ │ │ │ ├── bulk-actions.gateway.js │ │ │ │ ├── bulk-actions.module.js │ │ │ │ ├── bulk-actions.service.js │ │ │ │ ├── bulk-import.controller.js │ │ │ │ ├── bulk-import.service.js │ │ │ │ ├── constants │ │ │ │ │ └── index.js │ │ │ │ ├── dto │ │ │ │ │ ├── bulk-action-id.dto.js │ │ │ │ │ ├── create-bulk-action.dto.js │ │ │ │ │ └── upload-import-file-by-path.dto.js │ │ │ │ ├── interfaces │ │ │ │ │ ├── bulk-action-filter-overview.interface.js │ │ │ │ │ ├── bulk-action-overview.interface.js │ │ │ │ │ ├── bulk-action-progress-overview.interface.js │ │ │ │ │ ├── bulk-action-summary-overview.interface.js │ │ │ │ │ ├── bulk-action.interface.js │ │ │ │ │ ├── bulk-action.runner.interface.js │ │ │ │ │ └── index.js │ │ │ │ ├── models │ │ │ │ │ ├── bulk-action-filter.js │ │ │ │ │ ├── bulk-action-progress.js │ │ │ │ │ ├── bulk-action-summary.js │ │ │ │ │ ├── bulk-action.js │ │ │ │ │ └── runners │ │ │ │ │ │ ├── abstract.bulk-action.runner.js │ │ │ │ │ │ └── simple │ │ │ │ │ │ ├── abstract.bulk-action.simple.runner.js │ │ │ │ │ │ └── delete.bulk-action.simple.runner.js │ │ │ │ └── providers │ │ │ │ │ └── bulk-actions.provider.js │ │ │ ├── certificate │ │ │ │ ├── ca-certificate.controller.js │ │ │ │ ├── ca-certificate.service.js │ │ │ │ ├── certificate.module.js │ │ │ │ ├── client-certificate.controller.js │ │ │ │ ├── client-certificate.service.js │ │ │ │ ├── dto │ │ │ │ │ ├── create.ca-certificate.dto.js │ │ │ │ │ ├── create.client-certificate.dto.js │ │ │ │ │ ├── use.ca-certificate.dto.js │ │ │ │ │ └── use.client-certificate.dto.js │ │ │ │ ├── entities │ │ │ │ │ ├── ca-certificate.entity.js │ │ │ │ │ └── client-certificate.entity.js │ │ │ │ ├── models │ │ │ │ │ ├── ca-certificate.js │ │ │ │ │ └── client-certificate.js │ │ │ │ ├── repositories │ │ │ │ │ ├── ca-certificate.repository.js │ │ │ │ │ ├── client-certificate.repository.js │ │ │ │ │ ├── local.ca-certificate.repository.js │ │ │ │ │ └── local.client-certificate.repository.js │ │ │ │ └── transformers │ │ │ │ │ ├── ca-cert.transformer.js │ │ │ │ │ └── client-cert.transformer.js │ │ │ ├── cli │ │ │ │ ├── cli.module.js │ │ │ │ ├── constants │ │ │ │ │ └── errors.js │ │ │ │ ├── controllers │ │ │ │ │ └── cli.controller.js │ │ │ │ ├── decorators │ │ │ │ │ ├── api-cli-params.decorator.js │ │ │ │ │ └── cli-client-metadata.decorator.js │ │ │ │ ├── dto │ │ │ │ │ └── cli.dto.js │ │ │ │ ├── services │ │ │ │ │ ├── cli-analytics │ │ │ │ │ │ └── cli-analytics.service.js │ │ │ │ │ └── cli-business │ │ │ │ │ │ ├── cli-business.service.js │ │ │ │ │ │ └── output-formatter │ │ │ │ │ │ ├── output-formatter-manager.js │ │ │ │ │ │ ├── output-formatter.interface.js │ │ │ │ │ │ └── strategies │ │ │ │ │ │ ├── raw-formatter.strategy.js │ │ │ │ │ │ ├── text-formatter.strategy.js │ │ │ │ │ │ └── utf-8-formatter.strategy.js │ │ │ │ └── utils │ │ │ │ │ └── getUnsupportedCommands.js │ │ │ ├── cloud │ │ │ │ ├── auth │ │ │ │ │ ├── auth-strategy │ │ │ │ │ │ ├── cloud-auth.strategy.js │ │ │ │ │ │ ├── github-idp.cloud.auth-strategy.js │ │ │ │ │ │ └── google-idp.cloud.auth-strategy.js │ │ │ │ │ ├── cloud-auth.analytics.js │ │ │ │ │ ├── cloud-auth.controller.js │ │ │ │ │ ├── cloud-auth.module.js │ │ │ │ │ ├── cloud-auth.service.js │ │ │ │ │ ├── exceptions │ │ │ │ │ │ ├── cloud-oauth.github-email-permission.exception.js │ │ │ │ │ │ ├── cloud-oauth.misconfiguration.exception.js │ │ │ │ │ │ ├── cloud-oauth.missed-required-data.exception.js │ │ │ │ │ │ ├── cloud-oauth.unexpected-error.exception.js │ │ │ │ │ │ ├── cloud-oauth.unknown-authorization-request.exception.js │ │ │ │ │ │ └── index.js │ │ │ │ │ └── models │ │ │ │ │ │ ├── cloud-auth-request-info.js │ │ │ │ │ │ ├── cloud-auth-request.js │ │ │ │ │ │ ├── cloud-auth-response.js │ │ │ │ │ │ └── index.js │ │ │ │ ├── autodiscovery │ │ │ │ │ ├── cloud-autodiscovery.analytics.js │ │ │ │ │ ├── cloud-autodiscovery.service.js │ │ │ │ │ ├── cloud.autodiscovery.controller.js │ │ │ │ │ ├── cloud.autodiscovery.module.js │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── discover-cloud-databases.dto.js │ │ │ │ │ │ ├── import-cloud-database.dto.js │ │ │ │ │ │ ├── import-cloud-database.response.js │ │ │ │ │ │ ├── import-cloud-databases.dto.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── me.cloud-autodiscovery.service.js │ │ │ │ │ ├── me.cloud.autodiscovery.controller.js │ │ │ │ │ └── models │ │ │ │ │ │ ├── cloud-autodiscovery-auth-type.js │ │ │ │ │ │ └── index.js │ │ │ │ ├── capi-key │ │ │ │ │ ├── cloud-capi-key.analytics.js │ │ │ │ │ ├── cloud-capi-key.api.provider.js │ │ │ │ │ ├── cloud-capi-key.controller.js │ │ │ │ │ ├── cloud-capi-key.module.js │ │ │ │ │ ├── cloud-capi-key.service.js │ │ │ │ │ ├── entity │ │ │ │ │ │ └── cloud-capi-key.entity.js │ │ │ │ │ ├── exceptions │ │ │ │ │ │ ├── cloud-capi-key.not-found.exception.js │ │ │ │ │ │ ├── cloud-capi-key.unauthorized.exception.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── model │ │ │ │ │ │ ├── api.interface.js │ │ │ │ │ │ ├── cloud-capi-key.js │ │ │ │ │ │ └── index.js │ │ │ │ │ └── repository │ │ │ │ │ │ ├── cloud-capi-key.repository.js │ │ │ │ │ │ └── local.cloud-capi-key.repository.js │ │ │ │ ├── cloud-sso.feature.flag.js │ │ │ │ ├── cloud.module.js │ │ │ │ ├── common │ │ │ │ │ ├── constants │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── decorators │ │ │ │ │ │ └── cloud-auth.decorator.js │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── cloud.capi.auth.dto.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── exceptions │ │ │ │ │ │ ├── cloud-api.bad-request.exception.js │ │ │ │ │ │ ├── cloud-api.error.handler.js │ │ │ │ │ │ ├── cloud-api.forbidden.exception.js │ │ │ │ │ │ ├── cloud-api.internal-server-error.exception.js │ │ │ │ │ │ ├── cloud-api.not-found.exception.js │ │ │ │ │ │ ├── cloud-api.unauthorized.exception.js │ │ │ │ │ │ ├── cloud-capi.error.handler.js │ │ │ │ │ │ ├── cloud-capi.unauthorized.exception.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── models │ │ │ │ │ │ ├── api.interface.js │ │ │ │ │ │ ├── capi.interface.js │ │ │ │ │ │ ├── cloud-request-utm.js │ │ │ │ │ │ └── index.js │ │ │ │ │ └── providers │ │ │ │ │ │ ├── cloud.api.provider.js │ │ │ │ │ │ └── cloud.capi.provider.js │ │ │ │ ├── database │ │ │ │ │ ├── cloud-database.analytics.js │ │ │ │ │ ├── cloud-database.capi.provider.js │ │ │ │ │ ├── cloud-database.capi.service.js │ │ │ │ │ ├── cloud-database.module.js │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── create-free-cloud-database.dto.js │ │ │ │ │ │ ├── get-cloud-subscription-database.dto.js │ │ │ │ │ │ ├── get-cloud-subscription-databases.dto.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── entities │ │ │ │ │ │ └── cloud-database-details.entity.js │ │ │ │ │ ├── models │ │ │ │ │ │ ├── capi.interface.js │ │ │ │ │ │ ├── cloud-database-details.js │ │ │ │ │ │ ├── cloud-database.js │ │ │ │ │ │ └── index.js │ │ │ │ │ └── utils │ │ │ │ │ │ ├── cloud-data-converter.js │ │ │ │ │ │ └── index.js │ │ │ │ ├── job │ │ │ │ │ ├── cloud-job.controller.js │ │ │ │ │ ├── cloud-job.factory.js │ │ │ │ │ ├── cloud-job.gateway.js │ │ │ │ │ ├── cloud-job.module.js │ │ │ │ │ ├── cloud-job.provider.js │ │ │ │ │ ├── cloud-job.service.js │ │ │ │ │ ├── constants │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── create-database.cloud-job.data.dto.js │ │ │ │ │ │ ├── create-subscription-and-database.cloud-job.data.dto.js │ │ │ │ │ │ ├── create.cloud-job.dto.js │ │ │ │ │ │ ├── import-database.cloud-job.data.dto.js │ │ │ │ │ │ └── monitor.cloud-job.dto.js │ │ │ │ │ ├── exceptions │ │ │ │ │ │ ├── cloud-database-already-exists-free.exception.js │ │ │ │ │ │ ├── cloud-database-in-failed-state.exception.js │ │ │ │ │ │ ├── cloud-database-in-unexpected-state.exception.js │ │ │ │ │ │ ├── cloud-job-aborted.exception.js │ │ │ │ │ │ ├── cloud-job-not-found.exception.js │ │ │ │ │ │ ├── cloud-job-unexpected-error.exception.js │ │ │ │ │ │ ├── cloud-job-unsupported.exception.js │ │ │ │ │ │ ├── cloud-job.error.handler.js │ │ │ │ │ │ ├── cloud-plan-not-found-free.exception.js │ │ │ │ │ │ ├── cloud-subscription-already-exists-free.exception.js │ │ │ │ │ │ ├── cloud-subscription-in-failed-state.exception.js │ │ │ │ │ │ ├── cloud-subscription-in-unexpected-state.exception.js │ │ │ │ │ │ ├── cloud-subscription-unable-to-determine.exception.js │ │ │ │ │ │ ├── cloud-task-no-resource-id.exception.js │ │ │ │ │ │ ├── cloud-task-not-found.exception.js │ │ │ │ │ │ ├── cloud-task-processing-error.exception.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── jobs │ │ │ │ │ │ ├── cloud-job.js │ │ │ │ │ │ ├── create-free-database.cloud-job.js │ │ │ │ │ │ ├── create-free-subscription-and-database.cloud-job.js │ │ │ │ │ │ ├── create-free-subscription.cloud-job.js │ │ │ │ │ │ ├── import-free-database.cloud-job.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── wait-for-active-database.cloud-job.js │ │ │ │ │ │ ├── wait-for-active-subscription.cloud-job.js │ │ │ │ │ │ └── wait-for-task.cloud-job.js │ │ │ │ │ ├── models │ │ │ │ │ │ ├── cloud-job-info.js │ │ │ │ │ │ └── index.js │ │ │ │ │ └── transformers │ │ │ │ │ │ └── cloud-job-data.transformer.js │ │ │ │ ├── session │ │ │ │ │ ├── cloud-session.module.js │ │ │ │ │ ├── cloud-session.service.js │ │ │ │ │ └── models │ │ │ │ │ │ └── cloud-session.js │ │ │ │ ├── subscription │ │ │ │ │ ├── cloud-subscription.api.service.js │ │ │ │ │ ├── cloud-subscription.capi.service.js │ │ │ │ │ ├── cloud-subscription.controller.js │ │ │ │ │ ├── cloud-subscription.module.js │ │ │ │ │ ├── dto │ │ │ │ │ │ ├── create-free-cloud-subscription.dto.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── plans.cloud-subscription.dto.js │ │ │ │ │ ├── models │ │ │ │ │ │ ├── api.interface.js │ │ │ │ │ │ ├── capi.interface.js │ │ │ │ │ │ ├── cloud-subscription-plan.js │ │ │ │ │ │ ├── cloud-subscription-region.js │ │ │ │ │ │ ├── cloud-subscription.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── providers │ │ │ │ │ │ ├── cloud-subscription.api.provider.js │ │ │ │ │ │ └── cloud-subscription.capi.provider.js │ │ │ │ │ └── utils │ │ │ │ │ │ ├── cloud-data-converter.js │ │ │ │ │ │ └── index.js │ │ │ │ ├── task │ │ │ │ │ ├── cloud-task.capi.service.js │ │ │ │ │ ├── cloud-task.module.js │ │ │ │ │ ├── models │ │ │ │ │ │ ├── capi.interface.js │ │ │ │ │ │ ├── cloud-task.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── providers │ │ │ │ │ │ └── cloud-task.capi.provider.js │ │ │ │ │ └── utils │ │ │ │ │ │ ├── cloud-data-converter.js │ │ │ │ │ │ └── index.js │ │ │ │ └── user │ │ │ │ │ ├── cloud-user.api.service.js │ │ │ │ │ ├── cloud-user.capi.service.js │ │ │ │ │ ├── cloud-user.controller.js │ │ │ │ │ ├── cloud-user.module.js │ │ │ │ │ ├── models │ │ │ │ │ ├── api.interface.js │ │ │ │ │ ├── capi.interface.js │ │ │ │ │ ├── cloud-account-info.js │ │ │ │ │ ├── cloud-user-account.js │ │ │ │ │ ├── cloud-user.js │ │ │ │ │ └── index.js │ │ │ │ │ ├── providers │ │ │ │ │ ├── cloud-user.api.provider.js │ │ │ │ │ └── cloud-user.capi.provider.js │ │ │ │ │ ├── repositories │ │ │ │ │ ├── cloud-user.repository.js │ │ │ │ │ └── in-session.cloud-user.repository.js │ │ │ │ │ └── utils │ │ │ │ │ ├── cloud-data-converter.js │ │ │ │ │ └── index.js │ │ │ ├── cluster-monitor │ │ │ │ ├── cluster-monitor.controller.js │ │ │ │ ├── cluster-monitor.module.js │ │ │ │ ├── cluster-monitor.service.js │ │ │ │ ├── models │ │ │ │ │ ├── cluster-details.js │ │ │ │ │ ├── cluster-node-details.js │ │ │ │ │ └── index.js │ │ │ │ └── strategies │ │ │ │ │ ├── abstract.info.strategy.js │ │ │ │ │ ├── cluster-nodes.info.strategy.js │ │ │ │ │ ├── cluster-shards.info.strategy.js │ │ │ │ │ └── cluster.info.interface.js │ │ │ ├── commands │ │ │ │ ├── commands-json.provider.js │ │ │ │ ├── commands.controller.js │ │ │ │ ├── commands.module.js │ │ │ │ └── commands.service.js │ │ │ ├── custom-tutorial │ │ │ │ ├── custom-tutorial.analytics.js │ │ │ │ ├── custom-tutorial.controller.js │ │ │ │ ├── custom-tutorial.module.js │ │ │ │ ├── custom-tutorial.service.js │ │ │ │ ├── dto │ │ │ │ │ └── upload.custom-tutorial.dto.js │ │ │ │ ├── entities │ │ │ │ │ └── custom-tutorial.entity.js │ │ │ │ ├── models │ │ │ │ │ ├── custom-tutorial.js │ │ │ │ │ └── custom-tutorial.manifest.js │ │ │ │ ├── providers │ │ │ │ │ ├── custom-tutorial.fs.provider.js │ │ │ │ │ └── custom-tutorial.manifest.provider.js │ │ │ │ └── repositories │ │ │ │ │ ├── custom-tutorial.repository.js │ │ │ │ │ └── local.custom-tutorial.repository.js │ │ │ ├── database-analysis │ │ │ │ ├── database-analysis.controller.js │ │ │ │ ├── database-analysis.module.js │ │ │ │ ├── database-analysis.service.js │ │ │ │ ├── dto │ │ │ │ │ ├── create-database-analysis.dto.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── recommendation-vote.dto.js │ │ │ │ ├── entities │ │ │ │ │ └── database-analysis.entity.js │ │ │ │ ├── models │ │ │ │ │ ├── analysis-progress.js │ │ │ │ │ ├── database-analysis.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── key.js │ │ │ │ │ ├── nsp-summary.js │ │ │ │ │ ├── nsp-type-summary.js │ │ │ │ │ ├── recommendation.js │ │ │ │ │ ├── scan-filter.js │ │ │ │ │ ├── short-database-analysis.js │ │ │ │ │ ├── simple-summary.js │ │ │ │ │ ├── simple-type-summary.js │ │ │ │ │ └── sum-group.js │ │ │ │ ├── providers │ │ │ │ │ ├── database-analysis.provider.js │ │ │ │ │ └── database-analyzer.js │ │ │ │ └── scanner │ │ │ │ │ ├── key-info │ │ │ │ │ ├── key-info.provider.js │ │ │ │ │ ├── key-info.strategy.interface.js │ │ │ │ │ └── strategies │ │ │ │ │ │ ├── abstract.info.strategy.js │ │ │ │ │ │ ├── default-info.strategy.js │ │ │ │ │ │ ├── graph-info.strategy.js │ │ │ │ │ │ ├── hash-info.strategy.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── json-info.strategy.js │ │ │ │ │ │ ├── list-info.strategy.js │ │ │ │ │ │ ├── set-info.strategy.js │ │ │ │ │ │ ├── stream-info.strategy.js │ │ │ │ │ │ ├── string-info.strategy.js │ │ │ │ │ │ ├── ts-info.strategy.js │ │ │ │ │ │ └── z-set-info.strategy.js │ │ │ │ │ └── keys-scanner.js │ │ │ ├── database-import │ │ │ │ ├── certificate-import.service.js │ │ │ │ ├── database-import.analytics.js │ │ │ │ ├── database-import.controller.js │ │ │ │ ├── database-import.module.js │ │ │ │ ├── database-import.service.js │ │ │ │ ├── dto │ │ │ │ │ ├── database-import.response.js │ │ │ │ │ └── import.database.dto.js │ │ │ │ ├── exceptions │ │ │ │ │ ├── index.js │ │ │ │ │ ├── invalid-ca-certificate-body.exception.js │ │ │ │ │ ├── invalid-certificate-name.exception.js │ │ │ │ │ ├── invalid-client-certificate-body.exception.js │ │ │ │ │ ├── invalid-client-private-key.exception.js │ │ │ │ │ ├── invalid-compressor.exception.js │ │ │ │ │ ├── invalid-ssh-body.exception.js │ │ │ │ │ ├── invalid-ssh-private-key-body.exception.js │ │ │ │ │ ├── no-database-import-file-provided.exception.js │ │ │ │ │ ├── size-limit-exceeded-database-import-file.exception.js │ │ │ │ │ ├── ssh-agents-are-not-supported.exception.js │ │ │ │ │ └── unable-to-parse-database-import-file.exception.js │ │ │ │ └── ssh-import.service.js │ │ │ ├── database-recommendation │ │ │ │ ├── constants │ │ │ │ │ └── index.js │ │ │ │ ├── database-recommendation.analytics.js │ │ │ │ ├── database-recommendation.controller.js │ │ │ │ ├── database-recommendation.gateway.js │ │ │ │ ├── database-recommendation.module.js │ │ │ │ ├── database-recommendation.service.js │ │ │ │ ├── dto │ │ │ │ │ ├── create.database-recommendation.dto.js │ │ │ │ │ ├── database-recommendations.response.js │ │ │ │ │ ├── delete.database-recommendation.dto.js │ │ │ │ │ ├── delete.database-recommendation.response.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── modify.database-recommendation.dto.js │ │ │ │ ├── entities │ │ │ │ │ └── database-recommendation.entity.js │ │ │ │ ├── models │ │ │ │ │ ├── database-recommendation-params.js │ │ │ │ │ ├── database-recommendation.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── integersInSet.js │ │ │ │ │ └── searchJSON.js │ │ │ │ ├── providers │ │ │ │ │ └── database-recommendation.emitter.js │ │ │ │ ├── repositories │ │ │ │ │ ├── database-recommendation.repository.js │ │ │ │ │ └── local.database.recommendation.repository.js │ │ │ │ └── scanner │ │ │ │ │ ├── recommendation.provider.js │ │ │ │ │ ├── recommendation.strategy.interface.js │ │ │ │ │ ├── recommendations.scanner.js │ │ │ │ │ └── strategies │ │ │ │ │ ├── abstract.recommendation.strategy.js │ │ │ │ │ ├── avoid-logical-databases.strategy.js │ │ │ │ │ ├── avoid-lua-scripts.strategy.js │ │ │ │ │ ├── big-amount-connected-clients.strategy.js │ │ │ │ │ ├── big-set.strategy.js │ │ │ │ │ ├── big-string.strategy.js │ │ │ │ │ ├── compression-for-list.strategy.js │ │ │ │ │ ├── default.recommendation.strategy.js │ │ │ │ │ ├── functions-with-keyspace.strategy.js │ │ │ │ │ ├── functions-with-streams.strategy.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lua-to-functions.strategy.js │ │ │ │ │ ├── redis-version.strategy.js │ │ │ │ │ ├── rts.strategy.js │ │ │ │ │ ├── search-JSON.strategy.js │ │ │ │ │ ├── search-visualization.strategy.js │ │ │ │ │ ├── shard-hash.strategy.js │ │ │ │ │ ├── string-to-json.strategy.js │ │ │ │ │ └── use-smaller-keys.strategy.js │ │ │ ├── database │ │ │ │ ├── database-connection.service.js │ │ │ │ ├── database-info.controller.js │ │ │ │ ├── database-info.service.js │ │ │ │ ├── database.analytics.js │ │ │ │ ├── database.controller.js │ │ │ │ ├── database.module.js │ │ │ │ ├── database.service.js │ │ │ │ ├── dto │ │ │ │ │ ├── create.database.dto.js │ │ │ │ │ ├── database.response.js │ │ │ │ │ ├── delete.databases.dto.js │ │ │ │ │ ├── delete.databases.response.js │ │ │ │ │ ├── export.databases.dto.js │ │ │ │ │ ├── redis-info.dto.js │ │ │ │ │ └── update.database.dto.js │ │ │ │ ├── entities │ │ │ │ │ └── database.entity.js │ │ │ │ ├── exeptions │ │ │ │ │ ├── database-already-exists.exception.js │ │ │ │ │ └── index.js │ │ │ │ ├── middleware │ │ │ │ │ └── connection.middleware.js │ │ │ │ ├── models │ │ │ │ │ ├── additional.redis.module.js │ │ │ │ │ ├── database-overview.js │ │ │ │ │ ├── database.js │ │ │ │ │ └── export-database.js │ │ │ │ ├── providers │ │ │ │ │ ├── database-info.provider.js │ │ │ │ │ ├── database-overview.provider.js │ │ │ │ │ ├── database.client.factory.js │ │ │ │ │ └── database.factory.js │ │ │ │ └── repositories │ │ │ │ │ ├── database.repository.js │ │ │ │ │ ├── local.database.repository.js │ │ │ │ │ └── stack.databases.repository.js │ │ │ ├── encryption │ │ │ │ ├── encryption.module.js │ │ │ │ ├── encryption.service.js │ │ │ │ ├── exceptions │ │ │ │ │ ├── encryption-service-error.exception.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── key-decryption-error.exception.js │ │ │ │ │ ├── key-encryption-error.exception.js │ │ │ │ │ ├── key-unavailable.exception.js │ │ │ │ │ ├── keytar-decryption-error.exception.js │ │ │ │ │ ├── keytar-encryption-error.exception.js │ │ │ │ │ ├── keytar-unavailable.exception.js │ │ │ │ │ └── unsupported-encryption-strategy.exception.js │ │ │ │ ├── model.encryptor.js │ │ │ │ ├── models │ │ │ │ │ ├── encryption-result.js │ │ │ │ │ └── index.js │ │ │ │ └── strategies │ │ │ │ │ ├── encryption-strategy.interface.js │ │ │ │ │ ├── key-encryption.strategy.js │ │ │ │ │ ├── keytar-encryption.strategy.js │ │ │ │ │ └── plain-encryption.strategy.js │ │ │ ├── feature │ │ │ │ ├── constants │ │ │ │ │ ├── index.js │ │ │ │ │ └── known-features.js │ │ │ │ ├── entities │ │ │ │ │ ├── feature.entity.js │ │ │ │ │ └── features-config.entity.js │ │ │ │ ├── exceptions │ │ │ │ │ ├── index.js │ │ │ │ │ └── unable-to-fetch-remote-config.exception.js │ │ │ │ ├── feature.analytics.js │ │ │ │ ├── feature.controller.js │ │ │ │ ├── feature.gateway.js │ │ │ │ ├── feature.module.js │ │ │ │ ├── feature.service.js │ │ │ │ ├── features-config.service.js │ │ │ │ ├── model │ │ │ │ │ ├── feature.js │ │ │ │ │ └── features-config.js │ │ │ │ ├── providers │ │ │ │ │ └── feature-flag │ │ │ │ │ │ ├── feature-flag.provider.js │ │ │ │ │ │ └── strategies │ │ │ │ │ │ ├── cloud-sso.flag.strategy.js │ │ │ │ │ │ ├── common.flag.strategy.js │ │ │ │ │ │ ├── default.flag.strategy.js │ │ │ │ │ │ ├── feature.flag.strategy.js │ │ │ │ │ │ └── with-data.flag.strategy.js │ │ │ │ ├── repositories │ │ │ │ │ ├── feature.repository.js │ │ │ │ │ ├── features-config.repository.js │ │ │ │ │ ├── local.feature.repository.js │ │ │ │ │ └── local.features-config.repository.js │ │ │ │ └── transformers │ │ │ │ │ ├── feature-config-filter.transformer.js │ │ │ │ │ └── index.js │ │ │ ├── notification │ │ │ │ ├── constants │ │ │ │ │ └── index.js │ │ │ │ ├── dto │ │ │ │ │ ├── create-notification.dto.js │ │ │ │ │ ├── create-notifications.dto.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── notification.dto.js │ │ │ │ │ ├── notifications.dto.js │ │ │ │ │ └── read-notifications.dto.js │ │ │ │ ├── entities │ │ │ │ │ └── notification.entity.js │ │ │ │ ├── notification.controller.js │ │ │ │ ├── notification.gateway.js │ │ │ │ ├── notification.module.js │ │ │ │ ├── notification.service.js │ │ │ │ └── providers │ │ │ │ │ ├── global-notification.provider.js │ │ │ │ │ └── notification.emitter.js │ │ │ ├── plugin │ │ │ │ ├── plugin.controller.js │ │ │ │ ├── plugin.module.js │ │ │ │ ├── plugin.response.js │ │ │ │ └── plugin.service.js │ │ │ ├── profiler │ │ │ │ ├── constants │ │ │ │ │ └── index.js │ │ │ │ ├── emitters │ │ │ │ │ ├── client.logs-emitter.js │ │ │ │ │ └── file.logs-emitter.js │ │ │ │ ├── interfaces │ │ │ │ │ ├── logs-emitter.interface.js │ │ │ │ │ ├── monitor-data.interface.js │ │ │ │ │ └── shard-observer.interface.js │ │ │ │ ├── models │ │ │ │ │ ├── log-file.js │ │ │ │ │ ├── monitor-settings.js │ │ │ │ │ ├── profiler.client.js │ │ │ │ │ └── redis.observer.js │ │ │ │ ├── profiler-analytics.service.js │ │ │ │ ├── profiler.controller.js │ │ │ │ ├── profiler.gateway.js │ │ │ │ ├── profiler.module.js │ │ │ │ ├── profiler.service.js │ │ │ │ └── providers │ │ │ │ │ ├── log-file.provider.js │ │ │ │ │ ├── profiler-client.provider.js │ │ │ │ │ └── redis-observer.provider.js │ │ │ ├── pub-sub │ │ │ │ ├── constants │ │ │ │ │ └── index.js │ │ │ │ ├── decorators │ │ │ │ │ └── client.decorator.js │ │ │ │ ├── dto │ │ │ │ │ ├── index.js │ │ │ │ │ ├── messages.response.js │ │ │ │ │ ├── publish.dto.js │ │ │ │ │ ├── publish.response.js │ │ │ │ │ ├── subscribe.dto.js │ │ │ │ │ └── subscription.dto.js │ │ │ │ ├── errors │ │ │ │ │ └── pub-sub-ws.exception.js │ │ │ │ ├── filters │ │ │ │ │ └── ack-ws-exception.filter.js │ │ │ │ ├── interfaces │ │ │ │ │ ├── message.interface.js │ │ │ │ │ └── subscription.interface.js │ │ │ │ ├── model │ │ │ │ │ ├── abstract.subscription.js │ │ │ │ │ ├── pattern.subscription.js │ │ │ │ │ ├── redis-client-subscriber.js │ │ │ │ │ ├── simple.subscription.js │ │ │ │ │ ├── user-client.js │ │ │ │ │ └── user-session.js │ │ │ │ ├── providers │ │ │ │ │ ├── redis-client.provider.js │ │ │ │ │ ├── subscription.provider.js │ │ │ │ │ └── user-session.provider.js │ │ │ │ ├── pub-sub.analytics.service.js │ │ │ │ ├── pub-sub.controller.js │ │ │ │ ├── pub-sub.gateway.js │ │ │ │ ├── pub-sub.module.js │ │ │ │ └── pub-sub.service.js │ │ │ ├── recommendation │ │ │ │ ├── providers │ │ │ │ │ └── recommendation.provider.js │ │ │ │ ├── recommendation.module.js │ │ │ │ └── recommendation.service.js │ │ │ ├── redis-enterprise │ │ │ │ ├── controllers │ │ │ │ │ └── cluster.controller.js │ │ │ │ ├── dto │ │ │ │ │ ├── cluster.dto.js │ │ │ │ │ └── redis-enterprise-cluster.dto.js │ │ │ │ ├── models │ │ │ │ │ └── redis-enterprise-database.js │ │ │ │ ├── redis-enterprise.analytics.js │ │ │ │ ├── redis-enterprise.module.js │ │ │ │ ├── redis-enterprise.service.js │ │ │ │ └── utils │ │ │ │ │ └── redis-enterprise-converter.js │ │ │ ├── redis-sentinel │ │ │ │ ├── dto │ │ │ │ │ ├── create.sentinel.database.dto.js │ │ │ │ │ ├── create.sentinel.database.response.js │ │ │ │ │ ├── create.sentinel.databases.dto.js │ │ │ │ │ ├── discover.sentinel-masters.dto.js │ │ │ │ │ ├── sentinel.master.response.dto.js │ │ │ │ │ └── update.sentinel.master.dto.js │ │ │ │ ├── models │ │ │ │ │ ├── sentinel-master.js │ │ │ │ │ └── sentinel.js │ │ │ │ ├── redis-sentinel.analytics.js │ │ │ │ ├── redis-sentinel.controller.js │ │ │ │ ├── redis-sentinel.module.js │ │ │ │ └── redis-sentinel.service.js │ │ │ ├── redis │ │ │ │ ├── client │ │ │ │ │ ├── index.js │ │ │ │ │ ├── ioredis │ │ │ │ │ │ ├── cluster.ioredis.client.js │ │ │ │ │ │ ├── ioredis.client.js │ │ │ │ │ │ ├── sentinel.ioredis.client.js │ │ │ │ │ │ └── standalone.ioredis.client.js │ │ │ │ │ ├── node-redis │ │ │ │ │ │ ├── cluster.node-redis.client.js │ │ │ │ │ │ ├── node-redis.client.js │ │ │ │ │ │ └── standalone.node-redis.client.js │ │ │ │ │ └── redis.client.js │ │ │ │ ├── connection │ │ │ │ │ ├── ioredis.redis.connection.strategy.js │ │ │ │ │ ├── node.redis.connection.strategy.js │ │ │ │ │ └── redis.connection.strategy.js │ │ │ │ ├── exceptions │ │ │ │ │ └── client-not-found-error.exception.js │ │ │ │ ├── redis.client.factory.js │ │ │ │ ├── redis.client.storage.js │ │ │ │ ├── redis.module.js │ │ │ │ └── utils │ │ │ │ │ ├── cluster.util.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── keys.util.js │ │ │ │ │ ├── reply.util.js │ │ │ │ │ └── sentinel.util.js │ │ │ ├── server │ │ │ │ ├── dto │ │ │ │ │ └── server.dto.js │ │ │ │ ├── entities │ │ │ │ │ └── server.entity.js │ │ │ │ ├── health.controller.js │ │ │ │ ├── models │ │ │ │ │ └── server.js │ │ │ │ ├── repositories │ │ │ │ │ ├── local.server.repository.js │ │ │ │ │ └── server.repository.js │ │ │ │ ├── server.controller.js │ │ │ │ ├── server.module.js │ │ │ │ └── server.service.js │ │ │ ├── session │ │ │ │ ├── providers │ │ │ │ │ ├── session.provider.js │ │ │ │ │ ├── single-user.session.provider.js │ │ │ │ │ └── storage │ │ │ │ │ │ ├── in-memory.session.storage.js │ │ │ │ │ │ └── session.storage.js │ │ │ │ ├── session.module.js │ │ │ │ └── session.service.js │ │ │ ├── settings │ │ │ │ ├── dto │ │ │ │ │ └── settings.dto.js │ │ │ │ ├── entities │ │ │ │ │ ├── agreements.entity.js │ │ │ │ │ └── settings.entity.js │ │ │ │ ├── models │ │ │ │ │ ├── agreements.interface.js │ │ │ │ │ ├── agreements.js │ │ │ │ │ └── settings.js │ │ │ │ ├── repositories │ │ │ │ │ ├── agreements.repository.js │ │ │ │ │ ├── local.agreements.repository.js │ │ │ │ │ ├── local.settings.repository.js │ │ │ │ │ └── settings.repository.js │ │ │ │ ├── settings.analytics.js │ │ │ │ ├── settings.controller.js │ │ │ │ ├── settings.module.js │ │ │ │ └── settings.service.js │ │ │ ├── slow-log │ │ │ │ ├── constants │ │ │ │ │ └── commands.js │ │ │ │ ├── dto │ │ │ │ │ ├── get-slow-logs.dto.js │ │ │ │ │ └── update-slow-log-config.dto.js │ │ │ │ ├── models │ │ │ │ │ ├── index.js │ │ │ │ │ ├── slow-log-config.js │ │ │ │ │ └── slow-log.js │ │ │ │ ├── slow-log-analytics.service.js │ │ │ │ ├── slow-log.controller.js │ │ │ │ ├── slow-log.module.js │ │ │ │ └── slow-log.service.js │ │ │ ├── ssh │ │ │ │ ├── dto │ │ │ │ │ ├── create.basic-ssh-options.dto.js │ │ │ │ │ ├── create.cert-ssh-options.dto.js │ │ │ │ │ ├── ssh-options.response.js │ │ │ │ │ └── update.ssh-options.dto.js │ │ │ │ ├── entities │ │ │ │ │ └── ssh-options.entity.js │ │ │ │ ├── exceptions │ │ │ │ │ ├── index.js │ │ │ │ │ ├── tunnel-connection-lost.exception.js │ │ │ │ │ ├── unable-to-create-local-server.exception.js │ │ │ │ │ ├── unable-to-create-ssh-connection.exception.js │ │ │ │ │ └── unable-to-create-tunnel.exception.js │ │ │ │ ├── models │ │ │ │ │ ├── ssh-options.js │ │ │ │ │ └── ssh-tunnel.js │ │ │ │ ├── ssh-tunnel.provider.js │ │ │ │ ├── ssh.module.js │ │ │ │ └── transformers │ │ │ │ │ └── ssh-options.transformer.js │ │ │ ├── statics-management │ │ │ │ ├── providers │ │ │ │ │ ├── auto-updated-statics.interface.js │ │ │ │ │ └── auto-updated-statics.provider.js │ │ │ │ └── statics-management.module.js │ │ │ ├── triggered-functions │ │ │ │ ├── dto │ │ │ │ │ ├── delete-library.dto.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── library.dto.js │ │ │ │ │ └── upload-library.dto.js │ │ │ │ ├── models │ │ │ │ │ ├── function.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── library.js │ │ │ │ │ └── short-library.js │ │ │ │ ├── triggered-functions.controller.js │ │ │ │ ├── triggered-functions.module.js │ │ │ │ ├── triggered-functions.service.js │ │ │ │ └── utils │ │ │ │ │ ├── index.js │ │ │ │ │ └── triggered-functions.util.js │ │ │ └── workbench │ │ │ │ ├── decorators │ │ │ │ └── workbench-client-metadata.decorator.js │ │ │ │ ├── dto │ │ │ │ ├── create-command-execution.dto.js │ │ │ │ ├── create-command-executions.dto.js │ │ │ │ └── create-plugin-state.dto.js │ │ │ │ ├── entities │ │ │ │ ├── command-execution.entity.js │ │ │ │ └── plugin-state.entity.js │ │ │ │ ├── models │ │ │ │ ├── command-execution-result.js │ │ │ │ ├── command-execution.js │ │ │ │ ├── plugin-command-execution.js │ │ │ │ ├── plugin-state.js │ │ │ │ └── short-command-execution.js │ │ │ │ ├── plugins.controller.js │ │ │ │ ├── plugins.service.js │ │ │ │ ├── providers │ │ │ │ ├── plugin-commands-whitelist.provider.js │ │ │ │ └── workbench-commands.executor.js │ │ │ │ ├── repositories │ │ │ │ ├── command-execution.repository.js │ │ │ │ ├── local-command-execution.repository.js │ │ │ │ ├── local-plugin-state.repository.js │ │ │ │ └── plugin-state.repository.js │ │ │ │ ├── services │ │ │ │ └── workbench-analytics │ │ │ │ │ └── workbench-analytics.service.js │ │ │ │ ├── utils │ │ │ │ └── getUnsupportedCommands.js │ │ │ │ ├── workbench.controller.js │ │ │ │ ├── workbench.module.js │ │ │ │ └── workbench.service.js │ │ ├── utils │ │ │ ├── analytics-helper.js │ │ │ ├── base.helper.js │ │ │ ├── catch-redis-errors.js │ │ │ ├── class-transformer.js │ │ │ ├── cli-helper.js │ │ │ ├── config.js │ │ │ ├── converter.js │ │ │ ├── createHttpOptions.js │ │ │ ├── file-helper.js │ │ │ ├── glob-pattern-helper.js │ │ │ ├── hosting-provider-helper.js │ │ │ ├── index.js │ │ │ ├── logsFormatter.js │ │ │ ├── path.js │ │ │ ├── promise-with-timeout.js │ │ │ ├── recommendation-helper.js │ │ │ ├── redis-modules-summary.js │ │ │ └── redis-reply-converter.js │ │ └── validators │ │ │ ├── index.js │ │ │ ├── isObjectWithValues.validator.js │ │ │ └── serializedJson.validator.js │ ├── static │ │ ├── plugins │ │ │ ├── clients-list │ │ │ │ ├── dist │ │ │ │ │ ├── index.js │ │ │ │ │ ├── json_view_icon_dark.svg │ │ │ │ │ ├── json_view_icon_light.svg │ │ │ │ │ ├── styles.css │ │ │ │ │ ├── table_view_icon_dark.svg │ │ │ │ │ └── table_view_icon_light.svg │ │ │ │ └── package.json │ │ │ ├── redisearch │ │ │ │ ├── dist │ │ │ │ │ ├── index.js │ │ │ │ │ ├── styles.css │ │ │ │ │ ├── table_view_icon_dark.svg │ │ │ │ │ └── table_view_icon_light.svg │ │ │ │ └── package.json │ │ │ ├── redisgraph │ │ │ │ ├── dist │ │ │ │ │ ├── index.js │ │ │ │ │ ├── main.js.map │ │ │ │ │ ├── styles.css │ │ │ │ │ └── styles.css.map │ │ │ │ └── package.json │ │ │ ├── redistimeseries-app │ │ │ │ ├── dist │ │ │ │ │ ├── index.js │ │ │ │ │ └── styles.css │ │ │ │ └── package.json │ │ │ └── ri-explain │ │ │ │ ├── dist │ │ │ │ ├── index.js │ │ │ │ ├── main.js.map │ │ │ │ ├── profile_icon_dark.svg │ │ │ │ ├── profile_icon_light.svg │ │ │ │ ├── styles.css │ │ │ │ └── styles.css.map │ │ │ │ └── package.json │ │ └── resources │ │ │ └── plugins │ │ │ ├── dark_theme.css │ │ │ ├── fonts │ │ │ ├── Graphik-Light.woff2 │ │ │ ├── Graphik-LightItalic.woff2 │ │ │ ├── Graphik-Medium.woff2 │ │ │ ├── Graphik-MediumItalic.woff2 │ │ │ ├── Graphik-Regular.woff2 │ │ │ ├── Graphik-RegularItalic.woff2 │ │ │ ├── Graphik-Semibold.woff2 │ │ │ ├── Graphik-SemiboldItalic.woff2 │ │ │ └── inconsolata │ │ │ │ ├── Inconsolata-Bold.ttf │ │ │ │ └── Inconsolata-Regular.ttf │ │ │ ├── global_styles.css │ │ │ └── light_theme.css │ └── tsconfig.build.prod.tsbuildinfo ├── front │ ├── editor.worker.js │ ├── fonts │ │ ├── 17f5b8641438508d6b9902b3050aed97-Graphik-RegularItalic.woff2 │ │ ├── 2d605563782d8914f953a910e83d1bdb-Inconsolata-Bold.ttf │ │ ├── 42689b48d7c24bf0d540e69b42365b69-Graphik-Light.woff2 │ │ ├── a373329db08e6a93664ef6e898e12c2d-Graphik-MediumItalic.woff2 │ │ ├── a9b36833bf41bc54b9a98855ae303015-Graphik-Medium.woff2 │ │ ├── be8d777883e1681563d58ce0933dd255-Graphik-Regular.woff2 │ │ ├── c1c879bef7ec419e94a57cd6415cdc16-Graphik-SemiboldItalic.woff2 │ │ ├── d8bb92ebd0f231bbcc39dc3b857f609e-Graphik-Semibold.woff2 │ │ ├── ed7f6e5be703abdc4a71ff8d3d8d8673-Inconsolata-Regular.ttf │ │ └── ee0dda7261dcd0073d02b0dc5854604a-Graphik-LightItalic.woff2 │ ├── index.html │ ├── js │ │ ├── bundle.483.min.js │ │ ├── bundle.483.min.js.LICENSE.txt │ │ ├── bundle.elasticVendor.min.js │ │ ├── bundle.main.min.js │ │ ├── bundle.monacoVendor.min.js │ │ ├── bundle.monacoVendor.min.js.LICENSE.txt │ │ ├── bundle.reactVendor.min.js │ │ ├── bundle.reactVendor.min.js.LICENSE.txt │ │ ├── bundle.runtime.min.js │ │ ├── bundle.utilityVendor.min.js │ │ └── bundle.utilityVendor.min.js.LICENSE.txt │ ├── json.worker.js │ ├── main.4e635793eb2e86c2e55c.css │ ├── ts.worker.js │ └── ts.worker.js.LICENSE.txt ├── package.json └── yarn.lock ├── docker-entry.sh ├── package-lock.json └── package.json /.dockerignore: -------------------------------------------------------------------------------- 1 | *.md 2 | *.ts 3 | *.map 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | charset = utf-8 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true 12 | 13 | [*.md] 14 | trim_trailing_whitespace = false 15 | -------------------------------------------------------------------------------- /.github/workflows/dockerhub-description.yml: -------------------------------------------------------------------------------- 1 | name: Update Docker Hub Description 2 | on: 3 | push: 4 | branches: 5 | - master 6 | paths: 7 | - README.md 8 | - .github/workflows/dockerhub-description.yml 9 | jobs: 10 | dockerHubDescription: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v3 14 | 15 | - name: Docker Hub Description 16 | uses: peter-evans/dockerhub-description@v3 17 | with: 18 | username: ${{ secrets.DOCKERHUB_USERNAME }} 19 | password: ${{ secrets.DOCKERHUB_PAT }} 20 | repository: oblakstudio/redisinsight 21 | short-description: ${{ github.event.repository.description }} 22 | enable-url-completion: true 23 | -------------------------------------------------------------------------------- /.github/workflows/version_check.yml: -------------------------------------------------------------------------------- 1 | name: Check for new RedisInsight version 2 | 3 | on: 4 | workflow_dispatch: 5 | jobs: 6 | check_version: 7 | name: Check for new version 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Checkout 11 | uses: actions/checkout@v4 12 | with: 13 | token: ${{ secrets.OBLAK_BOT_TOKEN }} 14 | - name: Import GPG key 15 | uses: crazy-max/ghaction-import-gpg@v6 16 | with: 17 | gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} 18 | passphrase: ${{ secrets.GPG_PASSPHRASE }} 19 | git_config_global: true 20 | git_user_signingkey: true 21 | git_commit_gpgsign: true 22 | - name: Setup Node.js 23 | uses: actions/setup-node@v3 24 | with: 25 | node-version: 18 26 | - name: Check for new version 27 | run: | 28 | .github/scripts/check-release-version.bash 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ri-src 2 | node_modules 3 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18 2 | -------------------------------------------------------------------------------- /.releaserc: -------------------------------------------------------------------------------- 1 | { 2 | "branches": [ 3 | "master" 4 | ], 5 | "plugins": [ 6 | "@semantic-release/commit-analyzer", 7 | "@semantic-release/release-notes-generator", 8 | "@semantic-release/github" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /.shellcheckrc: -------------------------------------------------------------------------------- 1 | external-sources=true -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 2.46.0 2 | -------------------------------------------------------------------------------- /build/back/.yarnclean: -------------------------------------------------------------------------------- 1 | *.md 2 | *.ts 3 | *.map 4 | -------------------------------------------------------------------------------- /build/back/config/development.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.default = { 4 | server: { 5 | env: 'development', 6 | }, 7 | sockets: { 8 | cors: true, 9 | }, 10 | db: { 11 | synchronize: process.env.RI_DB_SYNC ? process.env.RI_DB_SYNC === 'true' : true, 12 | migrationsRun: process.env.RI_DB_MIGRATIONS ? process.env.RI_DB_MIGRATIONS === 'true' : false, 13 | }, 14 | logger: { 15 | logLevel: process.env.RI_LOG_LEVEL || 'debug', 16 | stdout: process.env.RI_STDOUT_LOGGER ? process.env.RI_STDOUT_LOGGER === 'true' : true, 17 | omitSensitiveData: process.env.RI_LOGGER_OMIT_DATA ? process.env.RI_LOGGER_OMIT_DATA === 'true' : false, 18 | }, 19 | }; 20 | -------------------------------------------------------------------------------- /build/back/config/stack.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const common_1 = require("@nestjs/common"); 4 | exports.default = { 5 | server: { 6 | excludeRoutes: [ 7 | 'redis-enterprise/*', 8 | 'redis-sentinel/*', 9 | { path: 'databases/import' }, 10 | { path: 'databases', method: common_1.RequestMethod.POST }, 11 | { path: 'databases', method: common_1.RequestMethod.DELETE }, 12 | { path: 'databases/:id', method: common_1.RequestMethod.DELETE }, 13 | ], 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /build/back/config/swagger.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const SWAGGER_CONFIG = { 4 | openapi: '3.0.0', 5 | info: { 6 | title: 'RedisInsight Backend API', 7 | description: 'RedisInsight Backend API', 8 | version: '2.46.0', 9 | }, 10 | tags: [], 11 | }; 12 | exports.default = SWAGGER_CONFIG; 13 | -------------------------------------------------------------------------------- /build/back/defaults/content/build.json: -------------------------------------------------------------------------------- 1 | {"timestamp":1705924664} 2 | -------------------------------------------------------------------------------- /build/back/defaults/content/guide-links.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "title": "Search and Query", 4 | "tutorialId": "sq-intro", 5 | "icon": "search" 6 | }, 7 | { 8 | "title": "JSON", 9 | "tutorialId": "ds-json-intro", 10 | "icon": "json" 11 | }, 12 | { 13 | "title": "Triggers and functions", 14 | "tutorialId": "tf-intro", 15 | "icon": "triggers-and-functions" 16 | }, 17 | { 18 | "title": "Time Series", 19 | "tutorialId": "ds-ts-intro", 20 | "icon": "time-series" 21 | }, 22 | { 23 | "title": "Probabilistic", 24 | "tutorialId": "ds-prob-intro", 25 | "icon": "probabilistic-data-structures" 26 | } 27 | ] 28 | -------------------------------------------------------------------------------- /build/back/defaults/tutorials/build.json: -------------------------------------------------------------------------------- 1 | {"timestamp":1710330726} 2 | -------------------------------------------------------------------------------- /build/back/defaults/tutorials/ds/json/learn-more.md: -------------------------------------------------------------------------------- 1 | ### Documentation 2 | 3 | * [JSON capability home](https://redis.io/docs/data-types/json/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) 4 | 5 | ### Social 6 | 7 | * [JSON capability on GitHub](https://github.com/RedisJSON/RedisJSON/) 8 | * [JSON capability on Discord](https://discord.com/channels/697882427875393627/1187464817745862786) 9 | 10 | ### Blogs 11 | 12 | * [RedisJSON: Public Preview & Performance Benchmarking](https://redis.com/blog/redisjson-public-preview-performance-benchmarking/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) 13 | * [Indexing, Querying, and Full-Text Search of JSON Documents with Redis](https://redis.com/blog/index-and-query-json-docs-with-redis/) 14 | 15 | -------------------------------------------------------------------------------- /build/back/defaults/tutorials/ds/json/objects.md: -------------------------------------------------------------------------------- 1 | Redis provides two commands that operate specifically on JSON objects. A simple document will be used to demonstrate each of the two commands. 2 | 3 | ```redis:[run_confirmation=true] Create document 4 | JSON.SET doc $ '{"a":1,"b":2,"o":{"c":3,"d":4}}' 5 | ``` 6 | 7 | - `JSON.OBJKEYS` - retrieve the fields of a JSON object. 8 | 9 | ```redis Get doc's fields 10 | JSON.OBJKEYS doc 11 | ``` 12 | 13 | ```redis Get the fields for $.o 14 | JSON.OBJKEYS doc $.o 15 | ``` 16 | 17 | - `JSON.OBJLEN` - get the number of fields of a JSON object. 18 | 19 | ```redis Get the number of members of the object at the root of document doc 20 | JSON.OBJLEN doc 21 | ``` 22 | 23 | ```redis Get the number of members of the $.o object of document doc 24 | JSON.OBJLEN doc $.o 25 | ``` 26 | -------------------------------------------------------------------------------- /build/back/defaults/tutorials/ds/ts/cross-key.md: -------------------------------------------------------------------------------- 1 | `TS.MRANGE` and `TS.REVMRANGE` can also take an optional `AGGREGATION` argument. This allows you to run queries across different keys using different filters. In the following example, the specified filter looks across time series keys that have a matching `region` label, calculates the daily average using the `AGGREGATION` clause, and groups the data by region and applying the `sum` reducer function. 2 | 3 | ``` 4 | TS.MRANGE - + WITHLABELS FILTER region=(east,west) AGGREGATION avg 86400000 GROUPBY region REDUCE sum 5 | ``` 6 | -------------------------------------------------------------------------------- /build/back/defaults/tutorials/ds/ts/single-key.md: -------------------------------------------------------------------------------- 1 | The previous tutorial showed that the `TS.RANGE` and `TS.REVRANGE` commands can take an optional `AGGREGATION` argument. Aggregations using the `RANGE` commands allow you to make ad hoc queries using, perhaps, a different aggregator than what you've used in your aggregation rules. In the following example, data are aggregated the `avg` function, calculating and reporting average daily sales for a bike shop. 2 | 3 | ```redis AGGREGATION in action 4 | TS.RANGE bike_sales_1 - + AGGREGATION avg 86400000 5 | ``` 6 | -------------------------------------------------------------------------------- /build/back/defaults/tutorials/sq/intro.md: -------------------------------------------------------------------------------- 1 | Redis Stack offers an enhanced Redis experience via the following search and query features: 2 | 3 | - A rich query language 4 | - Incremental indexing on JSON and hash documents 5 | - Vector search 6 | - Full-text search 7 | - Geospatial queries 8 | - Aggregations 9 | 10 | The search and query features of Redis Stack allow you to use Redis as a: 11 | 12 | - Document database 13 | - Vector database 14 | - Secondary index 15 | - Search engine 16 | 17 | ### Prerequisites 18 | 19 | [Redis Stack](https://redis.io/download?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) >=7.2.0-v7 \ 20 | OR \ 21 | [RediSearch](https://github.com/RediSearch/RediSearch/) >=2.8.11 \ 22 | OR \ 23 | A free Redis Stack instance on [Redis Cloud](https://redis.com/try-free/?utm_source=redis\&utm_medium=app\&utm_campaign=redisinsight_vecsim_guide "Redis Cloud"). 24 | -------------------------------------------------------------------------------- /build/back/defaults/tutorials/sq/learn-more.md: -------------------------------------------------------------------------------- 1 | ### Documentation 2 | 3 | * [Search and query home](https://redis.io/docs/interact/search-and-query/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) 4 | 5 | ### Social 6 | 7 | * [Search and query on GitHub](https://github.com/RediSearch/RediSearch) 8 | * [Search and query on Discord](https://discord.com/channels/697882427875393627/1187464938218856501) 9 | * [Search and query on Stack Overflow](https://stackoverflow.com/questions/tagged/redisearch) 10 | 11 | ### Blogs 12 | 13 | * [Indexing, Querying, and Full-Text Search of JSON Documents with Redis](https://redis.com/blog/index-and-query-json-docs-with-redis/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) 14 | 15 | ### Tutorials 16 | 17 | * [Examples](https://redis.io/docs/interact/search-and-query/query/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) 18 | -------------------------------------------------------------------------------- /build/back/migration/1625771635418-agreements.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.agreements1625771635418 = void 0; 4 | class agreements1625771635418 { 5 | constructor() { 6 | this.name = 'agreements1625771635418'; 7 | } 8 | async up(queryRunner) { 9 | await queryRunner.query(`CREATE TABLE "agreements" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "version" varchar, "data" varchar)`); 10 | } 11 | async down(queryRunner) { 12 | await queryRunner.query(`DROP TABLE "agreements"`); 13 | } 14 | } 15 | exports.agreements1625771635418 = agreements1625771635418; 16 | -------------------------------------------------------------------------------- /build/back/migration/1626086601057-server-info.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.serverInfo1626086601057 = void 0; 4 | class serverInfo1626086601057 { 5 | constructor() { 6 | this.name = 'serverInfo1626086601057'; 7 | } 8 | async up(queryRunner) { 9 | await queryRunner.query(`CREATE TABLE "server" ("id" varchar PRIMARY KEY NOT NULL, "createDateTime" datetime NOT NULL DEFAULT (datetime('now')))`); 10 | } 11 | async down(queryRunner) { 12 | await queryRunner.query(`DROP TABLE "server"`); 13 | } 14 | } 15 | exports.serverInfo1626086601057 = serverInfo1626086601057; 16 | -------------------------------------------------------------------------------- /build/back/migration/1627556171227-settings.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.settings1627556171227 = void 0; 4 | class settings1627556171227 { 5 | constructor() { 6 | this.name = 'settings1627556171227'; 7 | } 8 | async up(queryRunner) { 9 | await queryRunner.query(`CREATE TABLE "settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "data" varchar)`); 10 | } 11 | async down(queryRunner) { 12 | await queryRunner.query(`DROP TABLE "settings"`); 13 | } 14 | } 15 | exports.settings1627556171227 = settings1627556171227; 16 | -------------------------------------------------------------------------------- /build/back/migration/1655821010349-notification.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.notification1655821010349 = void 0; 4 | class notification1655821010349 { 5 | constructor() { 6 | this.name = 'notification1655821010349'; 7 | } 8 | async up(queryRunner) { 9 | await queryRunner.query(`CREATE TABLE "notification" ("type" varchar CHECK( type IN ('global') ) NOT NULL, "timestamp" integer NOT NULL, "title" varchar NOT NULL, "body" text NOT NULL, "read" boolean NOT NULL DEFAULT (0), PRIMARY KEY ("type", "timestamp"))`); 10 | } 11 | async down(queryRunner) { 12 | await queryRunner.query(`DROP TABLE "notification"`); 13 | } 14 | } 15 | exports.notification1655821010349 = notification1655821010349; 16 | -------------------------------------------------------------------------------- /build/back/migration/1677135091633-custom-tutorials.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.customTutorials1677135091633 = void 0; 4 | class customTutorials1677135091633 { 5 | constructor() { 6 | this.name = 'customTutorials1677135091633'; 7 | } 8 | async up(queryRunner) { 9 | await queryRunner.query(`CREATE TABLE "custom_tutorials" ("id" varchar PRIMARY KEY NOT NULL, "name" varchar NOT NULL, "link" varchar, "createdAt" datetime NOT NULL DEFAULT (datetime('now')))`); 10 | } 11 | async down(queryRunner) { 12 | await queryRunner.query(`DROP TABLE "custom_tutorials"`); 13 | } 14 | } 15 | exports.customTutorials1677135091633 = customTutorials1677135091633; 16 | -------------------------------------------------------------------------------- /build/back/migration/1684931530343-feature.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.Feature1684931530343 = void 0; 4 | class Feature1684931530343 { 5 | constructor() { 6 | this.name = 'Feature1684931530343'; 7 | } 8 | async up(queryRunner) { 9 | await queryRunner.query(`CREATE TABLE "features" ("name" varchar PRIMARY KEY NOT NULL, "flag" boolean NOT NULL)`); 10 | await queryRunner.query(`CREATE TABLE "features_config" ("id" varchar PRIMARY KEY NOT NULL, "controlNumber" float, "data" varchar NOT NULL, "updatedAt" datetime NOT NULL DEFAULT (datetime('now')))`); 11 | } 12 | async down(queryRunner) { 13 | await queryRunner.query(`DROP TABLE "features_config"`); 14 | await queryRunner.query(`DROP TABLE "features"`); 15 | } 16 | } 17 | exports.Feature1684931530343 = Feature1684931530343; 18 | -------------------------------------------------------------------------------- /build/back/src/common/constants/api.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.API_PARAM_CLI_CLIENT_ID = exports.API_HEADER_WINDOW_ID = exports.API_HEADER_DATABASE_INDEX = exports.API_PARAM_DATABASE_ID = void 0; 4 | exports.API_PARAM_DATABASE_ID = 'dbInstance'; 5 | exports.API_HEADER_DATABASE_INDEX = 'ri-db-index'; 6 | exports.API_HEADER_WINDOW_ID = 'x-window-id'; 7 | exports.API_PARAM_CLI_CLIENT_ID = 'uuid'; 8 | -------------------------------------------------------------------------------- /build/back/src/common/constants/general.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.TransformGroup = void 0; 4 | var TransformGroup; 5 | (function (TransformGroup) { 6 | TransformGroup["Secure"] = "security"; 7 | })(TransformGroup = exports.TransformGroup || (exports.TransformGroup = {})); 8 | -------------------------------------------------------------------------------- /build/back/src/common/constants/history.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.BrowserHistoryMode = void 0; 4 | var BrowserHistoryMode; 5 | (function (BrowserHistoryMode) { 6 | BrowserHistoryMode["Pattern"] = "pattern"; 7 | BrowserHistoryMode["Redisearch"] = "redisearch"; 8 | })(BrowserHistoryMode = exports.BrowserHistoryMode || (exports.BrowserHistoryMode = {})); 9 | -------------------------------------------------------------------------------- /build/back/src/common/constants/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./redis-string"), exports); 14 | __exportStar(require("./api"), exports); 15 | __exportStar(require("./history"), exports); 16 | __exportStar(require("./recommendations"), exports); 17 | __exportStar(require("./user"), exports); 18 | __exportStar(require("./general"), exports); 19 | -------------------------------------------------------------------------------- /build/back/src/common/constants/redis-string.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RedisStringResponseEncoding = exports.REDIS_STRING_ENCODING_QUERY_PARAM_NAME = void 0; 4 | exports.REDIS_STRING_ENCODING_QUERY_PARAM_NAME = 'encoding'; 5 | var RedisStringResponseEncoding; 6 | (function (RedisStringResponseEncoding) { 7 | RedisStringResponseEncoding["UTF8"] = "utf8"; 8 | RedisStringResponseEncoding["ASCII"] = "ascii"; 9 | RedisStringResponseEncoding["Buffer"] = "buffer"; 10 | })(RedisStringResponseEncoding = exports.RedisStringResponseEncoding || (exports.RedisStringResponseEncoding = {})); 11 | -------------------------------------------------------------------------------- /build/back/src/common/constants/user.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DEFAULT_SESSION_ID = exports.DEFAULT_USER_ID = void 0; 4 | exports.DEFAULT_USER_ID = '1'; 5 | exports.DEFAULT_SESSION_ID = '1'; 6 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/client-metadata/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./client-metadata.decorator"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/data-as-json-string.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DataAsJsonString = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const class_transformer_1 = require("class-transformer"); 6 | function DataAsJsonString() { 7 | return (0, common_1.applyDecorators)((0, class_transformer_1.Transform)((object) => JSON.stringify(object), { toClassOnly: true }), (0, class_transformer_1.Transform)((string) => { 8 | try { 9 | return JSON.parse(string); 10 | } 11 | catch (e) { 12 | return undefined; 13 | } 14 | }, { toPlainOnly: true })); 15 | } 16 | exports.DataAsJsonString = DataAsJsonString; 17 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/default.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.Default = void 0; 4 | const class_transformer_1 = require("class-transformer"); 5 | const lodash_1 = require("lodash"); 6 | function Default(defaultValue) { 7 | return (0, class_transformer_1.Transform)((value) => value !== null && value !== void 0 ? value : (0, lodash_1.cloneDeep)(defaultValue)); 8 | } 9 | exports.Default = Default; 10 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/hidden-field.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.HiddenField = void 0; 4 | const class_transformer_1 = require("class-transformer"); 5 | function HiddenField(field) { 6 | return (0, class_transformer_1.Transform)((value) => (value ? field : undefined), { 7 | toPlainOnly: true, 8 | }); 9 | } 10 | exports.HiddenField = HiddenField; 11 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/is-bigger-than.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.IsBiggerThan = void 0; 4 | const class_validator_1 = require("class-validator"); 5 | const bigger_than_validator_1 = require("../validators/bigger-than.validator"); 6 | function IsBiggerThan(property, validationOptions) { 7 | return (object, propertyName) => { 8 | (0, class_validator_1.registerDecorator)({ 9 | name: 'IsBiggerThan', 10 | target: object.constructor, 11 | propertyName, 12 | constraints: [property], 13 | options: validationOptions, 14 | validator: bigger_than_validator_1.BiggerThan, 15 | }); 16 | }; 17 | } 18 | exports.IsBiggerThan = IsBiggerThan; 19 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/is-github-link.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.IsGitHubLink = void 0; 4 | const class_validator_1 = require("class-validator"); 5 | const validators_1 = require("../validators"); 6 | function IsGitHubLink(validationOptions) { 7 | return (object, propertyName) => { 8 | (0, class_validator_1.registerDecorator)({ 9 | name: 'IsGitHubLink', 10 | target: object.constructor, 11 | propertyName, 12 | constraints: [], 13 | options: validationOptions, 14 | validator: validators_1.GitHubLink, 15 | }); 16 | }; 17 | } 18 | exports.IsGitHubLink = IsGitHubLink; 19 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/is-multi-number.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.IsMultiNumber = void 0; 4 | const class_validator_1 = require("class-validator"); 5 | const validators_1 = require("../validators"); 6 | function IsMultiNumber(validationOptions) { 7 | return (object, propertyName) => { 8 | (0, class_validator_1.registerDecorator)({ 9 | name: 'IsMultiNumber', 10 | target: object.constructor, 11 | propertyName, 12 | options: validationOptions, 13 | validator: validators_1.MultiNumberValidator, 14 | }); 15 | }; 16 | } 17 | exports.IsMultiNumber = IsMultiNumber; 18 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/redis-string/any-to-redis-string.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AnyToRedisString = void 0; 4 | const transformers_1 = require("../../transformers"); 5 | const AnyToRedisString = (opts) => (0, transformers_1.AnyToRedisStringTransformer)(opts); 6 | exports.AnyToRedisString = AnyToRedisString; 7 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/redis-string/api-query-redis-string-encoding.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ApiQueryRedisStringEncoding = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const constants_1 = require("../../constants"); 6 | const ApiQueryRedisStringEncoding = () => (0, swagger_1.ApiQuery)({ 7 | name: constants_1.REDIS_STRING_ENCODING_QUERY_PARAM_NAME, 8 | enum: constants_1.RedisStringResponseEncoding, 9 | }); 10 | exports.ApiQueryRedisStringEncoding = ApiQueryRedisStringEncoding; 11 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/redis-string/is-redis-string.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.IsRedisString = void 0; 4 | const class_validator_1 = require("class-validator"); 5 | const validators_1 = require("../../validators"); 6 | function IsRedisString(validationOptions) { 7 | return (object, propertyName) => { 8 | (0, class_validator_1.registerDecorator)({ 9 | name: 'IsRedisString', 10 | target: object.constructor, 11 | propertyName, 12 | options: validationOptions, 13 | validator: validators_1.RedisStringValidator, 14 | }); 15 | }; 16 | } 17 | exports.IsRedisString = IsRedisString; 18 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/redis-string/redis-string-to-ascii.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RedisStringToASCII = void 0; 4 | const transformers_1 = require("../../transformers"); 5 | const RedisStringToASCII = (opts) => (0, transformers_1.RedisStringToASCIITransformer)(opts); 6 | exports.RedisStringToASCII = RedisStringToASCII; 7 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/redis-string/redis-string-to-buffer.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RedisStringToBuffer = void 0; 4 | const transformers_1 = require("../../transformers"); 5 | const RedisStringToBuffer = (opts) => (0, transformers_1.RedisStringToBufferTransformer)(opts); 6 | exports.RedisStringToBuffer = RedisStringToBuffer; 7 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/redis-string/redis-string-to-utf8.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RedisStringToUTF8 = void 0; 4 | const transformers_1 = require("../../transformers"); 5 | const RedisStringToUTF8 = (opts) => (0, transformers_1.RedisStringToUTF8Transformer)(opts); 6 | exports.RedisStringToUTF8 = RedisStringToUTF8; 7 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/session/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./session-metadata.decorator"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/zset-score/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./zset-score.decorator"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/common/decorators/zset-score/zset-score.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.isZSetScore = void 0; 4 | const class_validator_1 = require("class-validator"); 5 | const validators_1 = require("../../validators"); 6 | function isZSetScore(validationOptions) { 7 | return (object, propertyName) => { 8 | (0, class_validator_1.registerDecorator)({ 9 | name: 'isZSetScore', 10 | target: object.constructor, 11 | propertyName, 12 | options: validationOptions, 13 | validator: validators_1.ZSetScoreValidator, 14 | }); 15 | }; 16 | } 17 | exports.isZSetScore = isZSetScore; 18 | -------------------------------------------------------------------------------- /build/back/src/common/exceptions/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./validation.exception"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/common/exceptions/validation.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ValidationException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class ValidationException extends common_1.BadRequestException { 6 | } 7 | exports.ValidationException = ValidationException; 8 | -------------------------------------------------------------------------------- /build/back/src/common/interceptors/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./browser-serialize.interceptor"), exports); 14 | __exportStar(require("./timeout.interceptor"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/common/models/common.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ActionStatus = void 0; 4 | var ActionStatus; 5 | (function (ActionStatus) { 6 | ActionStatus["Success"] = "success"; 7 | ActionStatus["Fail"] = "fail"; 8 | })(ActionStatus = exports.ActionStatus || (exports.ActionStatus = {})); 9 | -------------------------------------------------------------------------------- /build/back/src/common/models/database-index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DatabaseIndex = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const client_metadata_1 = require("./client-metadata"); 6 | class DatabaseIndex extends (0, swagger_1.PickType)(client_metadata_1.ClientMetadata, ['db']) { 7 | } 8 | exports.DatabaseIndex = DatabaseIndex; 9 | -------------------------------------------------------------------------------- /build/back/src/common/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./common"), exports); 14 | __exportStar(require("./endpoint"), exports); 15 | __exportStar(require("./session"), exports); 16 | __exportStar(require("./client-metadata"), exports); 17 | __exportStar(require("./database-index"), exports); 18 | -------------------------------------------------------------------------------- /build/back/src/common/pipes/database-index.validation.pipe.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DbIndexValidationPipe = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class DbIndexValidationPipe extends common_1.ValidationPipe { 6 | async transform(db, metadata) { 7 | return super.transform({ db }, metadata); 8 | } 9 | } 10 | exports.DbIndexValidationPipe = DbIndexValidationPipe; 11 | -------------------------------------------------------------------------------- /build/back/src/common/pipes/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./database-index.validation.pipe"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/common/transformers/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./redis-string"), exports); 14 | __exportStar(require("./redis-reply"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/common/transformers/redis-reply/formatter-manager.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.FormatterManager = void 0; 4 | class FormatterManager { 5 | constructor() { 6 | this.strategies = {}; 7 | } 8 | addStrategy(name, strategy) { 9 | this.strategies[name] = strategy; 10 | } 11 | getStrategy(name) { 12 | if (!this.strategies[name]) { 13 | throw new Error(`Unsupported formatter strategy: ${name}`); 14 | } 15 | return this.strategies[name]; 16 | } 17 | } 18 | exports.FormatterManager = FormatterManager; 19 | -------------------------------------------------------------------------------- /build/back/src/common/transformers/redis-reply/formatter.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.FormatterTypes = void 0; 4 | var FormatterTypes; 5 | (function (FormatterTypes) { 6 | FormatterTypes["ASCII"] = "ASCII"; 7 | FormatterTypes["UTF8"] = "UTF8"; 8 | })(FormatterTypes = exports.FormatterTypes || (exports.FormatterTypes = {})); 9 | -------------------------------------------------------------------------------- /build/back/src/common/transformers/redis-reply/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./formatter-manager"), exports); 14 | __exportStar(require("./formatter.interface"), exports); 15 | __exportStar(require("./strategies/ascii-formatter.strategy"), exports); 16 | __exportStar(require("./strategies/utf8-formatter.strategy"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/common/transformers/redis-string/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./redis-string-to-ascii.transformer"), exports); 14 | __exportStar(require("./redis-string-to-utf8.transformer"), exports); 15 | __exportStar(require("./redis-string-to-buffer.transformer"), exports); 16 | __exportStar(require("./any-to-redis-string.transformer"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/common/utils/errors.util.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.wrapHttpError = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const wrapHttpError = (error, message) => { 6 | if (error instanceof common_1.HttpException) { 7 | return error; 8 | } 9 | return new common_1.InternalServerErrorException(error.message || message); 10 | }; 11 | exports.wrapHttpError = wrapHttpError; 12 | -------------------------------------------------------------------------------- /build/back/src/common/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./certificate-import.util"), exports); 14 | __exportStar(require("./errors.util"), exports); 15 | __exportStar(require("./merge.util"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/common/utils/merge.util.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.deepMerge = void 0; 4 | const lodash_1 = require("lodash"); 5 | const deepMerge = (target, source) => (0, lodash_1.mergeWith)(target, source, (targetValue, sourceValue) => { 6 | if ((0, lodash_1.isUndefined)(sourceValue)) { 7 | return targetValue; 8 | } 9 | if ((0, lodash_1.isObjectLike)(sourceValue) && !(0, lodash_1.isArray)(sourceValue) && !(0, lodash_1.isArray)(targetValue)) { 10 | return (0, exports.deepMerge)(targetValue, sourceValue); 11 | } 12 | return sourceValue; 13 | }); 14 | exports.deepMerge = deepMerge; 15 | -------------------------------------------------------------------------------- /build/back/src/common/validators/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./redis-string.validator"), exports); 14 | __exportStar(require("./zset-score.validator"), exports); 15 | __exportStar(require("./multi-number.validator"), exports); 16 | __exportStar(require("./bigger-than.validator"), exports); 17 | __exportStar(require("./github-link.validator"), exports); 18 | -------------------------------------------------------------------------------- /build/back/src/constants/app-events.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AppRedisInstanceEvents = exports.AppAnalyticsEvents = void 0; 4 | var AppAnalyticsEvents; 5 | (function (AppAnalyticsEvents) { 6 | AppAnalyticsEvents["Initialize"] = "analytics.initialize"; 7 | AppAnalyticsEvents["Track"] = "analytics.track"; 8 | AppAnalyticsEvents["Page"] = "analytics.page"; 9 | })(AppAnalyticsEvents = exports.AppAnalyticsEvents || (exports.AppAnalyticsEvents = {})); 10 | var AppRedisInstanceEvents; 11 | (function (AppRedisInstanceEvents) { 12 | AppRedisInstanceEvents["Deleted"] = "instance.deleted"; 13 | })(AppRedisInstanceEvents = exports.AppRedisInstanceEvents || (exports.AppRedisInstanceEvents = {})); 14 | -------------------------------------------------------------------------------- /build/back/src/constants/redis-connection.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CONNECTION_NAME_GLOBAL_PREFIX = void 0; 4 | exports.CONNECTION_NAME_GLOBAL_PREFIX = 'redisinsight'; 5 | -------------------------------------------------------------------------------- /build/back/src/constants/redis-keys.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DEFAULT_MATCH = exports.MAX_TTL_NUMBER = void 0; 4 | exports.MAX_TTL_NUMBER = 2147483647; 5 | exports.DEFAULT_MATCH = '*'; 6 | -------------------------------------------------------------------------------- /build/back/src/constants/regex.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.IS_TIMESTAMP = exports.PRIVATE_IP_ADDRESS_REGEX = exports.IP_ADDRESS_REGEX = exports.IS_NON_PRINTABLE_ASCII_CHARACTER = exports.IS_NUMBER_REGEX = exports.IS_INTEGER_NUMBER_REGEX = exports.ARG_IN_QUOTATION_MARKS_REGEX = void 0; 4 | exports.ARG_IN_QUOTATION_MARKS_REGEX = /"[^"]*|'[^']*'|"+/g; 5 | exports.IS_INTEGER_NUMBER_REGEX = /^\d+$/; 6 | exports.IS_NUMBER_REGEX = /^-?\d*(\.\d+)?$/; 7 | exports.IS_NON_PRINTABLE_ASCII_CHARACTER = /[^ -~\u0007\b\t\n\r]/; 8 | exports.IP_ADDRESS_REGEX = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/; 9 | exports.PRIVATE_IP_ADDRESS_REGEX = /(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)/; 10 | exports.IS_TIMESTAMP = /^(\d{10}|\d{13}|\d{16}|\d{19})$/; 11 | -------------------------------------------------------------------------------- /build/back/src/constants/sort.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SortOrder = void 0; 4 | var SortOrder; 5 | (function (SortOrder) { 6 | SortOrder["Asc"] = "ASC"; 7 | SortOrder["Desc"] = "DESC"; 8 | })(SortOrder = exports.SortOrder || (exports.SortOrder = {})); 9 | -------------------------------------------------------------------------------- /build/back/src/decorators/api-endpoint.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ApiEndpoint = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const swagger_1 = require("@nestjs/swagger"); 6 | const config_1 = require("../utils/config"); 7 | const SERVER_CONFIG = config_1.default.get('server'); 8 | function ApiEndpoint(options) { 9 | const { description, statusCode, responses = [], excludeFor = [], } = options; 10 | return (0, common_1.applyDecorators)((0, swagger_1.ApiOperation)({ description }), (0, swagger_1.ApiExcludeEndpoint)(excludeFor.includes(SERVER_CONFIG.buildType)), (0, common_1.HttpCode)(statusCode), ...responses === null || responses === void 0 ? void 0 : responses.map((response) => (0, swagger_1.ApiResponse)(response))); 11 | } 12 | exports.ApiEndpoint = ApiEndpoint; 13 | -------------------------------------------------------------------------------- /build/back/src/decorators/api-redis-instance-operation.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ApiRedisInstanceOperation = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const api_redis_params_decorator_1 = require("./api-redis-params.decorator"); 6 | const api_endpoint_decorator_1 = require("./api-endpoint.decorator"); 7 | function ApiRedisInstanceOperation(options) { 8 | return (0, common_1.applyDecorators)((0, api_redis_params_decorator_1.ApiRedisParams)(), (0, api_endpoint_decorator_1.ApiEndpoint)(options)); 9 | } 10 | exports.ApiRedisInstanceOperation = ApiRedisInstanceOperation; 11 | -------------------------------------------------------------------------------- /build/back/src/decorators/api-redis-params.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ApiRedisParams = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const swagger_1 = require("@nestjs/swagger"); 6 | function ApiRedisParams() { 7 | return (0, common_1.applyDecorators)((0, swagger_1.ApiParam)({ 8 | name: 'dbInstance', 9 | description: 'Database instance id.', 10 | type: String, 11 | required: true, 12 | })); 13 | } 14 | exports.ApiRedisParams = ApiRedisParams; 15 | -------------------------------------------------------------------------------- /build/back/src/dto/dto-transformer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.pickDefinedAgreements = void 0; 4 | const lodash_1 = require("lodash"); 5 | const AGREEMENTS_SPEC = require("../constants/agreements-spec.json"); 6 | const pickDefinedAgreements = (data) => { 7 | if ((0, lodash_1.isMap)(data)) { 8 | for (const k of data === null || data === void 0 ? void 0 : data.keys()) { 9 | if (!AGREEMENTS_SPEC.agreements[k]) { 10 | data.delete(k); 11 | } 12 | } 13 | } 14 | return data; 15 | }; 16 | exports.pickDefinedAgreements = pickDefinedAgreements; 17 | -------------------------------------------------------------------------------- /build/back/src/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./redis-client"), exports); 14 | __exportStar(require("./redis-cluster"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/models/redis-client.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.IRedisModule = exports.AppTool = exports.ReplyError = exports.RedisError = void 0; 4 | class RedisError extends Error { 5 | } 6 | exports.RedisError = RedisError; 7 | class ReplyError extends RedisError { 8 | } 9 | exports.ReplyError = ReplyError; 10 | var AppTool; 11 | (function (AppTool) { 12 | AppTool["Common"] = "Common"; 13 | AppTool["Browser"] = "Browser"; 14 | AppTool["CLI"] = "CLI"; 15 | AppTool["Workbench"] = "Workbench"; 16 | })(AppTool = exports.AppTool || (exports.AppTool = {})); 17 | class IRedisModule { 18 | } 19 | exports.IRedisModule = IRedisModule; 20 | -------------------------------------------------------------------------------- /build/back/src/models/redis-cluster.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RedisClusterNodeLinkState = void 0; 4 | var RedisClusterNodeLinkState; 5 | (function (RedisClusterNodeLinkState) { 6 | RedisClusterNodeLinkState["Connected"] = "connected"; 7 | RedisClusterNodeLinkState["Disconnected"] = "disconnected"; 8 | })(RedisClusterNodeLinkState = exports.RedisClusterNodeLinkState || (exports.RedisClusterNodeLinkState = {})); 9 | -------------------------------------------------------------------------------- /build/back/src/modules/auth/window-auth/constants/exceptions.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.WindowUnauthorizedException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const constants_1 = require("../../../../constants"); 6 | class WindowUnauthorizedException extends common_1.HttpException { 7 | constructor(message) { 8 | super({ 9 | statusCode: common_1.HttpStatus.UNAUTHORIZED, 10 | errorCode: constants_1.CustomErrorCodes.WindowUnauthorized, 11 | message, 12 | error: 'Window Unauthorized', 13 | }, common_1.HttpStatus.UNAUTHORIZED); 14 | } 15 | } 16 | exports.WindowUnauthorizedException = WindowUnauthorizedException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/auth/window-auth/strategies/abstract.window.auth.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AbstractWindowAuthStrategy = void 0; 4 | class AbstractWindowAuthStrategy { 5 | } 6 | exports.AbstractWindowAuthStrategy = AbstractWindowAuthStrategy; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/__mocks__/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./keys"), exports); 14 | __exportStar(require("./streams"), exports); 15 | __exportStar(require("./z-set"), exports); 16 | __exportStar(require("./set"), exports); 17 | __exportStar(require("./list"), exports); 18 | __exportStar(require("./hash"), exports); 19 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/__mocks__/keys.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.mockScanner = exports.mockTypeInfoStrategy = exports.mockScannerStrategy = exports.mockKeyDto = void 0; 4 | exports.mockKeyDto = { 5 | keyName: Buffer.from('keyName'), 6 | }; 7 | exports.mockScannerStrategy = { 8 | getKeys: jest.fn().mockResolvedValue([]), 9 | getKeyInfo: jest.fn().mockResolvedValue({}), 10 | getKeysInfo: jest.fn().mockResolvedValue([]), 11 | getKeysTtl: jest.fn().mockResolvedValue([]), 12 | getKeysType: jest.fn().mockResolvedValue([]), 13 | getKeysSize: jest.fn().mockResolvedValue([]), 14 | }; 15 | exports.mockTypeInfoStrategy = { 16 | getInfo: jest.fn().mockResolvedValue([]), 17 | }; 18 | exports.mockScanner = jest.fn(() => ({ 19 | getStrategy: jest.fn().mockReturnValue(exports.mockScannerStrategy), 20 | })); 21 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/browser-history/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./create.browser-history.dto"), exports); 14 | __exportStar(require("./delete.browser-history.dto"), exports); 15 | __exportStar(require("./delete.browser-history.response.dto"), exports); 16 | __exportStar(require("./get.browser-history.dto"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/decorators/browser-client-metadata.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.BrowserClientMetadata = void 0; 4 | const constants_1 = require("../../../common/constants"); 5 | const models_1 = require("../../../common/models"); 6 | const decorators_1 = require("../../../common/decorators"); 7 | const BrowserClientMetadata = (databaseIdParam = constants_1.API_PARAM_DATABASE_ID) => (0, decorators_1.ClientMetadataParam)({ 8 | context: models_1.ClientContext.Browser, 9 | databaseIdParam, 10 | }); 11 | exports.BrowserClientMetadata = BrowserClientMetadata; 12 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/hash/dto/create.hash-with-expire.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateHashWithExpireDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const dto_2 = require("./"); 7 | class CreateHashWithExpireDto extends (0, swagger_1.IntersectionType)(dto_2.AddFieldsToHashDto, dto_1.KeyWithExpireDto) { 8 | } 9 | exports.CreateHashWithExpireDto = CreateHashWithExpireDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/hash/dto/get.hash-fields.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.GetHashFieldsDto = void 0; 4 | const dto_1 = require("../../keys/dto"); 5 | class GetHashFieldsDto extends dto_1.ScanDataTypeDto { 6 | } 7 | exports.GetHashFieldsDto = GetHashFieldsDto; 8 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/keys/scanner/scanner.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/list/dto/create.list-with-expire.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateListWithExpireDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const push_element_to_list_dto_1 = require("./push.element-to-list.dto"); 7 | class CreateListWithExpireDto extends (0, swagger_1.IntersectionType)(push_element_to_list_dto_1.PushElementToListDto, dto_1.KeyWithExpireDto) { 8 | } 9 | exports.CreateListWithExpireDto = CreateListWithExpireDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/redisearch/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./create.redisearch-index.dto"), exports); 14 | __exportStar(require("./search.redisearch.dto"), exports); 15 | __exportStar(require("./list.redisearch-indexes.response"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/rejson-rl/dto/create.rejson-rl-with-expire.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateRejsonRlWithExpireDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const create_rejson_rl_dto_1 = require("./create.rejson-rl.dto"); 7 | class CreateRejsonRlWithExpireDto extends (0, swagger_1.IntersectionType)(create_rejson_rl_dto_1.CreateRejsonRlDto, dto_1.KeyWithExpireDto) { 8 | } 9 | exports.CreateRejsonRlWithExpireDto = CreateRejsonRlWithExpireDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/services/keys-business/scanner/strategies/standalone.strategy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/src/modules/browser/services/keys-business/scanner/strategies/standalone.strategy.js -------------------------------------------------------------------------------- /build/back/src/modules/browser/set/dto/create.set-with-expire.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateSetWithExpireDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const add_members_to_set_dto_1 = require("./add.members-to-set.dto"); 7 | class CreateSetWithExpireDto extends (0, swagger_1.IntersectionType)(add_members_to_set_dto_1.AddMembersToSetDto, dto_1.KeyWithExpireDto) { 8 | } 9 | exports.CreateSetWithExpireDto = CreateSetWithExpireDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/set/dto/get.set-members.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.GetSetMembersDto = void 0; 4 | const dto_1 = require("../../keys/dto"); 5 | class GetSetMembersDto extends dto_1.ScanDataTypeDto { 6 | } 7 | exports.GetSetMembersDto = GetSetMembersDto; 8 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/stream/dto/create.stream.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateStreamDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const add_stream_entries_dto_1 = require("./add.stream-entries.dto"); 7 | class CreateStreamDto extends (0, swagger_1.IntersectionType)(add_stream_entries_dto_1.AddStreamEntriesDto, dto_1.KeyWithExpireDto) { 8 | } 9 | exports.CreateStreamDto = CreateStreamDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/stream/dto/update.consumer-group.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UpdateConsumerGroupDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const create_consumer_groups_dto_1 = require("./create.consumer-groups.dto"); 7 | class UpdateConsumerGroupDto extends (0, swagger_1.IntersectionType)(dto_1.KeyDto, create_consumer_groups_dto_1.CreateConsumerGroupDto) { 8 | } 9 | exports.UpdateConsumerGroupDto = UpdateConsumerGroupDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/string/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./get.string-info.dto"), exports); 14 | __exportStar(require("./get.string-value.response"), exports); 15 | __exportStar(require("./set.string.dto"), exports); 16 | __exportStar(require("./set.string-with-expire.dto"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/string/dto/set.string-with-expire.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SetStringWithExpireDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const set_string_dto_1 = require("./set.string.dto"); 7 | class SetStringWithExpireDto extends (0, swagger_1.IntersectionType)(set_string_dto_1.SetStringDto, dto_1.KeyWithExpireDto) { 8 | } 9 | exports.SetStringWithExpireDto = SetStringWithExpireDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./checkKeyExistsing"), exports); 14 | __exportStar(require("./clusterCursor"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/z-set/dto/create.z-set-with-expire.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateZSetWithExpireDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const dto_1 = require("../../keys/dto"); 6 | const add_members_to_z_set_dto_1 = require("./add.members-to-z-set.dto"); 7 | class CreateZSetWithExpireDto extends (0, swagger_1.IntersectionType)(add_members_to_z_set_dto_1.AddMembersToZSetDto, dto_1.KeyWithExpireDto) { 8 | } 9 | exports.CreateZSetWithExpireDto = CreateZSetWithExpireDto; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/z-set/dto/delete.members-from-z-set.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DeleteMembersFromZSetDto = void 0; 4 | const dto_1 = require("../../set/dto"); 5 | class DeleteMembersFromZSetDto extends dto_1.DeleteMembersFromSetDto { 6 | } 7 | exports.DeleteMembersFromZSetDto = DeleteMembersFromZSetDto; 8 | -------------------------------------------------------------------------------- /build/back/src/modules/browser/z-set/dto/delete.members-from-z-set.response.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DeleteMembersFromZSetResponse = void 0; 4 | const dto_1 = require("../../set/dto"); 5 | class DeleteMembersFromZSetResponse extends dto_1.DeleteMembersFromSetResponse { 6 | } 7 | exports.DeleteMembersFromZSetResponse = DeleteMembersFromZSetResponse; 8 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/interfaces/bulk-action-filter-overview.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/interfaces/bulk-action-overview.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/interfaces/bulk-action-progress-overview.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/interfaces/bulk-action-summary-overview.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/interfaces/bulk-action.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/interfaces/bulk-action.runner.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/interfaces/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./bulk-action.interface"), exports); 14 | __exportStar(require("./bulk-action.runner.interface"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/models/runners/abstract.bulk-action.runner.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AbstractBulkActionRunner = void 0; 4 | const bulk_action_progress_1 = require("../bulk-action-progress"); 5 | const bulk_action_summary_1 = require("../bulk-action-summary"); 6 | class AbstractBulkActionRunner { 7 | constructor(bulkAction) { 8 | this.bulkAction = bulkAction; 9 | this.progress = new bulk_action_progress_1.BulkActionProgress(); 10 | this.summary = new bulk_action_summary_1.BulkActionSummary(); 11 | } 12 | getProgress() { 13 | return this.progress; 14 | } 15 | getSummary() { 16 | return this.summary; 17 | } 18 | } 19 | exports.AbstractBulkActionRunner = AbstractBulkActionRunner; 20 | -------------------------------------------------------------------------------- /build/back/src/modules/bulk-actions/models/runners/simple/delete.bulk-action.simple.runner.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DeleteBulkActionSimpleRunner = void 0; 4 | const abstract_bulk_action_simple_runner_1 = require("./abstract.bulk-action.simple.runner"); 5 | class DeleteBulkActionSimpleRunner extends abstract_bulk_action_simple_runner_1.AbstractBulkActionSimpleRunner { 6 | prepareCommands(keys) { 7 | return keys.map((key) => ['del', key]); 8 | } 9 | } 10 | exports.DeleteBulkActionSimpleRunner = DeleteBulkActionSimpleRunner; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/certificate/dto/use.ca-certificate.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UseCaCertificateDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const ca_certificate_1 = require("../models/ca-certificate"); 6 | class UseCaCertificateDto extends (0, swagger_1.PickType)(ca_certificate_1.CaCertificate, ['id']) { 7 | } 8 | exports.UseCaCertificateDto = UseCaCertificateDto; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/certificate/dto/use.client-certificate.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UseClientCertificateDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const client_certificate_1 = require("../models/client-certificate"); 6 | class UseClientCertificateDto extends (0, swagger_1.PickType)(client_certificate_1.ClientCertificate, ['id']) { 7 | } 8 | exports.UseClientCertificateDto = UseClientCertificateDto; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/certificate/repositories/ca-certificate.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CaCertificateRepository = void 0; 4 | class CaCertificateRepository { 5 | } 6 | exports.CaCertificateRepository = CaCertificateRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/certificate/repositories/client-certificate.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ClientCertificateRepository = void 0; 4 | class ClientCertificateRepository { 5 | } 6 | exports.ClientCertificateRepository = ClientCertificateRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/certificate/transformers/ca-cert.transformer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.caCertTransformer = void 0; 4 | const lodash_1 = require("lodash"); 5 | const use_ca_certificate_dto_1 = require("../dto/use.ca-certificate.dto"); 6 | const create_ca_certificate_dto_1 = require("../dto/create.ca-certificate.dto"); 7 | const caCertTransformer = (data) => { 8 | if ((0, lodash_1.get)(data === null || data === void 0 ? void 0 : data.object, 'caCert.id')) { 9 | return use_ca_certificate_dto_1.UseCaCertificateDto; 10 | } 11 | return create_ca_certificate_dto_1.CreateCaCertificateDto; 12 | }; 13 | exports.caCertTransformer = caCertTransformer; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/certificate/transformers/client-cert.transformer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.clientCertTransformer = void 0; 4 | const lodash_1 = require("lodash"); 5 | const use_client_certificate_dto_1 = require("../dto/use.client-certificate.dto"); 6 | const create_client_certificate_dto_1 = require("../dto/create.client-certificate.dto"); 7 | const clientCertTransformer = (data) => { 8 | if ((0, lodash_1.get)(data === null || data === void 0 ? void 0 : data.object, 'clientCert.id')) { 9 | return use_client_certificate_dto_1.UseClientCertificateDto; 10 | } 11 | return create_client_certificate_dto_1.CreateClientCertificateDto; 12 | }; 13 | exports.clientCertTransformer = clientCertTransformer; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cli/decorators/api-cli-params.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ApiCLIParams = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const swagger_1 = require("@nestjs/swagger"); 6 | function ApiCLIParams(requireClientUuid = true) { 7 | const decorators = [ 8 | (0, swagger_1.ApiParam)({ 9 | name: 'dbInstance', 10 | description: 'Database instance id.', 11 | type: String, 12 | required: true, 13 | }), 14 | ]; 15 | if (requireClientUuid) { 16 | decorators.push((0, swagger_1.ApiParam)({ 17 | name: 'uuid', 18 | description: 'CLI client uuid', 19 | type: String, 20 | required: true, 21 | })); 22 | } 23 | return (0, common_1.applyDecorators)(...decorators); 24 | } 25 | exports.ApiCLIParams = ApiCLIParams; 26 | -------------------------------------------------------------------------------- /build/back/src/modules/cli/decorators/cli-client-metadata.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CliClientMetadata = void 0; 4 | const constants_1 = require("../../../common/constants"); 5 | const common_1 = require("@nestjs/common"); 6 | const models_1 = require("../../../common/models"); 7 | const decorators_1 = require("../../../common/decorators"); 8 | const CliClientMetadata = (databaseIdParam = constants_1.API_PARAM_DATABASE_ID, uniqueIdParam = constants_1.API_PARAM_CLI_CLIENT_ID) => (0, common_1.createParamDecorator)(decorators_1.clientMetadataParamFactory)({ 9 | context: models_1.ClientContext.CLI, 10 | databaseIdParam, 11 | uniqueIdParam, 12 | }); 13 | exports.CliClientMetadata = CliClientMetadata; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cli/services/cli-business/output-formatter/output-formatter-manager.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.OutputFormatterManager = void 0; 4 | class OutputFormatterManager { 5 | constructor() { 6 | this.strategies = {}; 7 | } 8 | addStrategy(name, strategy) { 9 | this.strategies[name] = strategy; 10 | } 11 | getStrategy(name) { 12 | if (!this.strategies[name]) { 13 | throw new Error(`Unsupported formatter strategy: ${name}`); 14 | } 15 | return this.strategies[name]; 16 | } 17 | } 18 | exports.OutputFormatterManager = OutputFormatterManager; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cli/services/cli-business/output-formatter/output-formatter.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CliOutputFormatterTypes = void 0; 4 | var CliOutputFormatterTypes; 5 | (function (CliOutputFormatterTypes) { 6 | CliOutputFormatterTypes["Text"] = "TEXT"; 7 | CliOutputFormatterTypes["Raw"] = "RAW"; 8 | })(CliOutputFormatterTypes = exports.CliOutputFormatterTypes || (exports.CliOutputFormatterTypes = {})); 9 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/auth/models/cloud-auth-request-info.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudAuthRequestInfo = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const cloud_auth_request_1 = require("./cloud-auth-request"); 6 | class CloudAuthRequestInfo extends (0, swagger_1.PickType)(cloud_auth_request_1.CloudAuthRequest, [ 7 | 'idpType', 'action', 8 | ]) { 9 | } 10 | exports.CloudAuthRequestInfo = CloudAuthRequestInfo; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/auth/models/cloud-auth-request.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudAuthRequest = exports.CloudAuthIdpType = void 0; 4 | var CloudAuthIdpType; 5 | (function (CloudAuthIdpType) { 6 | CloudAuthIdpType["Google"] = "google"; 7 | CloudAuthIdpType["GitHub"] = "github"; 8 | })(CloudAuthIdpType = exports.CloudAuthIdpType || (exports.CloudAuthIdpType = {})); 9 | class CloudAuthRequest { 10 | } 11 | exports.CloudAuthRequest = CloudAuthRequest; 12 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/auth/models/cloud-auth-response.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudAuthResponse = exports.CloudAuthStatus = void 0; 4 | var CloudAuthStatus; 5 | (function (CloudAuthStatus) { 6 | CloudAuthStatus["Succeed"] = "succeed"; 7 | CloudAuthStatus["Failed"] = "failed"; 8 | })(CloudAuthStatus = exports.CloudAuthStatus || (exports.CloudAuthStatus = {})); 9 | class CloudAuthResponse { 10 | } 11 | exports.CloudAuthResponse = CloudAuthResponse; 12 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/auth/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-auth-request"), exports); 14 | __exportStar(require("./cloud-auth-request-info"), exports); 15 | __exportStar(require("./cloud-auth-response"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/autodiscovery/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./discover-cloud-databases.dto"), exports); 14 | __exportStar(require("./import-cloud-database.dto"), exports); 15 | __exportStar(require("./import-cloud-database.response"), exports); 16 | __exportStar(require("./import-cloud-databases.dto"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/autodiscovery/models/cloud-autodiscovery-auth-type.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudAutodiscoveryAuthType = void 0; 4 | var CloudAutodiscoveryAuthType; 5 | (function (CloudAutodiscoveryAuthType) { 6 | CloudAutodiscoveryAuthType["Credentials"] = "credentials"; 7 | CloudAutodiscoveryAuthType["Sso"] = "sso"; 8 | })(CloudAutodiscoveryAuthType = exports.CloudAutodiscoveryAuthType || (exports.CloudAutodiscoveryAuthType = {})); 9 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/autodiscovery/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-autodiscovery-auth-type"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/capi-key/exceptions/cloud-capi-key.not-found.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudCapiKeyNotFoundException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const constants_1 = require("../../../../constants"); 6 | const error_messages_1 = require("../../../../constants/error-messages"); 7 | class CloudCapiKeyNotFoundException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_API_NOT_FOUND, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.NOT_FOUND, 12 | error: 'CloudCapiKeyNotFound', 13 | errorCode: constants_1.CustomErrorCodes.CloudCapiKeyNotFound, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudCapiKeyNotFoundException = CloudCapiKeyNotFoundException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/capi-key/exceptions/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-capi-key.not-found.exception"), exports); 14 | __exportStar(require("./cloud-capi-key.unauthorized.exception"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/capi-key/model/api.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/capi-key/model/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./api.interface"), exports); 14 | __exportStar(require("./cloud-capi-key"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/constants/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudJobEvents = exports.CloudAuthServerEvent = void 0; 4 | var CloudAuthServerEvent; 5 | (function (CloudAuthServerEvent) { 6 | CloudAuthServerEvent["Logout"] = "logout"; 7 | })(CloudAuthServerEvent = exports.CloudAuthServerEvent || (exports.CloudAuthServerEvent = {})); 8 | var CloudJobEvents; 9 | (function (CloudJobEvents) { 10 | CloudJobEvents["Monitor"] = "cloud:job:monitor"; 11 | })(CloudJobEvents = exports.CloudJobEvents || (exports.CloudJobEvents = {})); 12 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud.capi.auth.dto"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/exceptions/cloud-api.bad-request.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudApiBadRequestException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const constants_1 = require("../../../../constants"); 6 | const error_messages_1 = require("../../../../constants/error-messages"); 7 | class CloudApiBadRequestException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_API_BAD_REQUEST, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.BAD_REQUEST, 12 | error: 'CloudApiBadRequest', 13 | errorCode: constants_1.CustomErrorCodes.CloudApiBadRequest, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudApiBadRequestException = CloudApiBadRequestException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/exceptions/cloud-api.forbidden.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudApiForbiddenException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const constants_1 = require("../../../../constants"); 6 | const error_messages_1 = require("../../../../constants/error-messages"); 7 | class CloudApiForbiddenException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_API_FORBIDDEN, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.FORBIDDEN, 12 | error: 'CloudApiForbidden', 13 | errorCode: constants_1.CustomErrorCodes.CloudApiForbidden, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudApiForbiddenException = CloudApiForbiddenException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/exceptions/cloud-api.not-found.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudApiNotFoundException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const constants_1 = require("../../../../constants"); 6 | const error_messages_1 = require("../../../../constants/error-messages"); 7 | class CloudApiNotFoundException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_API_NOT_FOUND, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.NOT_FOUND, 12 | error: 'CloudApiNotFound', 13 | errorCode: constants_1.CustomErrorCodes.CloudApiNotFound, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudApiNotFoundException = CloudApiNotFoundException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/exceptions/cloud-api.unauthorized.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudApiUnauthorizedException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const constants_1 = require("../../../../constants"); 6 | const error_messages_1 = require("../../../../constants/error-messages"); 7 | class CloudApiUnauthorizedException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_API_UNAUTHORIZED, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.UNAUTHORIZED, 12 | error: 'CloudApiUnauthorized', 13 | errorCode: constants_1.CustomErrorCodes.CloudApiUnauthorized, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudApiUnauthorizedException = CloudApiUnauthorizedException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/exceptions/cloud-capi.unauthorized.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudCapiUnauthorizedException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const constants_1 = require("../../../../constants"); 6 | const error_messages_1 = require("../../../../constants/error-messages"); 7 | class CloudCapiUnauthorizedException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_CAPI_UNAUTHORIZED, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.UNAUTHORIZED, 12 | error: 'CloudCapiUnauthorized', 13 | errorCode: constants_1.CustomErrorCodes.CloudCapiUnauthorized, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudCapiUnauthorizedException = CloudCapiUnauthorizedException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/models/api.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/models/capi.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/common/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./api.interface"), exports); 14 | __exportStar(require("./capi.interface"), exports); 15 | __exportStar(require("./cloud-request-utm"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/database/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./create-free-cloud-database.dto"), exports); 14 | __exportStar(require("./get-cloud-subscription-database.dto"), exports); 15 | __exportStar(require("./get-cloud-subscription-databases.dto"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/database/models/capi.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/database/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./capi.interface"), exports); 14 | __exportStar(require("./cloud-database"), exports); 15 | __exportStar(require("./cloud-database-details"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/database/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-data-converter"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/constants/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudJobName = void 0; 4 | var CloudJobName; 5 | (function (CloudJobName) { 6 | CloudJobName["CreateFreeSubscriptionAndDatabase"] = "CREATE_FREE_SUBSCRIPTION_AND_DATABASE"; 7 | CloudJobName["CreateFreeDatabase"] = "CREATE_FREE_DATABASE"; 8 | CloudJobName["CreateFreeSubscription"] = "CREATE_FREE_SUBSCRIPTION"; 9 | CloudJobName["ImportFreeDatabase"] = "IMPORT_FREE_DATABASE"; 10 | CloudJobName["WaitForActiveDatabase"] = "WAIT_FOR_ACTIVE_DATABASE"; 11 | CloudJobName["WaitForActiveSubscription"] = "WAIT_FOR_ACTIVE_SUBSCRIPTION"; 12 | CloudJobName["WaitForTask"] = "WAIT_FOR_TASK"; 13 | CloudJobName["Unknown"] = "UNKNOWN"; 14 | })(CloudJobName = exports.CloudJobName || (exports.CloudJobName = {})); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/exceptions/cloud-job-aborted.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudJobAbortedException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../../constants/error-messages"); 6 | const constants_1 = require("../../../../constants"); 7 | class CloudJobAbortedException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_JOB_ABORTED, options) { 9 | const response = { 10 | message, 11 | statusCode: 499, 12 | error: 'CloudJobAborted', 13 | errorCode: constants_1.CustomErrorCodes.CloudJobAborted, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudJobAbortedException = CloudJobAbortedException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/exceptions/cloud-job-not-found.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudJobNotFoundException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../../constants/error-messages"); 6 | const constants_1 = require("../../../../constants"); 7 | class CloudJobNotFoundException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_JOB_NOT_FOUND, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.NOT_FOUND, 12 | error: 'CloudJobNotFound', 13 | errorCode: constants_1.CustomErrorCodes.CloudJobNotFound, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudJobNotFoundException = CloudJobNotFoundException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/exceptions/cloud-job-unsupported.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudJobUnsupportedException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../../constants/error-messages"); 6 | const constants_1 = require("../../../../constants"); 7 | class CloudJobUnsupportedException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_JOB_UNSUPPORTED, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.NOT_IMPLEMENTED, 12 | error: 'CloudJobUnsupported', 13 | errorCode: constants_1.CustomErrorCodes.CloudJobUnsupported, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudJobUnsupportedException = CloudJobUnsupportedException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/exceptions/cloud-job.error.handler.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.wrapCloudJobError = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const cloud_job_unexpected_error_exception_1 = require("./cloud-job-unexpected-error.exception"); 6 | const wrapCloudJobError = (error, message) => { 7 | if (error instanceof common_1.HttpException) { 8 | return error; 9 | } 10 | if (error instanceof Error) { 11 | return new cloud_job_unexpected_error_exception_1.CloudJobUnexpectedErrorException(error.message || message, { cause: error }); 12 | } 13 | return new cloud_job_unexpected_error_exception_1.CloudJobUnexpectedErrorException(message); 14 | }; 15 | exports.wrapCloudJobError = wrapCloudJobError; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/exceptions/cloud-plan-not-found-free.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudPlanNotFoundFreeException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../../constants/error-messages"); 6 | const constants_1 = require("../../../../constants"); 7 | class CloudPlanNotFoundFreeException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_PLAN_NOT_FOUND_FREE, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.NOT_FOUND, 12 | error: 'CloudPlanNotFoundFree', 13 | errorCode: constants_1.CustomErrorCodes.CloudPlanUnableToFindFree, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudPlanNotFoundFreeException = CloudPlanNotFoundFreeException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/exceptions/cloud-task-no-resource-id.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudTaskNoResourceIdException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../../constants/error-messages"); 6 | const constants_1 = require("../../../../constants"); 7 | class CloudTaskNoResourceIdException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_TASK_NO_RESOURCE_ID, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.BAD_REQUEST, 12 | error: 'CloudTaskNoResourceId', 13 | errorCode: constants_1.CustomErrorCodes.CloudTaskNoResourceId, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudTaskNoResourceIdException = CloudTaskNoResourceIdException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/exceptions/cloud-task-not-found.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudTaskNotFoundException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../../constants/error-messages"); 6 | const constants_1 = require("../../../../constants"); 7 | class CloudTaskNotFoundException extends common_1.HttpException { 8 | constructor(message = error_messages_1.default.CLOUD_TASK_NOT_FOUND, options) { 9 | const response = { 10 | message, 11 | statusCode: common_1.HttpStatus.NOT_FOUND, 12 | error: 'CloudTaskNotFound', 13 | errorCode: constants_1.CustomErrorCodes.CloudTaskNotFound, 14 | }; 15 | super(response, response.statusCode, options); 16 | } 17 | } 18 | exports.CloudTaskNotFoundException = CloudTaskNotFoundException; 19 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/job/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-job-info"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/session/models/cloud-session.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudSession = void 0; 4 | class CloudSession { 5 | } 6 | exports.CloudSession = CloudSession; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/subscription/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./create-free-cloud-subscription.dto"), exports); 14 | __exportStar(require("./plans.cloud-subscription.dto"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/subscription/dto/plans.cloud-subscription.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CloudSubscriptionPlanResponse = void 0; 4 | const models_1 = require("../models"); 5 | class CloudSubscriptionPlanResponse extends models_1.CloudSubscriptionPlan { 6 | } 7 | exports.CloudSubscriptionPlanResponse = CloudSubscriptionPlanResponse; 8 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/subscription/models/api.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/subscription/models/capi.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/subscription/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-data-converter"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/task/models/capi.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/task/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./capi.interface"), exports); 14 | __exportStar(require("./cloud-task"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/task/utils/cloud-data-converter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.parseCloudTaskCapiResponse = void 0; 4 | const class_transformer_1 = require("class-transformer"); 5 | const models_1 = require("../models"); 6 | const parseCloudTaskCapiResponse = (task) => (0, class_transformer_1.plainToClass)(models_1.CloudTask, task); 7 | exports.parseCloudTaskCapiResponse = parseCloudTaskCapiResponse; 8 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/task/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-data-converter"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/user/models/api.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/user/models/capi.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/user/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./api.interface"), exports); 14 | __exportStar(require("./capi.interface"), exports); 15 | __exportStar(require("./cloud-user"), exports); 16 | __exportStar(require("./cloud-user-account"), exports); 17 | __exportStar(require("./cloud-account-info"), exports); 18 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/user/utils/cloud-data-converter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.parseCloudAccountCapiResponse = void 0; 4 | const lodash_1 = require("lodash"); 5 | const models_1 = require("../models"); 6 | const class_transformer_1 = require("class-transformer"); 7 | const parseCloudAccountCapiResponse = (account) => (0, class_transformer_1.plainToClass)(models_1.CloudAccountInfo, { 8 | accountId: account.id, 9 | accountName: account.name, 10 | ownerName: (0, lodash_1.get)(account, ['key', 'owner', 'name']), 11 | ownerEmail: (0, lodash_1.get)(account, ['key', 'owner', 'email']), 12 | }); 13 | exports.parseCloudAccountCapiResponse = parseCloudAccountCapiResponse; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cloud/user/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cloud-data-converter"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/cluster-monitor/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./cluster-details"), exports); 14 | __exportStar(require("./cluster-node-details"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/cluster-monitor/strategies/cluster.info.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/custom-tutorial/repositories/custom-tutorial.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CustomTutorialRepository = void 0; 4 | class CustomTutorialRepository { 5 | } 6 | exports.CustomTutorialRepository = CustomTutorialRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./create-database-analysis.dto"), exports); 14 | __exportStar(require("./recommendation-vote.dto"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/models/short-database-analysis.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ShortDatabaseAnalysis = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const database_analysis_1 = require("./database-analysis"); 6 | class ShortDatabaseAnalysis extends (0, swagger_1.PartialType)((0, swagger_1.PickType)(database_analysis_1.DatabaseAnalysis, ['id', 'createdAt', 'db'])) { 7 | } 8 | exports.ShortDatabaseAnalysis = ShortDatabaseAnalysis; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/key-info.strategy.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/abstract.info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AbstractInfoStrategy = void 0; 4 | class AbstractInfoStrategy { 5 | async getLengthSafe(client, key) { 6 | try { 7 | return await this.getLength(client, key); 8 | } 9 | catch (e) { 10 | return null; 11 | } 12 | } 13 | } 14 | exports.AbstractInfoStrategy = AbstractInfoStrategy; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/default-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DefaultInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class DefaultInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength() { 7 | return null; 8 | } 9 | } 10 | exports.DefaultInfoStrategy = DefaultInfoStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/graph-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.GraphInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class GraphInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength(client, key) { 7 | const resp = await client.sendCommand(['graph.query', key, 'MATCH (r) RETURN count(r)', '--compact'], { replyEncoding: 'utf8' }); 8 | return resp[1][0][0][1]; 9 | } 10 | } 11 | exports.GraphInfoStrategy = GraphInfoStrategy; 12 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/hash-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.HashInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class HashInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength(client, key) { 7 | return await client.sendCommand(['hlen', key]); 8 | } 9 | } 10 | exports.HashInfoStrategy = HashInfoStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/list-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ListInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class ListInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength(client, key) { 7 | return await client.sendCommand(['llen', key]); 8 | } 9 | } 10 | exports.ListInfoStrategy = ListInfoStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/set-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SetInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class SetInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength(client, key) { 7 | return await client.sendCommand(['scard', key]); 8 | } 9 | } 10 | exports.SetInfoStrategy = SetInfoStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/stream-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.StreamInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class StreamInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength(client, key) { 7 | return await client.sendCommand(['xlen', key]); 8 | } 9 | } 10 | exports.StreamInfoStrategy = StreamInfoStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/string-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.StringInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class StringInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength(client, key) { 7 | return await client.sendCommand(['strlen', key]); 8 | } 9 | } 10 | exports.StringInfoStrategy = StringInfoStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/ts-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.TsInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | const utils_1 = require("../../../../redis/utils"); 6 | class TsInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 7 | async getLength(client, key) { 8 | const { totalsamples } = (0, utils_1.convertArrayReplyToObject)(await client.sendCommand(['ts.info', key], { replyEncoding: 'utf8' })); 9 | return totalsamples; 10 | } 11 | } 12 | exports.TsInfoStrategy = TsInfoStrategy; 13 | -------------------------------------------------------------------------------- /build/back/src/modules/database-analysis/scanner/key-info/strategies/z-set-info.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ZSetInfoStrategy = void 0; 4 | const abstract_info_strategy_1 = require("./abstract.info.strategy"); 5 | class ZSetInfoStrategy extends abstract_info_strategy_1.AbstractInfoStrategy { 6 | async getLength(client, key) { 7 | return await client.sendCommand(['zcard', key]); 8 | } 9 | } 10 | exports.ZSetInfoStrategy = ZSetInfoStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/invalid-ca-certificate-body.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.InvalidCaCertificateBodyException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class InvalidCaCertificateBodyException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.INVALID_CA_BODY) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Invalid Ca Certificate Body', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.InvalidCaCertificateBodyException = InvalidCaCertificateBodyException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/invalid-certificate-name.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.InvalidCertificateNameException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class InvalidCertificateNameException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.CERTIFICATE_NAME_IS_NOT_DEFINED) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Invalid Certificate Name', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.InvalidCertificateNameException = InvalidCertificateNameException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/invalid-client-certificate-body.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.InvalidClientCertificateBodyException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class InvalidClientCertificateBodyException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.INVALID_CERTIFICATE_BODY) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Invalid Client Certificate Body', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.InvalidClientCertificateBodyException = InvalidClientCertificateBodyException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/invalid-client-private-key.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.InvalidClientPrivateKeyException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class InvalidClientPrivateKeyException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.INVALID_PRIVATE_KEY) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Invalid Client Private Key', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.InvalidClientPrivateKeyException = InvalidClientPrivateKeyException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/invalid-compressor.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.InvalidCompressorException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class InvalidCompressorException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.INVALID_COMPRESSOR) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Invalid compressor', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.InvalidCompressorException = InvalidCompressorException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/invalid-ssh-body.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.InvalidSshBodyException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class InvalidSshBodyException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.INVALID_SSH_BODY) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Invalid SSH body', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.InvalidSshBodyException = InvalidSshBodyException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/invalid-ssh-private-key-body.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.InvalidSshPrivateKeyBodyException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class InvalidSshPrivateKeyBodyException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.INVALID_SSH_PRIVATE_KEY_BODY) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Invalid SSH Private Key Body', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.InvalidSshPrivateKeyBodyException = InvalidSshPrivateKeyBodyException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/no-database-import-file-provided.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.NoDatabaseImportFileProvidedException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class NoDatabaseImportFileProvidedException extends common_1.HttpException { 6 | constructor(message = 'No import file provided') { 7 | const response = { 8 | message, 9 | statusCode: 400, 10 | error: 'No Database Import File Provided', 11 | }; 12 | super(response, 400); 13 | } 14 | } 15 | exports.NoDatabaseImportFileProvidedException = NoDatabaseImportFileProvidedException; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/size-limit-exceeded-database-import-file.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SizeLimitExceededDatabaseImportFileException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class SizeLimitExceededDatabaseImportFileException extends common_1.HttpException { 6 | constructor(message = 'Invalid import file') { 7 | const response = { 8 | message, 9 | statusCode: 400, 10 | error: 'Invalid Database Import File', 11 | }; 12 | super(response, 400); 13 | } 14 | } 15 | exports.SizeLimitExceededDatabaseImportFileException = SizeLimitExceededDatabaseImportFileException; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/ssh-agents-are-not-supported.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SshAgentsAreNotSupportedException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | const error_messages_1 = require("../../../constants/error-messages"); 6 | class SshAgentsAreNotSupportedException extends common_1.HttpException { 7 | constructor(message = error_messages_1.default.SSH_AGENTS_ARE_NOT_SUPPORTED) { 8 | const response = { 9 | message, 10 | statusCode: 400, 11 | error: 'Ssh Agents Are Not Supported', 12 | }; 13 | super(response, 400); 14 | } 15 | } 16 | exports.SshAgentsAreNotSupportedException = SshAgentsAreNotSupportedException; 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-import/exceptions/unable-to-parse-database-import-file.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UnableToParseDatabaseImportFileException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class UnableToParseDatabaseImportFileException extends common_1.HttpException { 6 | constructor(message = 'Unable to parse import file') { 7 | const response = { 8 | message, 9 | statusCode: 400, 10 | error: 'Unable To Parse Database Import File', 11 | }; 12 | super(response, 400); 13 | } 14 | } 15 | exports.UnableToParseDatabaseImportFileException = UnableToParseDatabaseImportFileException; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/constants/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RecommendationEvents = exports.RecommendationServerEvents = void 0; 4 | var RecommendationServerEvents; 5 | (function (RecommendationServerEvents) { 6 | RecommendationServerEvents["Recommendation"] = "recommendation"; 7 | })(RecommendationServerEvents = exports.RecommendationServerEvents || (exports.RecommendationServerEvents = {})); 8 | var RecommendationEvents; 9 | (function (RecommendationEvents) { 10 | RecommendationEvents["NewRecommendation"] = "new-recommendation"; 11 | })(RecommendationEvents = exports.RecommendationEvents || (exports.RecommendationEvents = {})); 12 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./database-recommendation"), exports); 14 | __exportStar(require("./database-recommendation-params"), exports); 15 | __exportStar(require("./searchJSON"), exports); 16 | __exportStar(require("./integersInSet"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/models/integersInSet.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/repositories/database-recommendation.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DatabaseRecommendationRepository = void 0; 4 | class DatabaseRecommendationRepository { 5 | } 6 | exports.DatabaseRecommendationRepository = DatabaseRecommendationRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/recommendation.strategy.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/abstract.recommendation.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AbstractRecommendationStrategy = void 0; 4 | class AbstractRecommendationStrategy { 5 | } 6 | exports.AbstractRecommendationStrategy = AbstractRecommendationStrategy; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/avoid-logical-databases.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AvoidLogicalDatabasesStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | class AvoidLogicalDatabasesStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 6 | async isRecommendationReached({ prevDb, db }) { 7 | return { isReached: prevDb !== db }; 8 | } 9 | } 10 | exports.AvoidLogicalDatabasesStrategy = AvoidLogicalDatabasesStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/avoid-lua-scripts.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AvoidLuaScriptsStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | const constants_1 = require("../../../../common/constants"); 6 | class AvoidLuaScriptsStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 7 | async isRecommendationReached(info) { 8 | return { isReached: info.cashedScripts > constants_1.LUA_SCRIPT_RECOMMENDATION_COUNT }; 9 | } 10 | } 11 | exports.AvoidLuaScriptsStrategy = AvoidLuaScriptsStrategy; 12 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/big-set.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.BigSetStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | const dto_1 = require("../../../browser/keys/dto"); 6 | const constants_1 = require("../../../../common/constants"); 7 | class BigSetStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 8 | async isRecommendationReached(key) { 9 | return (key === null || key === void 0 ? void 0 : key.type) === dto_1.RedisDataType.Set && (key === null || key === void 0 ? void 0 : key.length) > constants_1.BIG_SETS_RECOMMENDATION_LENGTH 10 | ? { isReached: true, params: { keys: [key === null || key === void 0 ? void 0 : key.name] } } 11 | : { isReached: false }; 12 | } 13 | } 14 | exports.BigSetStrategy = BigSetStrategy; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/big-string.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.BigStringStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | const dto_1 = require("../../../browser/keys/dto"); 6 | const constants_1 = require("../../../../common/constants"); 7 | class BigStringStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 8 | async isRecommendationReached(key) { 9 | const isBigString = key.type === dto_1.RedisDataType.String && key.size > constants_1.BIG_STRINGS_RECOMMENDATION_MEMORY; 10 | return isBigString 11 | ? { isReached: true, params: { keys: [key === null || key === void 0 ? void 0 : key.name] } } 12 | : { isReached: false }; 13 | } 14 | } 15 | exports.BigStringStrategy = BigStringStrategy; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/default.recommendation.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DefaultRecommendationStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | class DefaultRecommendationStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 6 | async isRecommendationReached() { 7 | return { isReached: false }; 8 | } 9 | } 10 | exports.DefaultRecommendationStrategy = DefaultRecommendationStrategy; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/redis-version.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.RedisVersionStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | const semverCompare = require("node-version-compare"); 6 | const constants_1 = require("../../../../common/constants"); 7 | class RedisVersionStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 8 | async isRecommendationReached(info) { 9 | return { 10 | isReached: semverCompare(info.version, constants_1.REDIS_VERSION_RECOMMENDATION_VERSION) < 0, 11 | }; 12 | } 13 | } 14 | exports.RedisVersionStrategy = RedisVersionStrategy; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/search-visualization.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SearchVisualizationStrategy = void 0; 4 | const constants_1 = require("../../../../common/constants"); 5 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 6 | class SearchVisualizationStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 7 | async isRecommendationReached(commandInit = '') { 8 | const [command] = commandInit.split(' '); 9 | return { 10 | isReached: Object.values(constants_1.SearchVisualizationCommands) 11 | .includes(command.toUpperCase()), 12 | }; 13 | } 14 | } 15 | exports.SearchVisualizationStrategy = SearchVisualizationStrategy; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/shard-hash.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ShardHashStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | const constants_1 = require("../../../../common/constants"); 6 | class ShardHashStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 7 | async isRecommendationReached(data) { 8 | return data.total > constants_1.BIG_HASHES_RECOMMENDATION_LENGTH 9 | ? { isReached: true, params: { keys: [data.keyName] } } 10 | : { isReached: false }; 11 | } 12 | } 13 | exports.ShardHashStrategy = ShardHashStrategy; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/string-to-json.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.StringToJsonStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | const base_helper_1 = require("../../../../utils/base.helper"); 6 | const cli_helper_1 = require("../../../../utils/cli-helper"); 7 | class StringToJsonStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 8 | async isRecommendationReached(data) { 9 | return (0, base_helper_1.isJson)((0, cli_helper_1.getUTF8FromBuffer)(data === null || data === void 0 ? void 0 : data.value)) 10 | ? { isReached: true, params: { keys: [data.keyName] } } 11 | : { isReached: false }; 12 | } 13 | } 14 | exports.StringToJsonStrategy = StringToJsonStrategy; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/database-recommendation/scanner/strategies/use-smaller-keys.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UseSmallerKeysStrategy = void 0; 4 | const abstract_recommendation_strategy_1 = require("./abstract.recommendation.strategy"); 5 | const constants_1 = require("../../../../common/constants"); 6 | class UseSmallerKeysStrategy extends abstract_recommendation_strategy_1.AbstractRecommendationStrategy { 7 | async isRecommendationReached(total) { 8 | return { isReached: total > constants_1.USE_SMALLER_KEYS_RECOMMENDATION_TOTAL }; 9 | } 10 | } 11 | exports.UseSmallerKeysStrategy = UseSmallerKeysStrategy; 12 | -------------------------------------------------------------------------------- /build/back/src/modules/database/exeptions/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./database-already-exists.exception"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/database/models/export-database.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ExportDatabase = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const database_1 = require("./database"); 6 | class ExportDatabase extends (0, swagger_1.PickType)(database_1.Database, [ 7 | 'id', 8 | 'host', 9 | 'port', 10 | 'name', 11 | 'db', 12 | 'username', 13 | 'password', 14 | 'connectionType', 15 | 'nameFromProvider', 16 | 'provider', 17 | 'lastConnection', 18 | 'sentinelMaster', 19 | 'modules', 20 | 'tls', 21 | 'tlsServername', 22 | 'verifyServerCert', 23 | 'caCert', 24 | 'clientCert', 25 | 'ssh', 26 | 'sshOptions', 27 | 'compressor', 28 | ]) { 29 | } 30 | exports.ExportDatabase = ExportDatabase; 31 | -------------------------------------------------------------------------------- /build/back/src/modules/database/repositories/database.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DatabaseRepository = void 0; 4 | class DatabaseRepository { 5 | } 6 | exports.DatabaseRepository = DatabaseRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/encryption-service-error.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.EncryptionServiceErrorException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class EncryptionServiceErrorException extends common_1.HttpException { 6 | constructor(response = { 7 | message: 'Encryption service error', 8 | name: 'EncryptionServiceError', 9 | statusCode: 500, 10 | }, status = 500) { 11 | super(response, status); 12 | } 13 | } 14 | exports.EncryptionServiceErrorException = EncryptionServiceErrorException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/key-decryption-error.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.KeyDecryptionErrorException = void 0; 4 | const encryption_service_error_exception_1 = require("./encryption-service-error.exception"); 5 | class KeyDecryptionErrorException extends encryption_service_error_exception_1.EncryptionServiceErrorException { 6 | constructor(message = 'Unable to decrypt data') { 7 | super({ 8 | message, 9 | name: 'KeyDecryptionError', 10 | statusCode: 500, 11 | }, 500); 12 | } 13 | } 14 | exports.KeyDecryptionErrorException = KeyDecryptionErrorException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/key-encryption-error.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.KeyEncryptionErrorException = void 0; 4 | const encryption_service_error_exception_1 = require("./encryption-service-error.exception"); 5 | class KeyEncryptionErrorException extends encryption_service_error_exception_1.EncryptionServiceErrorException { 6 | constructor(message = 'Unable to encrypt data') { 7 | super({ 8 | message, 9 | name: 'KeyEncryptionError', 10 | statusCode: 500, 11 | }, 500); 12 | } 13 | } 14 | exports.KeyEncryptionErrorException = KeyEncryptionErrorException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/key-unavailable.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.KeyUnavailableException = void 0; 4 | const encryption_service_error_exception_1 = require("./encryption-service-error.exception"); 5 | class KeyUnavailableException extends encryption_service_error_exception_1.EncryptionServiceErrorException { 6 | constructor(message = 'Encryption key unavailable') { 7 | super({ 8 | message, 9 | name: 'KeyUnavailable', 10 | statusCode: 503, 11 | }, 503); 12 | } 13 | } 14 | exports.KeyUnavailableException = KeyUnavailableException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/keytar-decryption-error.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.KeytarDecryptionErrorException = void 0; 4 | const encryption_service_error_exception_1 = require("./encryption-service-error.exception"); 5 | class KeytarDecryptionErrorException extends encryption_service_error_exception_1.EncryptionServiceErrorException { 6 | constructor(message = 'Unable to decrypt data with Keytar') { 7 | super({ 8 | message, 9 | name: 'KeytarDecryptionError', 10 | statusCode: 500, 11 | }, 500); 12 | } 13 | } 14 | exports.KeytarDecryptionErrorException = KeytarDecryptionErrorException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/keytar-encryption-error.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.KeytarEncryptionErrorException = void 0; 4 | const encryption_service_error_exception_1 = require("./encryption-service-error.exception"); 5 | class KeytarEncryptionErrorException extends encryption_service_error_exception_1.EncryptionServiceErrorException { 6 | constructor(message = 'Unable to encrypt data with Keytar') { 7 | super({ 8 | message, 9 | name: 'KeytarEncryptionError', 10 | statusCode: 500, 11 | }, 500); 12 | } 13 | } 14 | exports.KeytarEncryptionErrorException = KeytarEncryptionErrorException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/keytar-unavailable.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.KeytarUnavailableException = void 0; 4 | const encryption_service_error_exception_1 = require("./encryption-service-error.exception"); 5 | class KeytarUnavailableException extends encryption_service_error_exception_1.EncryptionServiceErrorException { 6 | constructor(message = 'Keytar unavailable') { 7 | super({ 8 | message, 9 | name: 'KeytarUnavailable', 10 | statusCode: 503, 11 | }, 503); 12 | } 13 | } 14 | exports.KeytarUnavailableException = KeytarUnavailableException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/exceptions/unsupported-encryption-strategy.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UnsupportedEncryptionStrategyException = void 0; 4 | const encryption_service_error_exception_1 = require("./encryption-service-error.exception"); 5 | class UnsupportedEncryptionStrategyException extends encryption_service_error_exception_1.EncryptionServiceErrorException { 6 | constructor(message = 'Unsupported encryption strategy') { 7 | super({ 8 | message, 9 | name: 'UnsupportedEncryptionStrategy', 10 | statusCode: 500, 11 | }, 500); 12 | } 13 | } 14 | exports.UnsupportedEncryptionStrategyException = UnsupportedEncryptionStrategyException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/models/encryption-result.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.EncryptionResult = exports.EncryptionStrategy = void 0; 4 | var EncryptionStrategy; 5 | (function (EncryptionStrategy) { 6 | EncryptionStrategy["PLAIN"] = "PLAIN"; 7 | EncryptionStrategy["KEYTAR"] = "KEYTAR"; 8 | EncryptionStrategy["KEY"] = "KEY"; 9 | })(EncryptionStrategy = exports.EncryptionStrategy || (exports.EncryptionStrategy = {})); 10 | class EncryptionResult { 11 | } 12 | exports.EncryptionResult = EncryptionResult; 13 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./encryption-result"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/encryption/strategies/encryption-strategy.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/feature/exceptions/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./unable-to-fetch-remote-config.exception"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/feature/exceptions/unable-to-fetch-remote-config.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UnableToFetchRemoteConfigException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class UnableToFetchRemoteConfigException extends common_1.HttpException { 6 | constructor(response = { 7 | message: 'Unable to fetch remote config', 8 | name: 'UnableToFetchRemoteConfigException', 9 | statusCode: 500, 10 | }, status = 500) { 11 | super(response, status); 12 | } 13 | } 14 | exports.UnableToFetchRemoteConfigException = UnableToFetchRemoteConfigException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/feature/providers/feature-flag/strategies/default.flag.strategy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DefaultFlagStrategy = void 0; 4 | const feature_flag_strategy_1 = require("./feature.flag.strategy"); 5 | class DefaultFlagStrategy extends feature_flag_strategy_1.FeatureFlagStrategy { 6 | async calculate(knownFeature) { 7 | return { 8 | name: knownFeature.name, 9 | flag: false, 10 | }; 11 | } 12 | } 13 | exports.DefaultFlagStrategy = DefaultFlagStrategy; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/feature/repositories/feature.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.FeatureRepository = void 0; 4 | class FeatureRepository { 5 | } 6 | exports.FeatureRepository = FeatureRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/feature/repositories/features-config.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.FeaturesConfigRepository = void 0; 4 | class FeaturesConfigRepository { 5 | } 6 | exports.FeaturesConfigRepository = FeaturesConfigRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/feature/transformers/feature-config-filter.transformer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.featureConfigFilterTransformer = void 0; 4 | const lodash_1 = require("lodash"); 5 | const class_transformer_1 = require("class-transformer"); 6 | const features_config_1 = require("../model/features-config"); 7 | const featureConfigFilterTransformer = (value) => (0, lodash_1.map)(value || [], (filter) => { 8 | let cls = features_config_1.FeatureConfigFilter; 9 | if ((0, lodash_1.get)(filter, 'and')) { 10 | cls = features_config_1.FeatureConfigFilterAnd; 11 | } 12 | if ((0, lodash_1.get)(filter, 'or')) { 13 | cls = features_config_1.FeatureConfigFilterOr; 14 | } 15 | return (0, class_transformer_1.plainToClass)(cls, filter); 16 | }); 17 | exports.featureConfigFilterTransformer = featureConfigFilterTransformer; 18 | -------------------------------------------------------------------------------- /build/back/src/modules/feature/transformers/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./feature-config-filter.transformer"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/notification/constants/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.NotificationEvents = exports.NotificationServerEvents = exports.NotificationType = void 0; 4 | var NotificationType; 5 | (function (NotificationType) { 6 | NotificationType["Global"] = "global"; 7 | })(NotificationType = exports.NotificationType || (exports.NotificationType = {})); 8 | var NotificationServerEvents; 9 | (function (NotificationServerEvents) { 10 | NotificationServerEvents["Notification"] = "notification"; 11 | })(NotificationServerEvents = exports.NotificationServerEvents || (exports.NotificationServerEvents = {})); 12 | var NotificationEvents; 13 | (function (NotificationEvents) { 14 | NotificationEvents["NewNotifications"] = "new-notifications"; 15 | })(NotificationEvents = exports.NotificationEvents || (exports.NotificationEvents = {})); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/profiler/emitters/client.logs-emitter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ClientLogsEmitter = void 0; 4 | const constants_1 = require("../constants"); 5 | class ClientLogsEmitter { 6 | constructor(client) { 7 | this.id = client.id; 8 | this.client = client; 9 | } 10 | async emit(items) { 11 | return this.client.emit(constants_1.ProfilerServerEvents.Data, items); 12 | } 13 | addProfilerClient() { } 14 | removeProfilerClient() { } 15 | flushLogs() { } 16 | } 17 | exports.ClientLogsEmitter = ClientLogsEmitter; 18 | -------------------------------------------------------------------------------- /build/back/src/modules/profiler/interfaces/logs-emitter.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/profiler/interfaces/monitor-data.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/profiler/interfaces/shard-observer.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/decorators/client.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.Client = void 0; 4 | const lodash_1 = require("lodash"); 5 | const common_1 = require("@nestjs/common"); 6 | const user_client_1 = require("../model/user-client"); 7 | exports.Client = (0, common_1.createParamDecorator)((data, ctx) => { 8 | const socket = ctx.switchToWs().getClient(); 9 | return new user_client_1.UserClient(socket.id, socket, (0, lodash_1.get)(socket, 'handshake.query.instanceId')); 10 | }); 11 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./subscribe.dto"), exports); 14 | __exportStar(require("./subscription.dto"), exports); 15 | __exportStar(require("./messages.response"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/dto/messages.response.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.MessagesResponse = void 0; 4 | class MessagesResponse { 5 | } 6 | exports.MessagesResponse = MessagesResponse; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/dto/publish.response.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.PublishResponse = void 0; 4 | class PublishResponse { 5 | } 6 | exports.PublishResponse = PublishResponse; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/interfaces/message.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/interfaces/subscription.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/model/pattern.subscription.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.PatternSubscription = void 0; 4 | const abstract_subscription_1 = require("./abstract.subscription"); 5 | class PatternSubscription extends abstract_subscription_1.AbstractSubscription { 6 | async subscribe(client) { 7 | await client.pSubscribe(this.channel); 8 | } 9 | async unsubscribe(client) { 10 | await client.pUnsubscribe(this.channel); 11 | } 12 | } 13 | exports.PatternSubscription = PatternSubscription; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/model/simple.subscription.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SimpleSubscription = void 0; 4 | const abstract_subscription_1 = require("./abstract.subscription"); 5 | class SimpleSubscription extends abstract_subscription_1.AbstractSubscription { 6 | async subscribe(client) { 7 | await client.subscribe(this.channel); 8 | } 9 | async unsubscribe(client) { 10 | await client.unsubscribe(this.channel); 11 | } 12 | } 13 | exports.SimpleSubscription = SimpleSubscription; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/pub-sub/model/user-client.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UserClient = void 0; 4 | class UserClient { 5 | constructor(id, socket, databaseId) { 6 | this.id = id; 7 | this.socket = socket; 8 | this.databaseId = databaseId; 9 | } 10 | getId() { 11 | return this.id; 12 | } 13 | getDatabaseId() { 14 | return this.databaseId; 15 | } 16 | getSocket() { 17 | return this.socket; 18 | } 19 | } 20 | exports.UserClient = UserClient; 21 | -------------------------------------------------------------------------------- /build/back/src/modules/redis-enterprise/utils/redis-enterprise-converter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.convertREClusterModuleName = void 0; 4 | const constants_1 = require("../../../constants"); 5 | function convertREClusterModuleName(name) { 6 | var _a; 7 | return (_a = constants_1.RE_CLUSTER_MODULES_NAMES[name]) !== null && _a !== void 0 ? _a : name; 8 | } 9 | exports.convertREClusterModuleName = convertREClusterModuleName; 10 | -------------------------------------------------------------------------------- /build/back/src/modules/redis-sentinel/dto/discover.sentinel-masters.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.DiscoverSentinelMastersDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const create_database_dto_1 = require("../../database/dto/create.database.dto"); 6 | class DiscoverSentinelMastersDto extends (0, swagger_1.OmitType)(create_database_dto_1.CreateDatabaseDto, [ 7 | 'name', 'db', 8 | ]) { 9 | } 10 | exports.DiscoverSentinelMastersDto = DiscoverSentinelMastersDto; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/redis-sentinel/dto/update.sentinel.master.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UpdateSentinelMasterDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const sentinel_master_1 = require("../models/sentinel-master"); 6 | class UpdateSentinelMasterDto extends (0, swagger_1.PickType)(sentinel_master_1.SentinelMaster, ['username', 'password']) { 7 | } 8 | exports.UpdateSentinelMasterDto = UpdateSentinelMasterDto; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/redis-sentinel/models/sentinel.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/redis/client/ioredis/sentinel.ioredis.client.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SentinelIoredisClient = void 0; 4 | const client_1 = require(".."); 5 | class SentinelIoredisClient extends client_1.StandaloneIoredisClient { 6 | getConnectionType() { 7 | return client_1.RedisClientConnectionType.SENTINEL; 8 | } 9 | } 10 | exports.SentinelIoredisClient = SentinelIoredisClient; 11 | -------------------------------------------------------------------------------- /build/back/src/modules/redis/client/ioredis/standalone.ioredis.client.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.StandaloneIoredisClient = void 0; 4 | const client_1 = require(".."); 5 | class StandaloneIoredisClient extends client_1.IoredisClient { 6 | getConnectionType() { 7 | return client_1.RedisClientConnectionType.STANDALONE; 8 | } 9 | async nodes() { 10 | return [this]; 11 | } 12 | } 13 | exports.StandaloneIoredisClient = StandaloneIoredisClient; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/redis/exceptions/client-not-found-error.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ClientNotFoundErrorException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class ClientNotFoundErrorException extends common_1.HttpException { 6 | constructor(response = { 7 | message: 'Client not found or it has been disconnected.', 8 | name: 'ClientNotFoundError', 9 | statusCode: 404, 10 | }, status = 404) { 11 | super(response, status); 12 | } 13 | } 14 | exports.ClientNotFoundErrorException = ClientNotFoundErrorException; 15 | -------------------------------------------------------------------------------- /build/back/src/modules/redis/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./reply.util"), exports); 14 | __exportStar(require("./keys.util"), exports); 15 | __exportStar(require("./sentinel.util"), exports); 16 | __exportStar(require("./cluster.util"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/modules/server/repositories/server.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ServerRepository = void 0; 4 | class ServerRepository { 5 | } 6 | exports.ServerRepository = ServerRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/session/providers/storage/session.storage.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SessionStorage = void 0; 4 | class SessionStorage { 5 | } 6 | exports.SessionStorage = SessionStorage; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/settings/models/agreements.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/settings/repositories/agreements.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.AgreementsRepository = void 0; 4 | class AgreementsRepository { 5 | } 6 | exports.AgreementsRepository = AgreementsRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/settings/repositories/settings.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SettingsRepository = void 0; 4 | class SettingsRepository { 5 | } 6 | exports.SettingsRepository = SettingsRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/slow-log/constants/commands.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.SlowLogArguments = exports.SlowLogCommands = void 0; 4 | var SlowLogCommands; 5 | (function (SlowLogCommands) { 6 | SlowLogCommands["SlowLog"] = "slowlog"; 7 | SlowLogCommands["Config"] = "config"; 8 | })(SlowLogCommands = exports.SlowLogCommands || (exports.SlowLogCommands = {})); 9 | var SlowLogArguments; 10 | (function (SlowLogArguments) { 11 | SlowLogArguments["Get"] = "get"; 12 | SlowLogArguments["Set"] = "set"; 13 | SlowLogArguments["Reset"] = "reset"; 14 | })(SlowLogArguments = exports.SlowLogArguments || (exports.SlowLogArguments = {})); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/slow-log/dto/update-slow-log-config.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UpdateSlowLogConfigDto = void 0; 4 | const models_1 = require("../models"); 5 | class UpdateSlowLogConfigDto extends models_1.SlowLogConfig { 6 | } 7 | exports.UpdateSlowLogConfigDto = UpdateSlowLogConfigDto; 8 | -------------------------------------------------------------------------------- /build/back/src/modules/slow-log/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./slow-log"), exports); 14 | __exportStar(require("./slow-log-config"), exports); 15 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/dto/create.basic-ssh-options.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateBasicSshOptionsDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const ssh_options_1 = require("../models/ssh-options"); 6 | class CreateBasicSshOptionsDto extends (0, swagger_1.OmitType)(ssh_options_1.SshOptions, ['privateKey', 'passphrase', 'id']) { 7 | } 8 | exports.CreateBasicSshOptionsDto = CreateBasicSshOptionsDto; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/dto/create.cert-ssh-options.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CreateCertSshOptionsDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const ssh_options_1 = require("../models/ssh-options"); 6 | class CreateCertSshOptionsDto extends (0, swagger_1.OmitType)(ssh_options_1.SshOptions, ['password', 'id']) { 7 | } 8 | exports.CreateCertSshOptionsDto = CreateCertSshOptionsDto; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/dto/update.ssh-options.dto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UpdateSshOptionsDto = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const ssh_options_1 = require("../models/ssh-options"); 6 | class UpdateSshOptionsDto extends (0, swagger_1.PartialType)((0, swagger_1.OmitType)(ssh_options_1.SshOptions, ['id'])) { 7 | } 8 | exports.UpdateSshOptionsDto = UpdateSshOptionsDto; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/exceptions/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./unable-to-create-ssh-connection.exception"), exports); 14 | __exportStar(require("./unable-to-create-tunnel.exception"), exports); 15 | __exportStar(require("./tunnel-connection-lost.exception"), exports); 16 | __exportStar(require("./unable-to-create-local-server.exception"), exports); 17 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/exceptions/tunnel-connection-lost.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.TunnelConnectionLostException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class TunnelConnectionLostException extends common_1.HttpException { 6 | constructor(message = '') { 7 | const prepend = 'Tunnel connection was lost.'; 8 | super({ 9 | message: `${prepend} ${message}`, 10 | name: 'TunnelConnectionLostException', 11 | statusCode: 500, 12 | }, 500); 13 | } 14 | } 15 | exports.TunnelConnectionLostException = TunnelConnectionLostException; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/exceptions/unable-to-create-local-server.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UnableToCreateLocalServerException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class UnableToCreateLocalServerException extends common_1.HttpException { 6 | constructor(message = '') { 7 | const prepend = 'Unable to create local server.'; 8 | super({ 9 | message: `${prepend} ${message}`, 10 | name: 'UnableToCreateLocalServerException', 11 | statusCode: 500, 12 | }, 500); 13 | } 14 | } 15 | exports.UnableToCreateLocalServerException = UnableToCreateLocalServerException; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/exceptions/unable-to-create-ssh-connection.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UnableToCreateSshConnectionException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class UnableToCreateSshConnectionException extends common_1.HttpException { 6 | constructor(message = '') { 7 | const prepend = 'Unable to create ssh connection.'; 8 | super({ 9 | message: `${prepend} ${message}`, 10 | name: 'UnableToCreateSshConnectionException', 11 | statusCode: 503, 12 | }, 503); 13 | } 14 | } 15 | exports.UnableToCreateSshConnectionException = UnableToCreateSshConnectionException; 16 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/exceptions/unable-to-create-tunnel.exception.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.UnableToCreateTunnelException = void 0; 4 | const common_1 = require("@nestjs/common"); 5 | class UnableToCreateTunnelException extends common_1.HttpException { 6 | constructor(message = '') { 7 | const prepend = 'Unable to create tunnel.'; 8 | let msg = message; 9 | if (message.includes('Cannot parse privateKey')) { 10 | msg = 'Cannot parse privateKey'; 11 | } 12 | super({ 13 | message: `${prepend} ${msg}`, 14 | name: 'UnableToCreateTunnelException', 15 | statusCode: 500, 16 | }, 500); 17 | } 18 | } 19 | exports.UnableToCreateTunnelException = UnableToCreateTunnelException; 20 | -------------------------------------------------------------------------------- /build/back/src/modules/ssh/transformers/ssh-options.transformer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.sshOptionsTransformer = void 0; 4 | const lodash_1 = require("lodash"); 5 | const create_basic_ssh_options_dto_1 = require("../dto/create.basic-ssh-options.dto"); 6 | const create_cert_ssh_options_dto_1 = require("../dto/create.cert-ssh-options.dto"); 7 | const sshOptionsTransformer = (data) => { 8 | if ((0, lodash_1.get)(data === null || data === void 0 ? void 0 : data.object, 'sshOptions.privateKey')) { 9 | return create_cert_ssh_options_dto_1.CreateCertSshOptionsDto; 10 | } 11 | return create_basic_ssh_options_dto_1.CreateBasicSshOptionsDto; 12 | }; 13 | exports.sshOptionsTransformer = sshOptionsTransformer; 14 | -------------------------------------------------------------------------------- /build/back/src/modules/statics-management/providers/auto-updated-statics.interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /build/back/src/modules/triggered-functions/dto/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./library.dto"), exports); 14 | __exportStar(require("./upload-library.dto"), exports); 15 | __exportStar(require("./delete-library.dto"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/triggered-functions/models/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./function"), exports); 14 | __exportStar(require("./library"), exports); 15 | __exportStar(require("./short-library"), exports); 16 | -------------------------------------------------------------------------------- /build/back/src/modules/triggered-functions/models/short-library.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ShortLibrary = void 0; 4 | const swagger_1 = require("@nestjs/swagger"); 5 | const library_1 = require("./library"); 6 | class ShortLibrary extends (0, swagger_1.PickType)(library_1.Library, ['name', 'user', 'totalFunctions', 'pendingJobs']) { 7 | } 8 | exports.ShortLibrary = ShortLibrary; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/triggered-functions/utils/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./triggered-functions.util"), exports); 14 | -------------------------------------------------------------------------------- /build/back/src/modules/workbench/decorators/workbench-client-metadata.decorator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.WorkbenchClientMetadata = void 0; 4 | const constants_1 = require("../../../common/constants"); 5 | const common_1 = require("@nestjs/common"); 6 | const models_1 = require("../../../common/models"); 7 | const decorators_1 = require("../../../common/decorators"); 8 | const WorkbenchClientMetadata = (databaseIdParam = constants_1.API_PARAM_DATABASE_ID) => (0, common_1.createParamDecorator)(decorators_1.clientMetadataParamFactory)({ 9 | context: models_1.ClientContext.Workbench, 10 | databaseIdParam, 11 | }); 12 | exports.WorkbenchClientMetadata = WorkbenchClientMetadata; 13 | -------------------------------------------------------------------------------- /build/back/src/modules/workbench/models/plugin-command-execution.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.PluginCommandExecution = void 0; 4 | const command_execution_1 = require("./command-execution"); 5 | const swagger_1 = require("@nestjs/swagger"); 6 | class PluginCommandExecution extends (0, swagger_1.PartialType)((0, swagger_1.OmitType)(command_execution_1.CommandExecution, ['createdAt', 'id'])) { 7 | constructor(partial) { 8 | super(); 9 | Object.assign(this, partial); 10 | } 11 | } 12 | exports.PluginCommandExecution = PluginCommandExecution; 13 | -------------------------------------------------------------------------------- /build/back/src/modules/workbench/models/short-command-execution.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ShortCommandExecution = void 0; 4 | const command_execution_1 = require("./command-execution"); 5 | const swagger_1 = require("@nestjs/swagger"); 6 | class ShortCommandExecution extends (0, swagger_1.PartialType)((0, swagger_1.OmitType)(command_execution_1.CommandExecution, ['result'])) { 7 | } 8 | exports.ShortCommandExecution = ShortCommandExecution; 9 | -------------------------------------------------------------------------------- /build/back/src/modules/workbench/repositories/command-execution.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.CommandExecutionRepository = void 0; 4 | class CommandExecutionRepository { 5 | } 6 | exports.CommandExecutionRepository = CommandExecutionRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/modules/workbench/repositories/plugin-state.repository.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.PluginStateRepository = void 0; 4 | class PluginStateRepository { 5 | } 6 | exports.PluginStateRepository = PluginStateRepository; 7 | -------------------------------------------------------------------------------- /build/back/src/utils/base.helper.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.isJson = exports.numberWithSpaces = exports.sortByNumberField = void 0; 4 | const lodash_1 = require("lodash"); 5 | const sortByNumberField = (items, field) => (0, lodash_1.sortBy)(items, (o) => (o && (0, lodash_1.isNumber)(o[field]) ? o[field] : -Infinity)); 6 | exports.sortByNumberField = sortByNumberField; 7 | const numberWithSpaces = (number = 0) => number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' '); 8 | exports.numberWithSpaces = numberWithSpaces; 9 | const isJson = (item) => { 10 | let value = typeof item !== "string" ? JSON.stringify(item) : item; 11 | try { 12 | value = JSON.parse(value); 13 | } 14 | catch (e) { 15 | return false; 16 | } 17 | return typeof value === "object" && value !== null; 18 | }; 19 | exports.isJson = isJson; 20 | -------------------------------------------------------------------------------- /build/back/src/utils/class-transformer.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.cloneClassInstance = exports.classToClass = void 0; 4 | const class_transformer_1 = require("class-transformer"); 5 | function classToClass(targetClass, classInstance, options) { 6 | const defaultOptions = { 7 | excludeExtraneousValues: true, 8 | groups: ['security'], 9 | }; 10 | const transformOptions = { 11 | ...defaultOptions, 12 | ...options, 13 | }; 14 | return (0, class_transformer_1.plainToClass)(targetClass, (0, class_transformer_1.classToPlain)(classInstance, transformOptions), transformOptions); 15 | } 16 | exports.classToClass = classToClass; 17 | const cloneClassInstance = (entity) => classToClass(entity.constructor, entity); 18 | exports.cloneClassInstance = cloneClassInstance; 19 | -------------------------------------------------------------------------------- /build/back/src/utils/createHttpOptions.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.createHttpOptions = void 0; 4 | const promises_1 = require("fs/promises"); 5 | const createHttpOptions = async (serverConfig) => { 6 | const { tlsKey, tlsCert } = serverConfig; 7 | try { 8 | const [key, cert] = await Promise.all([ 9 | (0, promises_1.readFile)(tlsKey, { encoding: 'utf-8' }), 10 | (0, promises_1.readFile)(tlsCert, { encoding: 'utf-8' }), 11 | ]); 12 | return { 13 | key, 14 | cert, 15 | }; 16 | } 17 | catch (e) { 18 | } 19 | const key = tlsKey.replace(/\\n/g, '\n'); 20 | const cert = tlsCert.replace(/\\n/g, '\n'); 21 | return { 22 | key, 23 | cert, 24 | }; 25 | }; 26 | exports.createHttpOptions = createHttpOptions; 27 | -------------------------------------------------------------------------------- /build/back/src/utils/path.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.winPathToNormalPath = void 0; 4 | const winPathToNormalPath = (path) => path.replace(/\\/g, '/'); 5 | exports.winPathToNormalPath = winPathToNormalPath; 6 | -------------------------------------------------------------------------------- /build/back/src/utils/promise-with-timeout.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.withTimeout = void 0; 4 | const withTimeout = (promise, delay, error) => { 5 | let timer = null; 6 | return Promise.race([ 7 | new Promise((resolve, reject) => { 8 | timer = setTimeout(reject, delay, error); 9 | return timer; 10 | }), 11 | promise.then((value) => { 12 | clearTimeout(timer); 13 | return value; 14 | }), 15 | ]); 16 | }; 17 | exports.withTimeout = withTimeout; 18 | -------------------------------------------------------------------------------- /build/back/src/utils/redis-reply-converter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.convertRedisInfoReplyToObject = void 0; 4 | const utils_1 = require("../modules/redis/utils"); 5 | const convertRedisInfoReplyToObject = (info) => { 6 | try { 7 | const result = {}; 8 | const sections = info.match(/(?<=#\s+).*?(?=[\n,\r])/g); 9 | const values = info.split(/#.*?[\n,\r]/g); 10 | values.shift(); 11 | sections.forEach((section, index) => { 12 | result[section.toLowerCase()] = (0, utils_1.convertMultilineReplyToObject)(values[index].trim()); 13 | }); 14 | return result; 15 | } 16 | catch (e) { 17 | return {}; 18 | } 19 | }; 20 | exports.convertRedisInfoReplyToObject = convertRedisInfoReplyToObject; 21 | -------------------------------------------------------------------------------- /build/back/src/validators/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __exportStar = (this && this.__exportStar) || function(m, exports) { 10 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); 11 | }; 12 | Object.defineProperty(exports, "__esModule", { value: true }); 13 | __exportStar(require("./serializedJson.validator"), exports); 14 | -------------------------------------------------------------------------------- /build/back/static/plugins/clients-list/dist/json_view_icon_dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /build/back/static/plugins/clients-list/dist/json_view_icon_light.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /build/back/static/plugins/clients-list/dist/table_view_icon_dark.svg: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /build/back/static/plugins/clients-list/dist/table_view_icon_light.svg: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /build/back/static/plugins/redisearch/dist/table_view_icon_dark.svg: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /build/back/static/plugins/redisearch/dist/table_view_icon_light.svg: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /build/back/static/plugins/ri-explain/dist/profile_icon_dark.svg: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /build/back/static/plugins/ri-explain/dist/profile_icon_light.svg: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-Light.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-LightItalic.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-Medium.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-MediumItalic.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-Regular.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-RegularItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-RegularItalic.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-Semibold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-Semibold.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/Graphik-SemiboldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/Graphik-SemiboldItalic.woff2 -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/inconsolata/Inconsolata-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/inconsolata/Inconsolata-Bold.ttf -------------------------------------------------------------------------------- /build/back/static/resources/plugins/fonts/inconsolata/Inconsolata-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/back/static/resources/plugins/fonts/inconsolata/Inconsolata-Regular.ttf -------------------------------------------------------------------------------- /build/front/fonts/17f5b8641438508d6b9902b3050aed97-Graphik-RegularItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/17f5b8641438508d6b9902b3050aed97-Graphik-RegularItalic.woff2 -------------------------------------------------------------------------------- /build/front/fonts/2d605563782d8914f953a910e83d1bdb-Inconsolata-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/2d605563782d8914f953a910e83d1bdb-Inconsolata-Bold.ttf -------------------------------------------------------------------------------- /build/front/fonts/42689b48d7c24bf0d540e69b42365b69-Graphik-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/42689b48d7c24bf0d540e69b42365b69-Graphik-Light.woff2 -------------------------------------------------------------------------------- /build/front/fonts/a373329db08e6a93664ef6e898e12c2d-Graphik-MediumItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/a373329db08e6a93664ef6e898e12c2d-Graphik-MediumItalic.woff2 -------------------------------------------------------------------------------- /build/front/fonts/a9b36833bf41bc54b9a98855ae303015-Graphik-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/a9b36833bf41bc54b9a98855ae303015-Graphik-Medium.woff2 -------------------------------------------------------------------------------- /build/front/fonts/be8d777883e1681563d58ce0933dd255-Graphik-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/be8d777883e1681563d58ce0933dd255-Graphik-Regular.woff2 -------------------------------------------------------------------------------- /build/front/fonts/c1c879bef7ec419e94a57cd6415cdc16-Graphik-SemiboldItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/c1c879bef7ec419e94a57cd6415cdc16-Graphik-SemiboldItalic.woff2 -------------------------------------------------------------------------------- /build/front/fonts/d8bb92ebd0f231bbcc39dc3b857f609e-Graphik-Semibold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/d8bb92ebd0f231bbcc39dc3b857f609e-Graphik-Semibold.woff2 -------------------------------------------------------------------------------- /build/front/fonts/ed7f6e5be703abdc4a71ff8d3d8d8673-Inconsolata-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/ed7f6e5be703abdc4a71ff8d3d8d8673-Inconsolata-Regular.ttf -------------------------------------------------------------------------------- /build/front/fonts/ee0dda7261dcd0073d02b0dc5854604a-Graphik-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oblakstudio/redisinsight/a3ebd71d8e256d741c451eb29296eb6c376a7749/build/front/fonts/ee0dda7261dcd0073d02b0dc5854604a-Graphik-LightItalic.woff2 -------------------------------------------------------------------------------- /build/front/index.html: -------------------------------------------------------------------------------- 1 |