alepha 0.19.0 → 0.19.2
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/LICENSE +1 -1
- package/README.md +6 -9
- package/dist/api/audits/index.d.ts +378 -346
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/files/index.d.ts +216 -184
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +5 -1
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.d.ts +528 -496
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +3 -3
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +202 -202
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/notifications/index.d.ts +152 -152
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/organizations/index.browser.js +48 -0
- package/dist/api/organizations/index.browser.js.map +1 -0
- package/dist/api/organizations/index.d.ts +516 -0
- package/dist/api/organizations/index.d.ts.map +1 -0
- package/dist/api/organizations/index.js +202 -0
- package/dist/api/organizations/index.js.map +1 -0
- package/dist/api/parameters/index.d.ts +391 -358
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +5 -1
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.browser.js +7 -5
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +989 -931
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +292 -146
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +132 -132
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js +2 -2
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/batch/index.d.ts +6 -6
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/billing/index.d.ts +1048 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +713 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/bin/index.js +0 -2
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +10 -10
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +2 -2
- package/dist/bucket/index.js.map +1 -1
- package/dist/cache/core/index.d.ts +9 -9
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +2 -2
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +2 -2
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/redis/index.d.ts +6 -6
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js +2 -2
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/cli/config/index.d.ts +12 -2
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js +4 -0
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +183 -139
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +283 -86
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +45 -0
- package/dist/cli/devtools/index.d.ts.map +1 -0
- package/dist/cli/devtools/index.js +170 -0
- package/dist/cli/devtools/index.js.map +1 -0
- package/dist/cli/platform/index.d.ts +383 -492
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +42 -511
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +196 -0
- package/dist/cli/vendor/index.d.ts.map +1 -0
- package/dist/cli/vendor/index.js +384 -0
- package/dist/cli/vendor/index.js.map +1 -0
- package/dist/command/index.d.ts +18 -18
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +2 -2
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +4 -4
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +10 -10
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +4 -4
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +4 -4
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.d.ts +7 -7
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/datetime/index.d.ts +4 -4
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/email/brevo/index.d.ts +4 -4
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/core/index.d.ts +15 -11
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js +12 -35
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/smtp/index.d.ts +12 -12
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +7 -4
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +4 -8
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +55 -889
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +13 -13
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +2 -2
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +4 -4
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/logger/index.d.ts +16 -15
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +5 -2
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +11 -11
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +11 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +53 -16
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +95 -51
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +55 -14
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js +17 -11
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +21 -15
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js +19 -13
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +14 -14
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js +2 -2
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js +2 -2
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +4 -4
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js +2 -2
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.d.ts +9 -9
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/core/index.d.ts +6 -6
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +5 -4
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +4 -4
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/head/index.d.ts +4 -4
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/i18n/index.d.ts +9 -9
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/intro/index.d.ts +2 -2
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js +3 -4
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +4 -5
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +215 -215
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +6 -7
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/testing/index.d.ts +2 -2
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +2 -4
- package/dist/react/testing/index.js.map +1 -1
- package/dist/redis/index.d.ts +19 -19
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/retry/index.d.ts +4 -4
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/scheduler/index.d.ts +13 -13
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +2 -2
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js +2 -2
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js +1 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +47 -47
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +9 -12
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +170 -169
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +16 -2
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.d.ts +7 -7
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/core/index.d.ts +76 -76
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +23 -17
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +13 -13
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js +2 -2
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +9 -9
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/health/index.d.ts +20 -20
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/links/index.browser.js +2 -2
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +66 -66
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +4 -4
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +7 -7
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/proxy/index.d.ts +5 -5
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.d.ts +12 -12
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js +2 -2
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +5 -5
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/swagger/index.d.ts +7 -7
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +2 -2
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +11 -7
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +9 -15
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.d.ts +4 -4
- package/dist/system/index.d.ts.map +1 -1
- package/dist/topic/core/index.d.ts +6 -6
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/redis/index.d.ts +7 -7
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js +2 -2
- package/dist/topic/redis/index.js.map +1 -1
- package/dist/websocket/index.d.ts +36 -36
- package/dist/websocket/index.d.ts.map +1 -1
- package/dist/websocket/index.js +2 -2
- package/dist/websocket/index.js.map +1 -1
- package/package.json +37 -32
- package/src/api/files/{controllers → __tests__}/FileController.spec.ts +189 -143
- package/src/api/files/{services → __tests__}/FileService.spec.ts +50 -30
- package/src/api/files/controllers/FileController.ts +6 -0
- package/src/api/jobs/{services → __tests__}/JobService.spec.ts +1 -1
- package/src/api/jobs/providers/JobProvider.ts +3 -3
- package/src/api/keys/{services → __tests__}/ApiKeyService.spec.ts +1 -1
- package/src/api/organizations/__tests__/OrganizationService.spec.ts +193 -0
- package/src/api/organizations/controllers/AdminOrganizationController.ts +103 -0
- package/src/api/organizations/entities/organizations.ts +20 -0
- package/src/api/organizations/index.browser.ts +10 -0
- package/src/api/organizations/index.ts +31 -0
- package/src/api/organizations/schemas/createOrganizationSchema.ts +10 -0
- package/src/api/organizations/schemas/organizationQuerySchema.ts +10 -0
- package/src/api/organizations/schemas/organizationResourceSchema.ts +6 -0
- package/src/api/organizations/schemas/updateOrganizationSchema.ts +7 -0
- package/src/api/organizations/services/OrganizationService.ts +75 -0
- package/src/api/parameters/services/ParameterProvider.ts +6 -1
- package/src/api/users/__tests__/$realm.spec.ts +191 -0
- package/src/api/users/__tests__/RealmProvider.spec.ts +53 -0
- package/src/api/users/__tests__/SessionService.spec.ts +778 -0
- package/src/api/users/{jobs → __tests__}/UserJobs.spec.ts +1 -1
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +24 -0
- package/src/api/users/controllers/RealmController.ts +5 -11
- package/src/api/users/entities/users.ts +9 -3
- package/src/api/users/index.ts +23 -3
- package/src/api/users/primitives/$realm.ts +23 -11
- package/src/api/users/providers/RealmProvider.ts +23 -3
- package/src/api/users/services/RegistrationService.ts +3 -2
- package/src/api/users/services/SessionService.ts +249 -8
- package/src/api/users/services/UserService.ts +1 -1
- package/src/api/verifications/{jobs → __tests__}/VerificationJobs.spec.ts +4 -2
- package/src/api/verifications/parameters/VerificationParameters.ts +2 -2
- package/src/billing/__tests__/BillingService.spec.ts +136 -0
- package/src/billing/__tests__/PaymentMethodService.spec.ts +78 -0
- package/src/billing/controllers/AdminBillingController.ts +149 -0
- package/src/billing/controllers/BillingController.ts +108 -0
- package/src/billing/entities/paymentIntents.ts +34 -0
- package/src/billing/entities/paymentMethods.ts +24 -0
- package/src/billing/entities/refunds.ts +22 -0
- package/src/billing/errors/BillingError.ts +5 -0
- package/src/billing/index.ts +76 -0
- package/src/billing/providers/BillingProvider.ts +79 -0
- package/src/billing/providers/MemoryBillingProvider.ts +139 -0
- package/src/billing/schemas/intentSchemas.ts +60 -0
- package/src/billing/schemas/paymentMethodSchemas.ts +13 -0
- package/src/billing/schemas/refundSchemas.ts +6 -0
- package/src/billing/services/BillingService.ts +325 -0
- package/src/billing/services/PaymentMethodService.ts +82 -0
- package/src/bin/index.ts +0 -2
- package/src/bucket/providers/LocalFileStorageProvider.ts +2 -2
- package/src/cache/core/{primitives → __tests__}/$cache.middleware.spec.ts +1 -1
- package/src/cache/core/{providers → __tests__}/MemoryCacheProvider.spec.ts +1 -1
- package/src/cache/core/primitives/$cache.ts +2 -2
- package/src/cache/redis/providers/RedisCacheProvider.ts +2 -2
- package/src/cli/config/defineConfig.ts +20 -0
- package/src/cli/core/{services → __tests__}/ProjectScaffolder.spec.ts +1 -1
- package/src/cli/core/{commands/gen → __tests__}/changelog.spec.ts +1 -1
- package/src/cli/core/{commands → __tests__}/init.spec.ts +4 -12
- package/src/cli/core/assets.ts +0 -1
- package/src/cli/core/atoms/devOptions.ts +0 -5
- package/src/cli/core/commands/build.ts +2 -2
- package/src/cli/core/commands/dev.ts +165 -30
- package/src/cli/core/commands/gen/changelog.ts +2 -2
- package/src/cli/core/commands/init.ts +2 -7
- package/src/cli/core/commands/verify.ts +0 -1
- package/src/cli/core/providers/AppEntryProvider.ts +2 -2
- package/src/cli/core/providers/ViteDevServerProvider.ts +53 -46
- package/src/cli/core/services/PackageManagerUtils.ts +8 -3
- package/src/cli/core/services/ProjectScaffolder.ts +20 -20
- package/src/cli/core/tasks/BuildClientTask.ts +8 -0
- package/src/cli/core/tasks/BuildServerTask.ts +17 -4
- package/src/cli/core/templates/alephaConfigTs.ts +0 -6
- package/src/cli/core/templates/webAdminDashboardTsx.ts +17 -0
- package/src/cli/core/templates/webAppRouterTs.ts +85 -2
- package/src/cli/devtools/atoms/devtoolsOptions.ts +26 -0
- package/src/cli/devtools/index.ts +194 -0
- package/src/cli/platform/{adapters → __tests__}/CloudflareAdapter.spec.ts +2 -2
- package/src/cli/platform/{providers → __tests__}/GitHubSecretStore.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/NamingService.spec.ts +1 -1
- package/src/cli/platform/{providers → __tests__}/PlatformCacheProvider.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/PlatformInspector.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/PlatformOrchestrator.spec.ts +3 -3
- package/src/cli/platform/{services → __tests__}/SecretFilterService.spec.ts +1 -1
- package/src/cli/platform/{commands → __tests__}/SecretsCommand.spec.ts +1 -1
- package/src/cli/platform/{adapters → __tests__}/VercelAdapter.spec.ts +2 -2
- package/src/cli/platform/atoms/platformOptions.ts +2 -10
- package/src/cli/platform/commands/SecretsCommand.ts +2 -2
- package/src/cli/platform/commands/platform.ts +2 -11
- package/src/cli/platform/index.ts +34 -11
- package/src/cli/platform/services/PlatformInspector.ts +2 -2
- package/src/cli/platform/services/PlatformOrchestrator.ts +0 -9
- package/src/cli/vendor/__tests__/VendorService.spec.ts +407 -0
- package/src/cli/vendor/atoms/vendorOptions.ts +41 -0
- package/src/cli/vendor/commands/VendorCommand.ts +204 -0
- package/src/cli/vendor/index.ts +43 -0
- package/src/cli/vendor/services/VendorService.ts +338 -0
- package/src/command/{providers → __tests__}/CliProvider.spec.ts +1 -1
- package/src/command/{helpers → __tests__}/EnvUtils.spec.ts +1 -1
- package/src/command/providers/CliProvider.ts +2 -2
- package/src/core/{primitives → __tests__}/$atom.spec.ts +2 -2
- package/src/core/{primitives → __tests__}/$memoize.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$mode.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$pipeline.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$scope.spec.ts +2 -2
- package/src/core/{providers → __tests__}/KeylessJsonSchemaCodec.spec.ts +1 -1
- package/src/core/{providers → __tests__}/SchemaValidator.spec.ts +1 -1
- package/src/core/{helpers → __tests__}/jsonSchemaToTypeBox.spec.ts +1 -1
- package/src/core/index.shared.ts +1 -1
- package/src/core/primitives/{$use.ts → $state.ts} +4 -4
- package/src/crypto/{providers → __tests__}/BrowserCryptoProvider.browser.spec.ts +1 -1
- package/src/crypto/{providers → __tests__}/CryptoProvider.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$debounce.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$throttle.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$timeout.spec.ts +1 -1
- package/src/email/brevo/{providers → __tests__}/BrevoEmailProvider.spec.ts +1 -1
- package/src/email/core/{providers → __tests__}/LocalEmailProvider.spec.ts +39 -150
- package/src/email/core/providers/LocalEmailProvider.ts +13 -51
- package/src/email/smtp/providers/NodemailerEmailProvider.ts +2 -2
- package/src/lock/core/{primitives → __tests__}/$lock.middleware.spec.ts +1 -1
- package/src/lock/core/primitives/$lock.ts +2 -2
- package/src/logger/index.ts +10 -4
- package/src/mcp/transports/SseMcpTransport.ts +2 -2
- package/src/orm/__tests__/ModelBuilder-tests.ts +53 -0
- package/src/orm/__tests__/ModelBuilder.spec.ts +80 -0
- package/src/orm/__tests__/organization-tests.ts +200 -0
- package/src/orm/__tests__/organization.spec.ts +103 -0
- package/src/orm/core/{providers/drivers → __tests__}/BunSqliteProvider.bun.spec.ts +5 -2
- package/src/orm/core/constants/PG_SYMBOLS.ts +2 -0
- package/src/orm/core/index.shared.ts +1 -0
- package/src/orm/core/primitives/$entity.ts +31 -0
- package/src/orm/core/providers/DatabaseTypeProvider.ts +11 -0
- package/src/orm/core/providers/DrizzleKitProvider.ts +1 -1
- package/src/orm/core/providers/drivers/BunSqliteProvider.ts +2 -2
- package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +3 -3
- package/src/orm/core/services/ModelBuilder.ts +11 -0
- package/src/orm/core/services/QueryManager.ts +16 -2
- package/src/orm/core/services/Repository.ts +70 -10
- package/src/orm/postgres/{providers → __tests__}/BunPostgresProvider.bun.spec.ts +1 -1
- package/src/orm/postgres/services/PostgresModelBuilder.ts +9 -1
- package/src/queue/core/providers/WorkerProvider.ts +2 -2
- package/src/queue/redis/providers/RedisQueueProvider.ts +2 -2
- package/src/react/core/{hooks → __tests__}/useAction.browser.spec.tsx +1 -1
- package/src/react/core/hooks/useAction.ts +7 -6
- package/src/react/head/{providers → __tests__}/BrowserHeadProvider.browser.spec.ts +1 -1
- package/src/react/head/{helpers → __tests__}/SeoExpander.spec.ts +1 -1
- package/src/react/i18n/{providers → __tests__}/I18nProvider.spec.ts +1 -1
- package/src/react/i18n/{hooks → __tests__}/useI18n.browser.spec.tsx +1 -1
- package/src/react/intro/components/GettingStartedDevtoolsSlide.tsx +3 -6
- package/src/react/router/{providers → __tests__}/ReactBrowserProvider.browser.spec.ts +1 -1
- package/src/react/router/providers/ReactBrowserProvider.ts +2 -2
- package/src/react/router/providers/ReactPageProvider.ts +2 -2
- package/src/react/router/providers/ReactServerProvider.ts +3 -3
- package/src/redis/{providers → __tests__}/BunRedisProvider.bun.spec.ts +4 -4
- package/src/retry/{primitives → __tests__}/$retry.middleware.spec.ts +1 -1
- package/src/router/{TemplatedPathParser.spec.ts → __tests__/TemplatedPathParser.spec.ts} +1 -1
- package/src/scheduler/primitives/$scheduler.ts +2 -2
- package/src/security/{primitives → __tests__}/$secure-browser.spec.ts +1 -1
- package/src/security/{primitives → __tests__}/$secure.spec.ts +1 -1
- package/src/security/primitives/$issuer.ts +1 -1
- package/src/security/providers/JwtProvider.ts +6 -10
- package/src/security/providers/SecurityProvider.ts +6 -11
- package/src/security/schemas/userAccountInfoSchema.ts +3 -3
- package/src/server/auth/providers/ServerAuthProvider.ts +24 -2
- package/src/server/cookies/{services → __tests__}/CookieParser.spec.ts +1 -1
- package/src/server/core/{primitives → __tests__}/$circuit.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/NodeHttpServerProvider.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/ServerBodyParserProvider.spec.ts +31 -1
- package/src/server/core/{providers → __tests__}/ServerCompressProvider.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/ServerHelmetProvider.spec.ts +4 -1
- package/src/server/core/{providers → __tests__}/ServerMultipartProvider.spec.ts +1 -1
- package/src/server/core/{services → __tests__}/ServerRequestParser.spec.ts +1 -1
- package/src/server/core/primitives/$action.ts +2 -2
- package/src/server/core/primitives/$sse.ts +2 -2
- package/src/server/core/providers/ServerBodyParserProvider.ts +21 -12
- package/src/server/core/providers/ServerCompressProvider.ts +2 -2
- package/src/server/core/providers/ServerHelmetProvider.ts +2 -2
- package/src/server/core/providers/ServerMultipartProvider.ts +2 -2
- package/src/server/core/providers/ServerRouterProvider.ts +1 -5
- package/src/server/cors/{primitives → __tests__}/$cors.spec.ts +1 -1
- package/src/server/cors/providers/ServerCorsProvider.ts +2 -2
- package/src/server/links/{services → __tests__}/BatchCollector.spec.ts +1 -1
- package/src/server/links/providers/LinkProvider.ts +2 -2
- package/src/server/links/providers/RemotePrimitiveProvider.ts +2 -2
- package/src/server/links/providers/ServerLinksProvider.ts +2 -2
- package/src/server/rate-limit/{primitives → __tests__}/$rateLimit.spec.ts +1 -1
- package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +2 -2
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +2 -2
- package/src/sms/{providers → __tests__}/LocalSmsProvider.spec.ts +35 -29
- package/src/sms/providers/LocalSmsProvider.ts +13 -24
- package/src/system/{providers → __tests__}/MemoryFileSystemProvider.spec.ts +1 -1
- package/src/system/{providers → __tests__}/MemoryShellProvider.spec.ts +1 -1
- package/src/topic/redis/providers/RedisTopicProvider.ts +2 -2
- package/src/websocket/{services → __tests__}/RoomManager.spec.ts +1 -1
- package/src/websocket/providers/NodeWebSocketServerProvider.ts +2 -2
- package/tsconfig.base.json +1 -0
- package/assets/devtools-ui/200.html +0 -10
- package/assets/devtools-ui/200.html.br +0 -0
- package/assets/devtools-ui/404.html +0 -10
- package/assets/devtools-ui/404.html.br +0 -0
- package/assets/devtools-ui/CNAME +0 -1
- package/assets/devtools-ui/asset.CHpVij2M.css +0 -1
- package/assets/devtools-ui/asset.CHpVij2M.css.br +0 -0
- package/assets/devtools-ui/asset.DJ-i0UDz.css +0 -1
- package/assets/devtools-ui/asset.DJ-i0UDz.css.br +0 -0
- package/assets/devtools-ui/chunk.1jwpJORo.js +0 -1
- package/assets/devtools-ui/chunk.1jwpJORo.js.br +0 -0
- package/assets/devtools-ui/chunk.B0r2wfUL.js +0 -1
- package/assets/devtools-ui/chunk.B0r2wfUL.js.br +0 -0
- package/assets/devtools-ui/chunk.BScN4dVR.js +0 -84
- package/assets/devtools-ui/chunk.BScN4dVR.js.br +0 -0
- package/assets/devtools-ui/chunk.BispuoY4.js +0 -1
- package/assets/devtools-ui/chunk.BispuoY4.js.br +0 -0
- package/assets/devtools-ui/chunk.BtrPUUd7.js +0 -2
- package/assets/devtools-ui/chunk.BtrPUUd7.js.br +0 -0
- package/assets/devtools-ui/chunk.C-KMHgqf.js +0 -1
- package/assets/devtools-ui/chunk.C-KMHgqf.js.br +0 -0
- package/assets/devtools-ui/chunk.C2zQ3CF6.js +0 -7
- package/assets/devtools-ui/chunk.C2zQ3CF6.js.br +0 -0
- package/assets/devtools-ui/chunk.C619McpO.js +0 -1
- package/assets/devtools-ui/chunk.C619McpO.js.br +0 -0
- package/assets/devtools-ui/chunk.C9OsYsVl.js +0 -1
- package/assets/devtools-ui/chunk.C9OsYsVl.js.br +0 -3
- package/assets/devtools-ui/chunk.CAC_-151.js +0 -1
- package/assets/devtools-ui/chunk.CAC_-151.js.br +0 -0
- package/assets/devtools-ui/chunk.CCmesWfx.js +0 -1
- package/assets/devtools-ui/chunk.CCmesWfx.js.br +0 -0
- package/assets/devtools-ui/chunk.CFQDmrcV.js +0 -1
- package/assets/devtools-ui/chunk.CFQDmrcV.js.br +0 -0
- package/assets/devtools-ui/chunk.CgM71Zau.js +0 -1
- package/assets/devtools-ui/chunk.CgM71Zau.js.br +0 -0
- package/assets/devtools-ui/chunk.CmHq336a.js +0 -1
- package/assets/devtools-ui/chunk.CmHq336a.js.br +0 -0
- package/assets/devtools-ui/chunk.CthNMCar.js +0 -1
- package/assets/devtools-ui/chunk.CthNMCar.js.br +0 -0
- package/assets/devtools-ui/chunk.D2brVJP1.js +0 -1
- package/assets/devtools-ui/chunk.D2brVJP1.js.br +0 -0
- package/assets/devtools-ui/chunk.DgBKGkiw.js +0 -1
- package/assets/devtools-ui/chunk.DgBKGkiw.js.br +0 -0
- package/assets/devtools-ui/chunk.NNHHCQsa.js +0 -1
- package/assets/devtools-ui/chunk.NNHHCQsa.js.br +0 -0
- package/assets/devtools-ui/chunk._CDKKWMo.js +0 -1
- package/assets/devtools-ui/chunk._CDKKWMo.js.br +0 -0
- package/assets/devtools-ui/entry.B_nOjAod.js +0 -2
- package/assets/devtools-ui/entry.B_nOjAod.js.br +0 -0
- package/assets/devtools-ui/index.html +0 -10
- package/assets/devtools-ui/index.html.br +0 -0
- package/dist/devtools/index.browser.js +0 -224
- package/dist/devtools/index.browser.js.map +0 -1
- package/dist/devtools/index.d.ts +0 -499
- package/dist/devtools/index.d.ts.map +0 -1
- package/dist/devtools/index.js +0 -782
- package/dist/devtools/index.js.map +0 -1
- package/dist/mqtt/index.d.ts +0 -164
- package/dist/mqtt/index.d.ts.map +0 -1
- package/dist/mqtt/index.js +0 -214
- package/dist/mqtt/index.js.map +0 -1
- package/dist/topic/mqtt/index.d.ts +0 -87
- package/dist/topic/mqtt/index.d.ts.map +0 -1
- package/dist/topic/mqtt/index.js +0 -88
- package/dist/topic/mqtt/index.js.map +0 -1
- package/src/api/users/parameters/UserParameters.ts +0 -23
- package/src/api/users/services/SessionService.spec.ts +0 -303
- package/src/cli/platform/adapters/DockerAdapter.spec.ts +0 -378
- package/src/cli/platform/adapters/DockerAdapter.ts +0 -417
- package/src/cli/platform/services/DockerComposeGenerator.spec.ts +0 -490
- package/src/cli/platform/services/DockerComposeGenerator.ts +0 -353
- package/src/cli/platform/services/DockerSshService.spec.ts +0 -47
- package/src/cli/platform/services/DockerSshService.ts +0 -61
- package/src/devtools/__tests__/DevCollectorProvider.spec.ts +0 -7
- package/src/devtools/assets.ts +0 -6
- package/src/devtools/entities/logs.ts +0 -21
- package/src/devtools/index.browser.ts +0 -11
- package/src/devtools/index.shared.ts +0 -15
- package/src/devtools/index.ts +0 -39
- package/src/devtools/providers/DevToolsMetadataProvider.ts +0 -459
- package/src/devtools/providers/DevToolsProvider.ts +0 -280
- package/src/devtools/schemas/DevActionMetadata.ts +0 -30
- package/src/devtools/schemas/DevAtomMetadata.ts +0 -26
- package/src/devtools/schemas/DevBucketMetadata.ts +0 -11
- package/src/devtools/schemas/DevCacheMetadata.ts +0 -10
- package/src/devtools/schemas/DevEntityMetadata.ts +0 -60
- package/src/devtools/schemas/DevEnvMetadata.ts +0 -22
- package/src/devtools/schemas/DevMetadata.ts +0 -47
- package/src/devtools/schemas/DevModuleMetadata.ts +0 -8
- package/src/devtools/schemas/DevPageMetadata.ts +0 -24
- package/src/devtools/schemas/DevProviderMetadata.ts +0 -10
- package/src/devtools/schemas/DevQueueMetadata.ts +0 -10
- package/src/devtools/schemas/DevRealmMetadata.ts +0 -19
- package/src/devtools/schemas/DevRouteMetadata.ts +0 -8
- package/src/devtools/schemas/DevSchedulerMetadata.ts +0 -11
- package/src/devtools/schemas/DevTopicMetadata.ts +0 -11
- package/src/mqtt/index.ts +0 -32
- package/src/mqtt/providers/MqttClientProvider.ts +0 -63
- package/src/mqtt/providers/MqttJsClientProvider.spec.ts +0 -165
- package/src/mqtt/providers/MqttJsClientProvider.ts +0 -309
- package/src/topic/mqtt/index.ts +0 -30
- package/src/topic/mqtt/providers/MqttTopicProvider.spec.ts +0 -160
- package/src/topic/mqtt/providers/MqttTopicProvider.ts +0 -146
- /package/src/api/audits/{primitives → __tests__}/$audit.spec.ts +0 -0
- /package/src/api/audits/{services → __tests__}/AuditService.spec.ts +0 -0
- /package/src/api/files/{controllers → __tests__}/AdminFileStatsController.spec.ts +0 -0
- /package/src/api/files/{jobs → __tests__}/FileJobs.spec.ts +0 -0
- /package/src/api/jobs/{primitives → __tests__}/$job-middleware.spec.ts +0 -0
- /package/src/api/parameters/{primitives → __tests__}/$parameter.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminIdentityController.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminSessionController.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminUserController.spec.ts +0 -0
- /package/src/api/users/{services → __tests__}/CredentialService.spec.ts +0 -0
- /package/src/api/users/{services → __tests__}/RegistrationService.spec.ts +0 -0
- /package/src/batch/{primitives → __tests__}/$batch.spec.ts +0 -0
- /package/src/batch/{providers → __tests__}/BatchProvider.spec.ts +0 -0
- /package/src/bucket/{primitives → __tests__}/$bucket.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/FileStorageProvider.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/LocalFileStorageProvider.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/MemoryFileStorageProvider.spec.ts +0 -0
- /package/src/cache/core/{primitives → __tests__}/$cache.spec.ts +0 -0
- /package/src/cache/redis/{providers → __tests__}/RedisCacheProvider.spec.ts +0 -0
- /package/src/command/{primitives → __tests__}/$command.spec.ts +0 -0
- /package/src/command/{helpers → __tests__}/Asker.spec.ts +0 -0
- /package/src/command/{helpers → __tests__}/Runner.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$context.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$env.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$hook.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$inject.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$module.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/CodecManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/EventManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/StateManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/TypeProvider.spec.ts +0 -0
- /package/src/datetime/{primitives → __tests__}/$interval.spec.ts +0 -0
- /package/src/datetime/{providers → __tests__}/DateTimeProvider.spec.ts +0 -0
- /package/src/email/core/{primitives → __tests__}/$email.spec.ts +0 -0
- /package/src/fake/{providers → __tests__}/FakeProvider.spec.ts +0 -0
- /package/src/lock/core/{providers → __tests__}/MemoryLockProvider.spec.ts +0 -0
- /package/src/lock/redis/{providers → __tests__}/RedisLockProvider.spec.ts +0 -0
- /package/src/logger/{primitives → __tests__}/$logger.spec.ts +0 -0
- /package/src/logger/{services → __tests__}/Logger.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$prompt.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$resource.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$tool.spec.ts +0 -0
- /package/src/mcp/{providers → __tests__}/McpServerProvider.spec.ts +0 -0
- /package/src/mcp/{helpers → __tests__}/jsonrpc.spec.ts +0 -0
- /package/src/orm/core/{helpers → __tests__}/parseQueryString.spec.ts +0 -0
- /package/src/queue/core/{primitives → __tests__}/$consumer.spec.ts +0 -0
- /package/src/queue/core/{providers → __tests__}/MemoryQueueProvider.spec.ts +0 -0
- /package/src/queue/core/{providers → __tests__}/WorkerProvider.spec.ts +0 -0
- /package/src/queue/redis/{providers → __tests__}/RedisQueueProvider.spec.ts +0 -0
- /package/src/react/form/{hooks → __tests__}/useForm.browser.spec.tsx +0 -0
- /package/src/react/head/{hooks → __tests__}/useHead.spec.tsx +0 -0
- /package/src/react/i18n/{components → __tests__}/Localize.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.browser.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.middleware.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.spec.tsx +0 -0
- /package/src/react/router/{providers → __tests__}/ReactPreloadProvider.spec.ts +0 -0
- /package/src/react/router/{providers → __tests__}/ReactServerProvider.spec.tsx +0 -0
- /package/src/react/router/{providers → __tests__}/ReactServerTemplateProvider.spec.ts +0 -0
- /package/src/retry/{primitives → __tests__}/$retry.spec.ts +0 -0
- /package/src/retry/{providers → __tests__}/RetryProvider.spec.ts +0 -0
- /package/src/router/{providers → __tests__}/RouterProvider.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$issuer.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$permission.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$role.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$serviceAccount.spec.ts +0 -0
- /package/src/security/{providers → __tests__}/SecurityProvider.spec.ts +0 -0
- /package/src/server/cookies/{providers → __tests__}/ServerCookiesProvider.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$action.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$middleware.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$route.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$sse.spec.ts +0 -0
- /package/src/server/core/{providers → __tests__}/BunHttpServerProvider.bun.spec.ts +0 -0
- /package/src/server/core/{services → __tests__}/HttpClient.spec.ts +0 -0
- /package/src/server/core/{providers → __tests__}/ServerLoggerProvider.spec.ts +0 -0
- /package/src/server/core/{services → __tests__}/UserAgentParser.spec.ts +0 -0
- /package/src/server/cors/{providers → __tests__}/ServerCorsProvider.spec.ts +0 -0
- /package/src/server/etag/{providers → __tests__}/ServerEtagProvider.spec.ts +0 -0
- /package/src/server/health/{providers → __tests__}/ServerHealthProvider.spec.ts +0 -0
- /package/src/server/links/{primitives → __tests__}/$remote.spec.ts +0 -0
- /package/src/server/links/{services → __tests__}/BatchEndpoint.spec.ts +0 -0
- /package/src/server/links/{providers → __tests__}/LinkProvider.spec.ts +0 -0
- /package/src/server/links/{providers → __tests__}/ServerLinksProvider.spec.ts +0 -0
- /package/src/server/metrics/{providers → __tests__}/ServerMetricsProvider.spec.ts +0 -0
- /package/src/server/proxy/{primitives → __tests__}/$proxy.spec.ts +0 -0
- /package/src/server/rate-limit/{providers → __tests__}/ServerRateLimitProvider.spec.ts +0 -0
- /package/src/server/static/{primitives → __tests__}/$serve.spec.ts +0 -0
- /package/src/server/swagger/{primitives → __tests__}/$swagger.spec.ts +0 -0
- /package/src/sms/{primitives → __tests__}/$sms.spec.ts +0 -0
- /package/src/sms/{providers → __tests__}/MemorySmsProvider.spec.ts +0 -0
- /package/src/system/{services → __tests__}/FileDetector.spec.ts +0 -0
- /package/src/system/{providers → __tests__}/NodeFileSystemProvider.spec.ts +0 -0
- /package/src/topic/core/{primitives → __tests__}/$subscriber.spec.ts +0 -0
- /package/src/topic/core/{providers → __tests__}/MemoryTopicProvider.spec.ts +0 -0
- /package/src/topic/redis/{providers → __tests__}/RedisTopicProvider.spec.ts +0 -0
- /package/src/websocket/{primitives → __tests__}/$channel.spec.ts +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as alepha from "alepha";
|
|
1
|
+
import * as _$alepha from "alepha";
|
|
2
2
|
import { Alepha, KIND, Primitive, Static, StaticEncode, TObject } from "alepha";
|
|
3
|
-
import * as alepha_api_jobs0 from "alepha/api/jobs";
|
|
3
|
+
import * as _$alepha_api_jobs0 from "alepha/api/jobs";
|
|
4
4
|
import { JobService } from "alepha/api/jobs";
|
|
5
|
-
import * as alepha_server0 from "alepha/server";
|
|
6
|
-
import * as alepha_orm0 from "alepha/orm";
|
|
5
|
+
import * as _$alepha_server0 from "alepha/server";
|
|
6
|
+
import * as _$alepha_orm0 from "alepha/orm";
|
|
7
7
|
import { EmailProvider } from "alepha/email";
|
|
8
|
-
import * as alepha_logger0 from "alepha/logger";
|
|
8
|
+
import * as _$alepha_logger0 from "alepha/logger";
|
|
9
9
|
import { SmsProvider } from "alepha/sms";
|
|
10
|
-
import * as typebox from "typebox";
|
|
10
|
+
import * as _$typebox from "typebox";
|
|
11
11
|
|
|
12
12
|
//#region ../../src/api/notifications/primitives/$notification.d.ts
|
|
13
13
|
/**
|
|
@@ -74,21 +74,21 @@ interface NotificationMessage<T extends TObject> {
|
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region ../../src/api/notifications/schemas/notificationPayloadSchema.d.ts
|
|
77
|
-
declare const notificationPayloadSchema: alepha.TObject<{
|
|
78
|
-
type: alepha.TUnsafe<"email" | "sms">;
|
|
79
|
-
template: alepha.TString;
|
|
80
|
-
contact: alepha.TString;
|
|
81
|
-
variables: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
82
|
-
category: alepha.TOptional<alepha.TString>;
|
|
83
|
-
critical: alepha.TOptional<alepha.TBoolean>;
|
|
84
|
-
sensitive: alepha.TOptional<alepha.TBoolean>;
|
|
77
|
+
declare const notificationPayloadSchema: _$alepha.TObject<{
|
|
78
|
+
type: _$alepha.TUnsafe<"email" | "sms">;
|
|
79
|
+
template: _$alepha.TString;
|
|
80
|
+
contact: _$alepha.TString;
|
|
81
|
+
variables: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
82
|
+
category: _$alepha.TOptional<_$alepha.TString>;
|
|
83
|
+
critical: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
84
|
+
sensitive: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
85
85
|
}>;
|
|
86
86
|
type NotificationPayload = Static<typeof notificationPayloadSchema>;
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region ../../src/api/notifications/services/NotificationSenderService.d.ts
|
|
89
89
|
declare class NotificationSenderService {
|
|
90
90
|
protected readonly alepha: Alepha;
|
|
91
|
-
protected readonly log: alepha_logger0.Logger;
|
|
91
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
92
92
|
protected readonly emailProvider: EmailProvider;
|
|
93
93
|
protected readonly smsProvider: SmsProvider;
|
|
94
94
|
send(payload: NotificationPayload): Promise<{
|
|
@@ -114,16 +114,16 @@ declare class NotificationSenderService {
|
|
|
114
114
|
body: string;
|
|
115
115
|
};
|
|
116
116
|
protected load(payload: NotificationPayload): {
|
|
117
|
-
template: NotificationPrimitive<alepha.TObject<alepha.TProperties>>;
|
|
118
|
-
variables: typebox.StaticRecord<[], "Decode", {}, {
|
|
119
|
-
type: alepha.TUnsafe<"email" | "sms">;
|
|
120
|
-
template: alepha.TString;
|
|
121
|
-
contact: alepha.TString;
|
|
122
|
-
variables: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
123
|
-
category: alepha.TOptional<alepha.TString>;
|
|
124
|
-
critical: alepha.TOptional<alepha.TBoolean>;
|
|
125
|
-
sensitive: alepha.TOptional<alepha.TBoolean>;
|
|
126
|
-
}, "^.*$", alepha.TAny>;
|
|
117
|
+
template: NotificationPrimitive<_$alepha.TObject<_$alepha.TProperties>>;
|
|
118
|
+
variables: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
119
|
+
type: _$alepha.TUnsafe<"email" | "sms">;
|
|
120
|
+
template: _$alepha.TString;
|
|
121
|
+
contact: _$alepha.TString;
|
|
122
|
+
variables: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
123
|
+
category: _$alepha.TOptional<_$alepha.TString>;
|
|
124
|
+
critical: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
125
|
+
sensitive: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
126
|
+
}, "^.*$", _$alepha.TAny>;
|
|
127
127
|
contact: string;
|
|
128
128
|
};
|
|
129
129
|
}
|
|
@@ -131,36 +131,36 @@ declare class NotificationSenderService {
|
|
|
131
131
|
//#region ../../src/api/notifications/jobs/NotificationJobs.d.ts
|
|
132
132
|
declare class NotificationJobs {
|
|
133
133
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
134
|
-
protected readonly executions: alepha_orm0.Repository<alepha.TObject<{
|
|
135
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
136
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
137
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
138
|
-
jobName: alepha.TString;
|
|
139
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
140
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
141
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
142
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
143
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
144
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
145
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
146
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
147
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
148
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
149
|
-
error: alepha.TOptional<alepha.TString>;
|
|
150
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
151
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
152
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
153
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
154
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
134
|
+
protected readonly executions: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
135
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
136
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
137
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
138
|
+
jobName: _$alepha.TString;
|
|
139
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
140
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
141
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
142
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
143
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
144
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
145
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
146
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
147
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
148
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
149
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
150
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
151
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
152
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
153
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
154
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
155
155
|
}>>;
|
|
156
|
-
readonly sendNotification: alepha_api_jobs0.JobPrimitive<alepha.TObject<{
|
|
157
|
-
type: alepha.TUnsafe<"email" | "sms">;
|
|
158
|
-
template: alepha.TString;
|
|
159
|
-
contact: alepha.TString;
|
|
160
|
-
variables: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
161
|
-
category: alepha.TOptional<alepha.TString>;
|
|
162
|
-
critical: alepha.TOptional<alepha.TBoolean>;
|
|
163
|
-
sensitive: alepha.TOptional<alepha.TBoolean>;
|
|
156
|
+
readonly sendNotification: _$alepha_api_jobs0.JobPrimitive<_$alepha.TObject<{
|
|
157
|
+
type: _$alepha.TUnsafe<"email" | "sms">;
|
|
158
|
+
template: _$alepha.TString;
|
|
159
|
+
contact: _$alepha.TString;
|
|
160
|
+
variables: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
161
|
+
category: _$alepha.TOptional<_$alepha.TString>;
|
|
162
|
+
critical: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
163
|
+
sensitive: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
164
164
|
}>>;
|
|
165
165
|
}
|
|
166
166
|
//#endregion
|
|
@@ -171,56 +171,56 @@ declare class AdminNotificationController {
|
|
|
171
171
|
protected readonly jobService: JobService;
|
|
172
172
|
protected readonly notificationJobs: NotificationJobs;
|
|
173
173
|
protected get jobName(): string;
|
|
174
|
-
readonly findNotifications: alepha_server0.ActionPrimitiveFn<{
|
|
175
|
-
query: alepha.TObject<{
|
|
176
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
177
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
178
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
179
|
-
status: alepha.TOptional<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
174
|
+
readonly findNotifications: _$alepha_server0.ActionPrimitiveFn<{
|
|
175
|
+
query: _$alepha.TObject<{
|
|
176
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
177
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
178
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
179
|
+
status: _$alepha.TOptional<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
180
180
|
}>;
|
|
181
|
-
response: alepha.TPage<alepha.TObject<{
|
|
182
|
-
id: alepha.TString;
|
|
183
|
-
createdAt: alepha.TString;
|
|
184
|
-
status: alepha.TString;
|
|
185
|
-
template: alepha.TOptional<alepha.TString>;
|
|
186
|
-
type: alepha.TOptional<alepha.TString>;
|
|
187
|
-
contact: alepha.TOptional<alepha.TString>;
|
|
188
|
-
category: alepha.TOptional<alepha.TString>;
|
|
189
|
-
critical: alepha.TOptional<alepha.TBoolean>;
|
|
190
|
-
sensitive: alepha.TOptional<alepha.TBoolean>;
|
|
191
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
192
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
193
|
-
error: alepha.TOptional<alepha.TString>;
|
|
181
|
+
response: _$alepha.TPage<_$alepha.TObject<{
|
|
182
|
+
id: _$alepha.TString;
|
|
183
|
+
createdAt: _$alepha.TString;
|
|
184
|
+
status: _$alepha.TString;
|
|
185
|
+
template: _$alepha.TOptional<_$alepha.TString>;
|
|
186
|
+
type: _$alepha.TOptional<_$alepha.TString>;
|
|
187
|
+
contact: _$alepha.TOptional<_$alepha.TString>;
|
|
188
|
+
category: _$alepha.TOptional<_$alepha.TString>;
|
|
189
|
+
critical: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
190
|
+
sensitive: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
191
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
192
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
193
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
194
194
|
}>>;
|
|
195
195
|
}>;
|
|
196
|
-
readonly getNotification: alepha_server0.ActionPrimitiveFn<{
|
|
197
|
-
params: alepha.TObject<{
|
|
198
|
-
id: alepha.TString;
|
|
196
|
+
readonly getNotification: _$alepha_server0.ActionPrimitiveFn<{
|
|
197
|
+
params: _$alepha.TObject<{
|
|
198
|
+
id: _$alepha.TString;
|
|
199
199
|
}>;
|
|
200
|
-
response: alepha.TObject<{
|
|
201
|
-
id: alepha.TString;
|
|
202
|
-
createdAt: alepha.TString;
|
|
203
|
-
status: alepha.TString;
|
|
204
|
-
template: alepha.TOptional<alepha.TString>;
|
|
205
|
-
type: alepha.TOptional<alepha.TString>;
|
|
206
|
-
contact: alepha.TOptional<alepha.TString>;
|
|
207
|
-
category: alepha.TOptional<alepha.TString>;
|
|
208
|
-
critical: alepha.TOptional<alepha.TBoolean>;
|
|
209
|
-
sensitive: alepha.TOptional<alepha.TBoolean>;
|
|
210
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
211
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
212
|
-
error: alepha.TOptional<alepha.TString>;
|
|
213
|
-
variables: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
214
|
-
rendered: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
215
|
-
logs: alepha.TOptional<alepha.TArray<alepha.TObject<{
|
|
216
|
-
level: alepha.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
217
|
-
message: alepha.TString;
|
|
218
|
-
service: alepha.TString;
|
|
219
|
-
module: alepha.TString;
|
|
220
|
-
context: alepha.TOptional<alepha.TString>;
|
|
221
|
-
app: alepha.TOptional<alepha.TString>;
|
|
222
|
-
data: alepha.TOptional<alepha.TAny>;
|
|
223
|
-
timestamp: alepha.TNumber;
|
|
200
|
+
response: _$alepha.TObject<{
|
|
201
|
+
id: _$alepha.TString;
|
|
202
|
+
createdAt: _$alepha.TString;
|
|
203
|
+
status: _$alepha.TString;
|
|
204
|
+
template: _$alepha.TOptional<_$alepha.TString>;
|
|
205
|
+
type: _$alepha.TOptional<_$alepha.TString>;
|
|
206
|
+
contact: _$alepha.TOptional<_$alepha.TString>;
|
|
207
|
+
category: _$alepha.TOptional<_$alepha.TString>;
|
|
208
|
+
critical: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
209
|
+
sensitive: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
210
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
211
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
212
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
213
|
+
variables: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
214
|
+
rendered: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
215
|
+
logs: _$alepha.TOptional<_$alepha.TArray<_$alepha.TObject<{
|
|
216
|
+
level: _$alepha.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
217
|
+
message: _$alepha.TString;
|
|
218
|
+
service: _$alepha.TString;
|
|
219
|
+
module: _$alepha.TString;
|
|
220
|
+
context: _$alepha.TOptional<_$alepha.TString>;
|
|
221
|
+
app: _$alepha.TOptional<_$alepha.TString>;
|
|
222
|
+
data: _$alepha.TOptional<_$alepha.TAny>;
|
|
223
|
+
timestamp: _$alepha.TNumber;
|
|
224
224
|
}>>>;
|
|
225
225
|
}>;
|
|
226
226
|
}>;
|
|
@@ -258,74 +258,74 @@ declare class AdminNotificationController {
|
|
|
258
258
|
}
|
|
259
259
|
//#endregion
|
|
260
260
|
//#region ../../src/api/notifications/schemas/notificationContactPreferencesSchema.d.ts
|
|
261
|
-
declare const notificationContactPreferencesSchema: alepha.TObject<{
|
|
262
|
-
language: alepha.TOptional<alepha.TString>;
|
|
263
|
-
exclude: alepha.TArray<alepha.TString>;
|
|
261
|
+
declare const notificationContactPreferencesSchema: _$alepha.TObject<{
|
|
262
|
+
language: _$alepha.TOptional<_$alepha.TString>;
|
|
263
|
+
exclude: _$alepha.TArray<_$alepha.TString>;
|
|
264
264
|
}>;
|
|
265
265
|
type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
|
|
266
266
|
//#endregion
|
|
267
267
|
//#region ../../src/api/notifications/schemas/notificationContactSchema.d.ts
|
|
268
|
-
declare const notificationContactSchema: alepha.TObject<{
|
|
269
|
-
email: alepha.TOptional<alepha.TString>;
|
|
270
|
-
phoneNumber: alepha.TOptional<alepha.TString>;
|
|
271
|
-
firstName: alepha.TOptional<alepha.TString>;
|
|
272
|
-
lastName: alepha.TOptional<alepha.TString>;
|
|
273
|
-
language: alepha.TOptional<alepha.TString>;
|
|
268
|
+
declare const notificationContactSchema: _$alepha.TObject<{
|
|
269
|
+
email: _$alepha.TOptional<_$alepha.TString>;
|
|
270
|
+
phoneNumber: _$alepha.TOptional<_$alepha.TString>;
|
|
271
|
+
firstName: _$alepha.TOptional<_$alepha.TString>;
|
|
272
|
+
lastName: _$alepha.TOptional<_$alepha.TString>;
|
|
273
|
+
language: _$alepha.TOptional<_$alepha.TString>;
|
|
274
274
|
}>;
|
|
275
275
|
type NotificationContact = Static<typeof notificationContactSchema>;
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region ../../src/api/notifications/schemas/notificationDetailResourceSchema.d.ts
|
|
278
|
-
declare const notificationDetailResourceSchema: alepha.TObject<{
|
|
279
|
-
id: alepha.TString;
|
|
280
|
-
createdAt: alepha.TString;
|
|
281
|
-
status: alepha.TString;
|
|
282
|
-
template: alepha.TOptional<alepha.TString>;
|
|
283
|
-
type: alepha.TOptional<alepha.TString>;
|
|
284
|
-
contact: alepha.TOptional<alepha.TString>;
|
|
285
|
-
category: alepha.TOptional<alepha.TString>;
|
|
286
|
-
critical: alepha.TOptional<alepha.TBoolean>;
|
|
287
|
-
sensitive: alepha.TOptional<alepha.TBoolean>;
|
|
288
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
289
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
290
|
-
error: alepha.TOptional<alepha.TString>;
|
|
291
|
-
variables: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
292
|
-
rendered: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
293
|
-
logs: alepha.TOptional<alepha.TArray<alepha.TObject<{
|
|
294
|
-
level: alepha.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
295
|
-
message: alepha.TString;
|
|
296
|
-
service: alepha.TString;
|
|
297
|
-
module: alepha.TString;
|
|
298
|
-
context: alepha.TOptional<alepha.TString>;
|
|
299
|
-
app: alepha.TOptional<alepha.TString>;
|
|
300
|
-
data: alepha.TOptional<alepha.TAny>;
|
|
301
|
-
timestamp: alepha.TNumber;
|
|
278
|
+
declare const notificationDetailResourceSchema: _$alepha.TObject<{
|
|
279
|
+
id: _$alepha.TString;
|
|
280
|
+
createdAt: _$alepha.TString;
|
|
281
|
+
status: _$alepha.TString;
|
|
282
|
+
template: _$alepha.TOptional<_$alepha.TString>;
|
|
283
|
+
type: _$alepha.TOptional<_$alepha.TString>;
|
|
284
|
+
contact: _$alepha.TOptional<_$alepha.TString>;
|
|
285
|
+
category: _$alepha.TOptional<_$alepha.TString>;
|
|
286
|
+
critical: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
287
|
+
sensitive: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
288
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
289
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
290
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
291
|
+
variables: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
292
|
+
rendered: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
293
|
+
logs: _$alepha.TOptional<_$alepha.TArray<_$alepha.TObject<{
|
|
294
|
+
level: _$alepha.TUnsafe<"TRACE" | "SILENT" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
295
|
+
message: _$alepha.TString;
|
|
296
|
+
service: _$alepha.TString;
|
|
297
|
+
module: _$alepha.TString;
|
|
298
|
+
context: _$alepha.TOptional<_$alepha.TString>;
|
|
299
|
+
app: _$alepha.TOptional<_$alepha.TString>;
|
|
300
|
+
data: _$alepha.TOptional<_$alepha.TAny>;
|
|
301
|
+
timestamp: _$alepha.TNumber;
|
|
302
302
|
}>>>;
|
|
303
303
|
}>;
|
|
304
304
|
type NotificationDetailResource = Static<typeof notificationDetailResourceSchema>;
|
|
305
305
|
//#endregion
|
|
306
306
|
//#region ../../src/api/notifications/schemas/notificationQuerySchema.d.ts
|
|
307
|
-
declare const notificationQuerySchema: alepha.TObject<{
|
|
308
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
309
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
310
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
311
|
-
status: alepha.TOptional<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
307
|
+
declare const notificationQuerySchema: _$alepha.TObject<{
|
|
308
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
309
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
310
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
311
|
+
status: _$alepha.TOptional<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
312
312
|
}>;
|
|
313
313
|
type NotificationQuery = Static<typeof notificationQuerySchema>;
|
|
314
314
|
//#endregion
|
|
315
315
|
//#region ../../src/api/notifications/schemas/notificationResourceSchema.d.ts
|
|
316
|
-
declare const notificationResourceSchema: alepha.TObject<{
|
|
317
|
-
id: alepha.TString;
|
|
318
|
-
createdAt: alepha.TString;
|
|
319
|
-
status: alepha.TString;
|
|
320
|
-
template: alepha.TOptional<alepha.TString>;
|
|
321
|
-
type: alepha.TOptional<alepha.TString>;
|
|
322
|
-
contact: alepha.TOptional<alepha.TString>;
|
|
323
|
-
category: alepha.TOptional<alepha.TString>;
|
|
324
|
-
critical: alepha.TOptional<alepha.TBoolean>;
|
|
325
|
-
sensitive: alepha.TOptional<alepha.TBoolean>;
|
|
326
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
327
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
328
|
-
error: alepha.TOptional<alepha.TString>;
|
|
316
|
+
declare const notificationResourceSchema: _$alepha.TObject<{
|
|
317
|
+
id: _$alepha.TString;
|
|
318
|
+
createdAt: _$alepha.TString;
|
|
319
|
+
status: _$alepha.TString;
|
|
320
|
+
template: _$alepha.TOptional<_$alepha.TString>;
|
|
321
|
+
type: _$alepha.TOptional<_$alepha.TString>;
|
|
322
|
+
contact: _$alepha.TOptional<_$alepha.TString>;
|
|
323
|
+
category: _$alepha.TOptional<_$alepha.TString>;
|
|
324
|
+
critical: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
325
|
+
sensitive: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
326
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
327
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
328
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
329
329
|
}>;
|
|
330
330
|
type NotificationResource = Static<typeof notificationResourceSchema>;
|
|
331
331
|
//#endregion
|
|
@@ -341,7 +341,7 @@ type NotificationResource = Static<typeof notificationResourceSchema>;
|
|
|
341
341
|
*
|
|
342
342
|
* @module alepha.api.notifications
|
|
343
343
|
*/
|
|
344
|
-
declare const AlephaApiNotifications: alepha.Service<alepha.Module>;
|
|
344
|
+
declare const AlephaApiNotifications: _$alepha.Service<_$alepha.Module>;
|
|
345
345
|
//#endregion
|
|
346
346
|
export { $notification, AdminNotificationController, AlephaApiNotifications, NotificationContact, NotificationContactPreferences, NotificationDetailResource, NotificationJobs, NotificationMessage, NotificationPayload, NotificationPrimitive, NotificationPrimitiveOptions, NotificationPushOptions, NotificationQuery, NotificationResource, NotificationSenderService, notificationContactPreferencesSchema, notificationContactSchema, notificationDetailResourceSchema, notificationPayloadSchema, notificationQuerySchema, notificationResourceSchema };
|
|
347
347
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/notifications/primitives/$notification.ts","../../../src/api/notifications/schemas/notificationPayloadSchema.ts","../../../src/api/notifications/services/NotificationSenderService.ts","../../../src/api/notifications/jobs/NotificationJobs.ts","../../../src/api/notifications/controllers/AdminNotificationController.ts","../../../src/api/notifications/schemas/notificationContactPreferencesSchema.ts","../../../src/api/notifications/schemas/notificationContactSchema.ts","../../../src/api/notifications/schemas/notificationDetailResourceSchema.ts","../../../src/api/notifications/schemas/notificationQuerySchema.ts","../../../src/api/notifications/schemas/notificationResourceSchema.ts","../../../src/api/notifications/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA;;;;;;;;;;;;;;;;;;cAAa,aAAA;EAAA,WAA2B,OAAA,EAAO,OAAA,EACpC,4BAAA,CAA6B,CAAA,IAAE,qBAAA,CAAA,CAAA;EAAA;;UAKzB,4BAAA,WAAuC,OAAA,UAC9C,mBAAA,CAAoB,CAAA;EAC5B,IAAA;EACA,WAAA;EACA,QAAA;EACA,QAAA;EACA,SAAA;EACA,YAAA;IAAA,CAEG,IAAA,WAAe,mBAAA,CAAoB,CAAA;EAAA;EAEtC,MAAA,EAAQ,CAAA;AAAA;AAAA,cAKG,qBAAA,WAAgC,OAAA,UAAiB,SAAA,CAC5D,4BAAA,CAA6B,CAAA;EAAA,mBAEV,gBAAA,EAAgB,gBAAA;EAAA,IAExB,IAAA,CAAA;EAIE,IAAA,CAAK,OAAA,EAAS,uBAAA,CAAwB,CAAA,IAAE,OAAA;EAoC9C,SAAA,CAAU,OAAA,EAAS,OAAA,CAAQ,4BAAA,CAA6B,CAAA;AAAA;AAAA,UAShD,uBAAA,WAAkC,OAAA;EACjD,SAAA,EAAW,YAAA,CAAa,CAAA;EACxB,OAAA;AAAA;AAAA,UAGe,mBAAA,WAA8B,OAAA;EAC7C,KAAA;IACE,OAAA;IACA,IAAA,aAAiB,SAAA,EAAW,MAAA,CAAO,CAAA;EAAA;EAErC,GAAA;IACE,OAAA,aAAoB,SAAA,EAAW,MAAA,CAAO,CAAA;EAAA;AAAA;;;cC5H7B,yBAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/api/notifications/primitives/$notification.ts","../../../src/api/notifications/schemas/notificationPayloadSchema.ts","../../../src/api/notifications/services/NotificationSenderService.ts","../../../src/api/notifications/jobs/NotificationJobs.ts","../../../src/api/notifications/controllers/AdminNotificationController.ts","../../../src/api/notifications/schemas/notificationContactPreferencesSchema.ts","../../../src/api/notifications/schemas/notificationContactSchema.ts","../../../src/api/notifications/schemas/notificationDetailResourceSchema.ts","../../../src/api/notifications/schemas/notificationQuerySchema.ts","../../../src/api/notifications/schemas/notificationResourceSchema.ts","../../../src/api/notifications/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA;;;;;;;;;;;;;;;;;;cAAa,aAAA;EAAA,WAA2B,OAAA,EAAO,OAAA,EACpC,4BAAA,CAA6B,CAAA,IAAE,qBAAA,CAAA,CAAA;EAAA;;UAKzB,4BAAA,WAAuC,OAAA,UAC9C,mBAAA,CAAoB,CAAA;EAC5B,IAAA;EACA,WAAA;EACA,QAAA;EACA,QAAA;EACA,SAAA;EACA,YAAA;IAAA,CAEG,IAAA,WAAe,mBAAA,CAAoB,CAAA;EAAA;EAEtC,MAAA,EAAQ,CAAA;AAAA;AAAA,cAKG,qBAAA,WAAgC,OAAA,UAAiB,SAAA,CAC5D,4BAAA,CAA6B,CAAA;EAAA,mBAEV,gBAAA,EAAgB,gBAAA;EAAA,IAExB,IAAA,CAAA;EAIE,IAAA,CAAK,OAAA,EAAS,uBAAA,CAAwB,CAAA,IAAE,OAAA;EAoC9C,SAAA,CAAU,OAAA,EAAS,OAAA,CAAQ,4BAAA,CAA6B,CAAA;AAAA;AAAA,UAShD,uBAAA,WAAkC,OAAA;EACjD,SAAA,EAAW,YAAA,CAAa,CAAA;EACxB,OAAA;AAAA;AAAA,UAGe,mBAAA,WAA8B,OAAA;EAC7C,KAAA;IACE,OAAA;IACA,IAAA,aAAiB,SAAA,EAAW,MAAA,CAAO,CAAA;EAAA;EAErC,GAAA;IACE,OAAA,aAAoB,SAAA,EAAW,MAAA,CAAO,CAAA;EAAA;AAAA;;;cC5H7B,yBAAA,WAAyB,OAAA;QAQpC,QAAA,CAAA,OAAA;;;;;;;;KAEU,mBAAA,GAAsB,MAAA,QAAc,yBAAA;;;cCLnC,yBAAA;EAAA,mBACQ,MAAA,EAAM,MAAA;EAAA,mBACN,GAAA,EADM,gBAAA,CACH,MAAA;EAAA,mBACH,aAAA,EAAa,aAAA;EAAA,mBACb,WAAA,EAAW,WAAA;EAEjB,IAAA,CAAK,OAAA,EAAS,mBAAA,GAAmB,OAAA;;;;;;;;;;;;;EAqCvC,SAAA,CAAU,OAAA,EAAS,mBAAA;;;;EAkBnB,WAAA,CAAY,OAAA,EAAS,mBAAA;;;;;YAmBlB,IAAA,CAAK,OAAA,EAAS,mBAAA;qDAAmB,QAAA,CAAA,WAAA;;;;;;;;;;;;;;;cCjFhC,gBAAA;EAAA,mBACQ,yBAAA,EAAyB,yBAAA;EAAA,mBAGzB,UAAA,EAAU,aAAA,CAAA,UAAA,UAAA,OAAA;kDAHe,QAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;;;;;WAK5B,gBAAA,EAAgB,kBAAA,CAAA,YAAA,UAAA,OAAA;UAFH,QAAA,CAAA,OAAA;;;;;;;;;;;cCDlB,2BAAA;EAAA,mBACQ,GAAA;EAAA,mBACA,KAAA;EAAA,mBACA,UAAA,EAAU,UAAA;EAAA,mBACV,gBAAA,EAAgB,gBAAA;EAAA,cAErB,OAAA,CAAA;EAAA,SAIE,iBAAA,mBAAiB,iBAAA;;+BANE,QAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;WA0BnB,eAAA,mBAAe,iBAAA;;UApBE,QAAA,CAAA,OAAA;IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoCvB,UAAA,CAAW,IAAA,EAAM,MAAA;;;;;;;;;;;;;;YAkBjB,gBAAA,CAAiB,IAAA,EAAM,MAAA;;;;;;;;;;;;;;;;;;;;cCvEtB,oCAAA,WAAoC,OAAA;+BAG/C,QAAA,CAAA,OAAA;;;KAEU,8BAAA,GAAiC,MAAA,QACpC,oCAAA;;;cCNI,yBAAA,WAAyB,OAAA;4BAMpC,QAAA,CAAA,OAAA;;;;;;KAEU,mBAAA,GAAsB,MAAA,QAAc,yBAAA;;;cCNnC,gCAAA,WAAgC,OAAA;MAW5C,QAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAEW,0BAAA,GAA6B,MAAA,QAChC,gCAAA;;;cCfI,uBAAA,WAAuB,OAAA;2BAalC,QAAA,CAAA,QAAA;;;;;KAEU,iBAAA,GAAoB,MAAA,QAAc,uBAAA;;;cChBjC,0BAAA,WAA0B,OAAA;MAarC,QAAA,CAAA,OAAA;;;;;;;;;;;;;KAEU,oBAAA,GAAuB,MAAA,QAAc,0BAAA;;;;;ATsBjD;;;;;;;;;cUPa,sBAAA,EAAsB,QAAA,CAAA,OAAA,CAcjC,QAAA,CAdiC,MAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { t } from "alepha";
|
|
2
|
+
import { $entity, db, pageQuerySchema } from "alepha/orm";
|
|
3
|
+
//#region ../../src/api/organizations/entities/organizations.ts
|
|
4
|
+
const organizations = $entity({
|
|
5
|
+
name: "organizations",
|
|
6
|
+
schema: t.object({
|
|
7
|
+
id: db.primaryKey(t.uuid()),
|
|
8
|
+
version: db.version(),
|
|
9
|
+
createdAt: db.createdAt(),
|
|
10
|
+
updatedAt: db.updatedAt(),
|
|
11
|
+
name: t.text(),
|
|
12
|
+
slug: t.text({
|
|
13
|
+
minLength: 2,
|
|
14
|
+
maxLength: 100
|
|
15
|
+
}),
|
|
16
|
+
enabled: db.default(t.boolean(), true)
|
|
17
|
+
}),
|
|
18
|
+
indexes: [{
|
|
19
|
+
columns: ["slug"],
|
|
20
|
+
unique: true
|
|
21
|
+
}]
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ../../src/api/organizations/schemas/createOrganizationSchema.ts
|
|
25
|
+
const createOrganizationSchema = t.object({
|
|
26
|
+
name: t.text(),
|
|
27
|
+
slug: t.text({
|
|
28
|
+
minLength: 2,
|
|
29
|
+
maxLength: 100
|
|
30
|
+
}),
|
|
31
|
+
enabled: t.optional(t.boolean())
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ../../src/api/organizations/schemas/organizationQuerySchema.ts
|
|
35
|
+
const organizationQuerySchema = t.extend(pageQuerySchema, {
|
|
36
|
+
name: t.optional(t.text({ description: "Filter by name (partial match)" })),
|
|
37
|
+
enabled: t.optional(t.boolean({ description: "Filter by enabled status" }))
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region ../../src/api/organizations/schemas/organizationResourceSchema.ts
|
|
41
|
+
const organizationResourceSchema = organizations.schema;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region ../../src/api/organizations/schemas/updateOrganizationSchema.ts
|
|
44
|
+
const updateOrganizationSchema = t.partial(createOrganizationSchema);
|
|
45
|
+
//#endregion
|
|
46
|
+
export { createOrganizationSchema, organizationQuerySchema, organizationResourceSchema, organizations, updateOrganizationSchema };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=index.browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.browser.js","names":[],"sources":["../../../src/api/organizations/entities/organizations.ts","../../../src/api/organizations/schemas/createOrganizationSchema.ts","../../../src/api/organizations/schemas/organizationQuerySchema.ts","../../../src/api/organizations/schemas/organizationResourceSchema.ts","../../../src/api/organizations/schemas/updateOrganizationSchema.ts"],"sourcesContent":["import type { Static } from \"alepha\";\nimport { t } from \"alepha\";\nimport { $entity, db } from \"alepha/orm\";\n\nexport const organizations = $entity({\n name: \"organizations\",\n schema: t.object({\n id: db.primaryKey(t.uuid()),\n version: db.version(),\n createdAt: db.createdAt(),\n updatedAt: db.updatedAt(),\n\n name: t.text(),\n slug: t.text({ minLength: 2, maxLength: 100 }),\n enabled: db.default(t.boolean(), true),\n }),\n indexes: [{ columns: [\"slug\"], unique: true }],\n});\n\nexport type OrganizationEntity = Static<typeof organizations.schema>;\n","import type { Static } from \"alepha\";\nimport { t } from \"alepha\";\n\nexport const createOrganizationSchema = t.object({\n name: t.text(),\n slug: t.text({ minLength: 2, maxLength: 100 }),\n enabled: t.optional(t.boolean()),\n});\n\nexport type CreateOrganization = Static<typeof createOrganizationSchema>;\n","import type { Static } from \"alepha\";\nimport { t } from \"alepha\";\nimport { pageQuerySchema } from \"alepha/orm\";\n\nexport const organizationQuerySchema = t.extend(pageQuerySchema, {\n name: t.optional(t.text({ description: \"Filter by name (partial match)\" })),\n enabled: t.optional(t.boolean({ description: \"Filter by enabled status\" })),\n});\n\nexport type OrganizationQuery = Static<typeof organizationQuerySchema>;\n","import type { Static } from \"alepha\";\nimport { organizations } from \"../entities/organizations.ts\";\n\nexport const organizationResourceSchema = organizations.schema;\n\nexport type OrganizationResource = Static<typeof organizationResourceSchema>;\n","import type { Static } from \"alepha\";\nimport { t } from \"alepha\";\nimport { createOrganizationSchema } from \"./createOrganizationSchema.ts\";\n\nexport const updateOrganizationSchema = t.partial(createOrganizationSchema);\n\nexport type UpdateOrganization = Static<typeof updateOrganizationSchema>;\n"],"mappings":";;;AAIA,MAAa,gBAAgB,QAAQ;CACnC,MAAM;CACN,QAAQ,EAAE,OAAO;EACf,IAAI,GAAG,WAAW,EAAE,MAAM,CAAC;EAC3B,SAAS,GAAG,SAAS;EACrB,WAAW,GAAG,WAAW;EACzB,WAAW,GAAG,WAAW;EAEzB,MAAM,EAAE,MAAM;EACd,MAAM,EAAE,KAAK;GAAE,WAAW;GAAG,WAAW;GAAK,CAAC;EAC9C,SAAS,GAAG,QAAQ,EAAE,SAAS,EAAE,KAAK;EACvC,CAAC;CACF,SAAS,CAAC;EAAE,SAAS,CAAC,OAAO;EAAE,QAAQ;EAAM,CAAC;CAC/C,CAAC;;;ACdF,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,MAAM;CACd,MAAM,EAAE,KAAK;EAAE,WAAW;EAAG,WAAW;EAAK,CAAC;CAC9C,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CACjC,CAAC;;;ACHF,MAAa,0BAA0B,EAAE,OAAO,iBAAiB;CAC/D,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,kCAAkC,CAAC,CAAC;CAC3E,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,4BAA4B,CAAC,CAAC;CAC5E,CAAC;;;ACJF,MAAa,6BAA6B,cAAc;;;ACCxD,MAAa,2BAA2B,EAAE,QAAQ,yBAAyB"}
|