@breadstone/archipel-mcp 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -0
- package/data/packages/index.md +42 -0
- package/data/packages/platform-authentication/api/Class.AnonymousAuthGuard.md +45 -0
- package/data/packages/platform-authentication/api/Class.AuthModule.md +72 -0
- package/data/packages/platform-authentication/api/Class.AuthSubjectPort.md +100 -0
- package/data/packages/platform-authentication/api/Class.AuthTokenService.md +64 -0
- package/data/packages/platform-authentication/api/Class.ChallengeService.md +136 -0
- package/data/packages/platform-authentication/api/Class.GithubAuthGuard.md +45 -0
- package/data/packages/platform-authentication/api/Class.JwtAuthGuard.md +45 -0
- package/data/packages/platform-authentication/api/Class.JwtPayloadBase.md +116 -0
- package/data/packages/platform-authentication/api/Class.LastActiveMiddleware.md +76 -0
- package/data/packages/platform-authentication/api/Class.LocalAuthGuard.md +45 -0
- package/data/packages/platform-authentication/api/Class.MfaService.md +257 -0
- package/data/packages/platform-authentication/api/Class.MfaSubjectPort.md +75 -0
- package/data/packages/platform-authentication/api/Class.RolesGuard.md +65 -0
- package/data/packages/platform-authentication/api/Class.SessionMappingProfile.md +65 -0
- package/data/packages/platform-authentication/api/Class.SessionPersistencePort.md +170 -0
- package/data/packages/platform-authentication/api/Class.SessionResponse.md +157 -0
- package/data/packages/platform-authentication/api/Class.SessionService.md +167 -0
- package/data/packages/platform-authentication/api/Class.SocialAuthGuard.md +66 -0
- package/data/packages/platform-authentication/api/Class.SocialAuthPort.md +53 -0
- package/data/packages/platform-authentication/api/Class.TokenEnricherPort.md +52 -0
- package/data/packages/platform-authentication/api/Class.VerificationService.md +159 -0
- package/data/packages/platform-authentication/api/Class.VerificationSubjectPort.md +121 -0
- package/data/packages/platform-authentication/api/Interface.IAuthModuleOptions.md +89 -0
- package/data/packages/platform-authentication/api/Interface.IAuthSubject.md +112 -0
- package/data/packages/platform-authentication/api/Interface.IMfaChallengePayload.md +87 -0
- package/data/packages/platform-authentication/api/Interface.IMfaChallengeState.md +123 -0
- package/data/packages/platform-authentication/api/Interface.IMfaConfirmation.md +27 -0
- package/data/packages/platform-authentication/api/Interface.IMfaSetup.md +63 -0
- package/data/packages/platform-authentication/api/Interface.IMfaSubject.md +136 -0
- package/data/packages/platform-authentication/api/Interface.IMfaSubjectUpdate.md +96 -0
- package/data/packages/platform-authentication/api/Interface.ISessionRecord.md +165 -0
- package/data/packages/platform-authentication/api/Interface.ISignInResult.md +87 -0
- package/data/packages/platform-authentication/api/Interface.ISocialProfile.md +63 -0
- package/data/packages/platform-authentication/api/Interface.IStoreSessionArgs.md +75 -0
- package/data/packages/platform-authentication/api/Interface.IVerifiableSubject.md +76 -0
- package/data/packages/platform-authentication/api/_media/ENVIRONMENT_VARIABLES.md +151 -0
- package/data/packages/platform-authentication/api/index.md +508 -0
- package/data/packages/platform-authentication/index.md +635 -0
- package/data/packages/platform-blob-storage/api/Class.BlobHealthIndicator.md +84 -0
- package/data/packages/platform-blob-storage/api/Class.BlobModule.md +54 -0
- package/data/packages/platform-blob-storage/api/Class.BlobObjectPersistencePort.md +80 -0
- package/data/packages/platform-blob-storage/api/Class.BlobService.md +253 -0
- package/data/packages/platform-blob-storage/api/Class.BlobVariantPersistencePort.md +56 -0
- package/data/packages/platform-blob-storage/api/Class.VercelBlobProvider.md +202 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobDeleteRequest.md +43 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobDownloadRequest.md +53 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobDownloadResult.md +69 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobModuleOptions.md +53 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobObjectMetadata.md +143 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobProvider.md +119 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobSignedUrlRequest.md +53 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobUploadRequest.md +103 -0
- package/data/packages/platform-blob-storage/api/Interface.IBlobUploadResult.md +33 -0
- package/data/packages/platform-blob-storage/api/Interface.ICustomBlobProviderRegistration.md +33 -0
- package/data/packages/platform-blob-storage/api/Interface.IVercelBlobProviderOptions.md +73 -0
- package/data/packages/platform-blob-storage/api/Interface.IVercelBlobProviderRegistration.md +33 -0
- package/data/packages/platform-blob-storage/api/TypeAlias.BlobDownloadResponseType.md +17 -0
- package/data/packages/platform-blob-storage/api/TypeAlias.BlobUploadBody.md +17 -0
- package/data/packages/platform-blob-storage/api/TypeAlias.IBlobProviderRegistration.md +17 -0
- package/data/packages/platform-blob-storage/api/index.md +111 -0
- package/data/packages/platform-blob-storage/index.md +280 -0
- package/data/packages/platform-core/api/Class.AppHealthIndicator.md +51 -0
- package/data/packages/platform-core/api/Class.BcryptService.md +69 -0
- package/data/packages/platform-core/api/Class.BlobResourceStrategy.md +196 -0
- package/data/packages/platform-core/api/Class.BooleanUtils.md +83 -0
- package/data/packages/platform-core/api/Class.CUIDGenerator.md +121 -0
- package/data/packages/platform-core/api/Class.CasingInterceptor.md +84 -0
- package/data/packages/platform-core/api/Class.CatchUtils.md +94 -0
- package/data/packages/platform-core/api/Class.ConfigModule.md +70 -0
- package/data/packages/platform-core/api/Class.ConfigRegistry.md +116 -0
- package/data/packages/platform-core/api/Class.ConfigService.md +139 -0
- package/data/packages/platform-core/api/Class.ConfigStrategyBase.md +110 -0
- package/data/packages/platform-core/api/Class.ContentTemplateEngine.md +64 -0
- package/data/packages/platform-core/api/Class.CryptoService.md +50 -0
- package/data/packages/platform-core/api/Class.DateTimeUtils.md +102 -0
- package/data/packages/platform-core/api/Class.DeviceParserService.md +53 -0
- package/data/packages/platform-core/api/Class.EmbeddedResourceStrategy.md +216 -0
- package/data/packages/platform-core/api/Class.EnvironmentConfigStrategy.md +144 -0
- package/data/packages/platform-core/api/Class.ErrorTemplateService.md +110 -0
- package/data/packages/platform-core/api/Class.EventHub.md +164 -0
- package/data/packages/platform-core/api/Class.EventModule.md +23 -0
- package/data/packages/platform-core/api/Class.FileConfigStrategy.md +150 -0
- package/data/packages/platform-core/api/Class.FileResourceStrategy.md +193 -0
- package/data/packages/platform-core/api/Class.GUIDGenerator.md +86 -0
- package/data/packages/platform-core/api/Class.GlobalExceptionFilter.md +67 -0
- package/data/packages/platform-core/api/Class.HealthModule.md +43 -0
- package/data/packages/platform-core/api/Class.HealthOrchestrator.md +65 -0
- package/data/packages/platform-core/api/Class.HostModule.md +33 -0
- package/data/packages/platform-core/api/Class.HostService.md +150 -0
- package/data/packages/platform-core/api/Class.HttpLoggerMiddleware.md +60 -0
- package/data/packages/platform-core/api/Class.IdGeneratorBase.md +88 -0
- package/data/packages/platform-core/api/Class.IdentifierModule.md +41 -0
- package/data/packages/platform-core/api/Class.IntelligenceCapabilityRegistrarBase.md +39 -0
- package/data/packages/platform-core/api/Class.IntelligenceCapabilityRegistry.md +103 -0
- package/data/packages/platform-core/api/Class.IntelligenceModule.md +23 -0
- package/data/packages/platform-core/api/Class.IntelligenceTextGenerator.md +82 -0
- package/data/packages/platform-core/api/Class.LimitRequestSizeMiddleware.md +60 -0
- package/data/packages/platform-core/api/Class.LocalizedTextRequest.md +43 -0
- package/data/packages/platform-core/api/Class.LocalizedTextResponse.md +43 -0
- package/data/packages/platform-core/api/Class.MappingBuilder.md +111 -0
- package/data/packages/platform-core/api/Class.MappingModule.md +47 -0
- package/data/packages/platform-core/api/Class.MappingNotRegisteredError.md +57 -0
- package/data/packages/platform-core/api/Class.MappingProfileBase.md +53 -0
- package/data/packages/platform-core/api/Class.MappingService.md +285 -0
- package/data/packages/platform-core/api/Class.MemoryLayeredCache.md +251 -0
- package/data/packages/platform-core/api/Class.NoopCacheMetricsRecorder.md +157 -0
- package/data/packages/platform-core/api/Class.NormalizedUtils.md +149 -0
- package/data/packages/platform-core/api/Class.OtpService.md +106 -0
- package/data/packages/platform-core/api/Class.PageableRequest.md +43 -0
- package/data/packages/platform-core/api/Class.PageableResponse.md +63 -0
- package/data/packages/platform-core/api/Class.ProblemDetailException.md +62 -0
- package/data/packages/platform-core/api/Class.ProblemDetailExceptionFilter.md +85 -0
- package/data/packages/platform-core/api/Class.QuantityResponse.md +43 -0
- package/data/packages/platform-core/api/Class.RedisLayeredCache.md +275 -0
- package/data/packages/platform-core/api/Class.ResourceManager.md +566 -0
- package/data/packages/platform-core/api/Class.ResourceModule.md +47 -0
- package/data/packages/platform-core/api/Class.ResponseReturn.md +504 -0
- package/data/packages/platform-core/api/Class.SseHub.md +184 -0
- package/data/packages/platform-core/api/Class.SseModule.md +43 -0
- package/data/packages/platform-core/api/Class.TimeStampResponse.md +43 -0
- package/data/packages/platform-core/api/Class.TypeMappingNotRegisteredError.md +58 -0
- package/data/packages/platform-core/api/Class.UUIDGenerator.md +86 -0
- package/data/packages/platform-core/api/Class.UserAvatarGeneratorService.md +48 -0
- package/data/packages/platform-core/api/Class.UserNameGeneratorService.md +65 -0
- package/data/packages/platform-core/api/Interface.IBlobResourceStrategyConfig.md +29 -0
- package/data/packages/platform-core/api/Interface.IBlobServiceAdapter.md +41 -0
- package/data/packages/platform-core/api/Interface.ICacheMetricsRecorder.md +121 -0
- package/data/packages/platform-core/api/Interface.ICacheStats.md +71 -0
- package/data/packages/platform-core/api/Interface.IConfigKey.md +64 -0
- package/data/packages/platform-core/api/Interface.IConfigModuleOptions.md +41 -0
- package/data/packages/platform-core/api/Interface.IConfigRegistryEntry.md +80 -0
- package/data/packages/platform-core/api/Interface.IDeviceInfo.md +81 -0
- package/data/packages/platform-core/api/Interface.IErrorPageParams.md +154 -0
- package/data/packages/platform-core/api/Interface.IEventKey.md +58 -0
- package/data/packages/platform-core/api/Interface.IEventMap.md +17 -0
- package/data/packages/platform-core/api/Interface.IFileResourceStrategyConfig.md +73 -0
- package/data/packages/platform-core/api/Interface.IHealthCheckResult.md +47 -0
- package/data/packages/platform-core/api/Interface.IHealthIndicator.md +42 -0
- package/data/packages/platform-core/api/Interface.IHostContentParams.md +233 -0
- package/data/packages/platform-core/api/Interface.IIdGenerator.md +58 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceArtifact.md +31 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceCapability.md +62 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityMetadata.md +61 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityPayload.md +41 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityRegistry.md +69 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityResult.md +41 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceCompletionUsage.md +41 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceContext.md +63 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceContextBuilder.md +32 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationMessageSnapshot.md +61 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationSnapshot.md +51 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceFollowUpQuestion.md +41 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceIntent.md +41 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceIntentEntity.md +31 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceMessageModel.md +61 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceMessagePayload.md +31 -0
- package/data/packages/platform-core/api/Interface.IIntelligencePrompt.md +31 -0
- package/data/packages/platform-core/api/Interface.IIntelligencePromptMessage.md +31 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceProviderConfiguration.md +81 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceResponseMessage.md +31 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceTextCompletion.md +53 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerationOptions.md +41 -0
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerator.md +46 -0
- package/data/packages/platform-core/api/Interface.ILayeredCache.md +194 -0
- package/data/packages/platform-core/api/Interface.ILayeredCacheOptions.md +71 -0
- package/data/packages/platform-core/api/Interface.IMappingBuilder.md +77 -0
- package/data/packages/platform-core/api/Interface.IMappingKey.md +59 -0
- package/data/packages/platform-core/api/Interface.IMappingProfile.md +33 -0
- package/data/packages/platform-core/api/Interface.IOtpService.md +78 -0
- package/data/packages/platform-core/api/Interface.IOtpUriOptions.md +47 -0
- package/data/packages/platform-core/api/Interface.IRedisLayeredCacheOptions.md +108 -0
- package/data/packages/platform-core/api/Interface.IResourceManagerConfig.md +72 -0
- package/data/packages/platform-core/api/Interface.IResourceMetadata.md +95 -0
- package/data/packages/platform-core/api/Interface.IResourceResult.md +35 -0
- package/data/packages/platform-core/api/Interface.IResourceStrategy.md +135 -0
- package/data/packages/platform-core/api/Interface.ISseEventData.md +37 -0
- package/data/packages/platform-core/api/Interface.ISseHub.md +92 -0
- package/data/packages/platform-core/api/Namespace.ISseEventData.md +34 -0
- package/data/packages/platform-core/api/TypeAlias.CamelCase.md +19 -0
- package/data/packages/platform-core/api/TypeAlias.IntelligenceConversationMessageRole.md +16 -0
- package/data/packages/platform-core/api/TypeAlias.IntelligenceProviderName.md +15 -0
- package/data/packages/platform-core/api/TypeAlias.ProblemDetail.md +29 -0
- package/data/packages/platform-core/api/TypeAlias.ProblemDetailTypeUrlResolver.md +26 -0
- package/data/packages/platform-core/api/TypeAlias.SetOptional.md +22 -0
- package/data/packages/platform-core/api/TypeAlias.StringValue.md +13 -0
- package/data/packages/platform-core/api/index.md +645 -0
- package/data/packages/platform-core/index.md +483 -0
- package/data/packages/platform-database/api/Class.DatabaseHealthIndicator.md +80 -0
- package/data/packages/platform-database/api/Class.DatabaseModule.md +75 -0
- package/data/packages/platform-database/api/Class.DatabaseService.md +165 -0
- package/data/packages/platform-database/api/Class.PrismaService.md +116 -0
- package/data/packages/platform-database/api/Class.RepositoryBase.md +526 -0
- package/data/packages/platform-database/api/Class.RepositoryExceptionFilter.md +60 -0
- package/data/packages/platform-database/api/Interface.IDatabaseModuleConfig.md +27 -0
- package/data/packages/platform-database/api/Interface.IPaginateOptions.md +33 -0
- package/data/packages/platform-database/api/Interface.IPaginatedResult.md +82 -0
- package/data/packages/platform-database/api/Interface.IRepositoryQuery.md +56 -0
- package/data/packages/platform-database/api/Interface.ITransactionalRepositoryQuery.md +55 -0
- package/data/packages/platform-database/api/TypeAlias.DelegateArgs.md +23 -0
- package/data/packages/platform-database/api/TypeAlias.DelegateReturnTypes.md +23 -0
- package/data/packages/platform-database/api/TypeAlias.PaginateFunction.md +36 -0
- package/data/packages/platform-database/api/TypeAlias.QueryResultType.md +32 -0
- package/data/packages/platform-database/api/TypeAlias.TransactionalQueryResultType.md +31 -0
- package/data/packages/platform-database/api/index.md +183 -0
- package/data/packages/platform-database/index.md +300 -0
- package/data/packages/platform-documents/api/Class.BaseDocumentRenderer.md +103 -0
- package/data/packages/platform-documents/api/Class.DocumentEngine.md +85 -0
- package/data/packages/platform-documents/api/Class.DocumentModule.md +52 -0
- package/data/packages/platform-documents/api/Class.SharpImageProcessor.md +136 -0
- package/data/packages/platform-documents/api/Interface.IDocumentModuleOptions.md +100 -0
- package/data/packages/platform-documents/api/Interface.IDocumentPlaceholderDetail.md +75 -0
- package/data/packages/platform-documents/api/Interface.IDocumentProbeReport.md +123 -0
- package/data/packages/platform-documents/api/Interface.IDocumentRenderer.md +52 -0
- package/data/packages/platform-documents/api/Interface.IImagePayload.md +63 -0
- package/data/packages/platform-documents/api/Interface.IImageProcessor.md +100 -0
- package/data/packages/platform-documents/api/Interface.IRenderOptions.md +69 -0
- package/data/packages/platform-documents/api/Interface.IRenderResult.md +63 -0
- package/data/packages/platform-documents/api/TypeAlias.DocumentFormat.md +19 -0
- package/data/packages/platform-documents/api/TypeAlias.EngineType.md +19 -0
- package/data/packages/platform-documents/api/TypeAlias.ImageMimeType.md +19 -0
- package/data/packages/platform-documents/api/TypeAlias.TemplateFormat.md +19 -0
- package/data/packages/platform-documents/api/TypeAlias.TemplateType.md +19 -0
- package/data/packages/platform-documents/api/index.md +91 -0
- package/data/packages/platform-documents/index.md +219 -0
- package/data/packages/platform-logging/api/Class.AnalyticsService.md +113 -0
- package/data/packages/platform-logging/api/Class.LoggerModule.md +25 -0
- package/data/packages/platform-logging/api/index.md +42 -0
- package/data/packages/platform-logging/index.md +92 -0
- package/data/packages/platform-mailing/api/Class.BlobTemplateFetchStrategy.md +67 -0
- package/data/packages/platform-mailing/api/Class.DeliveryStrategyBase.md +55 -0
- package/data/packages/platform-mailing/api/Class.FileTemplateFetchStrategy.md +65 -0
- package/data/packages/platform-mailing/api/Class.LogDeliveryStrategy.md +82 -0
- package/data/packages/platform-mailing/api/Class.MailHealthIndicator.md +83 -0
- package/data/packages/platform-mailing/api/Class.MailModule.md +27 -0
- package/data/packages/platform-mailing/api/Class.MailService.md +101 -0
- package/data/packages/platform-mailing/api/Class.MailTemplateEngine.md +98 -0
- package/data/packages/platform-mailing/api/Class.MailVerificationService.md +90 -0
- package/data/packages/platform-mailing/api/Class.MailgunDeliveryStrategy.md +82 -0
- package/data/packages/platform-mailing/api/Class.PostmarkDeliveryStrategy.md +82 -0
- package/data/packages/platform-mailing/api/Class.ResendDeliveryStrategy.md +82 -0
- package/data/packages/platform-mailing/api/Class.SendGridDeliveryStrategy.md +82 -0
- package/data/packages/platform-mailing/api/Class.SmtpDeliveryStrategy.md +82 -0
- package/data/packages/platform-mailing/api/Class.TemplateFetchStrategyBase.md +42 -0
- package/data/packages/platform-mailing/api/Interface.IMailEvents.md +71 -0
- package/data/packages/platform-mailing/api/Interface.IMailTemplateVariants.md +35 -0
- package/data/packages/platform-mailing/api/TypeAlias.MailTemplateFormat.md +19 -0
- package/data/packages/platform-mailing/api/index.md +404 -0
- package/data/packages/platform-mailing/index.md +335 -0
- package/data/packages/platform-mcp/api/Class.McpDiscoveryService.md +65 -0
- package/data/packages/platform-mcp/api/Class.McpModule.md +83 -0
- package/data/packages/platform-mcp/api/Class.McpRegistryService.md +147 -0
- package/data/packages/platform-mcp/api/Class.McpServerService.md +197 -0
- package/data/packages/platform-mcp/api/Interface.IMcpHandlerMetadata.md +47 -0
- package/data/packages/platform-mcp/api/Interface.IMcpModuleAsyncOptions.md +76 -0
- package/data/packages/platform-mcp/api/Interface.IMcpModuleOptions.md +126 -0
- package/data/packages/platform-mcp/api/Interface.IMcpModuleOptionsFactory.md +28 -0
- package/data/packages/platform-mcp/api/Interface.IMcpPromptMetadata.md +59 -0
- package/data/packages/platform-mcp/api/Interface.IMcpResourceMetadata.md +73 -0
- package/data/packages/platform-mcp/api/Interface.IMcpToolMetadata.md +83 -0
- package/data/packages/platform-mcp/api/Interface.IRegisteredPrompt.md +41 -0
- package/data/packages/platform-mcp/api/Interface.IRegisteredResource.md +41 -0
- package/data/packages/platform-mcp/api/Interface.IRegisteredTool.md +41 -0
- package/data/packages/platform-mcp/api/Interface.ISseTransportOptions.md +23 -0
- package/data/packages/platform-mcp/api/Interface.IStreamableHttpTransportOptions.md +39 -0
- package/data/packages/platform-mcp/api/index.md +123 -0
- package/data/packages/platform-mcp/index.md +299 -0
- package/data/packages/platform-openapi/api/Class.SwaggerFeatureDiscovery.md +71 -0
- package/data/packages/platform-openapi/api/Class.SwaggerFeatureRegistry.md +104 -0
- package/data/packages/platform-openapi/api/Class.SwaggerMultiDocumentService.md +82 -0
- package/data/packages/platform-openapi/api/Class.SwaggerTheme.md +51 -0
- package/data/packages/platform-openapi/api/Interface.IFeatureSwaggerConfig.md +73 -0
- package/data/packages/platform-openapi/api/Interface.ISwaggerFeatureMetadata.md +73 -0
- package/data/packages/platform-openapi/api/index.md +209 -0
- package/data/packages/platform-openapi/index.md +170 -0
- package/data/packages/platform-payments/api/Class.FeatureAccessPort.md +79 -0
- package/data/packages/platform-payments/api/Class.FeatureGuard.md +73 -0
- package/data/packages/platform-payments/api/Class.FeatureUsageInterceptor.md +74 -0
- package/data/packages/platform-payments/api/Class.LemonSqueezyClient.md +168 -0
- package/data/packages/platform-payments/api/Class.MollieClient.md +168 -0
- package/data/packages/platform-payments/api/Class.PaddleClient.md +168 -0
- package/data/packages/platform-payments/api/Class.PaymentClientPort.md +147 -0
- package/data/packages/platform-payments/api/Class.PaymentModule.md +53 -0
- package/data/packages/platform-payments/api/Class.StripeClient.md +168 -0
- package/data/packages/platform-payments/api/Interface.IFeatureAccessResult.md +75 -0
- package/data/packages/platform-payments/api/Interface.INormalizedCheckoutSession.md +75 -0
- package/data/packages/platform-payments/api/Interface.INormalizedPrice.md +85 -0
- package/data/packages/platform-payments/api/Interface.INormalizedSubscription.md +105 -0
- package/data/packages/platform-payments/api/Interface.INormalizedWebhookEvent.md +89 -0
- package/data/packages/platform-payments/api/Interface.IPaymentModuleOptions.md +65 -0
- package/data/packages/platform-payments/api/TypeAlias.SubscriptionStatus.md +27 -0
- package/data/packages/platform-payments/api/index.md +243 -0
- package/data/packages/platform-payments/index.md +532 -0
- package/data/packages/platform-reporting/api/Class.ReportingContributorRegistry.md +57 -0
- package/data/packages/platform-reporting/api/Class.ReportingDatasetNotFoundError.md +41 -0
- package/data/packages/platform-reporting/api/Class.ReportingFacade.md +85 -0
- package/data/packages/platform-reporting/api/Class.ReportingModule.md +23 -0
- package/data/packages/platform-reporting/api/Interface.IReportingContributor.md +62 -0
- package/data/packages/platform-reporting/api/Interface.IReportingDataset.md +83 -0
- package/data/packages/platform-reporting/api/Interface.IReportingDatasetField.md +71 -0
- package/data/packages/platform-reporting/api/Interface.IReportingQuery.md +61 -0
- package/data/packages/platform-reporting/api/Interface.IReportingQueryFilter.md +41 -0
- package/data/packages/platform-reporting/api/Interface.IReportingQueryResult.md +61 -0
- package/data/packages/platform-reporting/api/Interface.IReportingQuerySort.md +31 -0
- package/data/packages/platform-reporting/api/TypeAlias.ReportingFieldType.md +13 -0
- package/data/packages/platform-reporting/api/TypeAlias.ReportingFilterOperator.md +13 -0
- package/data/packages/platform-reporting/api/TypeAlias.ReportingQueryResultRow.md +15 -0
- package/data/packages/platform-reporting/api/index.md +90 -0
- package/data/packages/platform-reporting/index.md +229 -0
- package/data/packages/platform-telemetry/api/Class.NoopTelemetryFacade.md +118 -0
- package/data/packages/platform-telemetry/api/Class.TelemetryCacheMetricsRecorder.md +180 -0
- package/data/packages/platform-telemetry/api/Class.TelemetryFacade.md +132 -0
- package/data/packages/platform-telemetry/api/Class.TelemetryLoggerService.md +231 -0
- package/data/packages/platform-telemetry/api/Class.TelemetryModule.md +45 -0
- package/data/packages/platform-telemetry/api/Class.TelemetryRuleEngine.md +53 -0
- package/data/packages/platform-telemetry/api/Interface.ITelemetryFacade.md +90 -0
- package/data/packages/platform-telemetry/api/Interface.ITelemetryMetricsOptions.md +43 -0
- package/data/packages/platform-telemetry/api/Interface.ITelemetryOptions.md +141 -0
- package/data/packages/platform-telemetry/api/Interface.ITelemetryTracesOptions.md +43 -0
- package/data/packages/platform-telemetry/api/index.md +81 -0
- package/data/packages/platform-telemetry/index.md +234 -0
- package/package.json +39 -0
- package/src/DocsLoader.d.ts +14 -0
- package/src/DocsLoader.js +103 -0
- package/src/knowledge/configPattern.d.ts +5 -0
- package/src/knowledge/configPattern.js +211 -0
- package/src/knowledge/dtoPattern.d.ts +5 -0
- package/src/knowledge/dtoPattern.js +286 -0
- package/src/knowledge/errorHandlingPattern.d.ts +5 -0
- package/src/knowledge/errorHandlingPattern.js +219 -0
- package/src/knowledge/guardPattern.d.ts +5 -0
- package/src/knowledge/guardPattern.js +256 -0
- package/src/knowledge/mappingPattern.d.ts +6 -0
- package/src/knowledge/mappingPattern.js +322 -0
- package/src/knowledge/modulePattern.d.ts +6 -0
- package/src/knowledge/modulePattern.js +283 -0
- package/src/knowledge/queryPattern.d.ts +6 -0
- package/src/knowledge/queryPattern.js +215 -0
- package/src/knowledge/repositoryPattern.d.ts +6 -0
- package/src/knowledge/repositoryPattern.js +367 -0
- package/src/knowledge/testingPattern.d.ts +5 -0
- package/src/knowledge/testingPattern.js +356 -0
- package/src/main.d.ts +2 -0
- package/src/main.js +226 -0
- package/src/models/IPackageDoc.d.ts +19 -0
- package/src/models/IPackageDoc.js +3 -0
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Abstract Class: ResponseReturn\<T\>'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Abstract Class: ResponseReturn\<T\>
|
|
8
|
+
|
|
9
|
+
Defined in: [models/ResponseReturn.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L17)
|
|
10
|
+
|
|
11
|
+
## Type Parameters
|
|
12
|
+
|
|
13
|
+
| Type Parameter |
|
|
14
|
+
| -------------- |
|
|
15
|
+
| `T` |
|
|
16
|
+
|
|
17
|
+
## Constructors
|
|
18
|
+
|
|
19
|
+
### Constructor
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
new ResponseReturn<T>(): ResponseReturn<T>;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
`ResponseReturn`\<`T`\>
|
|
28
|
+
|
|
29
|
+
## Properties
|
|
30
|
+
|
|
31
|
+
### data?
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
optional data?: T;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Defined in: [models/ResponseReturn.ts:38](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L38)
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### details?
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
optional details?: unknown;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Defined in: [models/ResponseReturn.ts:48](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L48)
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### error?
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
optional error?: string;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Defined in: [models/ResponseReturn.ts:43](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L43)
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### status
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
status: number;
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Defined in: [models/ResponseReturn.ts:33](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L33)
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### success
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
success: boolean;
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Defined in: [models/ResponseReturn.ts:26](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L26)
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
### timestamp
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
timestamp: string;
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Defined in: [models/ResponseReturn.ts:55](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L55)
|
|
88
|
+
|
|
89
|
+
## Methods
|
|
90
|
+
|
|
91
|
+
### accepted()
|
|
92
|
+
|
|
93
|
+
#### Call Signature
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
static accepted<TReturn, TIn>(type, data): ResponseReturn<TReturn>;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Defined in: [models/ResponseReturn.ts:94](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L94)
|
|
100
|
+
|
|
101
|
+
Creates an accepted response.
|
|
102
|
+
|
|
103
|
+
##### Type Parameters
|
|
104
|
+
|
|
105
|
+
| Type Parameter |
|
|
106
|
+
| -------------- |
|
|
107
|
+
| `TReturn` |
|
|
108
|
+
| `TIn` |
|
|
109
|
+
|
|
110
|
+
##### Parameters
|
|
111
|
+
|
|
112
|
+
| Parameter | Type | Description |
|
|
113
|
+
| --------- | ------------------------------- | -------------------------- |
|
|
114
|
+
| `type` | `ClassConstructor`\<`TReturn`\> | Class type to transform to |
|
|
115
|
+
| `data` | `TIn` | The response data |
|
|
116
|
+
|
|
117
|
+
##### Returns
|
|
118
|
+
|
|
119
|
+
`ResponseReturn`\<`TReturn`\>
|
|
120
|
+
|
|
121
|
+
#### Call Signature
|
|
122
|
+
|
|
123
|
+
```ts
|
|
124
|
+
static accepted<TReturn, TIn>(type, data): ResponseReturn<TReturn[]>;
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Defined in: [models/ResponseReturn.ts:95](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L95)
|
|
128
|
+
|
|
129
|
+
Creates an accepted response.
|
|
130
|
+
|
|
131
|
+
##### Type Parameters
|
|
132
|
+
|
|
133
|
+
| Type Parameter |
|
|
134
|
+
| -------------- |
|
|
135
|
+
| `TReturn` |
|
|
136
|
+
| `TIn` |
|
|
137
|
+
|
|
138
|
+
##### Parameters
|
|
139
|
+
|
|
140
|
+
| Parameter | Type | Description |
|
|
141
|
+
| --------- | ------------------------------- | -------------------------- |
|
|
142
|
+
| `type` | `ClassConstructor`\<`TReturn`\> | Class type to transform to |
|
|
143
|
+
| `data` | `TIn`[] | The response data |
|
|
144
|
+
|
|
145
|
+
##### Returns
|
|
146
|
+
|
|
147
|
+
`ResponseReturn`\<`TReturn`[]\>
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
### badRequest()
|
|
152
|
+
|
|
153
|
+
```ts
|
|
154
|
+
static badRequest<TReturn>(message?, details?): ResponseReturn<TReturn>;
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Defined in: [models/ResponseReturn.ts:122](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L122)
|
|
158
|
+
|
|
159
|
+
Creates a bad request response.
|
|
160
|
+
|
|
161
|
+
#### Type Parameters
|
|
162
|
+
|
|
163
|
+
| Type Parameter |
|
|
164
|
+
| -------------- |
|
|
165
|
+
| `TReturn` |
|
|
166
|
+
|
|
167
|
+
#### Parameters
|
|
168
|
+
|
|
169
|
+
| Parameter | Type | Default value | Description |
|
|
170
|
+
| ---------- | --------- | --------------- | ---------------------------- |
|
|
171
|
+
| `message` | `string` | `'Bad Request'` | Human-readable error message |
|
|
172
|
+
| `details?` | `unknown` | `undefined` | Optional error details |
|
|
173
|
+
|
|
174
|
+
#### Returns
|
|
175
|
+
|
|
176
|
+
`ResponseReturn`\<`TReturn`\>
|
|
177
|
+
|
|
178
|
+
Bad request response
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
### conflict()
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
static conflict<TReturn>(message?, details?): ResponseReturn<TReturn>;
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Defined in: [models/ResponseReturn.ts:170](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L170)
|
|
189
|
+
|
|
190
|
+
Creates a conflict response.
|
|
191
|
+
|
|
192
|
+
#### Type Parameters
|
|
193
|
+
|
|
194
|
+
| Type Parameter |
|
|
195
|
+
| -------------- |
|
|
196
|
+
| `TReturn` |
|
|
197
|
+
|
|
198
|
+
#### Parameters
|
|
199
|
+
|
|
200
|
+
| Parameter | Type | Default value | Description |
|
|
201
|
+
| ---------- | --------- | ------------- | ---------------------------- |
|
|
202
|
+
| `message` | `string` | `'Conflict'` | Human-readable error message |
|
|
203
|
+
| `details?` | `unknown` | `undefined` | Optional error details |
|
|
204
|
+
|
|
205
|
+
#### Returns
|
|
206
|
+
|
|
207
|
+
`ResponseReturn`\<`TReturn`\>
|
|
208
|
+
|
|
209
|
+
Conflict response
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
### created()
|
|
214
|
+
|
|
215
|
+
#### Call Signature
|
|
216
|
+
|
|
217
|
+
```ts
|
|
218
|
+
static created<TReturn, TIn>(type, data): ResponseReturn<TReturn>;
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
Defined in: [models/ResponseReturn.ts:81](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L81)
|
|
222
|
+
|
|
223
|
+
Creates a resource created response.
|
|
224
|
+
|
|
225
|
+
##### Type Parameters
|
|
226
|
+
|
|
227
|
+
| Type Parameter |
|
|
228
|
+
| -------------- |
|
|
229
|
+
| `TReturn` |
|
|
230
|
+
| `TIn` |
|
|
231
|
+
|
|
232
|
+
##### Parameters
|
|
233
|
+
|
|
234
|
+
| Parameter | Type | Description |
|
|
235
|
+
| --------- | ------------------------------- | -------------------------- |
|
|
236
|
+
| `type` | `ClassConstructor`\<`TReturn`\> | Class type to transform to |
|
|
237
|
+
| `data` | `TIn` | The response data |
|
|
238
|
+
|
|
239
|
+
##### Returns
|
|
240
|
+
|
|
241
|
+
`ResponseReturn`\<`TReturn`\>
|
|
242
|
+
|
|
243
|
+
#### Call Signature
|
|
244
|
+
|
|
245
|
+
```ts
|
|
246
|
+
static created<TReturn, TIn>(type, data): ResponseReturn<TReturn[]>;
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Defined in: [models/ResponseReturn.ts:82](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L82)
|
|
250
|
+
|
|
251
|
+
Creates a resource created response.
|
|
252
|
+
|
|
253
|
+
##### Type Parameters
|
|
254
|
+
|
|
255
|
+
| Type Parameter |
|
|
256
|
+
| -------------- |
|
|
257
|
+
| `TReturn` |
|
|
258
|
+
| `TIn` |
|
|
259
|
+
|
|
260
|
+
##### Parameters
|
|
261
|
+
|
|
262
|
+
| Parameter | Type | Description |
|
|
263
|
+
| --------- | ------------------------------- | -------------------------- |
|
|
264
|
+
| `type` | `ClassConstructor`\<`TReturn`\> | Class type to transform to |
|
|
265
|
+
| `data` | `TIn`[] | The response data |
|
|
266
|
+
|
|
267
|
+
##### Returns
|
|
268
|
+
|
|
269
|
+
`ResponseReturn`\<`TReturn`[]\>
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
### error()
|
|
274
|
+
|
|
275
|
+
```ts
|
|
276
|
+
static error<TReturn>(message?, details?): ResponseReturn<TReturn>;
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Defined in: [models/ResponseReturn.ts:177](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L177)
|
|
280
|
+
|
|
281
|
+
Generic server error (500). Prefer attaching a safe `details` object (no stack traces in prod).
|
|
282
|
+
|
|
283
|
+
#### Type Parameters
|
|
284
|
+
|
|
285
|
+
| Type Parameter |
|
|
286
|
+
| -------------- |
|
|
287
|
+
| `TReturn` |
|
|
288
|
+
|
|
289
|
+
#### Parameters
|
|
290
|
+
|
|
291
|
+
| Parameter | Type | Default value |
|
|
292
|
+
| ---------- | --------- | ------------------------- |
|
|
293
|
+
| `message` | `string` | `'Internal Server Error'` |
|
|
294
|
+
| `details?` | `unknown` | `undefined` |
|
|
295
|
+
|
|
296
|
+
#### Returns
|
|
297
|
+
|
|
298
|
+
`ResponseReturn`\<`TReturn`\>
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
### forbidden()
|
|
303
|
+
|
|
304
|
+
```ts
|
|
305
|
+
static forbidden<TReturn>(message?, details?): ResponseReturn<TReturn>;
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
Defined in: [models/ResponseReturn.ts:146](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L146)
|
|
309
|
+
|
|
310
|
+
Creates a forbidden response.
|
|
311
|
+
|
|
312
|
+
#### Type Parameters
|
|
313
|
+
|
|
314
|
+
| Type Parameter |
|
|
315
|
+
| -------------- |
|
|
316
|
+
| `TReturn` |
|
|
317
|
+
|
|
318
|
+
#### Parameters
|
|
319
|
+
|
|
320
|
+
| Parameter | Type | Default value | Description |
|
|
321
|
+
| ---------- | --------- | ------------- | ---------------------------- |
|
|
322
|
+
| `message` | `string` | `'Forbidden'` | Human-readable error message |
|
|
323
|
+
| `details?` | `unknown` | `undefined` | Optional error details |
|
|
324
|
+
|
|
325
|
+
#### Returns
|
|
326
|
+
|
|
327
|
+
`ResponseReturn`\<`TReturn`\>
|
|
328
|
+
|
|
329
|
+
Forbidden response
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
### fromError()
|
|
334
|
+
|
|
335
|
+
```ts
|
|
336
|
+
static fromError<TReturn>(err, defaultStatus?): ResponseReturn<TReturn>;
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Defined in: [models/ResponseReturn.ts:185](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L185)
|
|
340
|
+
|
|
341
|
+
Converts an arbitrary error into a ResponseReturn.
|
|
342
|
+
|
|
343
|
+
- If you pass a Nest `HttpException`, consider extracting status/message first.
|
|
344
|
+
|
|
345
|
+
#### Type Parameters
|
|
346
|
+
|
|
347
|
+
| Type Parameter |
|
|
348
|
+
| -------------- |
|
|
349
|
+
| `TReturn` |
|
|
350
|
+
|
|
351
|
+
#### Parameters
|
|
352
|
+
|
|
353
|
+
| Parameter | Type | Default value |
|
|
354
|
+
| --------------- | ------------ | ---------------------------------- |
|
|
355
|
+
| `err` | `unknown` | `undefined` |
|
|
356
|
+
| `defaultStatus` | `HttpStatus` | `HttpStatus.INTERNAL_SERVER_ERROR` |
|
|
357
|
+
|
|
358
|
+
#### Returns
|
|
359
|
+
|
|
360
|
+
`ResponseReturn`\<`TReturn`\>
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
### noContent()
|
|
365
|
+
|
|
366
|
+
```ts
|
|
367
|
+
static noContent<TReturn>(): ResponseReturn<TReturn>;
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
Defined in: [models/ResponseReturn.ts:105](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L105)
|
|
371
|
+
|
|
372
|
+
No content variant (204). `data` is undefined by contract.
|
|
373
|
+
|
|
374
|
+
#### Type Parameters
|
|
375
|
+
|
|
376
|
+
| Type Parameter |
|
|
377
|
+
| -------------- |
|
|
378
|
+
| `TReturn` |
|
|
379
|
+
|
|
380
|
+
#### Returns
|
|
381
|
+
|
|
382
|
+
`ResponseReturn`\<`TReturn`\>
|
|
383
|
+
|
|
384
|
+
---
|
|
385
|
+
|
|
386
|
+
### notFound()
|
|
387
|
+
|
|
388
|
+
```ts
|
|
389
|
+
static notFound<TReturn>(message?, details?): ResponseReturn<TReturn>;
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Defined in: [models/ResponseReturn.ts:158](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L158)
|
|
393
|
+
|
|
394
|
+
Creates a not found response.
|
|
395
|
+
|
|
396
|
+
#### Type Parameters
|
|
397
|
+
|
|
398
|
+
| Type Parameter |
|
|
399
|
+
| -------------- |
|
|
400
|
+
| `TReturn` |
|
|
401
|
+
|
|
402
|
+
#### Parameters
|
|
403
|
+
|
|
404
|
+
| Parameter | Type | Default value | Description |
|
|
405
|
+
| ---------- | --------- | ------------- | ---------------------------- |
|
|
406
|
+
| `message` | `string` | `'Not Found'` | Human-readable error message |
|
|
407
|
+
| `details?` | `unknown` | `undefined` | Optional error details |
|
|
408
|
+
|
|
409
|
+
#### Returns
|
|
410
|
+
|
|
411
|
+
`ResponseReturn`\<`TReturn`\>
|
|
412
|
+
|
|
413
|
+
Not found response
|
|
414
|
+
|
|
415
|
+
---
|
|
416
|
+
|
|
417
|
+
### ok()
|
|
418
|
+
|
|
419
|
+
#### Call Signature
|
|
420
|
+
|
|
421
|
+
```ts
|
|
422
|
+
static ok<TReturn, TIn>(type, data): ResponseReturn<TReturn>;
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
Defined in: [models/ResponseReturn.ts:68](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L68)
|
|
426
|
+
|
|
427
|
+
Creates a successful response.
|
|
428
|
+
|
|
429
|
+
##### Type Parameters
|
|
430
|
+
|
|
431
|
+
| Type Parameter |
|
|
432
|
+
| -------------- |
|
|
433
|
+
| `TReturn` |
|
|
434
|
+
| `TIn` |
|
|
435
|
+
|
|
436
|
+
##### Parameters
|
|
437
|
+
|
|
438
|
+
| Parameter | Type | Description |
|
|
439
|
+
| --------- | ------------------------------- | -------------------------- |
|
|
440
|
+
| `type` | `ClassConstructor`\<`TReturn`\> | Class type to transform to |
|
|
441
|
+
| `data` | `TIn` | The response data |
|
|
442
|
+
|
|
443
|
+
##### Returns
|
|
444
|
+
|
|
445
|
+
`ResponseReturn`\<`TReturn`\>
|
|
446
|
+
|
|
447
|
+
#### Call Signature
|
|
448
|
+
|
|
449
|
+
```ts
|
|
450
|
+
static ok<TReturn, TIn>(type, data): ResponseReturn<TReturn[]>;
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
Defined in: [models/ResponseReturn.ts:69](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L69)
|
|
454
|
+
|
|
455
|
+
Creates a successful response.
|
|
456
|
+
|
|
457
|
+
##### Type Parameters
|
|
458
|
+
|
|
459
|
+
| Type Parameter |
|
|
460
|
+
| -------------- |
|
|
461
|
+
| `TReturn` |
|
|
462
|
+
| `TIn` |
|
|
463
|
+
|
|
464
|
+
##### Parameters
|
|
465
|
+
|
|
466
|
+
| Parameter | Type | Description |
|
|
467
|
+
| --------- | ------------------------------- | -------------------------- |
|
|
468
|
+
| `type` | `ClassConstructor`\<`TReturn`\> | Class type to transform to |
|
|
469
|
+
| `data` | `TIn`[] | The response data |
|
|
470
|
+
|
|
471
|
+
##### Returns
|
|
472
|
+
|
|
473
|
+
`ResponseReturn`\<`TReturn`[]\>
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
### unauthorized()
|
|
478
|
+
|
|
479
|
+
```ts
|
|
480
|
+
static unauthorized<TReturn>(message?, details?): ResponseReturn<TReturn>;
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
Defined in: [models/ResponseReturn.ts:134](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/models/ResponseReturn.ts#L134)
|
|
484
|
+
|
|
485
|
+
Creates an unauthorized response.
|
|
486
|
+
|
|
487
|
+
#### Type Parameters
|
|
488
|
+
|
|
489
|
+
| Type Parameter |
|
|
490
|
+
| -------------- |
|
|
491
|
+
| `TReturn` |
|
|
492
|
+
|
|
493
|
+
#### Parameters
|
|
494
|
+
|
|
495
|
+
| Parameter | Type | Default value | Description |
|
|
496
|
+
| ---------- | --------- | ---------------- | ---------------------------- |
|
|
497
|
+
| `message` | `string` | `'Unauthorized'` | Human-readable error message |
|
|
498
|
+
| `details?` | `unknown` | `undefined` | Optional error details |
|
|
499
|
+
|
|
500
|
+
#### Returns
|
|
501
|
+
|
|
502
|
+
`ResponseReturn`\<`TReturn`\>
|
|
503
|
+
|
|
504
|
+
Unauthorized response
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: SseHub'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Class: SseHub
|
|
8
|
+
|
|
9
|
+
Defined in: [sse/services/SseHub.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L16)
|
|
10
|
+
|
|
11
|
+
Represents a server-sent event service.
|
|
12
|
+
|
|
13
|
+
## Implements
|
|
14
|
+
|
|
15
|
+
- [`ISseHub`](Interface.ISseHub)
|
|
16
|
+
|
|
17
|
+
## Constructors
|
|
18
|
+
|
|
19
|
+
### Constructor
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
new SseHub(): SseHub;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Defined in: [sse/services/SseHub.ts:31](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L31)
|
|
26
|
+
|
|
27
|
+
Constructs a new instance of the `SseService` class.
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
`SseHub`
|
|
32
|
+
|
|
33
|
+
## Methods
|
|
34
|
+
|
|
35
|
+
### clearEvent()
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
clearEvent(id): void;
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Defined in: [sse/services/SseHub.ts:98](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L98)
|
|
42
|
+
|
|
43
|
+
Clears the event with the specified ID.
|
|
44
|
+
|
|
45
|
+
#### Parameters
|
|
46
|
+
|
|
47
|
+
| Parameter | Type | Description |
|
|
48
|
+
| --------- | -------- | -------------------- |
|
|
49
|
+
| `id` | `string` | The ID of the event. |
|
|
50
|
+
|
|
51
|
+
#### Returns
|
|
52
|
+
|
|
53
|
+
`void`
|
|
54
|
+
|
|
55
|
+
#### Implementation of
|
|
56
|
+
|
|
57
|
+
[`ISseHub`](Interface.ISseHub).[`clearEvent`](Interface.ISseHub#clearevent)
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### emitEvent()
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
emitEvent(id, data): void;
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Defined in: [sse/services/SseHub.ts:77](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L77)
|
|
68
|
+
|
|
69
|
+
Emits an event with the specified ID and data.
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
| Parameter | Type | Description |
|
|
74
|
+
| --------- | ------------------------------------------ | ---------------------- |
|
|
75
|
+
| `id` | `string` | The ID of the event. |
|
|
76
|
+
| `data` | [`ISseEventData`](Interface.ISseEventData) | The data of the event. |
|
|
77
|
+
|
|
78
|
+
#### Returns
|
|
79
|
+
|
|
80
|
+
`void`
|
|
81
|
+
|
|
82
|
+
#### Implementation of
|
|
83
|
+
|
|
84
|
+
[`ISseHub`](Interface.ISseHub).[`emitEvent`](Interface.ISseHub#emitevent)
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### getObservable()
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
getObservable(eventId): Observable<ISseEventData<unknown>>;
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Defined in: [sse/services/SseHub.ts:128](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L128)
|
|
95
|
+
|
|
96
|
+
Gets an observable for the event with the specified ID.
|
|
97
|
+
|
|
98
|
+
#### Parameters
|
|
99
|
+
|
|
100
|
+
| Parameter | Type | Description |
|
|
101
|
+
| --------- | -------- | -------------------- |
|
|
102
|
+
| `eventId` | `string` | The ID of the event. |
|
|
103
|
+
|
|
104
|
+
#### Returns
|
|
105
|
+
|
|
106
|
+
`Observable`\<[`ISseEventData`](Interface.ISseEventData)\<`unknown`\>\>
|
|
107
|
+
|
|
108
|
+
An observable for the event.
|
|
109
|
+
|
|
110
|
+
#### Implementation of
|
|
111
|
+
|
|
112
|
+
[`ISseHub`](Interface.ISseHub).[`getObservable`](Interface.ISseHub#getobservable)
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### isEventActive()
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
isEventActive(id): boolean;
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Defined in: [sse/services/SseHub.ts:115](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L115)
|
|
123
|
+
|
|
124
|
+
Determines whether the event with the specified ID is active.
|
|
125
|
+
|
|
126
|
+
#### Parameters
|
|
127
|
+
|
|
128
|
+
| Parameter | Type | Description |
|
|
129
|
+
| --------- | -------- | -------------------- |
|
|
130
|
+
| `id` | `string` | The ID of the event. |
|
|
131
|
+
|
|
132
|
+
#### Returns
|
|
133
|
+
|
|
134
|
+
`boolean`
|
|
135
|
+
|
|
136
|
+
`true` if the event is active; otherwise, `false`.
|
|
137
|
+
|
|
138
|
+
#### Implementation of
|
|
139
|
+
|
|
140
|
+
[`ISseHub`](Interface.ISseHub).[`isEventActive`](Interface.ISseHub#iseventactive)
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### registerEvent()
|
|
145
|
+
|
|
146
|
+
```ts
|
|
147
|
+
registerEvent(id): void;
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Defined in: [sse/services/SseHub.ts:45](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L45)
|
|
151
|
+
|
|
152
|
+
Registers an event with the specified ID.
|
|
153
|
+
|
|
154
|
+
#### Parameters
|
|
155
|
+
|
|
156
|
+
| Parameter | Type | Description |
|
|
157
|
+
| --------- | -------- | -------------------- |
|
|
158
|
+
| `id` | `string` | The ID of the event. |
|
|
159
|
+
|
|
160
|
+
#### Returns
|
|
161
|
+
|
|
162
|
+
`void`
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### unregisterEvent()
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
unregisterEvent(id): void;
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Defined in: [sse/services/SseHub.ts:60](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-core/src/sse/services/SseHub.ts#L60)
|
|
173
|
+
|
|
174
|
+
Unregisters an event with the specified ID.
|
|
175
|
+
|
|
176
|
+
#### Parameters
|
|
177
|
+
|
|
178
|
+
| Parameter | Type | Description |
|
|
179
|
+
| --------- | -------- | -------------------- |
|
|
180
|
+
| `id` | `string` | The ID of the event. |
|
|
181
|
+
|
|
182
|
+
#### Returns
|
|
183
|
+
|
|
184
|
+
`void`
|