alepha 0.21.2 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +393 -403
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +25 -56
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +31 -1
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +313 -208
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +152 -42
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +2 -2
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +289 -292
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +39 -33
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +211 -216
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +188 -195
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/oauth/index.d.ts +71 -76
- package/dist/api/oauth/index.d.ts.map +1 -1
- package/dist/api/oauth/index.js.map +1 -1
- package/dist/api/organizations/index.browser.js.map +1 -1
- package/dist/api/organizations/index.d.ts +104 -109
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/organizations/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +43 -16
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +488 -344
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +175 -35
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/payments/index.d.ts +396 -402
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +644 -652
- package/dist/api/subscriptions/index.d.ts.map +1 -1
- package/dist/api/subscriptions/index.js +1 -1
- package/dist/api/subscriptions/index.js.map +1 -1
- package/dist/api/users/index.browser.js +7 -0
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +1073 -1006
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +283 -61
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.browser.js.map +1 -1
- package/dist/api/verifications/index.d.ts +134 -140
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/background/index.d.ts +95 -0
- package/dist/background/index.d.ts.map +1 -0
- package/dist/background/index.js +121 -0
- package/dist/background/index.js.map +1 -0
- package/dist/background/index.workerd.js +110 -0
- package/dist/background/index.workerd.js.map +1 -0
- package/dist/batch/index.d.ts +5 -7
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +76 -54
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +58 -11
- package/dist/bucket/index.js.map +1 -1
- package/dist/bucket/index.workerd.js +200 -5
- package/dist/bucket/index.workerd.js.map +1 -1
- package/dist/cache/core/index.d.ts +7 -10
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +22 -26
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/database/index.js.map +1 -1
- package/dist/cache/redis/index.d.ts +4 -7
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/captcha/index.d.ts +3 -6
- package/dist/captcha/index.d.ts.map +1 -1
- package/dist/captcha/index.js.map +1 -1
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +417 -214
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +325 -563
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -5
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/i18n/index.d.ts +8 -12
- package/dist/cli/i18n/index.d.ts.map +1 -1
- package/dist/cli/i18n/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +126 -1342
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +136 -2374
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/platform-lib/index.d.ts +1446 -0
- package/dist/cli/platform-lib/index.d.ts.map +1 -0
- package/dist/cli/platform-lib/index.js +2597 -0
- package/dist/cli/platform-lib/index.js.map +1 -0
- package/dist/cli/vendor/index.d.ts +17 -21
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/command/index.d.ts +21 -20
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +39 -10
- package/dist/command/index.js.map +1 -1
- package/dist/{containers → container}/core/index.d.ts +13 -15
- package/dist/container/core/index.d.ts.map +1 -0
- package/dist/{containers → container}/core/index.js +23 -14
- package/dist/container/core/index.js.map +1 -0
- package/dist/{containers → container}/core/index.workerd.js +37 -22
- package/dist/container/core/index.workerd.js.map +1 -0
- package/dist/core/index.browser.js +27 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +48 -24
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +27 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +27 -1
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +27 -1
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.browser.js.map +1 -1
- package/dist/crypto/index.d.ts +5 -8
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js.map +1 -1
- package/dist/datetime/index.d.ts +3 -4
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/brevo/index.d.ts +2 -4
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/brevo/index.js.map +1 -1
- package/dist/email/cloudflare/index.d.ts +20 -7
- package/dist/email/cloudflare/index.d.ts.map +1 -1
- package/dist/email/cloudflare/index.js +46 -9
- package/dist/email/cloudflare/index.js.map +1 -1
- package/dist/email/core/index.d.ts +6 -9
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/core/index.workerd.js.map +1 -1
- package/dist/email/smtp/index.d.ts +10 -13
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +107 -32
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +1 -2
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +9 -14
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +2 -4
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.d.ts +105 -76
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +196 -174
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +16 -20
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +19 -1
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +76 -62
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +20 -2
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +28 -20
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +12 -15
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -5
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.browser.js +9 -2
- package/dist/react/auth/index.browser.js.map +1 -1
- package/dist/react/auth/index.d.ts +14 -9
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/auth/index.js +9 -2
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +7 -8
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +6 -3
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +2 -4
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/head/index.browser.js.map +1 -1
- package/dist/react/head/index.d.ts +2 -4
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/head/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +47 -11
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +33 -1
- package/dist/react/i18n/index.js.map +1 -1
- package/dist/react/intro/index.d.ts +1 -2
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js +2 -2
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +65 -19
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +327 -222
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +65 -29
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/testing/index.d.ts +1 -2
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +16 -17
- package/dist/react/testing/index.js.map +1 -1
- package/dist/react/ui/index.d.ts +20 -25
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/index.js.map +1 -1
- package/dist/redis/index.bun.js.map +1 -1
- package/dist/redis/index.d.ts +17 -19
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts +2 -4
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +10 -13
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +45 -48
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.browser.js.map +1 -1
- package/dist/server/auth/index.d.ts +167 -172
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +4 -8
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.d.ts +5 -7
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +88 -73
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +19 -0
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +11 -14
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +6 -9
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/etag/index.js.map +1 -1
- package/dist/server/health/index.d.ts +18 -21
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/health/index.js.map +1 -1
- package/dist/server/links/index.browser.js +2 -0
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +63 -67
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +2 -0
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +5 -7
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/proxy/index.d.ts +3 -5
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts +10 -13
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +3 -5
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +5 -8
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +3 -5
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +2 -4
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.workerd.js.map +1 -1
- package/dist/topic/core/index.d.ts +4 -6
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/core/index.js.map +1 -1
- package/dist/topic/redis/index.d.ts +5 -8
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js.map +1 -1
- package/package.json +45 -22
- package/src/api/audits/__tests__/AuditService.spec.ts +18 -110
- package/src/api/audits/controllers/AdminAuditController.ts +14 -0
- package/src/api/audits/services/AuditService.ts +21 -88
- package/src/api/files/__tests__/FileService.spec.ts +207 -2
- package/src/api/files/index.ts +3 -0
- package/src/api/files/schemas/fileCreatorSummarySchema.ts +22 -0
- package/src/api/files/schemas/fileResourceSchema.ts +10 -1
- package/src/api/files/services/FileService.ts +170 -72
- package/src/api/jobs/__tests__/$job.spec.ts +24 -1
- package/src/api/jobs/index.ts +4 -3
- package/src/api/jobs/primitives/$job.ts +7 -3
- package/src/api/jobs/providers/DirectJobDispatcher.ts +17 -36
- package/src/api/jobs/providers/JobProvider.ts +53 -24
- package/src/api/jobs/schemas/jobConfigAtom.ts +1 -1
- package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +4 -1
- package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +3 -1
- package/src/api/parameters/__tests__/$parameter.spec.ts +19 -2
- package/src/api/parameters/audits/ParameterAudits.ts +17 -0
- package/src/api/parameters/controllers/AdminParameterController.ts +95 -19
- package/src/api/parameters/index.ts +3 -0
- package/src/api/parameters/schemas/activateParameterBodySchema.ts +3 -3
- package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +3 -2
- package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +25 -0
- package/src/api/parameters/schemas/parameterResponseSchema.ts +5 -0
- package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +4 -2
- package/src/api/parameters/services/ParameterProvider.ts +69 -6
- package/src/api/subscriptions/jobs/SubscriptionJobs.ts +1 -1
- package/src/api/users/__tests__/AdminSessionController.spec.ts +37 -0
- package/src/api/users/audits/SessionAudits.ts +33 -0
- package/src/api/users/audits/UserAudits.ts +19 -43
- package/src/api/users/controllers/AdminUserController.ts +66 -1
- package/src/api/users/entities/sessions.ts +6 -0
- package/src/api/users/entities/users.ts +2 -0
- package/src/api/users/index.ts +9 -1
- package/src/api/users/primitives/$realm.ts +3 -0
- package/src/api/users/schemas/sessionResourceSchema.ts +16 -0
- package/src/api/users/schemas/updateUserSchema.ts +1 -8
- package/src/api/users/schemas/userQuerySchema.ts +7 -0
- package/src/api/users/services/CredentialService.ts +15 -6
- package/src/api/users/services/IdentityService.ts +2 -1
- package/src/api/users/services/RegistrationService.ts +2 -1
- package/src/api/users/services/SessionCrudService.ts +19 -2
- package/src/api/users/services/SessionService.ts +39 -19
- package/src/api/users/services/UserService.ts +106 -8
- package/src/background/__tests__/BackgroundTaskProvider.spec.ts +96 -0
- package/src/background/index.ts +37 -0
- package/src/background/index.workerd.ts +28 -0
- package/src/background/providers/BackgroundTaskProvider.ts +70 -0
- package/src/background/providers/WorkerdBackgroundTaskProvider.ts +43 -0
- package/src/bucket/__tests__/$bucket.spec.ts +18 -0
- package/src/bucket/__tests__/LocalFileStorageProvider.spec.ts +5 -0
- package/src/bucket/__tests__/MemoryFileStorageProvider.spec.ts +5 -0
- package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +23 -4
- package/src/bucket/__tests__/shared.ts +30 -0
- package/src/bucket/index.ts +5 -5
- package/src/bucket/index.workerd.ts +11 -4
- package/src/bucket/primitives/$bucket.ts +27 -0
- package/src/bucket/providers/FileStorageProvider.ts +13 -0
- package/src/bucket/providers/LocalFileStorageProvider.ts +17 -1
- package/src/bucket/providers/MemoryFileStorageProvider.ts +7 -0
- package/src/bucket/providers/{CloudflareR2Provider.ts → R2FileStorageProvider.ts} +10 -1
- package/src/bucket/providers/{NodeS3BucketProvider.ts → S3FileStorageProvider.ts} +27 -5
- package/src/cli/core/__tests__/BuildDockerTask.spec.ts +25 -1
- package/src/cli/core/__tests__/init.spec.ts +0 -219
- package/src/cli/core/commands/__tests__/BuildCommand.spec.ts +43 -0
- package/src/cli/core/commands/build.ts +108 -30
- package/src/cli/core/commands/init.ts +0 -12
- package/src/cli/core/commands/pack.ts +133 -0
- package/src/cli/core/index.ts +3 -0
- package/src/cli/core/providers/ViteDevServerProvider.ts +40 -16
- package/src/cli/core/services/PackageManagerUtils.ts +0 -16
- package/src/cli/core/services/ProjectScaffolder.ts +29 -291
- package/src/cli/core/tasks/BuildCloudflareTask.ts +353 -47
- package/src/cli/core/tasks/BuildDockerTask.ts +33 -3
- package/src/cli/core/tasks/BuildTask.ts +34 -0
- package/src/cli/core/templates/apiIndexTs.ts +1 -22
- package/src/cli/core/templates/mainCss.ts +0 -1
- package/src/cli/core/templates/webAppRouterTs.ts +0 -99
- package/src/cli/core/templates/webIndexTs.ts +1 -22
- package/src/cli/platform/__tests__/SecretsCommand.spec.ts +5 -3
- package/src/cli/platform/commands/SecretsCommand.ts +8 -6
- package/src/cli/platform/commands/platform.ts +192 -46
- package/src/cli/platform/index.ts +12 -52
- package/src/cli/{platform → platform-lib}/__tests__/CloudflareAdapter.spec.ts +426 -169
- package/src/cli/{platform → platform-lib}/__tests__/NamingService.spec.ts +91 -4
- package/src/cli/{platform → platform-lib}/__tests__/VercelAdapter.spec.ts +56 -85
- package/src/cli/{platform → platform-lib}/adapters/CloudflareAdapter.ts +402 -165
- package/src/cli/{platform → platform-lib}/adapters/PlatformAdapter.ts +62 -35
- package/src/cli/{platform → platform-lib}/adapters/VercelAdapter.ts +6 -10
- package/src/cli/{platform → platform-lib}/atoms/platformOptions.ts +34 -1
- package/src/cli/platform-lib/index.ts +67 -0
- package/src/cli/platform-lib/services/NamingService.ts +136 -0
- package/src/cli/{platform → platform-lib}/services/PlatformInspector.ts +60 -13
- package/src/cli/{platform → platform-lib}/services/PlatformOrchestrator.ts +54 -43
- package/src/cli/{platform → platform-lib}/services/WranglerApi.ts +4 -2
- package/src/command/__tests__/Runner.spec.ts +20 -0
- package/src/command/helpers/EnvUtils.ts +19 -3
- package/src/command/helpers/Runner.ts +12 -2
- package/src/command/providers/CliProvider.ts +34 -1
- package/src/{containers → container}/core/__tests__/$container.spec.ts +5 -5
- package/src/{containers → container}/core/index.ts +4 -4
- package/src/{containers → container}/core/index.workerd.ts +19 -3
- package/src/{containers → container}/core/primitives/$container.ts +1 -1
- package/src/{containers → container}/core/providers/CloudflareContainerProvider.ts +17 -19
- package/src/{containers → container}/core/providers/ContainerProvider.ts +16 -2
- package/src/{containers → container}/core/providers/MockContainerProvider.ts +1 -1
- package/src/core/Alepha.ts +49 -1
- package/src/core/__tests__/$env.spec.ts +42 -0
- package/src/core/__tests__/dump.spec.ts +47 -0
- package/src/email/cloudflare/__tests__/CloudflareEmailProvider.spec.ts +42 -10
- package/src/email/cloudflare/index.ts +14 -5
- package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +54 -9
- package/src/logger/__tests__/Logger.spec.ts +55 -0
- package/src/logger/index.ts +13 -0
- package/src/logger/services/Logger.ts +31 -1
- package/src/orm/__tests__/orm-showcase-tests.ts +27 -0
- package/src/orm/__tests__/orm-showcase.spec.ts +12 -0
- package/src/orm/core/interfaces/PgQuery.ts +4 -1
- package/src/orm/core/services/Repository.ts +27 -11
- package/src/react/auth/hooks/useAuth.ts +10 -5
- package/src/react/core/__tests__/useQuery.browser.spec.tsx +25 -0
- package/src/react/core/hooks/useAction.ts +14 -3
- package/src/react/core/hooks/useQuery.ts +24 -4
- package/src/react/i18n/components/Translate.tsx +47 -0
- package/src/react/i18n/index.ts +2 -0
- package/src/react/intro/components/GettingStartedAdminSlide.tsx +2 -2
- package/src/react/router/__tests__/$page.spec.tsx +3 -2
- package/src/react/router/__tests__/page-can.spec.ts +18 -13
- package/src/react/router/hooks/useQueryParams.ts +114 -14
- package/src/react/router/primitives/$page.ts +85 -4
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +3 -7
- package/src/react/router/providers/ReactServerProvider.ts +4 -13
- package/src/react/ui/services/SchemaControl.ts +3 -4
- package/src/server/core/providers/ServerMultipartProvider.ts +19 -0
- package/src/server/links/providers/LinkProvider.ts +10 -0
- package/dist/containers/core/index.d.ts.map +0 -1
- package/dist/containers/core/index.js.map +0 -1
- package/dist/containers/core/index.workerd.js.map +0 -1
- package/src/cli/core/templates/componentsJsonTs.ts +0 -39
- package/src/cli/core/templates/saasAdminLayoutTsx.ts +0 -77
- package/src/cli/core/templates/saasAdminPagesTsx.ts +0 -26
- package/src/cli/core/templates/saasAuthLayoutTsx.ts +0 -22
- package/src/cli/core/templates/saasAuthPagesTsx.ts +0 -62
- package/src/cli/core/templates/saasRealmProviderTs.ts +0 -52
- package/src/cli/platform/services/NamingService.ts +0 -54
- /package/dist/orm/core/{chunk-o8xxKEmq.js → chunk-B4FMCO8f.js} +0 -0
- /package/dist/react/testing/{chunk-6Ep1yQYe.js → chunk-BpyX8vjI.js} +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/GitHubSecretStore.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformCacheProvider.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformInspector.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformOrchestrator.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/SecretFilterService.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/detectResources.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/GitHubSecretStore.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/MemorySecretStore.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/PlatformCacheProvider.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/SecretStoreProvider.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/cloudflare.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/platform.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/vercel.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/CloudflareApi.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/SecretFilterService.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/VercelApi.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/VercelCli.ts +0 -0
- /package/src/{containers → container}/core/interfaces/ContainerOptions.ts +0 -0
- /package/src/{containers → container}/core/providers/NodeContainerProvider.ts +0 -0
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
import * as _$alepha from "alepha";
|
|
2
1
|
import { Alepha, KIND, Primitive, Static, StaticEncode, TObject } from "alepha";
|
|
3
|
-
import * as _$alepha_api_jobs0 from "alepha/api/jobs";
|
|
4
|
-
import * as _$alepha_api_parameters0 from "alepha/api/parameters";
|
|
5
|
-
import * as _$alepha_orm0 from "alepha/orm";
|
|
6
|
-
import * as _$alepha_server0 from "alepha/server";
|
|
7
2
|
import { DateTimeProvider } from "alepha/datetime";
|
|
8
|
-
import * as _$alepha_logger0 from "alepha/logger";
|
|
9
3
|
import { EmailProvider } from "alepha/email";
|
|
10
4
|
import { SmsProvider } from "alepha/sms";
|
|
11
|
-
import * as _$typebox from "typebox";
|
|
12
5
|
|
|
13
6
|
//#region ../../src/api/notifications/schemas/notificationPayloadSchema.d.ts
|
|
14
|
-
declare const notificationPayloadSchema:
|
|
15
|
-
type:
|
|
16
|
-
template:
|
|
17
|
-
contact:
|
|
18
|
-
variables:
|
|
19
|
-
category:
|
|
20
|
-
critical:
|
|
21
|
-
sensitive:
|
|
7
|
+
declare const notificationPayloadSchema: import("typebox").TObject<{
|
|
8
|
+
type: import("typebox").TUnsafe<"email" | "sms">;
|
|
9
|
+
template: import("typebox").TString;
|
|
10
|
+
contact: import("typebox").TString;
|
|
11
|
+
variables: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
12
|
+
category: import("typebox").TOptional<import("typebox").TString>;
|
|
13
|
+
critical: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
14
|
+
sensitive: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
22
15
|
}>;
|
|
23
16
|
type NotificationPayload = Static<typeof notificationPayloadSchema>;
|
|
24
17
|
//#endregion
|
|
25
18
|
//#region ../../src/api/notifications/services/NotificationSenderService.d.ts
|
|
26
19
|
declare class NotificationSenderService {
|
|
27
20
|
protected readonly alepha: Alepha;
|
|
28
|
-
protected readonly log:
|
|
21
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
29
22
|
protected readonly emailProvider: EmailProvider;
|
|
30
23
|
protected readonly smsProvider: SmsProvider;
|
|
31
24
|
send(payload: NotificationPayload): Promise<{
|
|
@@ -51,7 +44,7 @@ declare class NotificationSenderService {
|
|
|
51
44
|
body: string;
|
|
52
45
|
};
|
|
53
46
|
protected load(payload: NotificationPayload): {
|
|
54
|
-
template: NotificationPrimitive<
|
|
47
|
+
template: NotificationPrimitive<import("typebox").TObject<import("typebox").TProperties>>;
|
|
55
48
|
variables: Record<string, any>;
|
|
56
49
|
contact: string;
|
|
57
50
|
};
|
|
@@ -76,53 +69,53 @@ declare class NotificationSenderService {
|
|
|
76
69
|
* that actually matters for operators.
|
|
77
70
|
*/
|
|
78
71
|
declare class NotificationJobs {
|
|
79
|
-
protected readonly log:
|
|
72
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
80
73
|
protected readonly dt: DateTimeProvider;
|
|
81
74
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
82
|
-
protected readonly executions:
|
|
83
|
-
id:
|
|
84
|
-
createdAt:
|
|
85
|
-
updatedAt:
|
|
86
|
-
jobName:
|
|
87
|
-
key:
|
|
88
|
-
status:
|
|
89
|
-
priority:
|
|
90
|
-
attempt:
|
|
91
|
-
maxAttempts:
|
|
92
|
-
payload:
|
|
93
|
-
scheduledAt:
|
|
94
|
-
startedAt:
|
|
95
|
-
completedAt:
|
|
96
|
-
error:
|
|
97
|
-
logs:
|
|
98
|
-
level:
|
|
99
|
-
message:
|
|
100
|
-
service:
|
|
101
|
-
module:
|
|
102
|
-
context:
|
|
103
|
-
app:
|
|
104
|
-
data:
|
|
105
|
-
timestamp:
|
|
75
|
+
protected readonly executions: import("alepha/orm").Repository<import("typebox").TObject<{
|
|
76
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
77
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
78
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
79
|
+
jobName: import("typebox").TString;
|
|
80
|
+
key: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TNull, import("typebox").TString]>>;
|
|
81
|
+
status: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"pending" | "running" | "scheduled" | "ok" | "error" | "cancelled">, typeof import("alepha/orm").PG_DEFAULT>;
|
|
82
|
+
priority: import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_DEFAULT>;
|
|
83
|
+
attempt: import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_DEFAULT>;
|
|
84
|
+
maxAttempts: import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_DEFAULT>;
|
|
85
|
+
payload: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
86
|
+
scheduledAt: import("typebox").TOptional<import("typebox").TString>;
|
|
87
|
+
startedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
88
|
+
completedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
89
|
+
error: import("typebox").TOptional<import("typebox").TString>;
|
|
90
|
+
logs: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
|
|
91
|
+
level: import("typebox").TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
92
|
+
message: import("typebox").TString;
|
|
93
|
+
service: import("typebox").TString;
|
|
94
|
+
module: import("typebox").TString;
|
|
95
|
+
context: import("typebox").TOptional<import("typebox").TString>;
|
|
96
|
+
app: import("typebox").TOptional<import("typebox").TString>;
|
|
97
|
+
data: import("typebox").TOptional<import("typebox").TAny>;
|
|
98
|
+
timestamp: import("typebox").TNumber;
|
|
106
99
|
}>>>;
|
|
107
|
-
triggeredBy:
|
|
108
|
-
triggeredByName:
|
|
109
|
-
cancelledBy:
|
|
110
|
-
cancelledByName:
|
|
100
|
+
triggeredBy: import("typebox").TOptional<import("typebox").TString>;
|
|
101
|
+
triggeredByName: import("typebox").TOptional<import("typebox").TString>;
|
|
102
|
+
cancelledBy: import("typebox").TOptional<import("typebox").TString>;
|
|
103
|
+
cancelledByName: import("typebox").TOptional<import("typebox").TString>;
|
|
111
104
|
}>>;
|
|
112
105
|
/** Runtime-editable config. Admins can change retentionDays without deploy. */
|
|
113
|
-
readonly settings:
|
|
114
|
-
retentionDays:
|
|
106
|
+
readonly settings: import("alepha/api/parameters").ParameterPrimitive<import("typebox").TObject<{
|
|
107
|
+
retentionDays: import("typebox").TInteger;
|
|
115
108
|
}>>;
|
|
116
|
-
readonly sendNotification:
|
|
117
|
-
type:
|
|
118
|
-
template:
|
|
119
|
-
contact:
|
|
120
|
-
variables:
|
|
121
|
-
category:
|
|
122
|
-
critical:
|
|
123
|
-
sensitive:
|
|
109
|
+
readonly sendNotification: import("alepha/api/jobs").JobPrimitive<import("typebox").TObject<{
|
|
110
|
+
type: import("typebox").TUnsafe<"email" | "sms">;
|
|
111
|
+
template: import("typebox").TString;
|
|
112
|
+
contact: import("typebox").TString;
|
|
113
|
+
variables: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
114
|
+
category: import("typebox").TOptional<import("typebox").TString>;
|
|
115
|
+
critical: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
116
|
+
sensitive: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
124
117
|
}>>;
|
|
125
|
-
readonly purgeOldNotifications:
|
|
118
|
+
readonly purgeOldNotifications: import("alepha/api/jobs").JobPrimitive<import("typebox").TSchema>;
|
|
126
119
|
}
|
|
127
120
|
//#endregion
|
|
128
121
|
//#region ../../src/api/notifications/controllers/AdminNotificationController.d.ts
|
|
@@ -130,106 +123,106 @@ declare class AdminNotificationController {
|
|
|
130
123
|
protected readonly url: string;
|
|
131
124
|
protected readonly group: string;
|
|
132
125
|
protected readonly notificationJobs: NotificationJobs;
|
|
133
|
-
protected readonly executions:
|
|
134
|
-
id:
|
|
135
|
-
createdAt:
|
|
136
|
-
updatedAt:
|
|
137
|
-
jobName:
|
|
138
|
-
key:
|
|
139
|
-
status:
|
|
140
|
-
priority:
|
|
141
|
-
attempt:
|
|
142
|
-
maxAttempts:
|
|
143
|
-
payload:
|
|
144
|
-
scheduledAt:
|
|
145
|
-
startedAt:
|
|
146
|
-
completedAt:
|
|
147
|
-
error:
|
|
148
|
-
logs:
|
|
149
|
-
level:
|
|
150
|
-
message:
|
|
151
|
-
service:
|
|
152
|
-
module:
|
|
153
|
-
context:
|
|
154
|
-
app:
|
|
155
|
-
data:
|
|
156
|
-
timestamp:
|
|
126
|
+
protected readonly executions: import("alepha/orm").Repository<import("typebox").TObject<{
|
|
127
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
128
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
129
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
130
|
+
jobName: import("typebox").TString;
|
|
131
|
+
key: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TNull, import("typebox").TString]>>;
|
|
132
|
+
status: import("alepha/orm").PgAttr<import("typebox").TUnsafe<"pending" | "running" | "scheduled" | "ok" | "error" | "cancelled">, typeof import("alepha/orm").PG_DEFAULT>;
|
|
133
|
+
priority: import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_DEFAULT>;
|
|
134
|
+
attempt: import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_DEFAULT>;
|
|
135
|
+
maxAttempts: import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_DEFAULT>;
|
|
136
|
+
payload: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
137
|
+
scheduledAt: import("typebox").TOptional<import("typebox").TString>;
|
|
138
|
+
startedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
139
|
+
completedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
140
|
+
error: import("typebox").TOptional<import("typebox").TString>;
|
|
141
|
+
logs: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
|
|
142
|
+
level: import("typebox").TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
143
|
+
message: import("typebox").TString;
|
|
144
|
+
service: import("typebox").TString;
|
|
145
|
+
module: import("typebox").TString;
|
|
146
|
+
context: import("typebox").TOptional<import("typebox").TString>;
|
|
147
|
+
app: import("typebox").TOptional<import("typebox").TString>;
|
|
148
|
+
data: import("typebox").TOptional<import("typebox").TAny>;
|
|
149
|
+
timestamp: import("typebox").TNumber;
|
|
157
150
|
}>>>;
|
|
158
|
-
triggeredBy:
|
|
159
|
-
triggeredByName:
|
|
160
|
-
cancelledBy:
|
|
161
|
-
cancelledByName:
|
|
151
|
+
triggeredBy: import("typebox").TOptional<import("typebox").TString>;
|
|
152
|
+
triggeredByName: import("typebox").TOptional<import("typebox").TString>;
|
|
153
|
+
cancelledBy: import("typebox").TOptional<import("typebox").TString>;
|
|
154
|
+
cancelledByName: import("typebox").TOptional<import("typebox").TString>;
|
|
162
155
|
}>>;
|
|
163
156
|
protected get jobName(): string;
|
|
164
|
-
readonly findNotifications:
|
|
165
|
-
query:
|
|
166
|
-
page:
|
|
167
|
-
size:
|
|
168
|
-
sort:
|
|
169
|
-
status:
|
|
157
|
+
readonly findNotifications: import("alepha/server").ActionPrimitiveFn<{
|
|
158
|
+
query: import("typebox").TObject<{
|
|
159
|
+
page: import("typebox").TOptional<import("typebox").TInteger>;
|
|
160
|
+
size: import("typebox").TOptional<import("typebox").TInteger>;
|
|
161
|
+
sort: import("typebox").TOptional<import("typebox").TString>;
|
|
162
|
+
status: import("typebox").TOptional<import("typebox").TUnsafe<"pending" | "running" | "scheduled" | "cancelled" | "retrying" | "completed" | "dead">>;
|
|
170
163
|
}>;
|
|
171
|
-
response:
|
|
172
|
-
id:
|
|
173
|
-
createdAt:
|
|
174
|
-
status:
|
|
175
|
-
template:
|
|
176
|
-
type:
|
|
177
|
-
contact:
|
|
178
|
-
category:
|
|
179
|
-
critical:
|
|
180
|
-
sensitive:
|
|
181
|
-
startedAt:
|
|
182
|
-
completedAt:
|
|
183
|
-
error:
|
|
164
|
+
response: import("alepha").TPage<import("typebox").TObject<{
|
|
165
|
+
id: import("typebox").TString;
|
|
166
|
+
createdAt: import("typebox").TString;
|
|
167
|
+
status: import("typebox").TString;
|
|
168
|
+
template: import("typebox").TOptional<import("typebox").TString>;
|
|
169
|
+
type: import("typebox").TOptional<import("typebox").TString>;
|
|
170
|
+
contact: import("typebox").TOptional<import("typebox").TString>;
|
|
171
|
+
category: import("typebox").TOptional<import("typebox").TString>;
|
|
172
|
+
critical: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
173
|
+
sensitive: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
174
|
+
startedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
175
|
+
completedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
176
|
+
error: import("typebox").TOptional<import("typebox").TString>;
|
|
184
177
|
}>>;
|
|
185
178
|
}>;
|
|
186
|
-
readonly getNotification:
|
|
187
|
-
params:
|
|
188
|
-
id:
|
|
179
|
+
readonly getNotification: import("alepha/server").ActionPrimitiveFn<{
|
|
180
|
+
params: import("typebox").TObject<{
|
|
181
|
+
id: import("typebox").TString;
|
|
189
182
|
}>;
|
|
190
|
-
response:
|
|
191
|
-
id:
|
|
192
|
-
createdAt:
|
|
193
|
-
status:
|
|
194
|
-
template:
|
|
195
|
-
type:
|
|
196
|
-
contact:
|
|
197
|
-
category:
|
|
198
|
-
critical:
|
|
199
|
-
sensitive:
|
|
200
|
-
startedAt:
|
|
201
|
-
completedAt:
|
|
202
|
-
error:
|
|
203
|
-
variables:
|
|
204
|
-
rendered:
|
|
205
|
-
logs:
|
|
206
|
-
level:
|
|
207
|
-
message:
|
|
208
|
-
service:
|
|
209
|
-
module:
|
|
210
|
-
context:
|
|
211
|
-
app:
|
|
212
|
-
data:
|
|
213
|
-
timestamp:
|
|
183
|
+
response: import("typebox").TObject<{
|
|
184
|
+
id: import("typebox").TString;
|
|
185
|
+
createdAt: import("typebox").TString;
|
|
186
|
+
status: import("typebox").TString;
|
|
187
|
+
template: import("typebox").TOptional<import("typebox").TString>;
|
|
188
|
+
type: import("typebox").TOptional<import("typebox").TString>;
|
|
189
|
+
contact: import("typebox").TOptional<import("typebox").TString>;
|
|
190
|
+
category: import("typebox").TOptional<import("typebox").TString>;
|
|
191
|
+
critical: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
192
|
+
sensitive: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
193
|
+
startedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
194
|
+
completedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
195
|
+
error: import("typebox").TOptional<import("typebox").TString>;
|
|
196
|
+
variables: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
197
|
+
rendered: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
198
|
+
logs: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
|
|
199
|
+
level: import("typebox").TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
200
|
+
message: import("typebox").TString;
|
|
201
|
+
service: import("typebox").TString;
|
|
202
|
+
module: import("typebox").TString;
|
|
203
|
+
context: import("typebox").TOptional<import("typebox").TString>;
|
|
204
|
+
app: import("typebox").TOptional<import("typebox").TString>;
|
|
205
|
+
data: import("typebox").TOptional<import("typebox").TAny>;
|
|
206
|
+
timestamp: import("typebox").TNumber;
|
|
214
207
|
}>>>;
|
|
215
208
|
}>;
|
|
216
209
|
}>;
|
|
217
|
-
readonly deleteNotification:
|
|
218
|
-
params:
|
|
219
|
-
id:
|
|
210
|
+
readonly deleteNotification: import("alepha/server").ActionPrimitiveFn<{
|
|
211
|
+
params: import("typebox").TObject<{
|
|
212
|
+
id: import("typebox").TString;
|
|
220
213
|
}>;
|
|
221
|
-
response:
|
|
222
|
-
ok:
|
|
223
|
-
id:
|
|
224
|
-
count:
|
|
214
|
+
response: import("typebox").TObject<{
|
|
215
|
+
ok: import("typebox").TBoolean;
|
|
216
|
+
id: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TInteger]>>;
|
|
217
|
+
count: import("typebox").TOptional<import("typebox").TNumber>;
|
|
225
218
|
}>;
|
|
226
219
|
}>;
|
|
227
|
-
readonly deleteNotifications:
|
|
228
|
-
body:
|
|
229
|
-
ids:
|
|
220
|
+
readonly deleteNotifications: import("alepha/server").ActionPrimitiveFn<{
|
|
221
|
+
body: import("typebox").TObject<{
|
|
222
|
+
ids: import("typebox").TArray<import("typebox").TString>;
|
|
230
223
|
}>;
|
|
231
|
-
response:
|
|
232
|
-
deleted:
|
|
224
|
+
response: import("typebox").TObject<{
|
|
225
|
+
deleted: import("typebox").TArray<import("typebox").TString>;
|
|
233
226
|
}>;
|
|
234
227
|
}>;
|
|
235
228
|
protected toResource(exec: Record<string, unknown>): {
|
|
@@ -329,74 +322,74 @@ interface NotificationMessage<T extends TObject> {
|
|
|
329
322
|
}
|
|
330
323
|
//#endregion
|
|
331
324
|
//#region ../../src/api/notifications/schemas/notificationContactPreferencesSchema.d.ts
|
|
332
|
-
declare const notificationContactPreferencesSchema:
|
|
333
|
-
language:
|
|
334
|
-
exclude:
|
|
325
|
+
declare const notificationContactPreferencesSchema: import("typebox").TObject<{
|
|
326
|
+
language: import("typebox").TOptional<import("typebox").TString>;
|
|
327
|
+
exclude: import("typebox").TArray<import("typebox").TString>;
|
|
335
328
|
}>;
|
|
336
329
|
type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
|
|
337
330
|
//#endregion
|
|
338
331
|
//#region ../../src/api/notifications/schemas/notificationContactSchema.d.ts
|
|
339
|
-
declare const notificationContactSchema:
|
|
340
|
-
email:
|
|
341
|
-
phoneNumber:
|
|
342
|
-
firstName:
|
|
343
|
-
lastName:
|
|
344
|
-
language:
|
|
332
|
+
declare const notificationContactSchema: import("typebox").TObject<{
|
|
333
|
+
email: import("typebox").TOptional<import("typebox").TString>;
|
|
334
|
+
phoneNumber: import("typebox").TOptional<import("typebox").TString>;
|
|
335
|
+
firstName: import("typebox").TOptional<import("typebox").TString>;
|
|
336
|
+
lastName: import("typebox").TOptional<import("typebox").TString>;
|
|
337
|
+
language: import("typebox").TOptional<import("typebox").TString>;
|
|
345
338
|
}>;
|
|
346
339
|
type NotificationContact = Static<typeof notificationContactSchema>;
|
|
347
340
|
//#endregion
|
|
348
341
|
//#region ../../src/api/notifications/schemas/notificationDetailResourceSchema.d.ts
|
|
349
|
-
declare const notificationDetailResourceSchema:
|
|
350
|
-
id:
|
|
351
|
-
createdAt:
|
|
352
|
-
status:
|
|
353
|
-
template:
|
|
354
|
-
type:
|
|
355
|
-
contact:
|
|
356
|
-
category:
|
|
357
|
-
critical:
|
|
358
|
-
sensitive:
|
|
359
|
-
startedAt:
|
|
360
|
-
completedAt:
|
|
361
|
-
error:
|
|
362
|
-
variables:
|
|
363
|
-
rendered:
|
|
364
|
-
logs:
|
|
365
|
-
level:
|
|
366
|
-
message:
|
|
367
|
-
service:
|
|
368
|
-
module:
|
|
369
|
-
context:
|
|
370
|
-
app:
|
|
371
|
-
data:
|
|
372
|
-
timestamp:
|
|
342
|
+
declare const notificationDetailResourceSchema: import("typebox").TObject<{
|
|
343
|
+
id: import("typebox").TString;
|
|
344
|
+
createdAt: import("typebox").TString;
|
|
345
|
+
status: import("typebox").TString;
|
|
346
|
+
template: import("typebox").TOptional<import("typebox").TString>;
|
|
347
|
+
type: import("typebox").TOptional<import("typebox").TString>;
|
|
348
|
+
contact: import("typebox").TOptional<import("typebox").TString>;
|
|
349
|
+
category: import("typebox").TOptional<import("typebox").TString>;
|
|
350
|
+
critical: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
351
|
+
sensitive: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
352
|
+
startedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
353
|
+
completedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
354
|
+
error: import("typebox").TOptional<import("typebox").TString>;
|
|
355
|
+
variables: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
356
|
+
rendered: import("typebox").TOptional<import("typebox").TRecord<"^.*$", import("typebox").TAny>>;
|
|
357
|
+
logs: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
|
|
358
|
+
level: import("typebox").TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
359
|
+
message: import("typebox").TString;
|
|
360
|
+
service: import("typebox").TString;
|
|
361
|
+
module: import("typebox").TString;
|
|
362
|
+
context: import("typebox").TOptional<import("typebox").TString>;
|
|
363
|
+
app: import("typebox").TOptional<import("typebox").TString>;
|
|
364
|
+
data: import("typebox").TOptional<import("typebox").TAny>;
|
|
365
|
+
timestamp: import("typebox").TNumber;
|
|
373
366
|
}>>>;
|
|
374
367
|
}>;
|
|
375
368
|
type NotificationDetailResource = Static<typeof notificationDetailResourceSchema>;
|
|
376
369
|
//#endregion
|
|
377
370
|
//#region ../../src/api/notifications/schemas/notificationQuerySchema.d.ts
|
|
378
|
-
declare const notificationQuerySchema:
|
|
379
|
-
page:
|
|
380
|
-
size:
|
|
381
|
-
sort:
|
|
382
|
-
status:
|
|
371
|
+
declare const notificationQuerySchema: import("typebox").TObject<{
|
|
372
|
+
page: import("typebox").TOptional<import("typebox").TInteger>;
|
|
373
|
+
size: import("typebox").TOptional<import("typebox").TInteger>;
|
|
374
|
+
sort: import("typebox").TOptional<import("typebox").TString>;
|
|
375
|
+
status: import("typebox").TOptional<import("typebox").TUnsafe<"pending" | "running" | "scheduled" | "cancelled" | "retrying" | "completed" | "dead">>;
|
|
383
376
|
}>;
|
|
384
377
|
type NotificationQuery = Static<typeof notificationQuerySchema>;
|
|
385
378
|
//#endregion
|
|
386
379
|
//#region ../../src/api/notifications/schemas/notificationResourceSchema.d.ts
|
|
387
|
-
declare const notificationResourceSchema:
|
|
388
|
-
id:
|
|
389
|
-
createdAt:
|
|
390
|
-
status:
|
|
391
|
-
template:
|
|
392
|
-
type:
|
|
393
|
-
contact:
|
|
394
|
-
category:
|
|
395
|
-
critical:
|
|
396
|
-
sensitive:
|
|
397
|
-
startedAt:
|
|
398
|
-
completedAt:
|
|
399
|
-
error:
|
|
380
|
+
declare const notificationResourceSchema: import("typebox").TObject<{
|
|
381
|
+
id: import("typebox").TString;
|
|
382
|
+
createdAt: import("typebox").TString;
|
|
383
|
+
status: import("typebox").TString;
|
|
384
|
+
template: import("typebox").TOptional<import("typebox").TString>;
|
|
385
|
+
type: import("typebox").TOptional<import("typebox").TString>;
|
|
386
|
+
contact: import("typebox").TOptional<import("typebox").TString>;
|
|
387
|
+
category: import("typebox").TOptional<import("typebox").TString>;
|
|
388
|
+
critical: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
389
|
+
sensitive: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
390
|
+
startedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
391
|
+
completedAt: import("typebox").TOptional<import("typebox").TString>;
|
|
392
|
+
error: import("typebox").TOptional<import("typebox").TString>;
|
|
400
393
|
}>;
|
|
401
394
|
type NotificationResource = Static<typeof notificationResourceSchema>;
|
|
402
395
|
//#endregion
|
|
@@ -422,7 +415,7 @@ type NotificationResource = Static<typeof notificationResourceSchema>;
|
|
|
422
415
|
*
|
|
423
416
|
* @module alepha.api.notifications
|
|
424
417
|
*/
|
|
425
|
-
declare const AlephaApiNotifications:
|
|
418
|
+
declare const AlephaApiNotifications: import("alepha").Service<import("alepha").Module>;
|
|
426
419
|
//#endregion
|
|
427
420
|
export { $notification, AdminNotificationController, AlephaApiNotifications, NotificationContact, NotificationContactPreferences, NotificationDetailResource, NotificationJobs, NotificationMessage, NotificationPayload, NotificationPrimitive, NotificationPrimitiveOptions, NotificationPushOptions, NotificationQuery, NotificationResource, NotificationSenderService, notificationContactPreferencesSchema, notificationContactSchema, notificationDetailResourceSchema, notificationPayloadSchema, notificationQuerySchema, notificationResourceSchema };
|
|
428
421
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../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/primitives/$notification.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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../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/primitives/$notification.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":"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"}
|