@owox/backend 0.37.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/helpers/read-bounded-body.helper.d.ts +1 -0
- package/dist/src/common/helpers/read-bounded-body.helper.js +28 -0
- package/dist/src/common/scheduler/system-tasks/system-trigger-type.d.ts +3 -1
- package/dist/src/common/scheduler/system-tasks/system-trigger-type.js +2 -0
- package/dist/src/common/search/search.facade.d.ts +1 -0
- package/dist/src/config/data-source-options.config.d.ts +4 -3
- package/dist/src/config/data-source-options.config.js +10 -3
- package/dist/src/config/plugin-collections-body-parser.config.js +3 -0
- package/dist/src/data-marts/credentials/credential.types.d.ts +26 -2
- package/dist/src/data-marts/credentials/credential.types.js +18 -6
- package/dist/src/data-marts/credentials/dto/credential-api.dto.d.ts +5 -1
- package/dist/src/data-marts/credentials/dto/credential-api.dto.js +21 -0
- package/dist/src/data-marts/credentials/dto/credential.dto.d.ts +2 -1
- package/dist/src/data-marts/credentials/entities/credential.entity.d.ts +2 -1
- package/dist/src/data-marts/credentials/entities/credential.entity.js +5 -0
- package/dist/src/data-marts/credentials/facades/credential-consumer-binding.facade.impl.js +6 -1
- package/dist/src/data-marts/credentials/mappers/credential.mapper.js +2 -0
- package/dist/src/data-marts/credentials/services/builtin-credential-definitions.js +8 -0
- package/dist/src/data-marts/credentials/services/credential-external-definition-registry.service.d.ts +4 -0
- package/dist/src/data-marts/credentials/services/credential-external-definition-registry.service.js +36 -17
- package/dist/src/data-marts/credentials/services/credential-fetch.service.d.ts +8 -0
- package/dist/src/data-marts/credentials/services/credential-fetch.service.js +115 -46
- package/dist/src/data-marts/credentials/services/credential-validation-probe.service.d.ts +3 -1
- package/dist/src/data-marts/credentials/services/credential-validation-probe.service.js +10 -2
- package/dist/src/data-marts/credentials/services/credential.service.d.ts +4 -0
- package/dist/src/data-marts/credentials/services/credential.service.js +36 -0
- package/dist/src/data-marts/credentials/services/google-service-account-key.d.ts +6 -0
- package/dist/src/data-marts/credentials/services/google-service-account-key.js +46 -0
- package/dist/src/data-marts/credentials/services/google-service-account-token.service.d.ts +25 -0
- package/dist/src/data-marts/credentials/services/google-service-account-token.service.js +177 -0
- package/dist/src/data-marts/credentials/use-cases/create-credential.service.d.ts +1 -0
- package/dist/src/data-marts/credentials/use-cases/create-credential.service.js +10 -2
- package/dist/src/data-marts/credentials/use-cases/update-credential.service.d.ts +1 -0
- package/dist/src/data-marts/credentials/use-cases/update-credential.service.js +28 -4
- package/dist/src/data-marts/credentials/use-cases/validate-credential.service.js +2 -5
- package/dist/src/data-marts/data-destination-types/ee/email/services/email-credentials-validator.js +1 -3
- package/dist/src/data-marts/data-destination-types/ee/google-chat/services/google-chat-credentials-validator.js +1 -3
- package/dist/src/data-marts/data-destination-types/google-sheets/services/google-sheets-credentials-validator.js +1 -3
- package/dist/src/data-marts/data-destination-types/google-sheets/services/google-sheets-report-writer.d.ts +1 -0
- package/dist/src/data-marts/data-destination-types/google-sheets/services/google-sheets-report-writer.js +13 -1
- package/dist/src/data-marts/data-destination-types/interfaces/data-destination-credentials-validator.interface.d.ts +2 -0
- package/dist/src/data-marts/data-destination-types/interfaces/data-destination-credentials-validator.interface.js +7 -0
- package/dist/src/data-marts/data-destination-types/looker-studio-connector/services/looker-studio-connector-credentials-validator.js +1 -3
- package/dist/src/data-marts/data-marts.module.js +8 -0
- package/dist/src/data-marts/data-storage-types/athena/adapters/athena-api.adapter.js +2 -1
- package/dist/src/data-marts/data-storage-types/athena/adapters/s3-api.adapter.js +5 -3
- package/dist/src/data-marts/data-storage-types/athena/services/athena-access.validator.js +2 -4
- package/dist/src/data-marts/data-storage-types/athena/utils/athena-output-location.util.d.ts +5 -0
- package/dist/src/data-marts/data-storage-types/athena/utils/athena-output-location.util.js +13 -0
- package/dist/src/data-marts/data-storage-types/bigquery/services/bigquery-access.validator.js +2 -4
- package/dist/src/data-marts/data-storage-types/bigquery/services/bigquery-resource-location.util.d.ts +3 -0
- package/dist/src/data-marts/data-storage-types/bigquery/services/bigquery-resource-location.util.js +18 -0
- package/dist/src/data-marts/data-storage-types/bigquery/services/bigquery-sharded-tables.util.d.ts +1 -0
- package/dist/src/data-marts/data-storage-types/bigquery/services/bigquery-sharded-tables.util.js +4 -1
- package/dist/src/data-marts/data-storage-types/bigquery/services/bigquery-storage-resource-browser.service.js +12 -5
- package/dist/src/data-marts/data-storage-types/databricks/services/databricks-access.validator.js +2 -4
- package/dist/src/data-marts/data-storage-types/interfaces/data-storage-access-validator.interface.d.ts +3 -0
- package/dist/src/data-marts/data-storage-types/interfaces/data-storage-access-validator.interface.js +7 -0
- package/dist/src/data-marts/data-storage-types/interfaces/storage-resource-browser.interface.d.ts +2 -0
- package/dist/src/data-marts/data-storage-types/redshift/services/redshift-access.validator.js +2 -6
- package/dist/src/data-marts/data-storage-types/snowflake/adapters/snowflake-api.adapter.js +1 -0
- package/dist/src/data-marts/data-storage-types/snowflake/services/snowflake-access.validator.js +2 -4
- package/dist/src/data-marts/dto/domain/list-data-marts.command.d.ts +2 -1
- package/dist/src/data-marts/dto/domain/list-data-marts.command.js +3 -1
- package/dist/src/data-marts/dto/presentation/run-data-mart-request-api.dto.js +4 -2
- package/dist/src/data-marts/dto/presentation/sql-dry-run-request-api.dto.js +3 -0
- package/dist/src/data-marts/dto/presentation/storage-resources/list-storage-resources-response.dto.d.ts +2 -0
- package/dist/src/data-marts/dto/presentation/storage-resources/list-storage-resources-response.dto.js +17 -0
- package/dist/src/data-marts/errors/google-sheets-api-call.error.d.ts +6 -0
- package/dist/src/data-marts/errors/google-sheets-api-call.error.js +34 -0
- package/dist/src/data-marts/facades/mcp-contexts.facade.d.ts +13 -0
- package/dist/src/data-marts/facades/mcp-contexts.facade.impl.d.ts +9 -0
- package/dist/src/data-marts/facades/mcp-contexts.facade.impl.js +35 -0
- package/dist/src/data-marts/facades/mcp-contexts.facade.js +5 -0
- package/dist/src/data-marts/facades/mcp-data-marts.facade.d.ts +9 -0
- package/dist/src/data-marts/facades/mcp-data-marts.facade.impl.js +4 -1
- package/dist/src/data-marts/mappers/context.mapper.d.ts +4 -0
- package/dist/src/data-marts/mappers/context.mapper.js +12 -0
- package/dist/src/data-marts/search/engine/advanced-search.service.js +1 -0
- package/dist/src/data-marts/search/engine/in-memory-paginated.search.js +17 -1
- package/dist/src/data-marts/search/engine/vector-search.port.d.ts +1 -0
- package/dist/src/data-marts/services/connector/backfill-segment.d.ts +22 -0
- package/dist/src/data-marts/services/connector/backfill-segment.js +91 -0
- package/dist/src/data-marts/services/connector/connector-execution.service.d.ts +1 -0
- package/dist/src/data-marts/services/connector/connector-execution.service.js +3 -0
- package/dist/src/data-marts/services/connector/connector-executor.service.d.ts +4 -1
- package/dist/src/data-marts/services/connector/connector-executor.service.js +107 -23
- package/dist/src/data-marts/services/connector/connector-run.service.d.ts +3 -0
- package/dist/src/data-marts/services/connector/connector-run.service.js +98 -4
- package/dist/src/data-marts/services/context/context.service.d.ts +2 -0
- package/dist/src/data-marts/services/context/context.service.js +21 -0
- package/dist/src/data-marts/services/data-mart-run.service.d.ts +1 -0
- package/dist/src/data-marts/services/data-mart-run.service.js +9 -0
- package/dist/src/data-marts/services/data-mart.service.d.ts +1 -0
- package/dist/src/data-marts/services/data-mart.service.js +3 -0
- package/dist/src/data-marts/system-triggers/processors/repair-backfill-chains-processor.d.ts +14 -0
- package/dist/src/data-marts/system-triggers/processors/repair-backfill-chains-processor.js +45 -0
- package/dist/src/data-marts/use-cases/cancel-data-mart-run.service.d.ts +4 -0
- package/dist/src/data-marts/use-cases/cancel-data-mart-run.service.js +46 -1
- package/dist/src/data-marts/use-cases/list-data-marts.service.js +1 -0
- package/dist/src/data-marts/use-cases/stream-http-data.service.d.ts +0 -1
- package/dist/src/data-marts/use-cases/stream-http-data.service.js +2 -6
- package/dist/src/data-marts/use-cases/update-data-storage.service.js +7 -7
- package/dist/src/data-marts/utils/field-errors.utils.d.ts +9 -0
- package/dist/src/data-marts/utils/field-errors.utils.js +51 -0
- package/dist/src/data-marts/utils/manual-backfill-range.d.ts +52 -0
- package/dist/src/data-marts/utils/manual-backfill-range.js +110 -8
- package/dist/src/ee/mcp/instructions/mcp-system-instructions.d.ts +1 -1
- package/dist/src/ee/mcp/instructions/mcp-system-instructions.js +4 -0
- package/dist/src/ee/mcp/sdk/mcp-output-schema.d.ts +3 -0
- package/dist/src/ee/mcp/sdk/mcp-output-schema.js +53 -0
- package/dist/src/ee/mcp/sdk/mcp-schema-refresh.d.ts +8 -0
- package/dist/src/ee/mcp/sdk/mcp-schema-refresh.js +44 -0
- package/dist/src/ee/mcp/sdk/mcp-sdk-server.factory.d.ts +8 -1
- package/dist/src/ee/mcp/sdk/mcp-sdk-server.factory.js +35 -4
- package/dist/src/ee/mcp/tools/context-input.d.ts +6 -0
- package/dist/src/ee/mcp/tools/context-input.js +13 -0
- package/dist/src/ee/mcp/tools/data-mart-catalog.tool.d.ts +10 -2
- package/dist/src/ee/mcp/tools/data-mart-catalog.tool.js +17 -5
- package/dist/src/ee/mcp/tools/data-mart-details.tool.d.ts +5 -1
- package/dist/src/ee/mcp/tools/data-mart-details.tool.js +4 -1
- package/dist/src/ee/mcp/tools/list-contexts.tool.d.ts +131 -0
- package/dist/src/ee/mcp/tools/list-contexts.tool.js +50 -0
- package/dist/src/ee/mcp/tools/mcp-tool.providers.js +2 -0
- package/dist/src/ee/mcp/tools/search-data-marts.tool.d.ts +10 -2
- package/dist/src/ee/mcp/tools/search-data-marts.tool.js +17 -3
- package/dist/src/ee/mcp/transport/mcp-http-entry.service.js +1 -1
- package/dist/src/idp/decorators/auth-context.decorator.js +1 -0
- package/dist/src/idp/guards/idp.guard.d.ts +3 -0
- package/dist/src/idp/guards/idp.guard.js +38 -8
- package/dist/src/idp/oauth/controllers/oauth-authorization.controller.js +8 -6
- package/dist/src/idp/oauth/mcp-client-integration.d.ts +1 -0
- package/dist/src/idp/oauth/mcp-client-integration.js +15 -0
- package/dist/src/idp/ports/plugin-runtime-authorizer.port.d.ts +6 -0
- package/dist/src/idp/types/auth.types.d.ts +1 -0
- package/dist/src/migrations/1790830000000-widen-sql-dry-run-trigger-sql-column.d.ts +6 -0
- package/dist/src/migrations/1790830000000-widen-sql-dry-run-trigger-sql-column.js +21 -0
- package/dist/src/migrations/1790900000000-add-plugin-version-backend.d.ts +6 -0
- package/dist/src/migrations/1790900000000-add-plugin-version-backend.js +21 -0
- package/dist/src/migrations/1790900000001-create-plugin-action-execution.d.ts +6 -0
- package/dist/src/migrations/1790900000001-create-plugin-action-execution.js +77 -0
- package/dist/src/migrations/1791000000000-add-credential-public-metadata.d.ts +6 -0
- package/dist/src/migrations/1791000000000-add-credential-public-metadata.js +23 -0
- package/dist/src/plugin-host/collections/dto/domain/plugin-collection.types.d.ts +1 -0
- package/dist/src/plugin-host/collections/errors/plugin-collection.errors.d.ts +6 -0
- package/dist/src/plugin-host/collections/errors/plugin-collection.errors.js +19 -1
- package/dist/src/plugin-host/collections/services/plugin-collection-declaration.service.js +3 -3
- package/dist/src/plugin-host/collections/use-cases/put-plugin-collection-document.service.js +7 -0
- package/dist/src/plugin-host/constants/plugin-action-limits.d.ts +34 -0
- package/dist/src/plugin-host/constants/plugin-action-limits.js +51 -0
- package/dist/src/plugin-host/controllers/plugin-action-runtime.controller.d.ts +20 -0
- package/dist/src/plugin-host/controllers/plugin-action-runtime.controller.js +123 -0
- package/dist/src/plugin-host/controllers/plugin-credential-runtime.controller.js +11 -19
- package/dist/src/plugin-host/controllers/plugin-gallery.controller.d.ts +5 -1
- package/dist/src/plugin-host/controllers/plugin-gallery.controller.js +25 -1
- package/dist/src/plugin-host/controllers/plugin-history.controller.d.ts +10 -0
- package/dist/src/plugin-host/controllers/plugin-history.controller.js +57 -0
- package/dist/src/plugin-host/controllers/plugin-release-check.controller.d.ts +10 -0
- package/dist/src/plugin-host/controllers/plugin-release-check.controller.js +58 -0
- package/dist/src/plugin-host/dto/domain/check-plugin-release.command.d.ts +22 -0
- package/dist/src/plugin-host/dto/domain/check-plugin-release.command.js +17 -0
- package/dist/src/plugin-host/dto/domain/find-plugin-by-repository.command.d.ts +6 -0
- package/dist/src/plugin-host/dto/domain/find-plugin-by-repository.command.js +13 -0
- package/dist/src/plugin-host/dto/domain/list-plugin-history.command.d.ts +10 -0
- package/dist/src/plugin-host/dto/domain/list-plugin-history.command.js +18 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.command.d.ts +23 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.command.js +44 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.dto.d.ts +36 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.dto.js +3 -0
- package/dist/src/plugin-host/dto/domain/plugin-history.dto.d.ts +29 -0
- package/dist/src/plugin-host/dto/domain/plugin-history.dto.js +3 -0
- package/dist/src/plugin-host/dto/domain/plugin-view.dto.d.ts +1 -0
- package/dist/src/plugin-host/dto/presentation/plugin-action-api.dto.d.ts +44 -0
- package/dist/src/plugin-host/dto/presentation/plugin-action-api.dto.js +208 -0
- package/dist/src/plugin-host/dto/presentation/plugin-gallery-api.dto.d.ts +2 -0
- package/dist/src/plugin-host/dto/presentation/plugin-gallery-api.dto.js +7 -0
- package/dist/src/plugin-host/dto/presentation/plugin-history-api.dto.d.ts +29 -0
- package/dist/src/plugin-host/dto/presentation/plugin-history-api.dto.js +148 -0
- package/dist/src/plugin-host/dto/presentation/plugin-lookup-api.dto.d.ts +3 -0
- package/dist/src/plugin-host/dto/presentation/plugin-lookup-api.dto.js +22 -0
- package/dist/src/plugin-host/dto/presentation/publication-api.dto.d.ts +17 -0
- package/dist/src/plugin-host/dto/presentation/publication-api.dto.js +95 -1
- package/dist/src/plugin-host/entities/plugin-action-execution.entity.d.ts +24 -0
- package/dist/src/plugin-host/entities/plugin-action-execution.entity.js +136 -0
- package/dist/src/plugin-host/entities/plugin-version.entity.d.ts +2 -1
- package/dist/src/plugin-host/entities/plugin-version.entity.js +5 -0
- package/dist/src/plugin-host/enums/plugin-action-execution-status.enum.d.ts +9 -0
- package/dist/src/plugin-host/enums/plugin-action-execution-status.enum.js +22 -0
- package/dist/src/plugin-host/enums/release-rejection-code.enum.d.ts +3 -0
- package/dist/src/plugin-host/enums/release-rejection-code.enum.js +6 -0
- package/dist/src/plugin-host/errors/plugin-action.errors.d.ts +45 -0
- package/dist/src/plugin-host/errors/plugin-action.errors.js +70 -0
- package/dist/src/plugin-host/errors/plugin-host.errors.d.ts +6 -0
- package/dist/src/plugin-host/errors/plugin-host.errors.js +10 -1
- package/dist/src/plugin-host/filters/plugin-host-exception.filter.js +2 -2
- package/dist/src/plugin-host/mappers/plugin-action-execution.mapper.d.ts +3 -0
- package/dist/src/plugin-host/mappers/plugin-action-execution.mapper.js +22 -0
- package/dist/src/plugin-host/mappers/plugin-presentation.mapper.d.ts +22 -1
- package/dist/src/plugin-host/mappers/plugin-presentation.mapper.js +87 -1
- package/dist/src/plugin-host/plugin-host.module.js +34 -0
- package/dist/src/plugin-host/services/action-input-validator.service.d.ts +23 -0
- package/dist/src/plugin-host/services/action-input-validator.service.js +277 -0
- package/dist/src/plugin-host/services/external-credential-definition-sync.service.d.ts +3 -0
- package/dist/src/plugin-host/services/external-credential-definition-sync.service.js +47 -15
- package/dist/src/plugin-host/services/plugin-action-dispatcher.service.d.ts +13 -0
- package/dist/src/plugin-host/services/plugin-action-dispatcher.service.js +140 -0
- package/dist/src/plugin-host/services/plugin-action-execution.service.d.ts +69 -0
- package/dist/src/plugin-host/services/plugin-action-execution.service.js +239 -0
- package/dist/src/plugin-host/services/plugin-action-starter.service.d.ts +22 -0
- package/dist/src/plugin-host/services/plugin-action-starter.service.js +81 -0
- package/dist/src/plugin-host/services/plugin-audit.service.d.ts +13 -0
- package/dist/src/plugin-host/services/plugin-audit.service.js +78 -0
- package/dist/src/plugin-host/services/plugin-publication.service.d.ts +4 -0
- package/dist/src/plugin-host/services/plugin-publication.service.js +51 -23
- package/dist/src/plugin-host/services/plugin-runtime-authorizer.service.d.ts +5 -2
- package/dist/src/plugin-host/services/plugin-runtime-authorizer.service.js +31 -3
- package/dist/src/plugin-host/services/plugin-version.service.d.ts +2 -1
- package/dist/src/plugin-host/services/release-candidate-rules.service.d.ts +51 -0
- package/dist/src/plugin-host/services/release-candidate-rules.service.js +198 -0
- package/dist/src/plugin-host/services/remote-url-validator.service.d.ts +7 -0
- package/dist/src/plugin-host/services/remote-url-validator.service.js +4 -0
- package/dist/src/plugin-host/system-triggers/plugin-action-execution-sweep.processor.d.ts +14 -0
- package/dist/src/plugin-host/system-triggers/plugin-action-execution-sweep.processor.js +50 -0
- package/dist/src/plugin-host/use-cases/cancel-plugin-action-execution.service.d.ts +8 -0
- package/dist/src/plugin-host/use-cases/cancel-plugin-action-execution.service.js +39 -0
- package/dist/src/plugin-host/use-cases/check-plugin-release.service.d.ts +22 -0
- package/dist/src/plugin-host/use-cases/check-plugin-release.service.js +152 -0
- package/dist/src/plugin-host/use-cases/find-plugin-by-repository.service.d.ts +9 -0
- package/dist/src/plugin-host/use-cases/find-plugin-by-repository.service.js +35 -0
- package/dist/src/plugin-host/use-cases/get-current-plugin-action-execution.service.d.ts +14 -0
- package/dist/src/plugin-host/use-cases/get-current-plugin-action-execution.service.js +85 -0
- package/dist/src/plugin-host/use-cases/get-plugin-action-execution.service.d.ts +9 -0
- package/dist/src/plugin-host/use-cases/get-plugin-action-execution.service.js +67 -0
- package/dist/src/plugin-host/use-cases/get-plugin-installation-entry.service.js +2 -7
- package/dist/src/plugin-host/use-cases/install-plugin.service.js +4 -0
- package/dist/src/plugin-host/use-cases/list-installations.service.d.ts +3 -1
- package/dist/src/plugin-host/use-cases/list-installations.service.js +14 -3
- package/dist/src/plugin-host/use-cases/list-plugin-history.service.d.ts +25 -0
- package/dist/src/plugin-host/use-cases/list-plugin-history.service.js +147 -0
- package/dist/src/plugin-host/use-cases/plugin-publisher-access.d.ts +5 -0
- package/dist/src/plugin-host/use-cases/plugin-publisher-access.js +28 -0
- package/dist/src/plugin-host/use-cases/start-plugin-action-execution.service.d.ts +12 -0
- package/dist/src/plugin-host/use-cases/start-plugin-action-execution.service.js +64 -0
- package/dist/src/plugin-host/use-cases/sync-plugin-releases.service.d.ts +3 -5
- package/dist/src/plugin-host/use-cases/sync-plugin-releases.service.js +15 -59
- package/dist/src/plugin-host/use-cases/uninstall-plugin.service.js +3 -1
- package/dist/src/plugin-host/use-cases/update-plugin.service.d.ts +0 -1
- package/dist/src/plugin-host/use-cases/update-plugin.service.js +3 -25
- package/dist/src/plugin-host/utils/action-input-schema.util.d.ts +14 -0
- package/dist/src/plugin-host/utils/action-input-schema.util.js +133 -0
- package/dist/src/plugin-host/utils/credential-handles.util.d.ts +3 -0
- package/dist/src/plugin-host/utils/credential-handles.util.js +13 -0
- package/dist/src/plugin-host/utils/execution-token.util.d.ts +5 -0
- package/dist/src/plugin-host/utils/execution-token.util.js +13 -0
- package/dist/src/plugin-host/utils/github-repo-locator.util.js +1 -1
- package/dist/src/plugin-host/utils/json-shape.util.d.ts +1 -0
- package/dist/src/plugin-host/utils/json-shape.util.js +21 -0
- package/dist/src/plugin-host/utils/plugin-action-outcome.util.d.ts +10 -0
- package/dist/src/plugin-host/utils/plugin-action-outcome.util.js +67 -0
- package/dist/src/plugin-host/utils/plugin-manifest.util.d.ts +121 -0
- package/dist/src/plugin-host/utils/plugin-manifest.util.js +111 -1
- package/dist/src/plugin-host/utils/request-abort-signal.util.d.ts +5 -0
- package/dist/src/plugin-host/utils/request-abort-signal.util.js +19 -0
- package/package.json +10 -8
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AuthorizationContext } from '../../../idp/types/auth.types';
|
|
2
|
+
export declare class StartPluginActionExecutionCommand {
|
|
3
|
+
readonly context: AuthorizationContext;
|
|
4
|
+
readonly action: string;
|
|
5
|
+
readonly input: unknown;
|
|
6
|
+
constructor(context: AuthorizationContext, action: string, input: unknown);
|
|
7
|
+
}
|
|
8
|
+
export declare class GetPluginActionExecutionCommand {
|
|
9
|
+
readonly context: AuthorizationContext;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly waitSeconds: number;
|
|
12
|
+
readonly signal: AbortSignal;
|
|
13
|
+
constructor(context: AuthorizationContext, id: string, waitSeconds: number, signal: AbortSignal);
|
|
14
|
+
}
|
|
15
|
+
export declare class CancelPluginActionExecutionCommand {
|
|
16
|
+
readonly context: AuthorizationContext;
|
|
17
|
+
readonly id: string;
|
|
18
|
+
constructor(context: AuthorizationContext, id: string);
|
|
19
|
+
}
|
|
20
|
+
export declare class GetCurrentPluginActionExecutionCommand {
|
|
21
|
+
readonly context: AuthorizationContext;
|
|
22
|
+
constructor(context: AuthorizationContext);
|
|
23
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetCurrentPluginActionExecutionCommand = exports.CancelPluginActionExecutionCommand = exports.GetPluginActionExecutionCommand = exports.StartPluginActionExecutionCommand = void 0;
|
|
4
|
+
class StartPluginActionExecutionCommand {
|
|
5
|
+
context;
|
|
6
|
+
action;
|
|
7
|
+
input;
|
|
8
|
+
constructor(context, action, input) {
|
|
9
|
+
this.context = context;
|
|
10
|
+
this.action = action;
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.StartPluginActionExecutionCommand = StartPluginActionExecutionCommand;
|
|
15
|
+
class GetPluginActionExecutionCommand {
|
|
16
|
+
context;
|
|
17
|
+
id;
|
|
18
|
+
waitSeconds;
|
|
19
|
+
signal;
|
|
20
|
+
constructor(context, id, waitSeconds, signal) {
|
|
21
|
+
this.context = context;
|
|
22
|
+
this.id = id;
|
|
23
|
+
this.waitSeconds = waitSeconds;
|
|
24
|
+
this.signal = signal;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.GetPluginActionExecutionCommand = GetPluginActionExecutionCommand;
|
|
28
|
+
class CancelPluginActionExecutionCommand {
|
|
29
|
+
context;
|
|
30
|
+
id;
|
|
31
|
+
constructor(context, id) {
|
|
32
|
+
this.context = context;
|
|
33
|
+
this.id = id;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CancelPluginActionExecutionCommand = CancelPluginActionExecutionCommand;
|
|
37
|
+
class GetCurrentPluginActionExecutionCommand {
|
|
38
|
+
context;
|
|
39
|
+
constructor(context) {
|
|
40
|
+
this.context = context;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.GetCurrentPluginActionExecutionCommand = GetCurrentPluginActionExecutionCommand;
|
|
44
|
+
//# sourceMappingURL=plugin-action-execution.command.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { PluginActionExecutionStatus, PluginActionTrigger } from '../../enums/plugin-action-execution-status.enum';
|
|
2
|
+
import type { PluginCredentialHandleDto } from './plugin-installation.dto';
|
|
3
|
+
export interface StartedPluginActionExecution {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly status: PluginActionExecutionStatus.RUNNING;
|
|
6
|
+
}
|
|
7
|
+
export interface PluginActionExecutionView {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly action: string;
|
|
10
|
+
readonly status: PluginActionExecutionStatus;
|
|
11
|
+
readonly trigger: PluginActionTrigger;
|
|
12
|
+
readonly startedAt: Date | null;
|
|
13
|
+
readonly deadlineAt: Date | null;
|
|
14
|
+
readonly finishedAt: Date | null;
|
|
15
|
+
readonly result: unknown;
|
|
16
|
+
readonly error: {
|
|
17
|
+
readonly code: string;
|
|
18
|
+
readonly message: string;
|
|
19
|
+
} | null;
|
|
20
|
+
}
|
|
21
|
+
export interface PluginActionWorkerContext {
|
|
22
|
+
readonly executionId: string;
|
|
23
|
+
readonly action: string;
|
|
24
|
+
readonly input: unknown;
|
|
25
|
+
readonly trigger: PluginActionTrigger;
|
|
26
|
+
readonly deadlineAt: Date;
|
|
27
|
+
readonly plugin: {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly repositoryId: string;
|
|
30
|
+
};
|
|
31
|
+
readonly pluginVersion: string;
|
|
32
|
+
readonly installationId: string;
|
|
33
|
+
readonly projectId: string;
|
|
34
|
+
readonly userId: string;
|
|
35
|
+
readonly credentialHandles: PluginCredentialHandleDto[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PluginAuditAction } from '../../enums/plugin-audit-action.enum';
|
|
2
|
+
import { PluginPublicationScope } from '../../enums/plugin-publication-scope.enum';
|
|
3
|
+
export type PluginHistoryAction = Exclude<PluginAuditAction, PluginAuditAction.UPDATE_CHECK>;
|
|
4
|
+
export type PluginHistoryActorDto = {
|
|
5
|
+
readonly kind: 'you';
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: 'member';
|
|
8
|
+
readonly name: string;
|
|
9
|
+
} | {
|
|
10
|
+
readonly kind: 'deployment';
|
|
11
|
+
};
|
|
12
|
+
export interface PluginHistoryPluginDto {
|
|
13
|
+
readonly pluginId: string;
|
|
14
|
+
readonly displayName: string;
|
|
15
|
+
readonly ownerName: string;
|
|
16
|
+
}
|
|
17
|
+
export interface PluginHistoryEventDto {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly occurredAt: Date;
|
|
20
|
+
readonly action: PluginHistoryAction;
|
|
21
|
+
readonly scope: PluginPublicationScope | null;
|
|
22
|
+
readonly plugin: PluginHistoryPluginDto;
|
|
23
|
+
readonly actor: PluginHistoryActorDto | null;
|
|
24
|
+
readonly version: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface PluginHistoryPageDto {
|
|
27
|
+
readonly items: PluginHistoryEventDto[];
|
|
28
|
+
readonly nextCursor: string | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PluginActionExecutionStatus, type PluginActionTrigger } from '../../enums/plugin-action-execution-status.enum';
|
|
2
|
+
import type { PluginCredentialHandleDto } from '../domain/plugin-installation.dto';
|
|
3
|
+
export declare class StartPluginActionExecutionApiDto {
|
|
4
|
+
input?: unknown;
|
|
5
|
+
}
|
|
6
|
+
export declare class PluginActionExecutionQueryApiDto {
|
|
7
|
+
waitSeconds?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class StartedPluginActionExecutionApiDto {
|
|
10
|
+
id: string;
|
|
11
|
+
status: PluginActionExecutionStatus.RUNNING;
|
|
12
|
+
}
|
|
13
|
+
export declare class PluginActionExecutionErrorApiDto {
|
|
14
|
+
code: string;
|
|
15
|
+
message: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class PluginActionExecutionApiDto {
|
|
18
|
+
id: string;
|
|
19
|
+
action: string;
|
|
20
|
+
status: PluginActionExecutionStatus;
|
|
21
|
+
trigger: PluginActionTrigger;
|
|
22
|
+
startedAt: Date | null;
|
|
23
|
+
deadlineAt: Date | null;
|
|
24
|
+
finishedAt: Date | null;
|
|
25
|
+
result: unknown;
|
|
26
|
+
error: PluginActionExecutionErrorApiDto | null;
|
|
27
|
+
}
|
|
28
|
+
export declare class PluginActionWorkerPluginApiDto {
|
|
29
|
+
id: string;
|
|
30
|
+
repositoryId: string;
|
|
31
|
+
}
|
|
32
|
+
export declare class PluginActionWorkerContextApiDto {
|
|
33
|
+
executionId: string;
|
|
34
|
+
action: string;
|
|
35
|
+
input: unknown;
|
|
36
|
+
trigger: PluginActionTrigger;
|
|
37
|
+
deadlineAt: Date;
|
|
38
|
+
plugin: PluginActionWorkerPluginApiDto;
|
|
39
|
+
pluginVersion: string;
|
|
40
|
+
installationId: string;
|
|
41
|
+
projectId: string;
|
|
42
|
+
userId: string;
|
|
43
|
+
credentialHandles: PluginCredentialHandleDto[];
|
|
44
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PluginActionWorkerContextApiDto = exports.PluginActionWorkerPluginApiDto = exports.PluginActionExecutionApiDto = exports.PluginActionExecutionErrorApiDto = exports.StartedPluginActionExecutionApiDto = exports.PluginActionExecutionQueryApiDto = exports.StartPluginActionExecutionApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const plugin_action_limits_1 = require("../../constants/plugin-action-limits");
|
|
17
|
+
const plugin_action_execution_status_enum_1 = require("../../enums/plugin-action-execution-status.enum");
|
|
18
|
+
class StartPluginActionExecutionApiDto {
|
|
19
|
+
input;
|
|
20
|
+
}
|
|
21
|
+
exports.StartPluginActionExecutionApiDto = StartPluginActionExecutionApiDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
24
|
+
description: 'Checked against the action input schema. Absent means null. At most 256 KiB as JSON.',
|
|
25
|
+
}),
|
|
26
|
+
(0, class_validator_1.Allow)(),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], StartPluginActionExecutionApiDto.prototype, "input", void 0);
|
|
29
|
+
const { maxWaitSeconds } = plugin_action_limits_1.PLUGIN_ACTION_LIMITS;
|
|
30
|
+
class PluginActionExecutionQueryApiDto {
|
|
31
|
+
waitSeconds;
|
|
32
|
+
}
|
|
33
|
+
exports.PluginActionExecutionQueryApiDto = PluginActionExecutionQueryApiDto;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
36
|
+
type: 'integer',
|
|
37
|
+
minimum: 0,
|
|
38
|
+
default: 0,
|
|
39
|
+
description: `Holds the answer until the execution ends or the time passes. Above ${maxWaitSeconds}, ${maxWaitSeconds} is used.`,
|
|
40
|
+
}),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
43
|
+
if (value === undefined)
|
|
44
|
+
return value;
|
|
45
|
+
return typeof value === 'string' && /^\d+$/.test(value)
|
|
46
|
+
? Math.min(Number(value), maxWaitSeconds)
|
|
47
|
+
: Number.NaN;
|
|
48
|
+
}),
|
|
49
|
+
(0, class_validator_1.IsInt)({ message: 'waitSeconds must be a whole number of seconds' }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], PluginActionExecutionQueryApiDto.prototype, "waitSeconds", void 0);
|
|
52
|
+
class StartedPluginActionExecutionApiDto {
|
|
53
|
+
id;
|
|
54
|
+
status;
|
|
55
|
+
}
|
|
56
|
+
exports.StartedPluginActionExecutionApiDto = StartedPluginActionExecutionApiDto;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], StartedPluginActionExecutionApiDto.prototype, "id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({ enum: [plugin_action_execution_status_enum_1.PluginActionExecutionStatus.RUNNING] }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], StartedPluginActionExecutionApiDto.prototype, "status", void 0);
|
|
65
|
+
class PluginActionExecutionErrorApiDto {
|
|
66
|
+
code;
|
|
67
|
+
message;
|
|
68
|
+
}
|
|
69
|
+
exports.PluginActionExecutionErrorApiDto = PluginActionExecutionErrorApiDto;
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: "The failure code for FAILED, set by the plugin's backend or by OWOX (`BACKEND_*`), or the status for CANCELLED and TIMED_OUT.",
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], PluginActionExecutionErrorApiDto.prototype, "code", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], PluginActionExecutionErrorApiDto.prototype, "message", void 0);
|
|
80
|
+
class PluginActionExecutionApiDto {
|
|
81
|
+
id;
|
|
82
|
+
action;
|
|
83
|
+
status;
|
|
84
|
+
trigger;
|
|
85
|
+
startedAt;
|
|
86
|
+
deadlineAt;
|
|
87
|
+
finishedAt;
|
|
88
|
+
result;
|
|
89
|
+
error;
|
|
90
|
+
}
|
|
91
|
+
exports.PluginActionExecutionApiDto = PluginActionExecutionApiDto;
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], PluginActionExecutionApiDto.prototype, "id", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)(),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], PluginActionExecutionApiDto.prototype, "action", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, swagger_1.ApiProperty)({ enum: plugin_action_execution_status_enum_1.PluginActionExecutionStatus }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], PluginActionExecutionApiDto.prototype, "status", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)({ enum: ['frontend'] }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], PluginActionExecutionApiDto.prototype, "trigger", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)({ type: Date, nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], PluginActionExecutionApiDto.prototype, "startedAt", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, swagger_1.ApiProperty)({ type: Date, nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], PluginActionExecutionApiDto.prototype, "deadlineAt", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiProperty)({ type: Date, nullable: true }),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], PluginActionExecutionApiDto.prototype, "finishedAt", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, swagger_1.ApiProperty)({ description: 'SUCCEEDED only. Cleared 24 hours after the execution ends.' }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], PluginActionExecutionApiDto.prototype, "result", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiProperty)({
|
|
126
|
+
type: PluginActionExecutionErrorApiDto,
|
|
127
|
+
nullable: true,
|
|
128
|
+
description: 'FAILED, CANCELLED and TIMED_OUT only.',
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], PluginActionExecutionApiDto.prototype, "error", void 0);
|
|
132
|
+
class PluginActionWorkerPluginApiDto {
|
|
133
|
+
id;
|
|
134
|
+
repositoryId;
|
|
135
|
+
}
|
|
136
|
+
exports.PluginActionWorkerPluginApiDto = PluginActionWorkerPluginApiDto;
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, swagger_1.ApiProperty)(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], PluginActionWorkerPluginApiDto.prototype, "id", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, swagger_1.ApiProperty)({
|
|
143
|
+
description: 'The GitHub repository id of the plugin, the same on every deployment and after a rename or transfer.',
|
|
144
|
+
}),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], PluginActionWorkerPluginApiDto.prototype, "repositoryId", void 0);
|
|
147
|
+
class PluginActionWorkerContextApiDto {
|
|
148
|
+
executionId;
|
|
149
|
+
action;
|
|
150
|
+
input;
|
|
151
|
+
trigger;
|
|
152
|
+
deadlineAt;
|
|
153
|
+
plugin;
|
|
154
|
+
pluginVersion;
|
|
155
|
+
installationId;
|
|
156
|
+
projectId;
|
|
157
|
+
userId;
|
|
158
|
+
credentialHandles;
|
|
159
|
+
}
|
|
160
|
+
exports.PluginActionWorkerContextApiDto = PluginActionWorkerContextApiDto;
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, swagger_1.ApiProperty)(),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], PluginActionWorkerContextApiDto.prototype, "executionId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, swagger_1.ApiProperty)(),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], PluginActionWorkerContextApiDto.prototype, "action", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, swagger_1.ApiProperty)({ description: 'The input the execution was started with.' }),
|
|
171
|
+
__metadata("design:type", Object)
|
|
172
|
+
], PluginActionWorkerContextApiDto.prototype, "input", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, swagger_1.ApiProperty)({ enum: ['frontend'] }),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], PluginActionWorkerContextApiDto.prototype, "trigger", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, swagger_1.ApiProperty)(),
|
|
179
|
+
__metadata("design:type", Date)
|
|
180
|
+
], PluginActionWorkerContextApiDto.prototype, "deadlineAt", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, swagger_1.ApiProperty)({ type: PluginActionWorkerPluginApiDto }),
|
|
183
|
+
__metadata("design:type", PluginActionWorkerPluginApiDto)
|
|
184
|
+
], PluginActionWorkerContextApiDto.prototype, "plugin", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, swagger_1.ApiProperty)({ description: 'Semver of the release the execution started on.' }),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], PluginActionWorkerContextApiDto.prototype, "pluginVersion", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, swagger_1.ApiProperty)(),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], PluginActionWorkerContextApiDto.prototype, "installationId", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, swagger_1.ApiProperty)(),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], PluginActionWorkerContextApiDto.prototype, "projectId", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, swagger_1.ApiProperty)(),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], PluginActionWorkerContextApiDto.prototype, "userId", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, swagger_1.ApiProperty)({
|
|
203
|
+
type: [Object],
|
|
204
|
+
description: "Handles for the exact Credentials of the plugin's current release. AI Credentials are not available in a backend action.",
|
|
205
|
+
}),
|
|
206
|
+
__metadata("design:type", Array)
|
|
207
|
+
], PluginActionWorkerContextApiDto.prototype, "credentialHandles", void 0);
|
|
208
|
+
//# sourceMappingURL=plugin-action-api.dto.js.map
|
|
@@ -45,6 +45,7 @@ class PluginGalleryEntryApiDto {
|
|
|
45
45
|
addedAt;
|
|
46
46
|
nextCheckAt;
|
|
47
47
|
credentialRequirements;
|
|
48
|
+
backendOrigin;
|
|
48
49
|
}
|
|
49
50
|
exports.PluginGalleryEntryApiDto = PluginGalleryEntryApiDto;
|
|
50
51
|
__decorate([
|
|
@@ -112,4 +113,10 @@ __decorate([
|
|
|
112
113
|
}),
|
|
113
114
|
__metadata("design:type", Array)
|
|
114
115
|
], PluginGalleryEntryApiDto.prototype, "credentialRequirements", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
118
|
+
description: 'Origin of the server the current version runs backend actions on. Omitted when it declares none.',
|
|
119
|
+
}),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], PluginGalleryEntryApiDto.prototype, "backendOrigin", void 0);
|
|
115
122
|
//# sourceMappingURL=plugin-gallery-api.dto.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type PluginHistoryType } from '../../dto/domain/list-plugin-history.command';
|
|
2
|
+
import { PluginPublicationScope } from '../../enums/plugin-publication-scope.enum';
|
|
3
|
+
export declare class ListPluginHistoryQueryApiDto {
|
|
4
|
+
type?: PluginHistoryType;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class PluginHistoryPluginApiDto {
|
|
9
|
+
pluginId: string;
|
|
10
|
+
displayName: string;
|
|
11
|
+
ownerName: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class PluginHistoryActorApiDto {
|
|
14
|
+
kind: 'you' | 'member' | 'deployment';
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class PluginHistoryEventApiDto {
|
|
18
|
+
id: string;
|
|
19
|
+
occurredAt: string;
|
|
20
|
+
action: string;
|
|
21
|
+
scope: PluginPublicationScope | null;
|
|
22
|
+
plugin: PluginHistoryPluginApiDto;
|
|
23
|
+
actor: PluginHistoryActorApiDto | null;
|
|
24
|
+
version: string | null;
|
|
25
|
+
}
|
|
26
|
+
export declare class PluginHistoryPageApiDto {
|
|
27
|
+
items: PluginHistoryEventApiDto[];
|
|
28
|
+
nextCursor: string | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PluginHistoryPageApiDto = exports.PluginHistoryEventApiDto = exports.PluginHistoryActorApiDto = exports.PluginHistoryPluginApiDto = exports.ListPluginHistoryQueryApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const list_plugin_history_command_1 = require("../../dto/domain/list-plugin-history.command");
|
|
17
|
+
const plugin_audit_action_enum_1 = require("../../enums/plugin-audit-action.enum");
|
|
18
|
+
const plugin_publication_scope_enum_1 = require("../../enums/plugin-publication-scope.enum");
|
|
19
|
+
const HISTORY_TYPES = ['all', 'installations', 'publications'];
|
|
20
|
+
const HISTORY_ACTIONS = Object.values(plugin_audit_action_enum_1.PluginAuditAction).filter(action => action !== plugin_audit_action_enum_1.PluginAuditAction.UPDATE_CHECK);
|
|
21
|
+
class ListPluginHistoryQueryApiDto {
|
|
22
|
+
type;
|
|
23
|
+
limit;
|
|
24
|
+
cursor;
|
|
25
|
+
}
|
|
26
|
+
exports.ListPluginHistoryQueryApiDto = ListPluginHistoryQueryApiDto;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: HISTORY_TYPES, default: 'all' }),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsIn)(HISTORY_TYPES),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ListPluginHistoryQueryApiDto.prototype, "type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
35
|
+
type: 'integer',
|
|
36
|
+
minimum: 1,
|
|
37
|
+
maximum: 100,
|
|
38
|
+
default: list_plugin_history_command_1.PLUGIN_HISTORY_DEFAULT_LIMIT,
|
|
39
|
+
}),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
42
|
+
if (value === undefined || typeof value === 'number') {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return typeof value === 'string' && /^\d+$/.test(value) ? Number(value) : Number.NaN;
|
|
46
|
+
}),
|
|
47
|
+
(0, class_validator_1.IsInt)(),
|
|
48
|
+
(0, class_validator_1.Min)(1),
|
|
49
|
+
(0, class_validator_1.Max)(100),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ListPluginHistoryQueryApiDto.prototype, "limit", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'nextCursor of the previous page.' }),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsUUID)('all'),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ListPluginHistoryQueryApiDto.prototype, "cursor", void 0);
|
|
58
|
+
class PluginHistoryPluginApiDto {
|
|
59
|
+
pluginId;
|
|
60
|
+
displayName;
|
|
61
|
+
ownerName;
|
|
62
|
+
}
|
|
63
|
+
exports.PluginHistoryPluginApiDto = PluginHistoryPluginApiDto;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], PluginHistoryPluginApiDto.prototype, "pluginId", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], PluginHistoryPluginApiDto.prototype, "displayName", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], PluginHistoryPluginApiDto.prototype, "ownerName", void 0);
|
|
76
|
+
class PluginHistoryActorApiDto {
|
|
77
|
+
kind;
|
|
78
|
+
name;
|
|
79
|
+
}
|
|
80
|
+
exports.PluginHistoryActorApiDto = PluginHistoryActorApiDto;
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({ enum: ['you', 'member', 'deployment'] }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], PluginHistoryActorApiDto.prototype, "kind", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Set for kind member only.' }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], PluginHistoryActorApiDto.prototype, "name", void 0);
|
|
89
|
+
class PluginHistoryEventApiDto {
|
|
90
|
+
id;
|
|
91
|
+
occurredAt;
|
|
92
|
+
action;
|
|
93
|
+
scope;
|
|
94
|
+
plugin;
|
|
95
|
+
actor;
|
|
96
|
+
version;
|
|
97
|
+
}
|
|
98
|
+
exports.PluginHistoryEventApiDto = PluginHistoryEventApiDto;
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], PluginHistoryEventApiDto.prototype, "id", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({ format: 'date-time' }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], PluginHistoryEventApiDto.prototype, "occurredAt", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({ enum: HISTORY_ACTIONS }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], PluginHistoryEventApiDto.prototype, "action", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)({
|
|
113
|
+
enum: plugin_publication_scope_enum_1.PluginPublicationScope,
|
|
114
|
+
nullable: true,
|
|
115
|
+
description: 'Set for publish and unpublish only.',
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], PluginHistoryEventApiDto.prototype, "scope", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)({ type: PluginHistoryPluginApiDto }),
|
|
121
|
+
__metadata("design:type", PluginHistoryPluginApiDto)
|
|
122
|
+
], PluginHistoryEventApiDto.prototype, "plugin", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)({
|
|
125
|
+
type: PluginHistoryActorApiDto,
|
|
126
|
+
nullable: true,
|
|
127
|
+
description: 'Null when the actor is not disclosed: an automatic update, or someone outside this project.',
|
|
128
|
+
}),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], PluginHistoryEventApiDto.prototype, "actor", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiProperty)({ type: String, nullable: true, description: 'The version an update made current.' }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], PluginHistoryEventApiDto.prototype, "version", void 0);
|
|
135
|
+
class PluginHistoryPageApiDto {
|
|
136
|
+
items;
|
|
137
|
+
nextCursor;
|
|
138
|
+
}
|
|
139
|
+
exports.PluginHistoryPageApiDto = PluginHistoryPageApiDto;
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({ type: [PluginHistoryEventApiDto] }),
|
|
142
|
+
__metadata("design:type", Array)
|
|
143
|
+
], PluginHistoryPageApiDto.prototype, "items", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiProperty)({ type: String, nullable: true }),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], PluginHistoryPageApiDto.prototype, "nextCursor", void 0);
|
|
148
|
+
//# sourceMappingURL=plugin-history-api.dto.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PluginLookupApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class PluginLookupApiDto {
|
|
15
|
+
pluginId;
|
|
16
|
+
}
|
|
17
|
+
exports.PluginLookupApiDto = PluginLookupApiDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ description: 'The plugin id in this deployment.' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PluginLookupApiDto.prototype, "pluginId", void 0);
|
|
22
|
+
//# sourceMappingURL=plugin-lookup-api.dto.js.map
|
|
@@ -36,3 +36,20 @@ export declare class PublicationResponseApiDto {
|
|
|
36
36
|
export declare class UpdatePluginByRepositoryApiDto {
|
|
37
37
|
repository: string;
|
|
38
38
|
}
|
|
39
|
+
export declare class CheckPluginReleaseApiDto extends UpdatePluginByRepositoryApiDto {
|
|
40
|
+
ref: string;
|
|
41
|
+
version?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class PluginReleaseCheckIssueApiDto {
|
|
44
|
+
code: ReleaseRejectionCode;
|
|
45
|
+
detail: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class PluginReleaseCheckResultApiDto {
|
|
48
|
+
pluginId: string;
|
|
49
|
+
repository: string;
|
|
50
|
+
commitSha: string | null;
|
|
51
|
+
candidateVersion: string | null;
|
|
52
|
+
baselineVersion: string | null;
|
|
53
|
+
collectionsEvaluated: boolean;
|
|
54
|
+
issues: PluginReleaseCheckIssueApiDto[];
|
|
55
|
+
}
|