alepha 0.21.2 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +393 -403
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +25 -56
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +31 -1
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +313 -208
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +152 -42
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +2 -2
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +289 -292
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +39 -33
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +211 -216
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +188 -195
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/oauth/index.d.ts +71 -76
- package/dist/api/oauth/index.d.ts.map +1 -1
- package/dist/api/oauth/index.js.map +1 -1
- package/dist/api/organizations/index.browser.js.map +1 -1
- package/dist/api/organizations/index.d.ts +104 -109
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/organizations/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +43 -16
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +488 -344
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +175 -35
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/payments/index.d.ts +396 -402
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +644 -652
- package/dist/api/subscriptions/index.d.ts.map +1 -1
- package/dist/api/subscriptions/index.js +1 -1
- package/dist/api/subscriptions/index.js.map +1 -1
- package/dist/api/users/index.browser.js +7 -0
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +1073 -1006
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +283 -61
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.browser.js.map +1 -1
- package/dist/api/verifications/index.d.ts +134 -140
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/background/index.d.ts +95 -0
- package/dist/background/index.d.ts.map +1 -0
- package/dist/background/index.js +121 -0
- package/dist/background/index.js.map +1 -0
- package/dist/background/index.workerd.js +110 -0
- package/dist/background/index.workerd.js.map +1 -0
- package/dist/batch/index.d.ts +5 -7
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +76 -54
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +58 -11
- package/dist/bucket/index.js.map +1 -1
- package/dist/bucket/index.workerd.js +200 -5
- package/dist/bucket/index.workerd.js.map +1 -1
- package/dist/cache/core/index.d.ts +7 -10
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +22 -26
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/database/index.js.map +1 -1
- package/dist/cache/redis/index.d.ts +4 -7
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/captcha/index.d.ts +3 -6
- package/dist/captcha/index.d.ts.map +1 -1
- package/dist/captcha/index.js.map +1 -1
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +417 -214
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +325 -563
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -5
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/i18n/index.d.ts +8 -12
- package/dist/cli/i18n/index.d.ts.map +1 -1
- package/dist/cli/i18n/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +126 -1342
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +136 -2374
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/platform-lib/index.d.ts +1446 -0
- package/dist/cli/platform-lib/index.d.ts.map +1 -0
- package/dist/cli/platform-lib/index.js +2597 -0
- package/dist/cli/platform-lib/index.js.map +1 -0
- package/dist/cli/vendor/index.d.ts +17 -21
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/command/index.d.ts +21 -20
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +39 -10
- package/dist/command/index.js.map +1 -1
- package/dist/{containers → container}/core/index.d.ts +13 -15
- package/dist/container/core/index.d.ts.map +1 -0
- package/dist/{containers → container}/core/index.js +23 -14
- package/dist/container/core/index.js.map +1 -0
- package/dist/{containers → container}/core/index.workerd.js +37 -22
- package/dist/container/core/index.workerd.js.map +1 -0
- package/dist/core/index.browser.js +27 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +48 -24
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +27 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +27 -1
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +27 -1
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.browser.js.map +1 -1
- package/dist/crypto/index.d.ts +5 -8
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js.map +1 -1
- package/dist/datetime/index.d.ts +3 -4
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/brevo/index.d.ts +2 -4
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/brevo/index.js.map +1 -1
- package/dist/email/cloudflare/index.d.ts +20 -7
- package/dist/email/cloudflare/index.d.ts.map +1 -1
- package/dist/email/cloudflare/index.js +46 -9
- package/dist/email/cloudflare/index.js.map +1 -1
- package/dist/email/core/index.d.ts +6 -9
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/core/index.workerd.js.map +1 -1
- package/dist/email/smtp/index.d.ts +10 -13
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +107 -32
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +1 -2
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +9 -14
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +2 -4
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.d.ts +105 -76
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +196 -174
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +16 -20
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +19 -1
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +76 -62
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +20 -2
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +28 -20
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +12 -15
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -5
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.browser.js +9 -2
- package/dist/react/auth/index.browser.js.map +1 -1
- package/dist/react/auth/index.d.ts +14 -9
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/auth/index.js +9 -2
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +7 -8
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +6 -3
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +2 -4
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/head/index.browser.js.map +1 -1
- package/dist/react/head/index.d.ts +2 -4
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/head/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +47 -11
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +33 -1
- package/dist/react/i18n/index.js.map +1 -1
- package/dist/react/intro/index.d.ts +1 -2
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js +2 -2
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +65 -19
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +327 -222
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +65 -29
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/testing/index.d.ts +1 -2
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +16 -17
- package/dist/react/testing/index.js.map +1 -1
- package/dist/react/ui/index.d.ts +20 -25
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/index.js.map +1 -1
- package/dist/redis/index.bun.js.map +1 -1
- package/dist/redis/index.d.ts +17 -19
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts +2 -4
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +10 -13
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +45 -48
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.browser.js.map +1 -1
- package/dist/server/auth/index.d.ts +167 -172
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +4 -8
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.d.ts +5 -7
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +88 -73
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +19 -0
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +11 -14
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +6 -9
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/etag/index.js.map +1 -1
- package/dist/server/health/index.d.ts +18 -21
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/health/index.js.map +1 -1
- package/dist/server/links/index.browser.js +2 -0
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +63 -67
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +2 -0
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +5 -7
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/proxy/index.d.ts +3 -5
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts +10 -13
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +3 -5
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +5 -8
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +3 -5
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +2 -4
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.workerd.js.map +1 -1
- package/dist/topic/core/index.d.ts +4 -6
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/core/index.js.map +1 -1
- package/dist/topic/redis/index.d.ts +5 -8
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js.map +1 -1
- package/package.json +45 -22
- package/src/api/audits/__tests__/AuditService.spec.ts +18 -110
- package/src/api/audits/controllers/AdminAuditController.ts +14 -0
- package/src/api/audits/services/AuditService.ts +21 -88
- package/src/api/files/__tests__/FileService.spec.ts +207 -2
- package/src/api/files/index.ts +3 -0
- package/src/api/files/schemas/fileCreatorSummarySchema.ts +22 -0
- package/src/api/files/schemas/fileResourceSchema.ts +10 -1
- package/src/api/files/services/FileService.ts +170 -72
- package/src/api/jobs/__tests__/$job.spec.ts +24 -1
- package/src/api/jobs/index.ts +4 -3
- package/src/api/jobs/primitives/$job.ts +7 -3
- package/src/api/jobs/providers/DirectJobDispatcher.ts +17 -36
- package/src/api/jobs/providers/JobProvider.ts +53 -24
- package/src/api/jobs/schemas/jobConfigAtom.ts +1 -1
- package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +4 -1
- package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +3 -1
- package/src/api/parameters/__tests__/$parameter.spec.ts +19 -2
- package/src/api/parameters/audits/ParameterAudits.ts +17 -0
- package/src/api/parameters/controllers/AdminParameterController.ts +95 -19
- package/src/api/parameters/index.ts +3 -0
- package/src/api/parameters/schemas/activateParameterBodySchema.ts +3 -3
- package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +3 -2
- package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +25 -0
- package/src/api/parameters/schemas/parameterResponseSchema.ts +5 -0
- package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +4 -2
- package/src/api/parameters/services/ParameterProvider.ts +69 -6
- package/src/api/subscriptions/jobs/SubscriptionJobs.ts +1 -1
- package/src/api/users/__tests__/AdminSessionController.spec.ts +37 -0
- package/src/api/users/audits/SessionAudits.ts +33 -0
- package/src/api/users/audits/UserAudits.ts +19 -43
- package/src/api/users/controllers/AdminUserController.ts +66 -1
- package/src/api/users/entities/sessions.ts +6 -0
- package/src/api/users/entities/users.ts +2 -0
- package/src/api/users/index.ts +9 -1
- package/src/api/users/primitives/$realm.ts +3 -0
- package/src/api/users/schemas/sessionResourceSchema.ts +16 -0
- package/src/api/users/schemas/updateUserSchema.ts +1 -8
- package/src/api/users/schemas/userQuerySchema.ts +7 -0
- package/src/api/users/services/CredentialService.ts +15 -6
- package/src/api/users/services/IdentityService.ts +2 -1
- package/src/api/users/services/RegistrationService.ts +2 -1
- package/src/api/users/services/SessionCrudService.ts +19 -2
- package/src/api/users/services/SessionService.ts +39 -19
- package/src/api/users/services/UserService.ts +106 -8
- package/src/background/__tests__/BackgroundTaskProvider.spec.ts +96 -0
- package/src/background/index.ts +37 -0
- package/src/background/index.workerd.ts +28 -0
- package/src/background/providers/BackgroundTaskProvider.ts +70 -0
- package/src/background/providers/WorkerdBackgroundTaskProvider.ts +43 -0
- package/src/bucket/__tests__/$bucket.spec.ts +18 -0
- package/src/bucket/__tests__/LocalFileStorageProvider.spec.ts +5 -0
- package/src/bucket/__tests__/MemoryFileStorageProvider.spec.ts +5 -0
- package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +23 -4
- package/src/bucket/__tests__/shared.ts +30 -0
- package/src/bucket/index.ts +5 -5
- package/src/bucket/index.workerd.ts +11 -4
- package/src/bucket/primitives/$bucket.ts +27 -0
- package/src/bucket/providers/FileStorageProvider.ts +13 -0
- package/src/bucket/providers/LocalFileStorageProvider.ts +17 -1
- package/src/bucket/providers/MemoryFileStorageProvider.ts +7 -0
- package/src/bucket/providers/{CloudflareR2Provider.ts → R2FileStorageProvider.ts} +10 -1
- package/src/bucket/providers/{NodeS3BucketProvider.ts → S3FileStorageProvider.ts} +27 -5
- package/src/cli/core/__tests__/BuildDockerTask.spec.ts +25 -1
- package/src/cli/core/__tests__/init.spec.ts +0 -219
- package/src/cli/core/commands/__tests__/BuildCommand.spec.ts +43 -0
- package/src/cli/core/commands/build.ts +108 -30
- package/src/cli/core/commands/init.ts +0 -12
- package/src/cli/core/commands/pack.ts +133 -0
- package/src/cli/core/index.ts +3 -0
- package/src/cli/core/providers/ViteDevServerProvider.ts +40 -16
- package/src/cli/core/services/PackageManagerUtils.ts +0 -16
- package/src/cli/core/services/ProjectScaffolder.ts +29 -291
- package/src/cli/core/tasks/BuildCloudflareTask.ts +353 -47
- package/src/cli/core/tasks/BuildDockerTask.ts +33 -3
- package/src/cli/core/tasks/BuildTask.ts +34 -0
- package/src/cli/core/templates/apiIndexTs.ts +1 -22
- package/src/cli/core/templates/mainCss.ts +0 -1
- package/src/cli/core/templates/webAppRouterTs.ts +0 -99
- package/src/cli/core/templates/webIndexTs.ts +1 -22
- package/src/cli/platform/__tests__/SecretsCommand.spec.ts +5 -3
- package/src/cli/platform/commands/SecretsCommand.ts +8 -6
- package/src/cli/platform/commands/platform.ts +192 -46
- package/src/cli/platform/index.ts +12 -52
- package/src/cli/{platform → platform-lib}/__tests__/CloudflareAdapter.spec.ts +426 -169
- package/src/cli/{platform → platform-lib}/__tests__/NamingService.spec.ts +91 -4
- package/src/cli/{platform → platform-lib}/__tests__/VercelAdapter.spec.ts +56 -85
- package/src/cli/{platform → platform-lib}/adapters/CloudflareAdapter.ts +402 -165
- package/src/cli/{platform → platform-lib}/adapters/PlatformAdapter.ts +62 -35
- package/src/cli/{platform → platform-lib}/adapters/VercelAdapter.ts +6 -10
- package/src/cli/{platform → platform-lib}/atoms/platformOptions.ts +34 -1
- package/src/cli/platform-lib/index.ts +67 -0
- package/src/cli/platform-lib/services/NamingService.ts +136 -0
- package/src/cli/{platform → platform-lib}/services/PlatformInspector.ts +60 -13
- package/src/cli/{platform → platform-lib}/services/PlatformOrchestrator.ts +54 -43
- package/src/cli/{platform → platform-lib}/services/WranglerApi.ts +4 -2
- package/src/command/__tests__/Runner.spec.ts +20 -0
- package/src/command/helpers/EnvUtils.ts +19 -3
- package/src/command/helpers/Runner.ts +12 -2
- package/src/command/providers/CliProvider.ts +34 -1
- package/src/{containers → container}/core/__tests__/$container.spec.ts +5 -5
- package/src/{containers → container}/core/index.ts +4 -4
- package/src/{containers → container}/core/index.workerd.ts +19 -3
- package/src/{containers → container}/core/primitives/$container.ts +1 -1
- package/src/{containers → container}/core/providers/CloudflareContainerProvider.ts +17 -19
- package/src/{containers → container}/core/providers/ContainerProvider.ts +16 -2
- package/src/{containers → container}/core/providers/MockContainerProvider.ts +1 -1
- package/src/core/Alepha.ts +49 -1
- package/src/core/__tests__/$env.spec.ts +42 -0
- package/src/core/__tests__/dump.spec.ts +47 -0
- package/src/email/cloudflare/__tests__/CloudflareEmailProvider.spec.ts +42 -10
- package/src/email/cloudflare/index.ts +14 -5
- package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +54 -9
- package/src/logger/__tests__/Logger.spec.ts +55 -0
- package/src/logger/index.ts +13 -0
- package/src/logger/services/Logger.ts +31 -1
- package/src/orm/__tests__/orm-showcase-tests.ts +27 -0
- package/src/orm/__tests__/orm-showcase.spec.ts +12 -0
- package/src/orm/core/interfaces/PgQuery.ts +4 -1
- package/src/orm/core/services/Repository.ts +27 -11
- package/src/react/auth/hooks/useAuth.ts +10 -5
- package/src/react/core/__tests__/useQuery.browser.spec.tsx +25 -0
- package/src/react/core/hooks/useAction.ts +14 -3
- package/src/react/core/hooks/useQuery.ts +24 -4
- package/src/react/i18n/components/Translate.tsx +47 -0
- package/src/react/i18n/index.ts +2 -0
- package/src/react/intro/components/GettingStartedAdminSlide.tsx +2 -2
- package/src/react/router/__tests__/$page.spec.tsx +3 -2
- package/src/react/router/__tests__/page-can.spec.ts +18 -13
- package/src/react/router/hooks/useQueryParams.ts +114 -14
- package/src/react/router/primitives/$page.ts +85 -4
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +3 -7
- package/src/react/router/providers/ReactServerProvider.ts +4 -13
- package/src/react/ui/services/SchemaControl.ts +3 -4
- package/src/server/core/providers/ServerMultipartProvider.ts +19 -0
- package/src/server/links/providers/LinkProvider.ts +10 -0
- package/dist/containers/core/index.d.ts.map +0 -1
- package/dist/containers/core/index.js.map +0 -1
- package/dist/containers/core/index.workerd.js.map +0 -1
- package/src/cli/core/templates/componentsJsonTs.ts +0 -39
- package/src/cli/core/templates/saasAdminLayoutTsx.ts +0 -77
- package/src/cli/core/templates/saasAdminPagesTsx.ts +0 -26
- package/src/cli/core/templates/saasAuthLayoutTsx.ts +0 -22
- package/src/cli/core/templates/saasAuthPagesTsx.ts +0 -62
- package/src/cli/core/templates/saasRealmProviderTs.ts +0 -52
- package/src/cli/platform/services/NamingService.ts +0 -54
- /package/dist/orm/core/{chunk-o8xxKEmq.js → chunk-B4FMCO8f.js} +0 -0
- /package/dist/react/testing/{chunk-6Ep1yQYe.js → chunk-BpyX8vjI.js} +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/GitHubSecretStore.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformCacheProvider.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformInspector.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformOrchestrator.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/SecretFilterService.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/detectResources.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/GitHubSecretStore.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/MemorySecretStore.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/PlatformCacheProvider.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/SecretStoreProvider.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/cloudflare.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/platform.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/vercel.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/CloudflareApi.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/SecretFilterService.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/VercelApi.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/VercelCli.ts +0 -0
- /package/src/{containers → container}/core/interfaces/ContainerOptions.ts +0 -0
- /package/src/{containers → container}/core/providers/NodeContainerProvider.ts +0 -0
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import * as _$alepha from "alepha";
|
|
2
1
|
import { Alepha, AlephaError, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
|
|
3
|
-
import * as _$alepha_server0 from "alepha/server";
|
|
4
2
|
import { ServerReply } from "alepha/server";
|
|
5
|
-
import * as _$alepha_orm0 from "alepha/orm";
|
|
6
|
-
import * as _$alepha_api_jobs0 from "alepha/api/jobs";
|
|
7
3
|
import { DateTimeProvider } from "alepha/datetime";
|
|
8
|
-
import * as _$alepha_logger0 from "alepha/logger";
|
|
9
4
|
import { CryptoProvider } from "alepha/crypto";
|
|
10
|
-
import * as _$typebox from "typebox";
|
|
11
5
|
import { BuildExtraConfigColumns, SQL } from "drizzle-orm";
|
|
12
6
|
import { PgColumnBuilderBase, PgSequenceOptions, PgTableExtraConfigValue, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
13
7
|
//#region ../../src/orm/core/schemas/insertSchema.d.ts
|
|
@@ -301,8 +295,8 @@ type PgAttr<T extends TSchema, TAttr extends PgSymbolKeys> = T & { [K in TAttr]:
|
|
|
301
295
|
* - `d1://BINDING_NAME` — Cloudflare D1
|
|
302
296
|
* - `hyperdrive://BINDING_NAME` — Cloudflare Hyperdrive
|
|
303
297
|
*/
|
|
304
|
-
declare const databaseEnvSchema:
|
|
305
|
-
DATABASE_URL:
|
|
298
|
+
declare const databaseEnvSchema: import("typebox").TObject<{
|
|
299
|
+
DATABASE_URL: import("typebox").TOptional<import("typebox").TString>;
|
|
306
300
|
/**
|
|
307
301
|
* Enable or disable push-based schema synchronization (drizzle-kit push).
|
|
308
302
|
*
|
|
@@ -310,43 +304,43 @@ declare const databaseEnvSchema: _$typebox.TObject<{
|
|
|
310
304
|
* Set to `false` in development to skip automatic schema sync
|
|
311
305
|
* (e.g. when managing migrations manually).
|
|
312
306
|
*/
|
|
313
|
-
DATABASE_SYNC:
|
|
307
|
+
DATABASE_SYNC: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
314
308
|
}>;
|
|
315
309
|
declare module "alepha" {
|
|
316
310
|
interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
|
|
317
311
|
} //# sourceMappingURL=databaseEnvSchema.d.ts.map
|
|
318
312
|
//#endregion
|
|
319
313
|
//#region ../../src/api/payments/entities/paymentIntents.d.ts
|
|
320
|
-
declare const paymentIntents:
|
|
321
|
-
id:
|
|
322
|
-
version:
|
|
323
|
-
createdAt:
|
|
324
|
-
updatedAt:
|
|
325
|
-
organizationId:
|
|
326
|
-
amount:
|
|
327
|
-
currency:
|
|
328
|
-
status:
|
|
329
|
-
providerRef:
|
|
330
|
-
providerRaw:
|
|
331
|
-
metadata:
|
|
332
|
-
paymentMethodId:
|
|
333
|
-
userId:
|
|
314
|
+
declare const paymentIntents: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
|
|
315
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
316
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
317
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
318
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
319
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
320
|
+
amount: import("typebox").TInteger;
|
|
321
|
+
currency: import("typebox").TString;
|
|
322
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
323
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
324
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
325
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
326
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
327
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
334
328
|
}>>;
|
|
335
329
|
type PaymentIntentEntity = Static<typeof paymentIntents.schema>;
|
|
336
330
|
//#endregion
|
|
337
331
|
//#region ../../src/api/payments/entities/refunds.d.ts
|
|
338
|
-
declare const refunds:
|
|
339
|
-
id:
|
|
340
|
-
version:
|
|
341
|
-
createdAt:
|
|
342
|
-
updatedAt:
|
|
343
|
-
organizationId:
|
|
344
|
-
intentId:
|
|
345
|
-
amount:
|
|
346
|
-
currency:
|
|
347
|
-
status:
|
|
348
|
-
reason:
|
|
349
|
-
providerRef:
|
|
332
|
+
declare const refunds: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
|
|
333
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
334
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
335
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
336
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
337
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
338
|
+
intentId: import("typebox").TString;
|
|
339
|
+
amount: import("typebox").TInteger;
|
|
340
|
+
currency: import("typebox").TString;
|
|
341
|
+
status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
|
|
342
|
+
reason: import("typebox").TOptional<import("typebox").TString>;
|
|
343
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
350
344
|
}>>;
|
|
351
345
|
type RefundEntity = Static<typeof refunds.schema>;
|
|
352
346
|
//#endregion
|
|
@@ -435,43 +429,43 @@ declare abstract class PaymentProvider {
|
|
|
435
429
|
//#region ../../src/api/payments/services/PaymentService.d.ts
|
|
436
430
|
declare class PaymentService {
|
|
437
431
|
protected readonly alepha: Alepha;
|
|
438
|
-
protected readonly log:
|
|
432
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
439
433
|
protected readonly dateTime: DateTimeProvider;
|
|
440
434
|
protected readonly provider: PaymentProvider;
|
|
441
|
-
protected readonly intentRepo:
|
|
442
|
-
id:
|
|
443
|
-
version:
|
|
444
|
-
createdAt:
|
|
445
|
-
updatedAt:
|
|
446
|
-
organizationId:
|
|
447
|
-
amount:
|
|
448
|
-
currency:
|
|
449
|
-
status:
|
|
450
|
-
providerRef:
|
|
451
|
-
providerRaw:
|
|
452
|
-
metadata:
|
|
453
|
-
paymentMethodId:
|
|
454
|
-
userId:
|
|
435
|
+
protected readonly intentRepo: import("alepha/orm").Repository<import("typebox").TObject<{
|
|
436
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
437
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
438
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
439
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
440
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
441
|
+
amount: import("typebox").TInteger;
|
|
442
|
+
currency: import("typebox").TString;
|
|
443
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
444
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
445
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
446
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
447
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
448
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
455
449
|
}>>;
|
|
456
|
-
protected readonly refundRepo:
|
|
457
|
-
id:
|
|
458
|
-
version:
|
|
459
|
-
createdAt:
|
|
460
|
-
updatedAt:
|
|
461
|
-
organizationId:
|
|
462
|
-
intentId:
|
|
463
|
-
amount:
|
|
464
|
-
currency:
|
|
465
|
-
status:
|
|
466
|
-
reason:
|
|
467
|
-
providerRef:
|
|
450
|
+
protected readonly refundRepo: import("alepha/orm").Repository<import("typebox").TObject<{
|
|
451
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
452
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
453
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
454
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
455
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
456
|
+
intentId: import("typebox").TString;
|
|
457
|
+
amount: import("typebox").TInteger;
|
|
458
|
+
currency: import("typebox").TString;
|
|
459
|
+
status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
|
|
460
|
+
reason: import("typebox").TOptional<import("typebox").TString>;
|
|
461
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
468
462
|
}>>;
|
|
469
463
|
/**
|
|
470
464
|
* Expires stale payment intents that have been in "processing" status
|
|
471
465
|
* for more than 30 minutes. Runs every 5 minutes — shares the CF wrangler
|
|
472
466
|
* trigger with the jobs sweep so no extra binding is consumed.
|
|
473
467
|
*/
|
|
474
|
-
protected readonly expireStaleIntents:
|
|
468
|
+
protected readonly expireStaleIntents: import("alepha/api/jobs").JobPrimitive<import("typebox").TSchema>;
|
|
475
469
|
/**
|
|
476
470
|
* Create a new payment intent in "created" status.
|
|
477
471
|
*/
|
|
@@ -539,34 +533,34 @@ declare class PaymentService {
|
|
|
539
533
|
sort?: string;
|
|
540
534
|
size?: number;
|
|
541
535
|
page?: number;
|
|
542
|
-
}): Promise<
|
|
543
|
-
id:
|
|
544
|
-
version:
|
|
545
|
-
createdAt:
|
|
546
|
-
updatedAt:
|
|
547
|
-
organizationId:
|
|
548
|
-
amount:
|
|
549
|
-
currency:
|
|
550
|
-
status:
|
|
551
|
-
providerRef:
|
|
552
|
-
providerRaw:
|
|
553
|
-
metadata:
|
|
554
|
-
paymentMethodId:
|
|
555
|
-
userId:
|
|
556
|
-
}>,
|
|
557
|
-
id:
|
|
558
|
-
version:
|
|
559
|
-
createdAt:
|
|
560
|
-
updatedAt:
|
|
561
|
-
organizationId:
|
|
562
|
-
amount:
|
|
563
|
-
currency:
|
|
564
|
-
status:
|
|
565
|
-
providerRef:
|
|
566
|
-
providerRaw:
|
|
567
|
-
metadata:
|
|
568
|
-
paymentMethodId:
|
|
569
|
-
userId:
|
|
536
|
+
}): Promise<import("alepha").Page<import("alepha/orm").PgStatic<import("typebox").TObject<{
|
|
537
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
538
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
539
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
540
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
541
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
542
|
+
amount: import("typebox").TInteger;
|
|
543
|
+
currency: import("typebox").TString;
|
|
544
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
545
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
546
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
547
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
548
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
549
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
550
|
+
}>, import("alepha/orm").PgRelationMap<import("typebox").TObject<{
|
|
551
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
552
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
553
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
554
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
555
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
556
|
+
amount: import("typebox").TInteger;
|
|
557
|
+
currency: import("typebox").TString;
|
|
558
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
559
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
560
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
561
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
562
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
563
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
570
564
|
}>>>>>;
|
|
571
565
|
protected assertStatus(intent: PaymentIntentEntity, expected: PaymentIntentEntity["status"], operation: string): void;
|
|
572
566
|
}
|
|
@@ -579,183 +573,183 @@ declare class AdminPaymentController {
|
|
|
579
573
|
/**
|
|
580
574
|
* List payment intents with pagination and filtering.
|
|
581
575
|
*/
|
|
582
|
-
readonly listIntents:
|
|
583
|
-
query:
|
|
584
|
-
page:
|
|
585
|
-
size:
|
|
586
|
-
sort:
|
|
587
|
-
status:
|
|
588
|
-
userId:
|
|
576
|
+
readonly listIntents: import("alepha/server").ActionPrimitiveFn<{
|
|
577
|
+
query: import("typebox").TObject<{
|
|
578
|
+
page: import("typebox").TOptional<import("typebox").TInteger>;
|
|
579
|
+
size: import("typebox").TOptional<import("typebox").TInteger>;
|
|
580
|
+
sort: import("typebox").TOptional<import("typebox").TString>;
|
|
581
|
+
status: import("typebox").TOptional<import("typebox").TString>;
|
|
582
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
589
583
|
}>;
|
|
590
|
-
response:
|
|
591
|
-
id: PgAttr<PgAttr<
|
|
592
|
-
version: PgAttr<PgAttr<
|
|
593
|
-
createdAt: PgAttr<PgAttr<
|
|
594
|
-
updatedAt: PgAttr<PgAttr<
|
|
595
|
-
organizationId: PgAttr<
|
|
596
|
-
amount:
|
|
597
|
-
currency:
|
|
598
|
-
status:
|
|
599
|
-
providerRef:
|
|
600
|
-
providerRaw:
|
|
601
|
-
metadata:
|
|
602
|
-
paymentMethodId:
|
|
603
|
-
userId:
|
|
584
|
+
response: import("alepha").TPage<import("typebox").TObject<{
|
|
585
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
586
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
587
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
588
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
589
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
590
|
+
amount: import("typebox").TInteger;
|
|
591
|
+
currency: import("typebox").TString;
|
|
592
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
593
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
594
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
595
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
596
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
597
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
604
598
|
}>>;
|
|
605
599
|
}>;
|
|
606
600
|
/**
|
|
607
601
|
* Get a payment intent by ID.
|
|
608
602
|
*/
|
|
609
|
-
readonly getIntent:
|
|
610
|
-
params:
|
|
611
|
-
id:
|
|
603
|
+
readonly getIntent: import("alepha/server").ActionPrimitiveFn<{
|
|
604
|
+
params: import("typebox").TObject<{
|
|
605
|
+
id: import("typebox").TString;
|
|
612
606
|
}>;
|
|
613
|
-
response:
|
|
614
|
-
id: PgAttr<PgAttr<
|
|
615
|
-
version: PgAttr<PgAttr<
|
|
616
|
-
createdAt: PgAttr<PgAttr<
|
|
617
|
-
updatedAt: PgAttr<PgAttr<
|
|
618
|
-
organizationId: PgAttr<
|
|
619
|
-
amount:
|
|
620
|
-
currency:
|
|
621
|
-
status:
|
|
622
|
-
providerRef:
|
|
623
|
-
providerRaw:
|
|
624
|
-
metadata:
|
|
625
|
-
paymentMethodId:
|
|
626
|
-
userId:
|
|
607
|
+
response: import("typebox").TObject<{
|
|
608
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
609
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
610
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
611
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
612
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
613
|
+
amount: import("typebox").TInteger;
|
|
614
|
+
currency: import("typebox").TString;
|
|
615
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
616
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
617
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
618
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
619
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
620
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
627
621
|
}>;
|
|
628
622
|
}>;
|
|
629
623
|
/**
|
|
630
624
|
* Capture an authorized intent.
|
|
631
625
|
*/
|
|
632
|
-
readonly captureIntent:
|
|
633
|
-
params:
|
|
634
|
-
id:
|
|
626
|
+
readonly captureIntent: import("alepha/server").ActionPrimitiveFn<{
|
|
627
|
+
params: import("typebox").TObject<{
|
|
628
|
+
id: import("typebox").TString;
|
|
635
629
|
}>;
|
|
636
|
-
body:
|
|
637
|
-
amount:
|
|
630
|
+
body: import("typebox").TObject<{
|
|
631
|
+
amount: import("typebox").TOptional<import("typebox").TInteger>;
|
|
638
632
|
}>;
|
|
639
|
-
response:
|
|
640
|
-
id: PgAttr<PgAttr<
|
|
641
|
-
version: PgAttr<PgAttr<
|
|
642
|
-
createdAt: PgAttr<PgAttr<
|
|
643
|
-
updatedAt: PgAttr<PgAttr<
|
|
644
|
-
organizationId: PgAttr<
|
|
645
|
-
amount:
|
|
646
|
-
currency:
|
|
647
|
-
status:
|
|
648
|
-
providerRef:
|
|
649
|
-
providerRaw:
|
|
650
|
-
metadata:
|
|
651
|
-
paymentMethodId:
|
|
652
|
-
userId:
|
|
633
|
+
response: import("typebox").TObject<{
|
|
634
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
635
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
636
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
637
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
638
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
639
|
+
amount: import("typebox").TInteger;
|
|
640
|
+
currency: import("typebox").TString;
|
|
641
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
642
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
643
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
644
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
645
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
646
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
653
647
|
}>;
|
|
654
648
|
}>;
|
|
655
649
|
/**
|
|
656
650
|
* Void an authorized intent.
|
|
657
651
|
*/
|
|
658
|
-
readonly voidIntent:
|
|
659
|
-
params:
|
|
660
|
-
id:
|
|
652
|
+
readonly voidIntent: import("alepha/server").ActionPrimitiveFn<{
|
|
653
|
+
params: import("typebox").TObject<{
|
|
654
|
+
id: import("typebox").TString;
|
|
661
655
|
}>;
|
|
662
|
-
response:
|
|
663
|
-
id: PgAttr<PgAttr<
|
|
664
|
-
version: PgAttr<PgAttr<
|
|
665
|
-
createdAt: PgAttr<PgAttr<
|
|
666
|
-
updatedAt: PgAttr<PgAttr<
|
|
667
|
-
organizationId: PgAttr<
|
|
668
|
-
amount:
|
|
669
|
-
currency:
|
|
670
|
-
status:
|
|
671
|
-
providerRef:
|
|
672
|
-
providerRaw:
|
|
673
|
-
metadata:
|
|
674
|
-
paymentMethodId:
|
|
675
|
-
userId:
|
|
656
|
+
response: import("typebox").TObject<{
|
|
657
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
658
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
659
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
660
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
661
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
662
|
+
amount: import("typebox").TInteger;
|
|
663
|
+
currency: import("typebox").TString;
|
|
664
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
665
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
666
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
667
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
668
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
669
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
676
670
|
}>;
|
|
677
671
|
}>;
|
|
678
672
|
/**
|
|
679
673
|
* Refund a captured intent.
|
|
680
674
|
*/
|
|
681
|
-
readonly refundIntent:
|
|
682
|
-
params:
|
|
683
|
-
id:
|
|
675
|
+
readonly refundIntent: import("alepha/server").ActionPrimitiveFn<{
|
|
676
|
+
params: import("typebox").TObject<{
|
|
677
|
+
id: import("typebox").TString;
|
|
684
678
|
}>;
|
|
685
|
-
body:
|
|
686
|
-
amount:
|
|
687
|
-
reason:
|
|
679
|
+
body: import("typebox").TObject<{
|
|
680
|
+
amount: import("typebox").TInteger;
|
|
681
|
+
reason: import("typebox").TOptional<import("typebox").TString>;
|
|
688
682
|
}>;
|
|
689
|
-
response:
|
|
690
|
-
id: PgAttr<PgAttr<
|
|
691
|
-
version: PgAttr<PgAttr<
|
|
692
|
-
createdAt: PgAttr<PgAttr<
|
|
693
|
-
updatedAt: PgAttr<PgAttr<
|
|
694
|
-
organizationId: PgAttr<
|
|
695
|
-
intentId:
|
|
696
|
-
amount:
|
|
697
|
-
currency:
|
|
698
|
-
status:
|
|
699
|
-
reason:
|
|
700
|
-
providerRef:
|
|
683
|
+
response: import("typebox").TObject<{
|
|
684
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
685
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
686
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
687
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
688
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
689
|
+
intentId: import("typebox").TString;
|
|
690
|
+
amount: import("typebox").TInteger;
|
|
691
|
+
currency: import("typebox").TString;
|
|
692
|
+
status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
|
|
693
|
+
reason: import("typebox").TOptional<import("typebox").TString>;
|
|
694
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
701
695
|
}>;
|
|
702
696
|
}>;
|
|
703
697
|
/**
|
|
704
698
|
* Cancel a created intent.
|
|
705
699
|
*/
|
|
706
|
-
readonly cancelIntent:
|
|
707
|
-
params:
|
|
708
|
-
id:
|
|
700
|
+
readonly cancelIntent: import("alepha/server").ActionPrimitiveFn<{
|
|
701
|
+
params: import("typebox").TObject<{
|
|
702
|
+
id: import("typebox").TString;
|
|
709
703
|
}>;
|
|
710
|
-
response:
|
|
711
|
-
id: PgAttr<PgAttr<
|
|
712
|
-
version: PgAttr<PgAttr<
|
|
713
|
-
createdAt: PgAttr<PgAttr<
|
|
714
|
-
updatedAt: PgAttr<PgAttr<
|
|
715
|
-
organizationId: PgAttr<
|
|
716
|
-
amount:
|
|
717
|
-
currency:
|
|
718
|
-
status:
|
|
719
|
-
providerRef:
|
|
720
|
-
providerRaw:
|
|
721
|
-
metadata:
|
|
722
|
-
paymentMethodId:
|
|
723
|
-
userId:
|
|
704
|
+
response: import("typebox").TObject<{
|
|
705
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
706
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
707
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
708
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
709
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
710
|
+
amount: import("typebox").TInteger;
|
|
711
|
+
currency: import("typebox").TString;
|
|
712
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
713
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
714
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
715
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
716
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
717
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
724
718
|
}>;
|
|
725
719
|
}>;
|
|
726
720
|
/**
|
|
727
721
|
* Record a cash payment.
|
|
728
722
|
*/
|
|
729
|
-
readonly recordCash:
|
|
730
|
-
body:
|
|
731
|
-
amount:
|
|
732
|
-
currency:
|
|
733
|
-
metadata:
|
|
723
|
+
readonly recordCash: import("alepha/server").ActionPrimitiveFn<{
|
|
724
|
+
body: import("typebox").TObject<{
|
|
725
|
+
amount: import("typebox").TInteger;
|
|
726
|
+
currency: import("typebox").TString;
|
|
727
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
734
728
|
}>;
|
|
735
|
-
response:
|
|
736
|
-
id: PgAttr<PgAttr<
|
|
737
|
-
version: PgAttr<PgAttr<
|
|
738
|
-
createdAt: PgAttr<PgAttr<
|
|
739
|
-
updatedAt: PgAttr<PgAttr<
|
|
740
|
-
organizationId: PgAttr<
|
|
741
|
-
amount:
|
|
742
|
-
currency:
|
|
743
|
-
status:
|
|
744
|
-
providerRef:
|
|
745
|
-
providerRaw:
|
|
746
|
-
metadata:
|
|
747
|
-
paymentMethodId:
|
|
748
|
-
userId:
|
|
729
|
+
response: import("typebox").TObject<{
|
|
730
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
731
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
732
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
733
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
734
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
735
|
+
amount: import("typebox").TInteger;
|
|
736
|
+
currency: import("typebox").TString;
|
|
737
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
738
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
739
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
740
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
741
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
742
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
749
743
|
}>;
|
|
750
744
|
}>;
|
|
751
745
|
/**
|
|
752
746
|
* PSP webhook endpoint (not under /admin, no auth — verified by provider).
|
|
753
747
|
*/
|
|
754
|
-
readonly webhook:
|
|
755
|
-
response:
|
|
756
|
-
ok:
|
|
757
|
-
id:
|
|
758
|
-
count:
|
|
748
|
+
readonly webhook: import("alepha/server").ActionPrimitiveFn<{
|
|
749
|
+
response: import("typebox").TObject<{
|
|
750
|
+
ok: import("typebox").TBoolean;
|
|
751
|
+
id: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TInteger]>>;
|
|
752
|
+
count: import("typebox").TOptional<import("typebox").TNumber>;
|
|
759
753
|
}>;
|
|
760
754
|
}>;
|
|
761
755
|
}
|
|
@@ -767,68 +761,68 @@ declare class MockCheckoutController {
|
|
|
767
761
|
protected readonly provider: PaymentProvider;
|
|
768
762
|
protected isMemoryProvider(): boolean;
|
|
769
763
|
protected forbidden(reply: ServerReply): string;
|
|
770
|
-
readonly mockCheckoutPage:
|
|
771
|
-
params:
|
|
772
|
-
id:
|
|
764
|
+
readonly mockCheckoutPage: import("alepha/server").RoutePrimitive<{
|
|
765
|
+
params: import("typebox").TObject<{
|
|
766
|
+
id: import("typebox").TString;
|
|
773
767
|
}>;
|
|
774
|
-
query:
|
|
775
|
-
returnUrl:
|
|
768
|
+
query: import("typebox").TObject<{
|
|
769
|
+
returnUrl: import("typebox").TOptional<import("typebox").TString>;
|
|
776
770
|
}>;
|
|
777
771
|
}>;
|
|
778
|
-
readonly mockCheckoutConfirm:
|
|
779
|
-
params:
|
|
780
|
-
id:
|
|
772
|
+
readonly mockCheckoutConfirm: import("alepha/server").RoutePrimitive<{
|
|
773
|
+
params: import("typebox").TObject<{
|
|
774
|
+
id: import("typebox").TString;
|
|
781
775
|
}>;
|
|
782
|
-
body:
|
|
783
|
-
returnUrl:
|
|
776
|
+
body: import("typebox").TObject<{
|
|
777
|
+
returnUrl: import("typebox").TOptional<import("typebox").TString>;
|
|
784
778
|
}>;
|
|
785
779
|
}>;
|
|
786
|
-
readonly mockCheckoutCancel:
|
|
787
|
-
params:
|
|
788
|
-
id:
|
|
780
|
+
readonly mockCheckoutCancel: import("alepha/server").RoutePrimitive<{
|
|
781
|
+
params: import("typebox").TObject<{
|
|
782
|
+
id: import("typebox").TString;
|
|
789
783
|
}>;
|
|
790
|
-
body:
|
|
791
|
-
returnUrl:
|
|
784
|
+
body: import("typebox").TObject<{
|
|
785
|
+
returnUrl: import("typebox").TOptional<import("typebox").TString>;
|
|
792
786
|
}>;
|
|
793
787
|
}>;
|
|
794
788
|
}
|
|
795
789
|
//#endregion
|
|
796
790
|
//#region ../../src/api/payments/entities/paymentMethods.d.ts
|
|
797
|
-
declare const paymentMethods:
|
|
798
|
-
id:
|
|
799
|
-
version:
|
|
800
|
-
createdAt:
|
|
801
|
-
updatedAt:
|
|
802
|
-
organizationId:
|
|
803
|
-
userId:
|
|
804
|
-
type:
|
|
805
|
-
brand:
|
|
806
|
-
last4:
|
|
807
|
-
expMonth:
|
|
808
|
-
expYear:
|
|
809
|
-
isDefault:
|
|
810
|
-
providerRef:
|
|
791
|
+
declare const paymentMethods: import("alepha/orm").EntityPrimitive<import("typebox").TObject<{
|
|
792
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
793
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
794
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
795
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
796
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
797
|
+
userId: import("typebox").TString;
|
|
798
|
+
type: import("typebox").TString;
|
|
799
|
+
brand: import("typebox").TOptional<import("typebox").TString>;
|
|
800
|
+
last4: import("typebox").TOptional<import("typebox").TString>;
|
|
801
|
+
expMonth: import("typebox").TOptional<import("typebox").TInteger>;
|
|
802
|
+
expYear: import("typebox").TOptional<import("typebox").TInteger>;
|
|
803
|
+
isDefault: import("typebox").TBoolean;
|
|
804
|
+
providerRef: import("typebox").TString;
|
|
811
805
|
}>>;
|
|
812
806
|
type PaymentMethodEntity = Static<typeof paymentMethods.schema>;
|
|
813
807
|
//#endregion
|
|
814
808
|
//#region ../../src/api/payments/services/PaymentMethodService.d.ts
|
|
815
809
|
declare class PaymentMethodService {
|
|
816
|
-
protected readonly log:
|
|
810
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
817
811
|
protected readonly provider: PaymentProvider;
|
|
818
|
-
protected readonly methodRepo:
|
|
819
|
-
id:
|
|
820
|
-
version:
|
|
821
|
-
createdAt:
|
|
822
|
-
updatedAt:
|
|
823
|
-
organizationId:
|
|
824
|
-
userId:
|
|
825
|
-
type:
|
|
826
|
-
brand:
|
|
827
|
-
last4:
|
|
828
|
-
expMonth:
|
|
829
|
-
expYear:
|
|
830
|
-
isDefault:
|
|
831
|
-
providerRef:
|
|
812
|
+
protected readonly methodRepo: import("alepha/orm").Repository<import("typebox").TObject<{
|
|
813
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
814
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
815
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
816
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
817
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
818
|
+
userId: import("typebox").TString;
|
|
819
|
+
type: import("typebox").TString;
|
|
820
|
+
brand: import("typebox").TOptional<import("typebox").TString>;
|
|
821
|
+
last4: import("typebox").TOptional<import("typebox").TString>;
|
|
822
|
+
expMonth: import("typebox").TOptional<import("typebox").TInteger>;
|
|
823
|
+
expYear: import("typebox").TOptional<import("typebox").TInteger>;
|
|
824
|
+
isDefault: import("typebox").TBoolean;
|
|
825
|
+
providerRef: import("typebox").TString;
|
|
832
826
|
}>>;
|
|
833
827
|
addPaymentMethod(userId: string, organizationId: string, token: string): Promise<PaymentMethodEntity>;
|
|
834
828
|
listPaymentMethods(userId: string): Promise<PaymentMethodEntity[]>;
|
|
@@ -845,94 +839,94 @@ declare class PaymentController {
|
|
|
845
839
|
/**
|
|
846
840
|
* List the current user's saved payment methods.
|
|
847
841
|
*/
|
|
848
|
-
readonly listPaymentMethods:
|
|
849
|
-
response:
|
|
850
|
-
id: PgAttr<PgAttr<
|
|
851
|
-
version: PgAttr<PgAttr<
|
|
852
|
-
createdAt: PgAttr<PgAttr<
|
|
853
|
-
updatedAt: PgAttr<PgAttr<
|
|
854
|
-
organizationId: PgAttr<
|
|
855
|
-
userId:
|
|
856
|
-
type:
|
|
857
|
-
brand:
|
|
858
|
-
last4:
|
|
859
|
-
expMonth:
|
|
860
|
-
expYear:
|
|
861
|
-
isDefault:
|
|
862
|
-
providerRef:
|
|
842
|
+
readonly listPaymentMethods: import("alepha/server").ActionPrimitiveFn<{
|
|
843
|
+
response: import("typebox").TArray<import("typebox").TObject<{
|
|
844
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
845
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
846
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
847
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
848
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
849
|
+
userId: import("typebox").TString;
|
|
850
|
+
type: import("typebox").TString;
|
|
851
|
+
brand: import("typebox").TOptional<import("typebox").TString>;
|
|
852
|
+
last4: import("typebox").TOptional<import("typebox").TString>;
|
|
853
|
+
expMonth: import("typebox").TOptional<import("typebox").TInteger>;
|
|
854
|
+
expYear: import("typebox").TOptional<import("typebox").TInteger>;
|
|
855
|
+
isDefault: import("typebox").TBoolean;
|
|
856
|
+
providerRef: import("typebox").TString;
|
|
863
857
|
}>>;
|
|
864
858
|
}>;
|
|
865
859
|
/**
|
|
866
860
|
* Add a new payment method.
|
|
867
861
|
*/
|
|
868
|
-
readonly addPaymentMethod:
|
|
869
|
-
body:
|
|
870
|
-
token:
|
|
862
|
+
readonly addPaymentMethod: import("alepha/server").ActionPrimitiveFn<{
|
|
863
|
+
body: import("typebox").TObject<{
|
|
864
|
+
token: import("typebox").TString;
|
|
871
865
|
}>;
|
|
872
|
-
response:
|
|
873
|
-
id: PgAttr<PgAttr<
|
|
874
|
-
version: PgAttr<PgAttr<
|
|
875
|
-
createdAt: PgAttr<PgAttr<
|
|
876
|
-
updatedAt: PgAttr<PgAttr<
|
|
877
|
-
organizationId: PgAttr<
|
|
878
|
-
userId:
|
|
879
|
-
type:
|
|
880
|
-
brand:
|
|
881
|
-
last4:
|
|
882
|
-
expMonth:
|
|
883
|
-
expYear:
|
|
884
|
-
isDefault:
|
|
885
|
-
providerRef:
|
|
866
|
+
response: import("typebox").TObject<{
|
|
867
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
868
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
869
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
870
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
871
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
872
|
+
userId: import("typebox").TString;
|
|
873
|
+
type: import("typebox").TString;
|
|
874
|
+
brand: import("typebox").TOptional<import("typebox").TString>;
|
|
875
|
+
last4: import("typebox").TOptional<import("typebox").TString>;
|
|
876
|
+
expMonth: import("typebox").TOptional<import("typebox").TInteger>;
|
|
877
|
+
expYear: import("typebox").TOptional<import("typebox").TInteger>;
|
|
878
|
+
isDefault: import("typebox").TBoolean;
|
|
879
|
+
providerRef: import("typebox").TString;
|
|
886
880
|
}>;
|
|
887
881
|
}>;
|
|
888
882
|
/**
|
|
889
883
|
* Remove a payment method.
|
|
890
884
|
*/
|
|
891
|
-
readonly removePaymentMethod:
|
|
892
|
-
params:
|
|
893
|
-
id:
|
|
885
|
+
readonly removePaymentMethod: import("alepha/server").ActionPrimitiveFn<{
|
|
886
|
+
params: import("typebox").TObject<{
|
|
887
|
+
id: import("typebox").TString;
|
|
894
888
|
}>;
|
|
895
|
-
response:
|
|
896
|
-
ok:
|
|
897
|
-
id:
|
|
898
|
-
count:
|
|
889
|
+
response: import("typebox").TObject<{
|
|
890
|
+
ok: import("typebox").TBoolean;
|
|
891
|
+
id: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TString, import("typebox").TInteger]>>;
|
|
892
|
+
count: import("typebox").TOptional<import("typebox").TNumber>;
|
|
899
893
|
}>;
|
|
900
894
|
}>;
|
|
901
895
|
/**
|
|
902
896
|
* Set a payment method as default.
|
|
903
897
|
*/
|
|
904
|
-
readonly setDefaultPaymentMethod:
|
|
905
|
-
params:
|
|
906
|
-
id:
|
|
898
|
+
readonly setDefaultPaymentMethod: import("alepha/server").ActionPrimitiveFn<{
|
|
899
|
+
params: import("typebox").TObject<{
|
|
900
|
+
id: import("typebox").TString;
|
|
907
901
|
}>;
|
|
908
|
-
response:
|
|
909
|
-
id: PgAttr<PgAttr<
|
|
910
|
-
version: PgAttr<PgAttr<
|
|
911
|
-
createdAt: PgAttr<PgAttr<
|
|
912
|
-
updatedAt: PgAttr<PgAttr<
|
|
913
|
-
organizationId: PgAttr<
|
|
914
|
-
userId:
|
|
915
|
-
type:
|
|
916
|
-
brand:
|
|
917
|
-
last4:
|
|
918
|
-
expMonth:
|
|
919
|
-
expYear:
|
|
920
|
-
isDefault:
|
|
921
|
-
providerRef:
|
|
902
|
+
response: import("typebox").TObject<{
|
|
903
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
904
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
905
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
906
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
907
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
908
|
+
userId: import("typebox").TString;
|
|
909
|
+
type: import("typebox").TString;
|
|
910
|
+
brand: import("typebox").TOptional<import("typebox").TString>;
|
|
911
|
+
last4: import("typebox").TOptional<import("typebox").TString>;
|
|
912
|
+
expMonth: import("typebox").TOptional<import("typebox").TInteger>;
|
|
913
|
+
expYear: import("typebox").TOptional<import("typebox").TInteger>;
|
|
914
|
+
isDefault: import("typebox").TBoolean;
|
|
915
|
+
providerRef: import("typebox").TString;
|
|
922
916
|
}>;
|
|
923
917
|
}>;
|
|
924
918
|
/**
|
|
925
919
|
* Create a checkout session.
|
|
926
920
|
*/
|
|
927
|
-
readonly createCheckout:
|
|
928
|
-
body:
|
|
929
|
-
intentId:
|
|
930
|
-
returnUrl:
|
|
931
|
-
authorize:
|
|
921
|
+
readonly createCheckout: import("alepha/server").ActionPrimitiveFn<{
|
|
922
|
+
body: import("typebox").TObject<{
|
|
923
|
+
intentId: import("typebox").TString;
|
|
924
|
+
returnUrl: import("typebox").TString;
|
|
925
|
+
authorize: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
932
926
|
}>;
|
|
933
|
-
response:
|
|
934
|
-
url:
|
|
935
|
-
intentId:
|
|
927
|
+
response: import("typebox").TObject<{
|
|
928
|
+
url: import("typebox").TString;
|
|
929
|
+
intentId: import("typebox").TString;
|
|
936
930
|
}>;
|
|
937
931
|
}>;
|
|
938
932
|
}
|
|
@@ -980,99 +974,99 @@ declare class MemoryPaymentProvider implements PaymentProvider {
|
|
|
980
974
|
}
|
|
981
975
|
//#endregion
|
|
982
976
|
//#region ../../src/api/payments/schemas/intentSchemas.d.ts
|
|
983
|
-
declare const createIntentSchema:
|
|
984
|
-
amount:
|
|
985
|
-
currency:
|
|
986
|
-
metadata:
|
|
987
|
-
paymentMethodId:
|
|
977
|
+
declare const createIntentSchema: import("typebox").TObject<{
|
|
978
|
+
amount: import("typebox").TInteger;
|
|
979
|
+
currency: import("typebox").TString;
|
|
980
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
981
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
988
982
|
}>;
|
|
989
983
|
type CreateIntent = Static<typeof createIntentSchema>;
|
|
990
|
-
declare const createCheckoutSchema:
|
|
991
|
-
intentId:
|
|
992
|
-
returnUrl:
|
|
993
|
-
authorize:
|
|
984
|
+
declare const createCheckoutSchema: import("typebox").TObject<{
|
|
985
|
+
intentId: import("typebox").TString;
|
|
986
|
+
returnUrl: import("typebox").TString;
|
|
987
|
+
authorize: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
994
988
|
}>;
|
|
995
989
|
type CreateCheckout = Static<typeof createCheckoutSchema>;
|
|
996
|
-
declare const checkoutResponseSchema:
|
|
997
|
-
url:
|
|
998
|
-
intentId:
|
|
990
|
+
declare const checkoutResponseSchema: import("typebox").TObject<{
|
|
991
|
+
url: import("typebox").TString;
|
|
992
|
+
intentId: import("typebox").TString;
|
|
999
993
|
}>;
|
|
1000
994
|
type CheckoutResponse = Static<typeof checkoutResponseSchema>;
|
|
1001
|
-
declare const captureIntentSchema:
|
|
1002
|
-
amount:
|
|
995
|
+
declare const captureIntentSchema: import("typebox").TObject<{
|
|
996
|
+
amount: import("typebox").TOptional<import("typebox").TInteger>;
|
|
1003
997
|
}>;
|
|
1004
998
|
type CaptureIntent = Static<typeof captureIntentSchema>;
|
|
1005
|
-
declare const refundIntentSchema:
|
|
1006
|
-
amount:
|
|
1007
|
-
reason:
|
|
999
|
+
declare const refundIntentSchema: import("typebox").TObject<{
|
|
1000
|
+
amount: import("typebox").TInteger;
|
|
1001
|
+
reason: import("typebox").TOptional<import("typebox").TString>;
|
|
1008
1002
|
}>;
|
|
1009
1003
|
type RefundIntent = Static<typeof refundIntentSchema>;
|
|
1010
|
-
declare const recordCashSchema:
|
|
1011
|
-
amount:
|
|
1012
|
-
currency:
|
|
1013
|
-
metadata:
|
|
1004
|
+
declare const recordCashSchema: import("typebox").TObject<{
|
|
1005
|
+
amount: import("typebox").TInteger;
|
|
1006
|
+
currency: import("typebox").TString;
|
|
1007
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
1014
1008
|
}>;
|
|
1015
1009
|
type RecordCash = Static<typeof recordCashSchema>;
|
|
1016
|
-
declare const intentQuerySchema:
|
|
1017
|
-
page:
|
|
1018
|
-
size:
|
|
1019
|
-
sort:
|
|
1020
|
-
status:
|
|
1021
|
-
userId:
|
|
1010
|
+
declare const intentQuerySchema: import("typebox").TObject<{
|
|
1011
|
+
page: import("typebox").TOptional<import("typebox").TInteger>;
|
|
1012
|
+
size: import("typebox").TOptional<import("typebox").TInteger>;
|
|
1013
|
+
sort: import("typebox").TOptional<import("typebox").TString>;
|
|
1014
|
+
status: import("typebox").TOptional<import("typebox").TString>;
|
|
1015
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
1022
1016
|
}>;
|
|
1023
1017
|
type IntentQuery = Static<typeof intentQuerySchema>;
|
|
1024
|
-
declare const intentResourceSchema:
|
|
1025
|
-
id:
|
|
1026
|
-
version:
|
|
1027
|
-
createdAt:
|
|
1028
|
-
updatedAt:
|
|
1029
|
-
organizationId:
|
|
1030
|
-
amount:
|
|
1031
|
-
currency:
|
|
1032
|
-
status:
|
|
1033
|
-
providerRef:
|
|
1034
|
-
providerRaw:
|
|
1035
|
-
metadata:
|
|
1036
|
-
paymentMethodId:
|
|
1037
|
-
userId:
|
|
1018
|
+
declare const intentResourceSchema: import("typebox").TObject<{
|
|
1019
|
+
id: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_PRIMARY_KEY>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
1020
|
+
version: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TInteger, typeof import("alepha/orm").PG_VERSION>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
1021
|
+
createdAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_CREATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
1022
|
+
updatedAt: import("alepha/orm").PgAttr<import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_UPDATED_AT>, typeof import("alepha/orm").PG_DEFAULT>;
|
|
1023
|
+
organizationId: import("alepha/orm").PgAttr<import("typebox").TString, typeof import("alepha/orm").PG_ORGANIZATION>;
|
|
1024
|
+
amount: import("typebox").TInteger;
|
|
1025
|
+
currency: import("typebox").TString;
|
|
1026
|
+
status: import("typebox").TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
1027
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
1028
|
+
providerRaw: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
1029
|
+
metadata: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
1030
|
+
paymentMethodId: import("typebox").TOptional<import("typebox").TString>;
|
|
1031
|
+
userId: import("typebox").TOptional<import("typebox").TString>;
|
|
1038
1032
|
}>;
|
|
1039
1033
|
type IntentResource = Static<typeof intentResourceSchema>;
|
|
1040
1034
|
//#endregion
|
|
1041
1035
|
//#region ../../src/api/payments/schemas/paymentMethodSchemas.d.ts
|
|
1042
|
-
declare const addPaymentMethodSchema:
|
|
1043
|
-
token:
|
|
1036
|
+
declare const addPaymentMethodSchema: import("typebox").TObject<{
|
|
1037
|
+
token: import("typebox").TString;
|
|
1044
1038
|
}>;
|
|
1045
1039
|
type AddPaymentMethod = Static<typeof addPaymentMethodSchema>;
|
|
1046
|
-
declare const paymentMethodResourceSchema:
|
|
1047
|
-
id: PgAttr<PgAttr<
|
|
1048
|
-
version: PgAttr<PgAttr<
|
|
1049
|
-
createdAt: PgAttr<PgAttr<
|
|
1050
|
-
updatedAt: PgAttr<PgAttr<
|
|
1051
|
-
organizationId: PgAttr<
|
|
1052
|
-
userId:
|
|
1053
|
-
type:
|
|
1054
|
-
brand:
|
|
1055
|
-
last4:
|
|
1056
|
-
expMonth:
|
|
1057
|
-
expYear:
|
|
1058
|
-
isDefault:
|
|
1059
|
-
providerRef:
|
|
1040
|
+
declare const paymentMethodResourceSchema: import("typebox").TObject<{
|
|
1041
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1042
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1043
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1044
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1045
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
1046
|
+
userId: import("typebox").TString;
|
|
1047
|
+
type: import("typebox").TString;
|
|
1048
|
+
brand: import("typebox").TOptional<import("typebox").TString>;
|
|
1049
|
+
last4: import("typebox").TOptional<import("typebox").TString>;
|
|
1050
|
+
expMonth: import("typebox").TOptional<import("typebox").TInteger>;
|
|
1051
|
+
expYear: import("typebox").TOptional<import("typebox").TInteger>;
|
|
1052
|
+
isDefault: import("typebox").TBoolean;
|
|
1053
|
+
providerRef: import("typebox").TString;
|
|
1060
1054
|
}>;
|
|
1061
1055
|
type PaymentMethodResource = Static<typeof paymentMethodResourceSchema>;
|
|
1062
1056
|
//#endregion
|
|
1063
1057
|
//#region ../../src/api/payments/schemas/refundSchemas.d.ts
|
|
1064
|
-
declare const refundResourceSchema:
|
|
1065
|
-
id: PgAttr<PgAttr<
|
|
1066
|
-
version: PgAttr<PgAttr<
|
|
1067
|
-
createdAt: PgAttr<PgAttr<
|
|
1068
|
-
updatedAt: PgAttr<PgAttr<
|
|
1069
|
-
organizationId: PgAttr<
|
|
1070
|
-
intentId:
|
|
1071
|
-
amount:
|
|
1072
|
-
currency:
|
|
1073
|
-
status:
|
|
1074
|
-
reason:
|
|
1075
|
-
providerRef:
|
|
1058
|
+
declare const refundResourceSchema: import("typebox").TObject<{
|
|
1059
|
+
id: PgAttr<PgAttr<import("typebox").TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
1060
|
+
version: PgAttr<PgAttr<import("typebox").TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
1061
|
+
createdAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1062
|
+
updatedAt: PgAttr<PgAttr<import("typebox").TString, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1063
|
+
organizationId: PgAttr<import("typebox").TString, typeof PG_ORGANIZATION>;
|
|
1064
|
+
intentId: import("typebox").TString;
|
|
1065
|
+
amount: import("typebox").TInteger;
|
|
1066
|
+
currency: import("typebox").TString;
|
|
1067
|
+
status: import("typebox").TUnsafe<"processing" | "failed" | "pending" | "completed">;
|
|
1068
|
+
reason: import("typebox").TOptional<import("typebox").TString>;
|
|
1069
|
+
providerRef: import("typebox").TOptional<import("typebox").TString>;
|
|
1076
1070
|
}>;
|
|
1077
1071
|
type RefundResource = Static<typeof refundResourceSchema>;
|
|
1078
1072
|
//#endregion
|
|
@@ -1118,7 +1112,7 @@ declare module "alepha" {
|
|
|
1118
1112
|
};
|
|
1119
1113
|
}
|
|
1120
1114
|
}
|
|
1121
|
-
declare const AlephaApiPayments:
|
|
1115
|
+
declare const AlephaApiPayments: import("alepha").Service<import("alepha").Module>;
|
|
1122
1116
|
//#endregion
|
|
1123
1117
|
export { AddPaymentMethod, AdminPaymentController, AlephaApiPayments, CaptureIntent, CheckoutResponse, CreateCheckout, CreateIntent, CreatePaymentMethodResult, CreateSessionResult, IntentQuery, IntentResource, MemoryPaymentProvider, MockCheckoutController, PaymentController, PaymentError, PaymentIntentEntity, PaymentMethodEntity, PaymentMethodResource, PaymentMethodService, PaymentProvider, PaymentService, RecordCash, RefundEntity, RefundIntent, RefundResource, RefundResult, WebhookEvent, addPaymentMethodSchema, captureIntentSchema, checkoutResponseSchema, createCheckoutSchema, createIntentSchema, intentQuerySchema, intentResourceSchema, paymentIntents, paymentMethodResourceSchema, paymentMethods, recordCashSchema, refundIntentSchema, refundResourceSchema, refunds };
|
|
1124
1118
|
//# sourceMappingURL=index.d.ts.map
|