@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,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: TemplateFormat'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[**@breadstone/archipel-platform-documents**](../)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Type Alias: TemplateFormat
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
type TemplateFormat = 'encodian' | 'mustache';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Defined in: [types/DocumentTypes.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-documents/src/types/DocumentTypes.ts#L13)
|
|
18
|
+
|
|
19
|
+
Template format type (parser syntax).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Type Alias: TemplateType'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[**@breadstone/archipel-platform-documents**](../)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Type Alias: TemplateType
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
type TemplateType = 'docx' | 'pdf';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Defined in: [types/DocumentTypes.ts:20](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-documents/src/types/DocumentTypes.ts#L20)
|
|
18
|
+
|
|
19
|
+
Template type.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '@breadstone/archipel-platform-documents'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[**@breadstone/archipel-platform-documents**](../)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# @breadstone/archipel-platform-documents
|
|
12
|
+
|
|
13
|
+
## Classes
|
|
14
|
+
|
|
15
|
+
| Class | Description |
|
|
16
|
+
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| [BaseDocumentRenderer](Class.BaseDocumentRenderer) | Base class for document renderers. Provides common functionality for template loading, parsing, and image processing. |
|
|
18
|
+
| [DocumentEngine](Class.DocumentEngine) | DocumentEngine orchestrates document generation workflow. Coordinates resource loading and renderer components. |
|
|
19
|
+
| [DocumentModule](Class.DocumentModule) | DocumentModule provides services for document generation and image processing. Uses abstract base classes and interfaces for extensibility. |
|
|
20
|
+
| [SharpImageProcessor](Class.SharpImageProcessor) | Sharp-based image processor. Handles image resizing and format conversion. |
|
|
21
|
+
|
|
22
|
+
## Interfaces
|
|
23
|
+
|
|
24
|
+
| Interface | Description |
|
|
25
|
+
| ------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
|
|
26
|
+
| [IDocumentModuleOptions](Interface.IDocumentModuleOptions) | Configuration options for the DocumentModule. |
|
|
27
|
+
| [IDocumentPlaceholderDetail](Interface.IDocumentPlaceholderDetail) | Placeholder detail for document probe report. |
|
|
28
|
+
| [IDocumentProbeReport](Interface.IDocumentProbeReport) | Document probe report. |
|
|
29
|
+
| [IDocumentRenderer](Interface.IDocumentRenderer) | Base interface for document renderers. Each renderer handles specific document formats. |
|
|
30
|
+
| [IImagePayload](Interface.IImagePayload) | Image payload for templates. |
|
|
31
|
+
| [IImageProcessor](Interface.IImageProcessor) | Base interface for image processors. Handles image manipulation and format conversion. |
|
|
32
|
+
| [IRenderOptions](Interface.IRenderOptions) | Options for rendering a document. |
|
|
33
|
+
| [IRenderResult](Interface.IRenderResult) | Document render result. |
|
|
34
|
+
|
|
35
|
+
## Type Aliases
|
|
36
|
+
|
|
37
|
+
| Type Alias | Description |
|
|
38
|
+
| ------------------------------------------ | ------------------------------------- |
|
|
39
|
+
| [DocumentFormat](TypeAlias.DocumentFormat) | Document output format types. |
|
|
40
|
+
| [EngineType](TypeAlias.EngineType) | Template engine type. |
|
|
41
|
+
| [ImageMimeType](TypeAlias.ImageMimeType) | Image MIME type. |
|
|
42
|
+
| [TemplateFormat](TypeAlias.TemplateFormat) | Template format type (parser syntax). |
|
|
43
|
+
| [TemplateType](TypeAlias.TemplateType) | Template type. |
|
|
44
|
+
|
|
45
|
+
## Variables
|
|
46
|
+
|
|
47
|
+
### DOCUMENT_MODULE_OPTIONS
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
const DOCUMENT_MODULE_OPTIONS: typeof DOCUMENT_MODULE_OPTIONS;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Defined in: [DocumentTokens.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-documents/src/DocumentTokens.ts#L6)
|
|
54
|
+
|
|
55
|
+
Injection token for DocumentModule options.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### DOCUMENT_PARSER_TOKEN
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
const DOCUMENT_PARSER_TOKEN: typeof DOCUMENT_PARSER_TOKEN;
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Defined in: [DocumentTokens.ts:20](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-documents/src/DocumentTokens.ts#L20)
|
|
66
|
+
|
|
67
|
+
Injection token for IDocumentParser.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### DOCUMENT_RENDERER_TOKEN
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
const DOCUMENT_RENDERER_TOKEN: typeof DOCUMENT_RENDERER_TOKEN;
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Defined in: [DocumentTokens.ts:27](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-documents/src/DocumentTokens.ts#L27)
|
|
78
|
+
|
|
79
|
+
Injection token for IDocumentRenderer (multi-provider).
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### IMAGE_PROCESSOR_TOKEN
|
|
84
|
+
|
|
85
|
+
```ts
|
|
86
|
+
const IMAGE_PROCESSOR_TOKEN: typeof IMAGE_PROCESSOR_TOKEN;
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Defined in: [DocumentTokens.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-documents/src/DocumentTokens.ts#L13)
|
|
90
|
+
|
|
91
|
+
Injection token for IImageProcessor.
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: platform-documents
|
|
3
|
+
description: Document generation engine supporting DOCX and PDF with template-based rendering.
|
|
4
|
+
order: 9
|
|
5
|
+
tags: [documents, docx, pdf, templates, generation, rendering]
|
|
6
|
+
package: '@breadstone/archipel-platform-documents'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# platform-documents
|
|
10
|
+
|
|
11
|
+
Template-based document generation engine supporting DOCX and PDF output. Uses pluggable renderers and template parsers with image processing via Sharp.
|
|
12
|
+
|
|
13
|
+
**Package:** `@breadstone/archipel-platform-documents`
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { Module } from '@nestjs/common';
|
|
19
|
+
import { DocumentModule } from '@breadstone/archipel-platform-documents';
|
|
20
|
+
|
|
21
|
+
@Module({
|
|
22
|
+
imports: [
|
|
23
|
+
DocumentModule.forRoot({
|
|
24
|
+
maxImageWidth: 1920,
|
|
25
|
+
maxImageHeight: 1080,
|
|
26
|
+
delimiters: { start: '[[', end: ']]' },
|
|
27
|
+
debug: false,
|
|
28
|
+
}),
|
|
29
|
+
],
|
|
30
|
+
})
|
|
31
|
+
export class AppModule {}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Module Configuration
|
|
37
|
+
|
|
38
|
+
### IDocumentModuleOptions
|
|
39
|
+
|
|
40
|
+
| Property | Type | Default | Description |
|
|
41
|
+
| ------------------ | --------- | ------- | ---------------------------------- |
|
|
42
|
+
| `maxImageWidth` | `number` | `1920` | Maximum width for embedded images |
|
|
43
|
+
| `maxImageHeight` | `number` | `1080` | Maximum height for embedded images |
|
|
44
|
+
| `delimiters.start` | `string` | `'[['` | Template variable start delimiter |
|
|
45
|
+
| `delimiters.end` | `string` | `']]'` | Template variable end delimiter |
|
|
46
|
+
| `debug` | `boolean` | `false` | Enable debug output |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## DocumentEngine
|
|
51
|
+
|
|
52
|
+
Main orchestrator for document rendering.
|
|
53
|
+
|
|
54
|
+
### Render from Template
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { DocumentEngine } from '@breadstone/archipel-platform-documents';
|
|
58
|
+
|
|
59
|
+
@Injectable()
|
|
60
|
+
export class InvoiceService {
|
|
61
|
+
constructor(private readonly _docEngine: DocumentEngine) {}
|
|
62
|
+
|
|
63
|
+
public async generateInvoice(data: IInvoiceData): Promise<Buffer> {
|
|
64
|
+
const result = await this._docEngine.render({
|
|
65
|
+
templateId: 'invoice-template',
|
|
66
|
+
data: {
|
|
67
|
+
invoiceNumber: data.number,
|
|
68
|
+
customerName: data.customerName,
|
|
69
|
+
items: data.items.map((item) => ({
|
|
70
|
+
description: item.description,
|
|
71
|
+
qty: item.quantity,
|
|
72
|
+
unitPrice: `€${item.unitPrice.toFixed(2)}`,
|
|
73
|
+
total: `€${(item.quantity * item.unitPrice).toFixed(2)}`,
|
|
74
|
+
})),
|
|
75
|
+
subtotal: `€${data.subtotal.toFixed(2)}`,
|
|
76
|
+
tax: `€${data.tax.toFixed(2)}`,
|
|
77
|
+
total: `€${data.total.toFixed(2)}`,
|
|
78
|
+
date: new Date().toLocaleDateString('de-DE'),
|
|
79
|
+
},
|
|
80
|
+
templateFormat: 'docx',
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
return result.buffer;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Render from Buffer
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
const templateBuffer = await fs.readFile('./templates/contract.docx');
|
|
92
|
+
|
|
93
|
+
const result = await this._docEngine.render({
|
|
94
|
+
templateBuffer,
|
|
95
|
+
data: { clientName: 'Acme Corp', startDate: '2025-01-01' },
|
|
96
|
+
templateFormat: 'docx',
|
|
97
|
+
});
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Templates with Images
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
const result = await this._docEngine.render({
|
|
104
|
+
templateId: 'report-with-charts',
|
|
105
|
+
data: {
|
|
106
|
+
title: 'Q4 Report',
|
|
107
|
+
summary: 'Revenue increased by 23%.',
|
|
108
|
+
},
|
|
109
|
+
images: [
|
|
110
|
+
{
|
|
111
|
+
tag: 'revenueChart', // Matches [[revenueChart]] in template
|
|
112
|
+
buffer: chartImageBuffer,
|
|
113
|
+
contentType: 'image/png',
|
|
114
|
+
width: 800,
|
|
115
|
+
height: 400,
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
templateFormat: 'docx',
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Document Renderers
|
|
125
|
+
|
|
126
|
+
### DOCX Renderer
|
|
127
|
+
|
|
128
|
+
Renders DOCX (Microsoft Word) documents using `docxtemplater`:
|
|
129
|
+
|
|
130
|
+
- Variable substitution: `[[variableName]]`
|
|
131
|
+
- Loops: `[[#items]][[name]] - [[price]][[/items]]`
|
|
132
|
+
- Conditionals: `[[#if showDiscount]]...[[/if]]`
|
|
133
|
+
- Image placeholders: `[[imageName]]`
|
|
134
|
+
|
|
135
|
+
### PDF Renderer
|
|
136
|
+
|
|
137
|
+
Renders PDF documents using `pdf-lib`:
|
|
138
|
+
|
|
139
|
+
- Text substitution in PDF form fields
|
|
140
|
+
- Image insertion
|
|
141
|
+
- Page manipulation
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Image Processing
|
|
146
|
+
|
|
147
|
+
### SharpImageProcessor
|
|
148
|
+
|
|
149
|
+
Resizes and optimizes images before embedding in documents:
|
|
150
|
+
|
|
151
|
+
```typescript
|
|
152
|
+
import { SharpImageProcessor } from '@breadstone/archipel-platform-documents';
|
|
153
|
+
|
|
154
|
+
// Used internally by DocumentEngine
|
|
155
|
+
// Respects maxImageWidth and maxImageHeight from module options
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Supported formats: PNG, JPEG, WebP, TIFF, AVIF.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Real-World Example: Contract Generator
|
|
163
|
+
|
|
164
|
+
```typescript
|
|
165
|
+
@Controller('api/v1/contracts')
|
|
166
|
+
export class ContractController {
|
|
167
|
+
constructor(
|
|
168
|
+
private readonly _docEngine: DocumentEngine,
|
|
169
|
+
private readonly _blobService: BlobService,
|
|
170
|
+
) {}
|
|
171
|
+
|
|
172
|
+
@Post(':id/generate')
|
|
173
|
+
public async generate(@Param('id') contractId: string, @Res() res: Response): Promise<void> {
|
|
174
|
+
const contract = await this._contractService.findById(contractId);
|
|
175
|
+
|
|
176
|
+
const result = await this._docEngine.render({
|
|
177
|
+
templateId: 'service-agreement',
|
|
178
|
+
data: {
|
|
179
|
+
clientName: contract.clientName,
|
|
180
|
+
startDate: contract.startDate.toLocaleDateString('de-DE'),
|
|
181
|
+
endDate: contract.endDate.toLocaleDateString('de-DE'),
|
|
182
|
+
monthlyFee: `€${contract.monthlyFee.toFixed(2)}`,
|
|
183
|
+
services: contract.services,
|
|
184
|
+
},
|
|
185
|
+
templateFormat: 'docx',
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
// Optionally store in blob storage
|
|
189
|
+
await this._blobService.uploadFile(
|
|
190
|
+
`contracts/${contractId}/${result.name}`,
|
|
191
|
+
result.buffer,
|
|
192
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
193
|
+
);
|
|
194
|
+
|
|
195
|
+
res.set({
|
|
196
|
+
'Content-Type': result.contentType,
|
|
197
|
+
'Content-Disposition': `attachment; filename="${result.name}"`,
|
|
198
|
+
});
|
|
199
|
+
res.send(result.buffer);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Exports Summary
|
|
207
|
+
|
|
208
|
+
| Export | Type | Description |
|
|
209
|
+
| ---------------------- | -------------- | ----------------------------------------- |
|
|
210
|
+
| `DocumentModule` | NestJS Module | `forRoot()` configuration |
|
|
211
|
+
| `DocumentEngine` | Service | Main rendering orchestrator |
|
|
212
|
+
| `BaseDocumentRenderer` | Abstract class | Renderer base |
|
|
213
|
+
| `IDocumentRenderer` | Interface | Renderer contract |
|
|
214
|
+
| `SharpImageProcessor` | Service | Image resize/optimization |
|
|
215
|
+
| `IImageProcessor` | Interface | Image processor contract |
|
|
216
|
+
| `DocumentFormat` | Enum | `'docx'` / `'pdf'` |
|
|
217
|
+
| `TemplateFormat` | Enum | Template format identifiers |
|
|
218
|
+
| `IRenderResult` | Interface | Render output (buffer, name, contentType) |
|
|
219
|
+
| `IDocumentProbeReport` | Interface | Template validation report |
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: AnalyticsService'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[**@breadstone/archipel-platform-logging**](../)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Class: AnalyticsService
|
|
12
|
+
|
|
13
|
+
Defined in: [services/AnalyticsService.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/services/AnalyticsService.ts#L14)
|
|
14
|
+
|
|
15
|
+
A service to log analytics events
|
|
16
|
+
|
|
17
|
+
## Constructors
|
|
18
|
+
|
|
19
|
+
### Constructor
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
new AnalyticsService(): AnalyticsService;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Defined in: [services/AnalyticsService.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/services/AnalyticsService.ts#L18)
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`AnalyticsService`
|
|
30
|
+
|
|
31
|
+
## Methods
|
|
32
|
+
|
|
33
|
+
### captureException()
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
captureException(error, context?): void;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Defined in: [services/AnalyticsService.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/services/AnalyticsService.ts#L35)
|
|
40
|
+
|
|
41
|
+
#### Parameters
|
|
42
|
+
|
|
43
|
+
| Parameter | Type |
|
|
44
|
+
| ---------- | ------------------------------- |
|
|
45
|
+
| `error` | `Error` |
|
|
46
|
+
| `context?` | `Record`\<`string`, `unknown`\> |
|
|
47
|
+
|
|
48
|
+
#### Returns
|
|
49
|
+
|
|
50
|
+
`void`
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### logError()
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
logError(error, context?): void;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Defined in: [services/AnalyticsService.ts:31](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/services/AnalyticsService.ts#L31)
|
|
61
|
+
|
|
62
|
+
#### Parameters
|
|
63
|
+
|
|
64
|
+
| Parameter | Type |
|
|
65
|
+
| ---------- | ------------------------------- |
|
|
66
|
+
| `error` | `Error` |
|
|
67
|
+
| `context?` | `Record`\<`string`, `unknown`\> |
|
|
68
|
+
|
|
69
|
+
#### Returns
|
|
70
|
+
|
|
71
|
+
`void`
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
### logMessage()
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
logMessage(message, context?): void;
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Defined in: [services/AnalyticsService.ts:27](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/services/AnalyticsService.ts#L27)
|
|
82
|
+
|
|
83
|
+
#### Parameters
|
|
84
|
+
|
|
85
|
+
| Parameter | Type |
|
|
86
|
+
| ---------- | ------------------------------- |
|
|
87
|
+
| `message` | `string` |
|
|
88
|
+
| `context?` | `Record`\<`string`, `unknown`\> |
|
|
89
|
+
|
|
90
|
+
#### Returns
|
|
91
|
+
|
|
92
|
+
`void`
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### setUser()
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
setUser(userId, userContext?): void;
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Defined in: [services/AnalyticsService.ts:39](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/services/AnalyticsService.ts#L39)
|
|
103
|
+
|
|
104
|
+
#### Parameters
|
|
105
|
+
|
|
106
|
+
| Parameter | Type |
|
|
107
|
+
| -------------- | ------------------------------- |
|
|
108
|
+
| `userId` | `string` |
|
|
109
|
+
| `userContext?` | `Record`\<`string`, `unknown`\> |
|
|
110
|
+
|
|
111
|
+
#### Returns
|
|
112
|
+
|
|
113
|
+
`void`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: LoggerModule'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[**@breadstone/archipel-platform-logging**](../)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Class: LoggerModule
|
|
12
|
+
|
|
13
|
+
Defined in: [LoggerModule.ts:26](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/LoggerModule.ts#L26)
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### Constructor
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
new LoggerModule(): LoggerModule;
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
`LoggerModule`
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '@breadstone/archipel-platform-logging'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[**@breadstone/archipel-platform-logging**](../)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# @breadstone/archipel-platform-logging
|
|
12
|
+
|
|
13
|
+
## Classes
|
|
14
|
+
|
|
15
|
+
| Class | Description |
|
|
16
|
+
| ------------------------------------------ | --------------------------------- |
|
|
17
|
+
| [AnalyticsService](Class.AnalyticsService) | A service to log analytics events |
|
|
18
|
+
| [LoggerModule](Class.LoggerModule) | - |
|
|
19
|
+
|
|
20
|
+
## Variables
|
|
21
|
+
|
|
22
|
+
### APP_LOG_LEVEL
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
const APP_LOG_LEVEL: IConfigKey<string>;
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Defined in: [env.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/env.ts#L12)
|
|
29
|
+
|
|
30
|
+
Application log level (e.g. `'debug'`, `'info'`, `'warn'`, `'error'`).
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
### PLATFORM_LOGGING_CONFIG_ENTRIES
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
const PLATFORM_LOGGING_CONFIG_ENTRIES: ReadonlyArray<Omit<IConfigRegistryEntry, 'module'>>;
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Defined in: [env.ts:19](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-logging/src/env.ts#L19)
|
|
41
|
+
|
|
42
|
+
All configuration entries required by `platform-logging`.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: platform-logging
|
|
3
|
+
description: Sentry integration for error tracking and analytics.
|
|
4
|
+
order: 6
|
|
5
|
+
tags: [logging, sentry, error-tracking, analytics]
|
|
6
|
+
package: '@breadstone/archipel-platform-logging'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# platform-logging
|
|
10
|
+
|
|
11
|
+
Sentry integration for centralized error tracking and analytics. Provides structured error reporting with context enrichment.
|
|
12
|
+
|
|
13
|
+
**Package:** `@breadstone/archipel-platform-logging`
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { Module } from '@nestjs/common';
|
|
19
|
+
import { LoggerModule } from '@breadstone/archipel-platform-logging';
|
|
20
|
+
|
|
21
|
+
@Module({
|
|
22
|
+
imports: [LoggerModule],
|
|
23
|
+
})
|
|
24
|
+
export class AppModule {}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## AnalyticsService
|
|
30
|
+
|
|
31
|
+
Central service for error and event reporting to Sentry.
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { AnalyticsService } from '@breadstone/archipel-platform-logging';
|
|
35
|
+
|
|
36
|
+
@Injectable()
|
|
37
|
+
export class PaymentService {
|
|
38
|
+
constructor(private readonly _analytics: AnalyticsService) {}
|
|
39
|
+
|
|
40
|
+
public async processPayment(orderId: string): Promise<void> {
|
|
41
|
+
try {
|
|
42
|
+
// ... payment logic
|
|
43
|
+
} catch (error) {
|
|
44
|
+
this._analytics.captureException(error, {
|
|
45
|
+
tags: { module: 'payments', orderId },
|
|
46
|
+
});
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Environment Variables
|
|
56
|
+
|
|
57
|
+
| Variable | Description | Required |
|
|
58
|
+
| --------------------------- | ---------------------------------------------------- | -------- |
|
|
59
|
+
| `SENTRY_DSN` | Sentry Data Source Name | Yes |
|
|
60
|
+
| `SENTRY_ENVIRONMENT` | Environment label (e.g. `'production'`, `'staging'`) | No |
|
|
61
|
+
| `SENTRY_TRACES_SAMPLE_RATE` | Sampling rate for performance traces (0.0–1.0) | No |
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Real-World Example: Global Error Filter
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { Catch, type ExceptionFilter, type ArgumentsHost } from '@nestjs/common';
|
|
69
|
+
import { AnalyticsService } from '@breadstone/archipel-platform-logging';
|
|
70
|
+
|
|
71
|
+
@Catch()
|
|
72
|
+
export class GlobalExceptionFilter implements ExceptionFilter {
|
|
73
|
+
constructor(private readonly _analytics: AnalyticsService) {}
|
|
74
|
+
|
|
75
|
+
public catch(exception: unknown, host: ArgumentsHost): void {
|
|
76
|
+
this._analytics.captureException(exception);
|
|
77
|
+
|
|
78
|
+
const ctx = host.switchToHttp();
|
|
79
|
+
const response = ctx.getResponse();
|
|
80
|
+
response.status(500).json({ error: 'Internal Server Error' });
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Exports Summary
|
|
88
|
+
|
|
89
|
+
| Export | Type | Description |
|
|
90
|
+
| ------------------ | ------------- | -------------------------------- |
|
|
91
|
+
| `LoggerModule` | NestJS Module | Global Sentry integration |
|
|
92
|
+
| `AnalyticsService` | Service | Error capture and event tracking |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: BlobTemplateFetchStrategy'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[**@breadstone/archipel-platform-mailing**](../)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Class: BlobTemplateFetchStrategy
|
|
12
|
+
|
|
13
|
+
Defined in: [platform-mailing/src/templating/strategies/BlobTemplateFetchStrategy.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/templating/strategies/BlobTemplateFetchStrategy.ts#L16)
|
|
14
|
+
|
|
15
|
+
The `BlobTemplateFetchStrategy` class.
|
|
16
|
+
|
|
17
|
+
## Extends
|
|
18
|
+
|
|
19
|
+
- [`TemplateFetchStrategyBase`](Class.TemplateFetchStrategyBase)
|
|
20
|
+
|
|
21
|
+
## Constructors
|
|
22
|
+
|
|
23
|
+
### Constructor
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
new BlobTemplateFetchStrategy(blobService): BlobTemplateFetchStrategy;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Defined in: [platform-mailing/src/templating/strategies/BlobTemplateFetchStrategy.ts:30](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/templating/strategies/BlobTemplateFetchStrategy.ts#L30)
|
|
30
|
+
|
|
31
|
+
Constructs a new instance of the `BlobTemplateFetchStrategy` class.
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
| Parameter | Type |
|
|
36
|
+
| ------------- | ------------- |
|
|
37
|
+
| `blobService` | `BlobService` |
|
|
38
|
+
|
|
39
|
+
#### Returns
|
|
40
|
+
|
|
41
|
+
`BlobTemplateFetchStrategy`
|
|
42
|
+
|
|
43
|
+
#### Overrides
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
TemplateFetchStrategyBase.constructor;
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Methods
|
|
50
|
+
|
|
51
|
+
### load()
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
abstract load(): Promise<Record<string, IMailTemplateVariants>>;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Defined in: [platform-mailing/src/templating/strategies/BlobTemplateFetchStrategy.ts:40](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/templating/strategies/BlobTemplateFetchStrategy.ts#L40)
|
|
58
|
+
|
|
59
|
+
Loads the templates.
|
|
60
|
+
|
|
61
|
+
#### Returns
|
|
62
|
+
|
|
63
|
+
`Promise`\<`Record`\<`string`, [`IMailTemplateVariants`](Interface.IMailTemplateVariants)\>\>
|
|
64
|
+
|
|
65
|
+
#### Overrides
|
|
66
|
+
|
|
67
|
+
[`TemplateFetchStrategyBase`](Class.TemplateFetchStrategyBase).[`load`](Class.TemplateFetchStrategyBase#load)
|