alepha 0.19.1 → 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/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 +207 -207
- 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 +978 -913
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +160 -112
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +135 -135
- 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 -140
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +279 -89
- 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.d.ts +18 -17
- package/dist/orm/postgres/index.d.ts.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 +1 -1
- 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 +36 -14
- 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/{services → __tests__}/SessionService.spec.ts +67 -0
- package/src/api/users/{jobs → __tests__}/UserJobs.spec.ts +1 -1
- package/src/api/users/entities/users.ts +9 -3
- package/src/api/users/index.ts +23 -4
- package/src/api/users/primitives/$realm.ts +6 -4
- package/src/api/users/providers/RealmProvider.ts +1 -1
- package/src/api/users/services/RegistrationService.ts +1 -1
- package/src/api/users/services/SessionService.ts +92 -5
- 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 +2 -8
- 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 +54 -66
- package/src/cli/core/services/PackageManagerUtils.ts +8 -3
- package/src/cli/core/services/ProjectScaffolder.ts +18 -18
- 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/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 +1 -1
- 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/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/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/{controllers → __tests__}/FileController.spec.ts +0 -0
- /package/src/api/files/{jobs → __tests__}/FileJobs.spec.ts +0 -0
- /package/src/api/files/{services → __tests__}/FileService.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/{primitives → __tests__}/$realm.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/{providers → __tests__}/RealmProvider.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
package/dist/api/jobs/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as alepha from "alepha";
|
|
1
|
+
import * as _$alepha from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, KIND, PipelinePrimitive, PipelinePrimitiveOptions, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
|
-
import * as alepha_queue0 from "alepha/queue";
|
|
3
|
+
import * as _$alepha_queue0 from "alepha/queue";
|
|
4
4
|
import { CronProvider } from "alepha/scheduler";
|
|
5
|
-
import * as alepha_server0 from "alepha/server";
|
|
6
|
-
import * as alepha_logger0 from "alepha/logger";
|
|
7
|
-
import * as alepha_orm0 from "alepha/orm";
|
|
5
|
+
import * as _$alepha_server0 from "alepha/server";
|
|
6
|
+
import * as _$alepha_logger0 from "alepha/logger";
|
|
7
|
+
import * as _$alepha_orm0 from "alepha/orm";
|
|
8
8
|
import { DatabaseProvider } from "alepha/orm";
|
|
9
9
|
import { DateTime, DateTimeProvider, DurationLike } from "alepha/datetime";
|
|
10
10
|
import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
|
|
11
11
|
import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
12
|
-
import * as typebox from "typebox";
|
|
12
|
+
import * as _$typebox from "typebox";
|
|
13
13
|
//#region ../../src/orm/core/schemas/insertSchema.d.ts
|
|
14
14
|
/**
|
|
15
15
|
* Transforms a TObject schema for insert operations.
|
|
@@ -90,6 +90,36 @@ interface EntityPrimitiveOptions<T extends TObject, Keys = keyof Static<T>> {
|
|
|
90
90
|
* Partial index condition. Only rows matching this SQL expression are indexed.
|
|
91
91
|
*/
|
|
92
92
|
where?: SQL;
|
|
93
|
+
} | {
|
|
94
|
+
/**
|
|
95
|
+
* SQL expressions for expression-based indexes.
|
|
96
|
+
*
|
|
97
|
+
* Can include column references and SQL functions like `LOWER()`, `UPPER()`, etc.
|
|
98
|
+
* Columns and expressions can be mixed together.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* // Case-insensitive unique username per realm
|
|
103
|
+
* indexes: [{
|
|
104
|
+
* expressions: (self) => [self.realm, sql`LOWER(${self.username})`],
|
|
105
|
+
* unique: true,
|
|
106
|
+
* name: "users_realm_username_lower_idx",
|
|
107
|
+
* }]
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
expressions: (self: Record<Keys & string, any>) => (SQL | any)[];
|
|
111
|
+
/**
|
|
112
|
+
* Whether this should be a unique index (enforces uniqueness constraint).
|
|
113
|
+
*/
|
|
114
|
+
unique?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Custom name for the index. If not provided, generates name automatically.
|
|
117
|
+
*/
|
|
118
|
+
name: string;
|
|
119
|
+
/**
|
|
120
|
+
* Partial index condition. Only rows matching this SQL expression are indexed.
|
|
121
|
+
*/
|
|
122
|
+
where?: SQL;
|
|
93
123
|
})[];
|
|
94
124
|
/**
|
|
95
125
|
* Foreign key constraints to maintain referential integrity.
|
|
@@ -194,6 +224,7 @@ declare const PG_IDENTITY: unique symbol;
|
|
|
194
224
|
declare const PG_ENUM: unique symbol;
|
|
195
225
|
declare const PG_REF: unique symbol;
|
|
196
226
|
declare const PG_GENERATED: unique symbol;
|
|
227
|
+
declare const PG_ORGANIZATION: unique symbol;
|
|
197
228
|
/**
|
|
198
229
|
* @deprecated Use `PG_IDENTITY` instead.
|
|
199
230
|
*/
|
|
@@ -209,6 +240,7 @@ type PgSymbols = {
|
|
|
209
240
|
[PG_REF]: PgRefOptions;
|
|
210
241
|
[PG_ENUM]: PgEnumOptions;
|
|
211
242
|
[PG_GENERATED]: PgGeneratedOptions;
|
|
243
|
+
[PG_ORGANIZATION]: {};
|
|
212
244
|
/**
|
|
213
245
|
* @deprecated Use `PG_IDENTITY` instead.
|
|
214
246
|
*/
|
|
@@ -267,8 +299,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
|
|
|
267
299
|
* - `d1://BINDING_NAME` — Cloudflare D1
|
|
268
300
|
* - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
|
|
269
301
|
*/
|
|
270
|
-
declare const databaseEnvSchema: alepha.TObject<{
|
|
271
|
-
DATABASE_URL: alepha.TOptional<alepha.TString>;
|
|
302
|
+
declare const databaseEnvSchema: _$alepha.TObject<{
|
|
303
|
+
DATABASE_URL: _$alepha.TOptional<_$alepha.TString>;
|
|
272
304
|
/**
|
|
273
305
|
* Enable or disable push-based schema synchronization (drizzle-kit push).
|
|
274
306
|
*
|
|
@@ -276,7 +308,7 @@ declare const databaseEnvSchema: alepha.TObject<{
|
|
|
276
308
|
* Set to `false` in development to skip automatic schema sync
|
|
277
309
|
* (e.g. when managing migrations manually).
|
|
278
310
|
*/
|
|
279
|
-
DATABASE_SYNC: alepha.TOptional<alepha.TBoolean>;
|
|
311
|
+
DATABASE_SYNC: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
280
312
|
}>;
|
|
281
313
|
declare module "alepha" {
|
|
282
314
|
interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
|
|
@@ -422,40 +454,40 @@ declare class JobProvider {
|
|
|
422
454
|
logRetentionDays: number;
|
|
423
455
|
logMaxEntries: number;
|
|
424
456
|
}>;
|
|
425
|
-
protected readonly log: alepha_logger0.Logger;
|
|
426
|
-
protected readonly executions: alepha_orm0.Repository<alepha.TObject<{
|
|
427
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
428
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
429
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
430
|
-
jobName: alepha.TString;
|
|
431
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
432
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
433
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
434
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
435
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
436
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
437
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
438
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
439
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
440
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
441
|
-
error: alepha.TOptional<alepha.TString>;
|
|
442
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
443
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
444
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
445
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
446
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
457
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
458
|
+
protected readonly executions: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
459
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
460
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
461
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
462
|
+
jobName: _$alepha.TString;
|
|
463
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
464
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
465
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
466
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
467
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
468
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
469
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
470
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
471
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
472
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
473
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
474
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
475
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
476
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
477
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
478
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
447
479
|
}>>;
|
|
448
|
-
protected readonly executionLogs: alepha_orm0.Repository<alepha.TObject<{
|
|
449
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
450
|
-
logs: alepha.TArray<alepha.TObject<{
|
|
451
|
-
level: alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
452
|
-
message: alepha.TString;
|
|
453
|
-
service: alepha.TString;
|
|
454
|
-
module: alepha.TString;
|
|
455
|
-
context: alepha.TOptional<alepha.TString>;
|
|
456
|
-
app: alepha.TOptional<alepha.TString>;
|
|
457
|
-
data: alepha.TOptional<alepha.TAny>;
|
|
458
|
-
timestamp: alepha.TNumber;
|
|
480
|
+
protected readonly executionLogs: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
481
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
482
|
+
logs: _$alepha.TArray<_$alepha.TObject<{
|
|
483
|
+
level: _$alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
484
|
+
message: _$alepha.TString;
|
|
485
|
+
service: _$alepha.TString;
|
|
486
|
+
module: _$alepha.TString;
|
|
487
|
+
context: _$alepha.TOptional<_$alepha.TString>;
|
|
488
|
+
app: _$alepha.TOptional<_$alepha.TString>;
|
|
489
|
+
data: _$alepha.TOptional<_$alepha.TAny>;
|
|
490
|
+
timestamp: _$alepha.TNumber;
|
|
459
491
|
}>>;
|
|
460
492
|
}>>;
|
|
461
493
|
protected readonly jobs: Map<string, JobRegistration$1>;
|
|
@@ -517,104 +549,104 @@ declare class JobProvider {
|
|
|
517
549
|
* Deletes completed/dead/cancelled execution records older than `logRetentionDays`.
|
|
518
550
|
*/
|
|
519
551
|
protected logPurge(): Promise<void>;
|
|
520
|
-
protected readonly onStart: alepha.HookPrimitive<"start">;
|
|
521
|
-
protected readonly onStop: alepha.HookPrimitive<"stop">;
|
|
552
|
+
protected readonly onStart: _$alepha.HookPrimitive<"start">;
|
|
553
|
+
protected readonly onStop: _$alepha.HookPrimitive<"stop">;
|
|
522
554
|
protected getRegistration(name: string): JobRegistration$1;
|
|
523
555
|
}
|
|
524
556
|
//#endregion
|
|
525
557
|
//#region ../../src/api/jobs/schemas/jobActivitySchema.d.ts
|
|
526
|
-
declare const jobActivityPointSchema: alepha.TObject<{
|
|
527
|
-
date: alepha.TString;
|
|
528
|
-
completed: alepha.TInteger;
|
|
529
|
-
failed: alepha.TInteger;
|
|
558
|
+
declare const jobActivityPointSchema: _$alepha.TObject<{
|
|
559
|
+
date: _$alepha.TString;
|
|
560
|
+
completed: _$alepha.TInteger;
|
|
561
|
+
failed: _$alepha.TInteger;
|
|
530
562
|
}>;
|
|
531
563
|
type JobActivityPoint = Static<typeof jobActivityPointSchema>;
|
|
532
|
-
declare const jobActivityQuerySchema: alepha.TObject<{
|
|
533
|
-
days: alepha.TOptional<alepha.TInteger>;
|
|
564
|
+
declare const jobActivityQuerySchema: _$alepha.TObject<{
|
|
565
|
+
days: _$alepha.TOptional<_$alepha.TInteger>;
|
|
534
566
|
}>;
|
|
535
567
|
type JobActivityQuery = Static<typeof jobActivityQuerySchema>;
|
|
536
568
|
//#endregion
|
|
537
569
|
//#region ../../src/api/jobs/schemas/jobCronInfoSchema.d.ts
|
|
538
|
-
declare const jobCronInfoSchema: alepha.TObject<{
|
|
539
|
-
name: alepha.TString;
|
|
540
|
-
cron: alepha.TString;
|
|
541
|
-
lock: alepha.TBoolean;
|
|
542
|
-
priority: alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
543
|
-
concurrency: alepha.TInteger;
|
|
544
|
-
hasSchema: alepha.TBoolean;
|
|
545
|
-
lastExecution: alepha.TOptional<alepha.TObject<{
|
|
546
|
-
id: alepha.TString;
|
|
547
|
-
status: alepha.TString;
|
|
548
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
549
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
550
|
-
error: alepha.TOptional<alepha.TString>;
|
|
570
|
+
declare const jobCronInfoSchema: _$alepha.TObject<{
|
|
571
|
+
name: _$alepha.TString;
|
|
572
|
+
cron: _$alepha.TString;
|
|
573
|
+
lock: _$alepha.TBoolean;
|
|
574
|
+
priority: _$alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
575
|
+
concurrency: _$alepha.TInteger;
|
|
576
|
+
hasSchema: _$alepha.TBoolean;
|
|
577
|
+
lastExecution: _$alepha.TOptional<_$alepha.TObject<{
|
|
578
|
+
id: _$alepha.TString;
|
|
579
|
+
status: _$alepha.TString;
|
|
580
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
581
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
582
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
551
583
|
}>>;
|
|
552
584
|
}>;
|
|
553
585
|
type JobCronInfo = Static<typeof jobCronInfoSchema>;
|
|
554
586
|
//#endregion
|
|
555
587
|
//#region ../../src/api/jobs/schemas/jobExecutionQuerySchema.d.ts
|
|
556
|
-
declare const jobExecutionQuerySchema: alepha.TObject<{
|
|
557
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
558
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
559
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
560
|
-
job: alepha.TOptional<alepha.TString>;
|
|
561
|
-
status: alepha.TOptional<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
562
|
-
priority: alepha.TOptional<alepha.TUnsafe<"critical" | "high" | "normal" | "low">>;
|
|
563
|
-
from: alepha.TOptional<alepha.TString>;
|
|
564
|
-
to: alepha.TOptional<alepha.TString>;
|
|
588
|
+
declare const jobExecutionQuerySchema: _$alepha.TObject<{
|
|
589
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
590
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
591
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
592
|
+
job: _$alepha.TOptional<_$alepha.TString>;
|
|
593
|
+
status: _$alepha.TOptional<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
594
|
+
priority: _$alepha.TOptional<_$alepha.TUnsafe<"critical" | "high" | "normal" | "low">>;
|
|
595
|
+
from: _$alepha.TOptional<_$alepha.TString>;
|
|
596
|
+
to: _$alepha.TOptional<_$alepha.TString>;
|
|
565
597
|
}>;
|
|
566
598
|
type JobExecutionQuery = Static<typeof jobExecutionQuerySchema>;
|
|
567
599
|
//#endregion
|
|
568
600
|
//#region ../../src/api/jobs/schemas/jobFailureSchema.d.ts
|
|
569
|
-
declare const jobFailureSchema: alepha.TObject<{
|
|
570
|
-
jobName: alepha.TString;
|
|
571
|
-
failures: alepha.TInteger;
|
|
572
|
-
lastError: alepha.TOptional<alepha.TString>;
|
|
601
|
+
declare const jobFailureSchema: _$alepha.TObject<{
|
|
602
|
+
jobName: _$alepha.TString;
|
|
603
|
+
failures: _$alepha.TInteger;
|
|
604
|
+
lastError: _$alepha.TOptional<_$alepha.TString>;
|
|
573
605
|
}>;
|
|
574
606
|
type JobFailure = Static<typeof jobFailureSchema>;
|
|
575
607
|
//#endregion
|
|
576
608
|
//#region ../../src/api/jobs/schemas/jobQueueDepthSchema.d.ts
|
|
577
|
-
declare const jobQueueDepthSchema: alepha.TObject<{
|
|
578
|
-
jobName: alepha.TString;
|
|
579
|
-
pending: alepha.TInteger;
|
|
580
|
-
running: alepha.TInteger;
|
|
581
|
-
scheduled: alepha.TInteger;
|
|
582
|
-
retrying: alepha.TInteger;
|
|
583
|
-
dead: alepha.TInteger;
|
|
584
|
-
concurrency: alepha.TInteger;
|
|
609
|
+
declare const jobQueueDepthSchema: _$alepha.TObject<{
|
|
610
|
+
jobName: _$alepha.TString;
|
|
611
|
+
pending: _$alepha.TInteger;
|
|
612
|
+
running: _$alepha.TInteger;
|
|
613
|
+
scheduled: _$alepha.TInteger;
|
|
614
|
+
retrying: _$alepha.TInteger;
|
|
615
|
+
dead: _$alepha.TInteger;
|
|
616
|
+
concurrency: _$alepha.TInteger;
|
|
585
617
|
}>;
|
|
586
618
|
type JobQueueDepth = Static<typeof jobQueueDepthSchema>;
|
|
587
619
|
//#endregion
|
|
588
620
|
//#region ../../src/api/jobs/schemas/jobRegistrationSchema.d.ts
|
|
589
|
-
declare const jobRegistrationSchema: alepha.TObject<{
|
|
590
|
-
name: alepha.TString;
|
|
591
|
-
type: alepha.TUnsafe<"push" | "cron" | "both">;
|
|
592
|
-
priority: alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
593
|
-
concurrency: alepha.TInteger;
|
|
594
|
-
hasSchema: alepha.TBoolean;
|
|
595
|
-
cron: alepha.TOptional<alepha.TString>;
|
|
596
|
-
timeout: alepha.TOptional<alepha.TString>;
|
|
597
|
-
retry: alepha.TOptional<alepha.TObject<{
|
|
598
|
-
retries: alepha.TInteger;
|
|
599
|
-
hasBackoff: alepha.TBoolean;
|
|
621
|
+
declare const jobRegistrationSchema: _$alepha.TObject<{
|
|
622
|
+
name: _$alepha.TString;
|
|
623
|
+
type: _$alepha.TUnsafe<"push" | "cron" | "both">;
|
|
624
|
+
priority: _$alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
625
|
+
concurrency: _$alepha.TInteger;
|
|
626
|
+
hasSchema: _$alepha.TBoolean;
|
|
627
|
+
cron: _$alepha.TOptional<_$alepha.TString>;
|
|
628
|
+
timeout: _$alepha.TOptional<_$alepha.TString>;
|
|
629
|
+
retry: _$alepha.TOptional<_$alepha.TObject<{
|
|
630
|
+
retries: _$alepha.TInteger;
|
|
631
|
+
hasBackoff: _$alepha.TBoolean;
|
|
600
632
|
}>>;
|
|
601
|
-
batch: alepha.TOptional<alepha.TObject<{
|
|
602
|
-
size: alepha.TInteger;
|
|
603
|
-
window: alepha.TString;
|
|
633
|
+
batch: _$alepha.TOptional<_$alepha.TObject<{
|
|
634
|
+
size: _$alepha.TInteger;
|
|
635
|
+
window: _$alepha.TString;
|
|
604
636
|
}>>;
|
|
605
637
|
}>;
|
|
606
638
|
type JobRegistration = Static<typeof jobRegistrationSchema>;
|
|
607
639
|
//#endregion
|
|
608
640
|
//#region ../../src/api/jobs/schemas/jobStatsSchema.d.ts
|
|
609
|
-
declare const jobStatsSchema: alepha.TObject<{
|
|
610
|
-
registered: alepha.TInteger;
|
|
611
|
-
running: alepha.TInteger;
|
|
612
|
-
pending: alepha.TInteger;
|
|
613
|
-
scheduled: alepha.TInteger;
|
|
614
|
-
retrying: alepha.TInteger;
|
|
615
|
-
dead: alepha.TInteger;
|
|
616
|
-
completed: alepha.TInteger;
|
|
617
|
-
failed: alepha.TInteger;
|
|
641
|
+
declare const jobStatsSchema: _$alepha.TObject<{
|
|
642
|
+
registered: _$alepha.TInteger;
|
|
643
|
+
running: _$alepha.TInteger;
|
|
644
|
+
pending: _$alepha.TInteger;
|
|
645
|
+
scheduled: _$alepha.TInteger;
|
|
646
|
+
retrying: _$alepha.TInteger;
|
|
647
|
+
dead: _$alepha.TInteger;
|
|
648
|
+
completed: _$alepha.TInteger;
|
|
649
|
+
failed: _$alepha.TInteger;
|
|
618
650
|
}>;
|
|
619
651
|
type JobStats = Static<typeof jobStatsSchema>;
|
|
620
652
|
//#endregion
|
|
@@ -622,42 +654,42 @@ type JobStats = Static<typeof jobStatsSchema>;
|
|
|
622
654
|
declare class JobService {
|
|
623
655
|
protected readonly alepha: Alepha;
|
|
624
656
|
protected readonly dt: DateTimeProvider;
|
|
625
|
-
protected readonly log: alepha_logger0.Logger;
|
|
657
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
626
658
|
protected readonly jobProvider: JobProvider;
|
|
627
659
|
protected readonly database: DatabaseProvider;
|
|
628
|
-
protected readonly executions: alepha_orm0.Repository<alepha.TObject<{
|
|
629
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
630
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
631
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
632
|
-
jobName: alepha.TString;
|
|
633
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
634
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
635
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
636
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
637
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
638
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
639
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
640
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
641
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
642
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
643
|
-
error: alepha.TOptional<alepha.TString>;
|
|
644
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
645
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
646
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
647
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
648
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
660
|
+
protected readonly executions: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
661
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
662
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
663
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
664
|
+
jobName: _$alepha.TString;
|
|
665
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
666
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
667
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
668
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
669
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
670
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
671
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
672
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
673
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
674
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
675
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
676
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
677
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
678
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
679
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
680
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
649
681
|
}>>;
|
|
650
|
-
protected readonly executionLogs: alepha_orm0.Repository<alepha.TObject<{
|
|
651
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
652
|
-
logs: alepha.TArray<alepha.TObject<{
|
|
653
|
-
level: alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
654
|
-
message: alepha.TString;
|
|
655
|
-
service: alepha.TString;
|
|
656
|
-
module: alepha.TString;
|
|
657
|
-
context: alepha.TOptional<alepha.TString>;
|
|
658
|
-
app: alepha.TOptional<alepha.TString>;
|
|
659
|
-
data: alepha.TOptional<alepha.TAny>;
|
|
660
|
-
timestamp: alepha.TNumber;
|
|
682
|
+
protected readonly executionLogs: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
683
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
684
|
+
logs: _$alepha.TArray<_$alepha.TObject<{
|
|
685
|
+
level: _$alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
686
|
+
message: _$alepha.TString;
|
|
687
|
+
service: _$alepha.TString;
|
|
688
|
+
module: _$alepha.TString;
|
|
689
|
+
context: _$alepha.TOptional<_$alepha.TString>;
|
|
690
|
+
app: _$alepha.TOptional<_$alepha.TString>;
|
|
691
|
+
data: _$alepha.TOptional<_$alepha.TAny>;
|
|
692
|
+
timestamp: _$alepha.TNumber;
|
|
661
693
|
}>>;
|
|
662
694
|
}>>;
|
|
663
695
|
protected computeCan(status: string): {
|
|
@@ -681,53 +713,53 @@ declare class JobService {
|
|
|
681
713
|
cancel: boolean;
|
|
682
714
|
};
|
|
683
715
|
key?: string | null | undefined;
|
|
684
|
-
payload?: typebox.StaticRecord<[], "Decode", {}, {
|
|
685
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
686
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
687
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
688
|
-
jobName: alepha.TString;
|
|
689
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
690
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
691
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
692
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
693
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
694
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
695
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
696
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
697
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
698
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
699
|
-
error: alepha.TOptional<alepha.TString>;
|
|
700
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
701
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
702
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
703
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
704
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
705
|
-
}, "^.*$", alepha.TAny> | undefined;
|
|
716
|
+
payload?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
717
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
718
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
719
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
720
|
+
jobName: _$alepha.TString;
|
|
721
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
722
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
723
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
724
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
725
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
726
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
727
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
728
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
729
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
730
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
731
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
732
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
733
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
734
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
735
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
736
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
737
|
+
}, "^.*$", _$alepha.TAny> | undefined;
|
|
706
738
|
scheduledAt?: string | undefined;
|
|
707
739
|
startedAt?: string | undefined;
|
|
708
740
|
completedAt?: string | undefined;
|
|
709
|
-
result?: typebox.StaticRecord<[], "Decode", {}, {
|
|
710
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
711
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
712
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
713
|
-
jobName: alepha.TString;
|
|
714
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
715
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
716
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
717
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
718
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
719
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
720
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
721
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
722
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
723
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
724
|
-
error: alepha.TOptional<alepha.TString>;
|
|
725
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
726
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
727
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
728
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
729
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
730
|
-
}, "^.*$", alepha.TAny> | undefined;
|
|
741
|
+
result?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
742
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
743
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
744
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
745
|
+
jobName: _$alepha.TString;
|
|
746
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
747
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
748
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
749
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
750
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
751
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
752
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
753
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
754
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
755
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
756
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
757
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
758
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
759
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
760
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
761
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
762
|
+
}, "^.*$", _$alepha.TAny> | undefined;
|
|
731
763
|
error?: string | undefined;
|
|
732
764
|
workerId?: string | undefined;
|
|
733
765
|
triggeredBy?: string | undefined;
|
|
@@ -743,7 +775,7 @@ declare class JobService {
|
|
|
743
775
|
attempt: number;
|
|
744
776
|
maxAttempts: number;
|
|
745
777
|
}[];
|
|
746
|
-
page: alepha.StaticDecode<typeof alepha.pageMetadataSchema>;
|
|
778
|
+
page: _$alepha.StaticDecode<typeof _$alepha.pageMetadataSchema>;
|
|
747
779
|
}>;
|
|
748
780
|
getExecution(id: string): Promise<{
|
|
749
781
|
can: {
|
|
@@ -761,53 +793,53 @@ declare class JobService {
|
|
|
761
793
|
timestamp: number;
|
|
762
794
|
}[] | undefined;
|
|
763
795
|
key?: string | null | undefined;
|
|
764
|
-
payload?: typebox.StaticRecord<[], "Decode", {}, {
|
|
765
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
766
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
767
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
768
|
-
jobName: alepha.TString;
|
|
769
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
770
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
771
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
772
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
773
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
774
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
775
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
776
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
777
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
778
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
779
|
-
error: alepha.TOptional<alepha.TString>;
|
|
780
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
781
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
782
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
783
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
784
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
785
|
-
}, "^.*$", alepha.TAny> | undefined;
|
|
796
|
+
payload?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
797
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
798
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
799
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
800
|
+
jobName: _$alepha.TString;
|
|
801
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
802
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
803
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
804
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
805
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
806
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
807
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
808
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
809
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
810
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
811
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
812
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
813
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
814
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
815
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
816
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
817
|
+
}, "^.*$", _$alepha.TAny> | undefined;
|
|
786
818
|
scheduledAt?: string | undefined;
|
|
787
819
|
startedAt?: string | undefined;
|
|
788
820
|
completedAt?: string | undefined;
|
|
789
|
-
result?: typebox.StaticRecord<[], "Decode", {}, {
|
|
790
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
791
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
792
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
793
|
-
jobName: alepha.TString;
|
|
794
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
795
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
796
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
797
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
798
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
799
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
800
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
801
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
802
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
803
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
804
|
-
error: alepha.TOptional<alepha.TString>;
|
|
805
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
806
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
807
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
808
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
809
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
810
|
-
}, "^.*$", alepha.TAny> | undefined;
|
|
821
|
+
result?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
822
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
823
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
824
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
825
|
+
jobName: _$alepha.TString;
|
|
826
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
827
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
828
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
829
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
830
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
831
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
832
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
833
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
834
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
835
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
836
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
837
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
838
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
839
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
840
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
841
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
842
|
+
}, "^.*$", _$alepha.TAny> | undefined;
|
|
811
843
|
error?: string | undefined;
|
|
812
844
|
workerId?: string | undefined;
|
|
813
845
|
triggeredBy?: string | undefined;
|
|
@@ -865,238 +897,238 @@ declare class AdminJobController {
|
|
|
865
897
|
protected readonly url: string;
|
|
866
898
|
protected readonly group: string;
|
|
867
899
|
protected readonly jobService: JobService;
|
|
868
|
-
readonly getJobStats: alepha_server0.ActionPrimitiveFn<{
|
|
869
|
-
query: alepha.TObject<{
|
|
870
|
-
days: alepha.TOptional<alepha.TInteger>;
|
|
900
|
+
readonly getJobStats: _$alepha_server0.ActionPrimitiveFn<{
|
|
901
|
+
query: _$alepha.TObject<{
|
|
902
|
+
days: _$alepha.TOptional<_$alepha.TInteger>;
|
|
871
903
|
}>;
|
|
872
|
-
response: alepha.TObject<{
|
|
873
|
-
registered: alepha.TInteger;
|
|
874
|
-
running: alepha.TInteger;
|
|
875
|
-
pending: alepha.TInteger;
|
|
876
|
-
scheduled: alepha.TInteger;
|
|
877
|
-
retrying: alepha.TInteger;
|
|
878
|
-
dead: alepha.TInteger;
|
|
879
|
-
completed: alepha.TInteger;
|
|
880
|
-
failed: alepha.TInteger;
|
|
904
|
+
response: _$alepha.TObject<{
|
|
905
|
+
registered: _$alepha.TInteger;
|
|
906
|
+
running: _$alepha.TInteger;
|
|
907
|
+
pending: _$alepha.TInteger;
|
|
908
|
+
scheduled: _$alepha.TInteger;
|
|
909
|
+
retrying: _$alepha.TInteger;
|
|
910
|
+
dead: _$alepha.TInteger;
|
|
911
|
+
completed: _$alepha.TInteger;
|
|
912
|
+
failed: _$alepha.TInteger;
|
|
881
913
|
}>;
|
|
882
914
|
}>;
|
|
883
|
-
readonly getJobRegistry: alepha_server0.ActionPrimitiveFn<{
|
|
884
|
-
response: alepha.TArray<alepha.TObject<{
|
|
885
|
-
name: alepha.TString;
|
|
886
|
-
type: alepha.TUnsafe<"push" | "cron" | "both">;
|
|
887
|
-
priority: alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
888
|
-
concurrency: alepha.TInteger;
|
|
889
|
-
hasSchema: alepha.TBoolean;
|
|
890
|
-
cron: alepha.TOptional<alepha.TString>;
|
|
891
|
-
timeout: alepha.TOptional<alepha.TString>;
|
|
892
|
-
retry: alepha.TOptional<alepha.TObject<{
|
|
893
|
-
retries: alepha.TInteger;
|
|
894
|
-
hasBackoff: alepha.TBoolean;
|
|
915
|
+
readonly getJobRegistry: _$alepha_server0.ActionPrimitiveFn<{
|
|
916
|
+
response: _$alepha.TArray<_$alepha.TObject<{
|
|
917
|
+
name: _$alepha.TString;
|
|
918
|
+
type: _$alepha.TUnsafe<"push" | "cron" | "both">;
|
|
919
|
+
priority: _$alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
920
|
+
concurrency: _$alepha.TInteger;
|
|
921
|
+
hasSchema: _$alepha.TBoolean;
|
|
922
|
+
cron: _$alepha.TOptional<_$alepha.TString>;
|
|
923
|
+
timeout: _$alepha.TOptional<_$alepha.TString>;
|
|
924
|
+
retry: _$alepha.TOptional<_$alepha.TObject<{
|
|
925
|
+
retries: _$alepha.TInteger;
|
|
926
|
+
hasBackoff: _$alepha.TBoolean;
|
|
895
927
|
}>>;
|
|
896
|
-
batch: alepha.TOptional<alepha.TObject<{
|
|
897
|
-
size: alepha.TInteger;
|
|
898
|
-
window: alepha.TString;
|
|
928
|
+
batch: _$alepha.TOptional<_$alepha.TObject<{
|
|
929
|
+
size: _$alepha.TInteger;
|
|
930
|
+
window: _$alepha.TString;
|
|
899
931
|
}>>;
|
|
900
932
|
}>>;
|
|
901
933
|
}>;
|
|
902
|
-
readonly findJobExecutions: alepha_server0.ActionPrimitiveFn<{
|
|
903
|
-
query: alepha.TObject<{
|
|
904
|
-
page: alepha.TOptional<alepha.TInteger>;
|
|
905
|
-
size: alepha.TOptional<alepha.TInteger>;
|
|
906
|
-
sort: alepha.TOptional<alepha.TString>;
|
|
907
|
-
job: alepha.TOptional<alepha.TString>;
|
|
908
|
-
status: alepha.TOptional<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
909
|
-
priority: alepha.TOptional<alepha.TUnsafe<"critical" | "high" | "normal" | "low">>;
|
|
910
|
-
from: alepha.TOptional<alepha.TString>;
|
|
911
|
-
to: alepha.TOptional<alepha.TString>;
|
|
934
|
+
readonly findJobExecutions: _$alepha_server0.ActionPrimitiveFn<{
|
|
935
|
+
query: _$alepha.TObject<{
|
|
936
|
+
page: _$alepha.TOptional<_$alepha.TInteger>;
|
|
937
|
+
size: _$alepha.TOptional<_$alepha.TInteger>;
|
|
938
|
+
sort: _$alepha.TOptional<_$alepha.TString>;
|
|
939
|
+
job: _$alepha.TOptional<_$alepha.TString>;
|
|
940
|
+
status: _$alepha.TOptional<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">>;
|
|
941
|
+
priority: _$alepha.TOptional<_$alepha.TUnsafe<"critical" | "high" | "normal" | "low">>;
|
|
942
|
+
from: _$alepha.TOptional<_$alepha.TString>;
|
|
943
|
+
to: _$alepha.TOptional<_$alepha.TString>;
|
|
912
944
|
}>;
|
|
913
|
-
response: alepha.TPage<alepha.TObject<{
|
|
914
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
915
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
916
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
917
|
-
jobName: alepha.TString;
|
|
918
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
919
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
920
|
-
status: PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
921
|
-
priority: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
922
|
-
attempt: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
923
|
-
maxAttempts: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
924
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
925
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
926
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
927
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
928
|
-
error: alepha.TOptional<alepha.TString>;
|
|
929
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
930
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
931
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
932
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
933
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
934
|
-
can: alepha.TObject<{
|
|
935
|
-
retry: alepha.TBoolean;
|
|
936
|
-
cancel: alepha.TBoolean;
|
|
945
|
+
response: _$alepha.TPage<_$alepha.TObject<{
|
|
946
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
947
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
948
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
949
|
+
jobName: _$alepha.TString;
|
|
950
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
951
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
952
|
+
status: PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
953
|
+
priority: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
954
|
+
attempt: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
955
|
+
maxAttempts: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
956
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
957
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
958
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
959
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
960
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
961
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
962
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
963
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
964
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
965
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
966
|
+
can: _$alepha.TObject<{
|
|
967
|
+
retry: _$alepha.TBoolean;
|
|
968
|
+
cancel: _$alepha.TBoolean;
|
|
937
969
|
}>;
|
|
938
970
|
}>>;
|
|
939
971
|
}>;
|
|
940
|
-
readonly getJobExecution: alepha_server0.ActionPrimitiveFn<{
|
|
941
|
-
params: alepha.TObject<{
|
|
942
|
-
id: alepha.TString;
|
|
972
|
+
readonly getJobExecution: _$alepha_server0.ActionPrimitiveFn<{
|
|
973
|
+
params: _$alepha.TObject<{
|
|
974
|
+
id: _$alepha.TString;
|
|
943
975
|
}>;
|
|
944
|
-
response: alepha.TObject<{
|
|
945
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
946
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
947
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
948
|
-
jobName: alepha.TString;
|
|
949
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
950
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
951
|
-
status: PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
952
|
-
priority: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
953
|
-
attempt: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
954
|
-
maxAttempts: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
955
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
956
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
957
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
958
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
959
|
-
error: alepha.TOptional<alepha.TString>;
|
|
960
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
961
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
962
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
963
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
964
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
965
|
-
can: alepha.TObject<{
|
|
966
|
-
retry: alepha.TBoolean;
|
|
967
|
-
cancel: alepha.TBoolean;
|
|
976
|
+
response: _$alepha.TObject<{
|
|
977
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
978
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
979
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
980
|
+
jobName: _$alepha.TString;
|
|
981
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
982
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
983
|
+
status: PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
984
|
+
priority: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
985
|
+
attempt: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
986
|
+
maxAttempts: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
987
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
988
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
989
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
990
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
991
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
992
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
993
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
994
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
995
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
996
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
997
|
+
can: _$alepha.TObject<{
|
|
998
|
+
retry: _$alepha.TBoolean;
|
|
999
|
+
cancel: _$alepha.TBoolean;
|
|
968
1000
|
}>;
|
|
969
|
-
logs: alepha.TOptional<alepha.TArray<alepha.TObject<{
|
|
970
|
-
level: alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
971
|
-
message: alepha.TString;
|
|
972
|
-
service: alepha.TString;
|
|
973
|
-
module: alepha.TString;
|
|
974
|
-
context: alepha.TOptional<alepha.TString>;
|
|
975
|
-
app: alepha.TOptional<alepha.TString>;
|
|
976
|
-
data: alepha.TOptional<alepha.TAny>;
|
|
977
|
-
timestamp: alepha.TNumber;
|
|
1001
|
+
logs: _$alepha.TOptional<_$alepha.TArray<_$alepha.TObject<{
|
|
1002
|
+
level: _$alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
1003
|
+
message: _$alepha.TString;
|
|
1004
|
+
service: _$alepha.TString;
|
|
1005
|
+
module: _$alepha.TString;
|
|
1006
|
+
context: _$alepha.TOptional<_$alepha.TString>;
|
|
1007
|
+
app: _$alepha.TOptional<_$alepha.TString>;
|
|
1008
|
+
data: _$alepha.TOptional<_$alepha.TAny>;
|
|
1009
|
+
timestamp: _$alepha.TNumber;
|
|
978
1010
|
}>>>;
|
|
979
1011
|
}>;
|
|
980
1012
|
}>;
|
|
981
|
-
readonly triggerJob: alepha_server0.ActionPrimitiveFn<{
|
|
982
|
-
body: alepha.TObject<{
|
|
983
|
-
name: alepha.TString;
|
|
984
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1013
|
+
readonly triggerJob: _$alepha_server0.ActionPrimitiveFn<{
|
|
1014
|
+
body: _$alepha.TObject<{
|
|
1015
|
+
name: _$alepha.TString;
|
|
1016
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
985
1017
|
}>;
|
|
986
|
-
response: alepha.TObject<{
|
|
987
|
-
ok: alepha.TBoolean;
|
|
988
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
989
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
1018
|
+
response: _$alepha.TObject<{
|
|
1019
|
+
ok: _$alepha.TBoolean;
|
|
1020
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
1021
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
990
1022
|
}>;
|
|
991
1023
|
}>;
|
|
992
|
-
readonly retryJobExecution: alepha_server0.ActionPrimitiveFn<{
|
|
993
|
-
params: alepha.TObject<{
|
|
994
|
-
id: alepha.TString;
|
|
1024
|
+
readonly retryJobExecution: _$alepha_server0.ActionPrimitiveFn<{
|
|
1025
|
+
params: _$alepha.TObject<{
|
|
1026
|
+
id: _$alepha.TString;
|
|
995
1027
|
}>;
|
|
996
|
-
response: alepha.TObject<{
|
|
997
|
-
ok: alepha.TBoolean;
|
|
998
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
999
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
1028
|
+
response: _$alepha.TObject<{
|
|
1029
|
+
ok: _$alepha.TBoolean;
|
|
1030
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
1031
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
1000
1032
|
}>;
|
|
1001
1033
|
}>;
|
|
1002
|
-
readonly cancelJobExecution: alepha_server0.ActionPrimitiveFn<{
|
|
1003
|
-
params: alepha.TObject<{
|
|
1004
|
-
id: alepha.TString;
|
|
1034
|
+
readonly cancelJobExecution: _$alepha_server0.ActionPrimitiveFn<{
|
|
1035
|
+
params: _$alepha.TObject<{
|
|
1036
|
+
id: _$alepha.TString;
|
|
1005
1037
|
}>;
|
|
1006
|
-
response: alepha.TObject<{
|
|
1007
|
-
ok: alepha.TBoolean;
|
|
1008
|
-
id: alepha.TOptional<alepha.TUnion<[alepha.TString, alepha.TInteger]>>;
|
|
1009
|
-
count: alepha.TOptional<alepha.TNumber>;
|
|
1038
|
+
response: _$alepha.TObject<{
|
|
1039
|
+
ok: _$alepha.TBoolean;
|
|
1040
|
+
id: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TString, _$alepha.TInteger]>>;
|
|
1041
|
+
count: _$alepha.TOptional<_$alepha.TNumber>;
|
|
1010
1042
|
}>;
|
|
1011
1043
|
}>;
|
|
1012
|
-
readonly getJobActivity: alepha_server0.ActionPrimitiveFn<{
|
|
1013
|
-
query: alepha.TObject<{
|
|
1014
|
-
days: alepha.TOptional<alepha.TInteger>;
|
|
1044
|
+
readonly getJobActivity: _$alepha_server0.ActionPrimitiveFn<{
|
|
1045
|
+
query: _$alepha.TObject<{
|
|
1046
|
+
days: _$alepha.TOptional<_$alepha.TInteger>;
|
|
1015
1047
|
}>;
|
|
1016
|
-
response: alepha.TArray<alepha.TObject<{
|
|
1017
|
-
date: alepha.TString;
|
|
1018
|
-
completed: alepha.TInteger;
|
|
1019
|
-
failed: alepha.TInteger;
|
|
1048
|
+
response: _$alepha.TArray<_$alepha.TObject<{
|
|
1049
|
+
date: _$alepha.TString;
|
|
1050
|
+
completed: _$alepha.TInteger;
|
|
1051
|
+
failed: _$alepha.TInteger;
|
|
1020
1052
|
}>>;
|
|
1021
1053
|
}>;
|
|
1022
|
-
readonly getCronJobs: alepha_server0.ActionPrimitiveFn<{
|
|
1023
|
-
response: alepha.TArray<alepha.TObject<{
|
|
1024
|
-
name: alepha.TString;
|
|
1025
|
-
cron: alepha.TString;
|
|
1026
|
-
lock: alepha.TBoolean;
|
|
1027
|
-
priority: alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
1028
|
-
concurrency: alepha.TInteger;
|
|
1029
|
-
hasSchema: alepha.TBoolean;
|
|
1030
|
-
lastExecution: alepha.TOptional<alepha.TObject<{
|
|
1031
|
-
id: alepha.TString;
|
|
1032
|
-
status: alepha.TString;
|
|
1033
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
1034
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
1035
|
-
error: alepha.TOptional<alepha.TString>;
|
|
1054
|
+
readonly getCronJobs: _$alepha_server0.ActionPrimitiveFn<{
|
|
1055
|
+
response: _$alepha.TArray<_$alepha.TObject<{
|
|
1056
|
+
name: _$alepha.TString;
|
|
1057
|
+
cron: _$alepha.TString;
|
|
1058
|
+
lock: _$alepha.TBoolean;
|
|
1059
|
+
priority: _$alepha.TUnsafe<"critical" | "high" | "normal" | "low">;
|
|
1060
|
+
concurrency: _$alepha.TInteger;
|
|
1061
|
+
hasSchema: _$alepha.TBoolean;
|
|
1062
|
+
lastExecution: _$alepha.TOptional<_$alepha.TObject<{
|
|
1063
|
+
id: _$alepha.TString;
|
|
1064
|
+
status: _$alepha.TString;
|
|
1065
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1066
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1067
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
1036
1068
|
}>>;
|
|
1037
1069
|
}>>;
|
|
1038
1070
|
}>;
|
|
1039
|
-
readonly getJobQueueDepth: alepha_server0.ActionPrimitiveFn<{
|
|
1040
|
-
response: alepha.TArray<alepha.TObject<{
|
|
1041
|
-
jobName: alepha.TString;
|
|
1042
|
-
pending: alepha.TInteger;
|
|
1043
|
-
running: alepha.TInteger;
|
|
1044
|
-
scheduled: alepha.TInteger;
|
|
1045
|
-
retrying: alepha.TInteger;
|
|
1046
|
-
dead: alepha.TInteger;
|
|
1047
|
-
concurrency: alepha.TInteger;
|
|
1071
|
+
readonly getJobQueueDepth: _$alepha_server0.ActionPrimitiveFn<{
|
|
1072
|
+
response: _$alepha.TArray<_$alepha.TObject<{
|
|
1073
|
+
jobName: _$alepha.TString;
|
|
1074
|
+
pending: _$alepha.TInteger;
|
|
1075
|
+
running: _$alepha.TInteger;
|
|
1076
|
+
scheduled: _$alepha.TInteger;
|
|
1077
|
+
retrying: _$alepha.TInteger;
|
|
1078
|
+
dead: _$alepha.TInteger;
|
|
1079
|
+
concurrency: _$alepha.TInteger;
|
|
1048
1080
|
}>>;
|
|
1049
1081
|
}>;
|
|
1050
|
-
readonly getJobTopFailures: alepha_server0.ActionPrimitiveFn<{
|
|
1051
|
-
query: alepha.TObject<{
|
|
1052
|
-
days: alepha.TOptional<alepha.TInteger>;
|
|
1082
|
+
readonly getJobTopFailures: _$alepha_server0.ActionPrimitiveFn<{
|
|
1083
|
+
query: _$alepha.TObject<{
|
|
1084
|
+
days: _$alepha.TOptional<_$alepha.TInteger>;
|
|
1053
1085
|
}>;
|
|
1054
|
-
response: alepha.TArray<alepha.TObject<{
|
|
1055
|
-
jobName: alepha.TString;
|
|
1056
|
-
failures: alepha.TInteger;
|
|
1057
|
-
lastError: alepha.TOptional<alepha.TString>;
|
|
1086
|
+
response: _$alepha.TArray<_$alepha.TObject<{
|
|
1087
|
+
jobName: _$alepha.TString;
|
|
1088
|
+
failures: _$alepha.TInteger;
|
|
1089
|
+
lastError: _$alepha.TOptional<_$alepha.TString>;
|
|
1058
1090
|
}>>;
|
|
1059
1091
|
}>;
|
|
1060
1092
|
}
|
|
1061
1093
|
//#endregion
|
|
1062
1094
|
//#region ../../src/api/jobs/entities/jobExecutionEntity.d.ts
|
|
1063
|
-
declare const jobExecutionEntity: alepha_orm0.EntityPrimitive<alepha.TObject<{
|
|
1064
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1065
|
-
createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1066
|
-
updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1067
|
-
jobName: alepha.TString;
|
|
1068
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
1069
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1070
|
-
status: alepha_orm0.PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof alepha_orm0.PG_DEFAULT>;
|
|
1071
|
-
priority: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
1072
|
-
attempt: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
1073
|
-
maxAttempts: alepha_orm0.PgAttr<alepha.TInteger, typeof alepha_orm0.PG_DEFAULT>;
|
|
1074
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
1075
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
1076
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
1077
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1078
|
-
error: alepha.TOptional<alepha.TString>;
|
|
1079
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
1080
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
1081
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
1082
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
1083
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
1095
|
+
declare const jobExecutionEntity: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
1096
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1097
|
+
createdAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_CREATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1098
|
+
updatedAt: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_UPDATED_AT>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1099
|
+
jobName: _$alepha.TString;
|
|
1100
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
1101
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
1102
|
+
status: _$alepha_orm0.PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1103
|
+
priority: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1104
|
+
attempt: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1105
|
+
maxAttempts: _$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1106
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1107
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1108
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1109
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
1110
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
1111
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
1112
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
1113
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
1114
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
1115
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
1084
1116
|
}>>;
|
|
1085
1117
|
type JobExecutionEntity = Static<typeof jobExecutionEntity.schema>;
|
|
1086
1118
|
type JobStatus = "pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled";
|
|
1087
1119
|
//#endregion
|
|
1088
1120
|
//#region ../../src/api/jobs/entities/jobExecutionLogEntity.d.ts
|
|
1089
|
-
declare const jobExecutionLogEntity: alepha_orm0.EntityPrimitive<alepha.TObject<{
|
|
1090
|
-
id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
|
|
1091
|
-
logs: alepha.TArray<alepha.TObject<{
|
|
1092
|
-
level: alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
1093
|
-
message: alepha.TString;
|
|
1094
|
-
service: alepha.TString;
|
|
1095
|
-
module: alepha.TString;
|
|
1096
|
-
context: alepha.TOptional<alepha.TString>;
|
|
1097
|
-
app: alepha.TOptional<alepha.TString>;
|
|
1098
|
-
data: alepha.TOptional<alepha.TAny>;
|
|
1099
|
-
timestamp: alepha.TNumber;
|
|
1121
|
+
declare const jobExecutionLogEntity: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
1122
|
+
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
1123
|
+
logs: _$alepha.TArray<_$alepha.TObject<{
|
|
1124
|
+
level: _$alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
1125
|
+
message: _$alepha.TString;
|
|
1126
|
+
service: _$alepha.TString;
|
|
1127
|
+
module: _$alepha.TString;
|
|
1128
|
+
context: _$alepha.TOptional<_$alepha.TString>;
|
|
1129
|
+
app: _$alepha.TOptional<_$alepha.TString>;
|
|
1130
|
+
data: _$alepha.TOptional<_$alepha.TAny>;
|
|
1131
|
+
timestamp: _$alepha.TNumber;
|
|
1100
1132
|
}>>;
|
|
1101
1133
|
}>>;
|
|
1102
1134
|
type JobExecutionLogEntity = Static<typeof jobExecutionLogEntity.schema>;
|
|
@@ -1112,11 +1144,11 @@ type JobExecutionLogEntity = Static<typeof jobExecutionLogEntity.schema>;
|
|
|
1112
1144
|
*/
|
|
1113
1145
|
declare class JobQueueProvider {
|
|
1114
1146
|
protected readonly jobProvider: JobProvider;
|
|
1115
|
-
protected readonly queue: alepha_queue0.QueuePrimitive<alepha.TObject<{
|
|
1116
|
-
jobName: alepha.TString;
|
|
1117
|
-
executionId: alepha.TString;
|
|
1147
|
+
protected readonly queue: _$alepha_queue0.QueuePrimitive<_$alepha.TObject<{
|
|
1148
|
+
jobName: _$alepha.TString;
|
|
1149
|
+
executionId: _$alepha.TString;
|
|
1118
1150
|
}>>;
|
|
1119
|
-
protected readonly onStart: alepha.HookPrimitive<"start">;
|
|
1151
|
+
protected readonly onStart: _$alepha.HookPrimitive<"start">;
|
|
1120
1152
|
/**
|
|
1121
1153
|
* Push a job execution onto the queue for async processing.
|
|
1122
1154
|
*/
|
|
@@ -1124,17 +1156,17 @@ declare class JobQueueProvider {
|
|
|
1124
1156
|
}
|
|
1125
1157
|
//#endregion
|
|
1126
1158
|
//#region ../../src/api/jobs/schemas/jobConfigAtom.d.ts
|
|
1127
|
-
declare const jobConfig: alepha.Atom<alepha.TObject<{
|
|
1128
|
-
recovery: alepha.TObject<{
|
|
1129
|
-
interval: alepha.TInteger;
|
|
1130
|
-
staleThreshold: alepha.TInteger;
|
|
1131
|
-
runTimeout: alepha.TInteger;
|
|
1159
|
+
declare const jobConfig: _$alepha.Atom<_$alepha.TObject<{
|
|
1160
|
+
recovery: _$alepha.TObject<{
|
|
1161
|
+
interval: _$alepha.TInteger;
|
|
1162
|
+
staleThreshold: _$alepha.TInteger;
|
|
1163
|
+
runTimeout: _$alepha.TInteger;
|
|
1132
1164
|
}>;
|
|
1133
|
-
delayed: alepha.TObject<{
|
|
1134
|
-
interval: alepha.TInteger;
|
|
1165
|
+
delayed: _$alepha.TObject<{
|
|
1166
|
+
interval: _$alepha.TInteger;
|
|
1135
1167
|
}>;
|
|
1136
|
-
logRetentionDays: alepha.TInteger;
|
|
1137
|
-
logMaxEntries: alepha.TInteger;
|
|
1168
|
+
logRetentionDays: _$alepha.TInteger;
|
|
1169
|
+
logMaxEntries: _$alepha.TInteger;
|
|
1138
1170
|
}>, "alepha.jobs">;
|
|
1139
1171
|
type JobConfig = Static<typeof jobConfig.schema>;
|
|
1140
1172
|
declare module "alepha" {
|
|
@@ -1144,81 +1176,81 @@ declare module "alepha" {
|
|
|
1144
1176
|
} //# sourceMappingURL=jobConfigAtom.d.ts.map
|
|
1145
1177
|
//#endregion
|
|
1146
1178
|
//#region ../../src/api/jobs/schemas/jobExecutionDetailResourceSchema.d.ts
|
|
1147
|
-
declare const jobExecutionDetailResourceSchema: alepha.TObject<{
|
|
1148
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1149
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1150
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1151
|
-
jobName: alepha.TString;
|
|
1152
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
1153
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1154
|
-
status: PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
1155
|
-
priority: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
1156
|
-
attempt: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
1157
|
-
maxAttempts: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
1158
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
1159
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
1160
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
1161
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1162
|
-
error: alepha.TOptional<alepha.TString>;
|
|
1163
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
1164
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
1165
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
1166
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
1167
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
1168
|
-
can: alepha.TObject<{
|
|
1169
|
-
retry: alepha.TBoolean;
|
|
1170
|
-
cancel: alepha.TBoolean;
|
|
1179
|
+
declare const jobExecutionDetailResourceSchema: _$alepha.TObject<{
|
|
1180
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1181
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1182
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1183
|
+
jobName: _$alepha.TString;
|
|
1184
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
1185
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
1186
|
+
status: PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
1187
|
+
priority: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
1188
|
+
attempt: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
1189
|
+
maxAttempts: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
1190
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1191
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1192
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1193
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
1194
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
1195
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
1196
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
1197
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
1198
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
1199
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
1200
|
+
can: _$alepha.TObject<{
|
|
1201
|
+
retry: _$alepha.TBoolean;
|
|
1202
|
+
cancel: _$alepha.TBoolean;
|
|
1171
1203
|
}>;
|
|
1172
|
-
logs: alepha.TOptional<alepha.TArray<alepha.TObject<{
|
|
1173
|
-
level: alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
1174
|
-
message: alepha.TString;
|
|
1175
|
-
service: alepha.TString;
|
|
1176
|
-
module: alepha.TString;
|
|
1177
|
-
context: alepha.TOptional<alepha.TString>;
|
|
1178
|
-
app: alepha.TOptional<alepha.TString>;
|
|
1179
|
-
data: alepha.TOptional<alepha.TAny>;
|
|
1180
|
-
timestamp: alepha.TNumber;
|
|
1204
|
+
logs: _$alepha.TOptional<_$alepha.TArray<_$alepha.TObject<{
|
|
1205
|
+
level: _$alepha.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
1206
|
+
message: _$alepha.TString;
|
|
1207
|
+
service: _$alepha.TString;
|
|
1208
|
+
module: _$alepha.TString;
|
|
1209
|
+
context: _$alepha.TOptional<_$alepha.TString>;
|
|
1210
|
+
app: _$alepha.TOptional<_$alepha.TString>;
|
|
1211
|
+
data: _$alepha.TOptional<_$alepha.TAny>;
|
|
1212
|
+
timestamp: _$alepha.TNumber;
|
|
1181
1213
|
}>>>;
|
|
1182
1214
|
}>;
|
|
1183
1215
|
type JobExecutionDetailResource = Static<typeof jobExecutionDetailResourceSchema>;
|
|
1184
1216
|
//#endregion
|
|
1185
1217
|
//#region ../../src/api/jobs/schemas/jobExecutionResourceSchema.d.ts
|
|
1186
|
-
declare const jobExecutionCanSchema: alepha.TObject<{
|
|
1187
|
-
retry: alepha.TBoolean;
|
|
1188
|
-
cancel: alepha.TBoolean;
|
|
1218
|
+
declare const jobExecutionCanSchema: _$alepha.TObject<{
|
|
1219
|
+
retry: _$alepha.TBoolean;
|
|
1220
|
+
cancel: _$alepha.TBoolean;
|
|
1189
1221
|
}>;
|
|
1190
|
-
declare const jobExecutionResourceSchema: alepha.TObject<{
|
|
1191
|
-
id: PgAttr<PgAttr<alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1192
|
-
createdAt: PgAttr<PgAttr<alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1193
|
-
updatedAt: PgAttr<PgAttr<alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1194
|
-
jobName: alepha.TString;
|
|
1195
|
-
key: alepha.TOptional<alepha.TUnion<[alepha.TNull, alepha.TString]>>;
|
|
1196
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1197
|
-
status: PgAttr<alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
1198
|
-
priority: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
1199
|
-
attempt: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
1200
|
-
maxAttempts: PgAttr<alepha.TInteger, typeof PG_DEFAULT>;
|
|
1201
|
-
scheduledAt: alepha.TOptional<alepha.TString>;
|
|
1202
|
-
startedAt: alepha.TOptional<alepha.TString>;
|
|
1203
|
-
completedAt: alepha.TOptional<alepha.TString>;
|
|
1204
|
-
result: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1205
|
-
error: alepha.TOptional<alepha.TString>;
|
|
1206
|
-
workerId: alepha.TOptional<alepha.TString>;
|
|
1207
|
-
triggeredBy: alepha.TOptional<alepha.TString>;
|
|
1208
|
-
triggeredByName: alepha.TOptional<alepha.TString>;
|
|
1209
|
-
cancelledBy: alepha.TOptional<alepha.TString>;
|
|
1210
|
-
cancelledByName: alepha.TOptional<alepha.TString>;
|
|
1211
|
-
can: alepha.TObject<{
|
|
1212
|
-
retry: alepha.TBoolean;
|
|
1213
|
-
cancel: alepha.TBoolean;
|
|
1222
|
+
declare const jobExecutionResourceSchema: _$alepha.TObject<{
|
|
1223
|
+
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1224
|
+
createdAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1225
|
+
updatedAt: PgAttr<PgAttr<_$alepha.TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1226
|
+
jobName: _$alepha.TString;
|
|
1227
|
+
key: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TNull, _$alepha.TString]>>;
|
|
1228
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
1229
|
+
status: PgAttr<_$alepha.TUnsafe<"pending" | "scheduled" | "retrying" | "running" | "completed" | "failed" | "dead" | "cancelled">, typeof PG_DEFAULT>;
|
|
1230
|
+
priority: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
1231
|
+
attempt: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
1232
|
+
maxAttempts: PgAttr<_$alepha.TInteger, typeof PG_DEFAULT>;
|
|
1233
|
+
scheduledAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1234
|
+
startedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1235
|
+
completedAt: _$alepha.TOptional<_$alepha.TString>;
|
|
1236
|
+
result: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
1237
|
+
error: _$alepha.TOptional<_$alepha.TString>;
|
|
1238
|
+
workerId: _$alepha.TOptional<_$alepha.TString>;
|
|
1239
|
+
triggeredBy: _$alepha.TOptional<_$alepha.TString>;
|
|
1240
|
+
triggeredByName: _$alepha.TOptional<_$alepha.TString>;
|
|
1241
|
+
cancelledBy: _$alepha.TOptional<_$alepha.TString>;
|
|
1242
|
+
cancelledByName: _$alepha.TOptional<_$alepha.TString>;
|
|
1243
|
+
can: _$alepha.TObject<{
|
|
1244
|
+
retry: _$alepha.TBoolean;
|
|
1245
|
+
cancel: _$alepha.TBoolean;
|
|
1214
1246
|
}>;
|
|
1215
1247
|
}>;
|
|
1216
1248
|
type JobExecutionResource = Static<typeof jobExecutionResourceSchema>;
|
|
1217
1249
|
//#endregion
|
|
1218
1250
|
//#region ../../src/api/jobs/schemas/triggerJobSchema.d.ts
|
|
1219
|
-
declare const triggerJobSchema: alepha.TObject<{
|
|
1220
|
-
name: alepha.TString;
|
|
1221
|
-
payload: alepha.TOptional<alepha.TRecord<"^.*$", alepha.TAny>>;
|
|
1251
|
+
declare const triggerJobSchema: _$alepha.TObject<{
|
|
1252
|
+
name: _$alepha.TString;
|
|
1253
|
+
payload: _$alepha.TOptional<_$alepha.TRecord<"^.*$", _$alepha.TAny>>;
|
|
1222
1254
|
}>;
|
|
1223
1255
|
type TriggerJob = Static<typeof triggerJobSchema>;
|
|
1224
1256
|
//#endregion
|
|
@@ -1250,7 +1282,7 @@ declare module "alepha" {
|
|
|
1250
1282
|
};
|
|
1251
1283
|
}
|
|
1252
1284
|
}
|
|
1253
|
-
declare const jobEnvSchema: alepha.TObject<{
|
|
1285
|
+
declare const jobEnvSchema: _$alepha.TObject<{
|
|
1254
1286
|
/**
|
|
1255
1287
|
* Controls whether the job system dispatches work through a queue or executes inline.
|
|
1256
1288
|
*
|
|
@@ -1258,7 +1290,7 @@ declare const jobEnvSchema: alepha.TObject<{
|
|
|
1258
1290
|
* - `0` — never use queue (force inline, useful for testing)
|
|
1259
1291
|
* - not set — auto: use queue when NOT serverless (default)
|
|
1260
1292
|
*/
|
|
1261
|
-
ALEPHA_JOBS_QUEUE: alepha.TOptional<alepha.TInteger>;
|
|
1293
|
+
ALEPHA_JOBS_QUEUE: _$alepha.TOptional<_$alepha.TInteger>;
|
|
1262
1294
|
}>;
|
|
1263
1295
|
/**
|
|
1264
1296
|
* Job execution framework — unified primitive for deferred, scheduled, and queued work.
|
|
@@ -1273,7 +1305,7 @@ declare const jobEnvSchema: alepha.TObject<{
|
|
|
1273
1305
|
*
|
|
1274
1306
|
* @module alepha.api.jobs
|
|
1275
1307
|
*/
|
|
1276
|
-
declare const AlephaApiJobs: alepha.Service<alepha.Module>;
|
|
1308
|
+
declare const AlephaApiJobs: _$alepha.Service<_$alepha.Module>;
|
|
1277
1309
|
//#endregion
|
|
1278
1310
|
export { $job, AdminJobController, AlephaApiJobs, CancelContext, JobActivityPoint, JobActivityQuery, JobBatchOptions, JobConfig, JobCronInfo, JobExecutionDetailResource, JobExecutionEntity, JobExecutionLogEntity, JobExecutionQuery, JobExecutionResource, JobFailure, JobHandlerArgs, JobItem, JobPrimitive, JobPrimitiveOptions, JobPriority, JobProvider, JobQueueDepth, JobQueueProvider, JobRegistration, JobRetryBackoff, JobRetryOptions, JobService, JobStats, JobStatus, JobTriggerContext, PushManyItem, PushOptions, TriggerJob, jobActivityPointSchema, jobActivityQuerySchema, jobConfig, jobCronInfoSchema, jobExecutionCanSchema, jobExecutionDetailResourceSchema, jobExecutionEntity, jobExecutionLogEntity, jobExecutionQuerySchema, jobExecutionResourceSchema, jobFailureSchema, jobQueueDepthSchema, jobRegistrationSchema, jobStatsSchema, triggerJobSchema };
|
|
1279
1311
|
//# sourceMappingURL=index.d.ts.map
|