alepha 0.19.2 → 0.19.4
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/assets/swagger-ui/swagger-ui-bundle.js +1 -1
- package/dist/api/audits/index.d.ts +8 -8
- package/dist/api/invitations/index.d.ts +790 -0
- package/dist/api/invitations/index.d.ts.map +1 -0
- package/dist/api/invitations/index.js +665 -0
- package/dist/api/invitations/index.js.map +1 -0
- package/dist/api/jobs/index.browser.js +8 -9
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +90 -34
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +267 -44
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js +0 -1
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +3 -3
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js +0 -1
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +112 -1
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +90 -3
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +79 -12
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/{billing → api/payments}/index.d.ts +67 -49
- package/dist/api/payments/index.d.ts.map +1 -0
- package/dist/{billing → api/payments}/index.js +108 -74
- package/dist/api/payments/index.js.map +1 -0
- package/dist/api/subscriptions/index.d.ts +1692 -0
- package/dist/api/subscriptions/index.d.ts.map +1 -0
- package/dist/api/subscriptions/index.js +1870 -0
- package/dist/api/subscriptions/index.js.map +1 -0
- package/dist/api/users/index.d.ts +27 -21
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +167 -34
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/workflows/index.browser.js +246 -0
- package/dist/api/workflows/index.browser.js.map +1 -0
- package/dist/api/workflows/index.d.ts +1618 -0
- package/dist/api/workflows/index.d.ts.map +1 -0
- package/dist/api/workflows/index.js +1504 -0
- package/dist/api/workflows/index.js.map +1 -0
- package/dist/cli/config/index.d.ts +6 -28
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js +5 -10
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +11669 -208
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +60 -69
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +5 -0
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js +4 -0
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +69 -64
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +6 -2
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +38 -10
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js +85 -26
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/core/index.browser.js +21 -2
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +33 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +25 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +25 -2
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +25 -2
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/email/smtp/index.js +24 -8
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +0 -18
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +25 -73
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +10 -32
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +25 -73
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js +3 -3
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +2 -1
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js +3 -3
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/react/router/index.browser.js +25 -3
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +16 -1
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +25 -3
- package/dist/react/router/index.js.map +1 -1
- package/dist/security/index.d.ts +28 -0
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +28 -0
- package/dist/security/index.js.map +1 -1
- package/package.json +37 -20
- package/src/api/invitations/__tests__/InvitationService.spec.ts +439 -0
- package/src/api/invitations/controllers/AdminInvitationController.ts +86 -0
- package/src/api/invitations/controllers/InvitationController.ts +84 -0
- package/src/api/invitations/entities/invitations.ts +33 -0
- package/src/api/invitations/index.ts +65 -0
- package/src/api/invitations/jobs/InvitationJobs.ts +37 -0
- package/src/api/invitations/providers/InvitationProvider.ts +45 -0
- package/src/api/invitations/schemas/createInvitationSchema.ts +12 -0
- package/src/api/invitations/schemas/invitationConfigAtom.ts +20 -0
- package/src/api/invitations/schemas/invitationQuerySchema.ts +15 -0
- package/src/api/invitations/schemas/invitationResourceSchema.ts +6 -0
- package/src/api/invitations/schemas/invitationWithResourceInfoSchema.ts +22 -0
- package/src/api/invitations/schemas/myInvitationsQuerySchema.ts +10 -0
- package/src/api/invitations/services/InvitationService.ts +556 -0
- package/src/api/jobs/__tests__/$job.spec.ts +876 -0
- package/src/api/jobs/controllers/AdminJobController.ts +44 -0
- package/src/api/jobs/entities/jobExecutionEntity.ts +0 -2
- package/src/api/jobs/index.ts +0 -3
- package/src/api/jobs/primitives/$job.ts +22 -11
- package/src/api/jobs/providers/JobProvider.ts +239 -25
- package/src/api/jobs/schemas/jobConfigAtom.ts +4 -0
- package/src/api/jobs/schemas/jobCronInfoSchema.ts +1 -0
- package/src/api/jobs/schemas/jobExecutionQuerySchema.ts +0 -1
- package/src/api/jobs/schemas/jobQueueDepthSchema.ts +1 -0
- package/src/api/jobs/schemas/jobRegistrationSchema.ts +1 -6
- package/src/api/jobs/services/JobService.ts +51 -12
- package/src/api/notifications/schemas/notificationQuerySchema.ts +0 -1
- package/src/api/parameters/__tests__/$parameter.spec.ts +327 -0
- package/src/api/parameters/controllers/AdminParameterController.ts +29 -3
- package/src/api/parameters/index.browser.ts +12 -0
- package/src/api/parameters/primitives/$parameter.ts +20 -3
- package/src/api/parameters/services/ParameterProvider.ts +48 -7
- package/src/{billing → api/payments}/__tests__/PaymentMethodService.spec.ts +32 -6
- package/src/api/payments/__tests__/PaymentService.spec.ts +279 -0
- package/src/{billing/controllers/AdminBillingController.ts → api/payments/controllers/AdminPaymentController.ts} +26 -21
- package/src/{billing/controllers/BillingController.ts → api/payments/controllers/PaymentController.ts} +23 -11
- package/src/{billing → api/payments}/entities/paymentIntents.ts +1 -0
- package/src/{billing/errors/BillingError.ts → api/payments/errors/PaymentError.ts} +1 -1
- package/src/{billing → api/payments}/index.ts +31 -25
- package/src/{billing/providers/MemoryBillingProvider.ts → api/payments/providers/MemoryPaymentProvider.ts} +4 -4
- package/src/{billing/providers/BillingProvider.ts → api/payments/providers/PaymentProvider.ts} +9 -2
- package/src/{billing → api/payments}/services/PaymentMethodService.ts +5 -5
- package/src/{billing/services/BillingService.ts → api/payments/services/PaymentService.ts} +94 -18
- package/src/api/subscriptions/__tests__/BillingService.spec.ts +218 -0
- package/src/api/subscriptions/__tests__/SubscriptionService.spec.ts +278 -0
- package/src/api/subscriptions/controllers/AdminSubscriptionController.ts +212 -0
- package/src/api/subscriptions/controllers/SubscriptionController.ts +189 -0
- package/src/api/subscriptions/entities/subscriptionEvents.ts +54 -0
- package/src/api/subscriptions/entities/subscriptions.ts +68 -0
- package/src/api/subscriptions/index.ts +144 -0
- package/src/api/subscriptions/jobs/SubscriptionJobs.ts +382 -0
- package/src/api/subscriptions/middleware/$requireLimit.ts +50 -0
- package/src/api/subscriptions/middleware/$requirePlan.ts +49 -0
- package/src/api/subscriptions/notifications/SubscriptionNotifications.ts +110 -0
- package/src/api/subscriptions/schemas/cancelSubscriptionSchema.ts +8 -0
- package/src/api/subscriptions/schemas/changePlanSchema.ts +9 -0
- package/src/api/subscriptions/schemas/createSubscriptionSchema.ts +11 -0
- package/src/api/subscriptions/schemas/entitlementsSchema.ts +21 -0
- package/src/api/subscriptions/schemas/mrrSchema.ts +13 -0
- package/src/api/subscriptions/schemas/planDefinitionSchema.ts +71 -0
- package/src/api/subscriptions/schemas/planResourceSchema.ts +25 -0
- package/src/api/subscriptions/schemas/subscriptionEventResourceSchema.ts +8 -0
- package/src/api/subscriptions/schemas/subscriptionQuerySchema.ts +19 -0
- package/src/api/subscriptions/schemas/subscriptionResourceSchema.ts +6 -0
- package/src/api/subscriptions/schemas/subscriptionSettingsSchema.ts +32 -0
- package/src/api/subscriptions/schemas/subscriptionStatsSchema.ts +23 -0
- package/src/api/subscriptions/services/BillingService.ts +437 -0
- package/src/api/subscriptions/services/SubscriptionConfig.ts +56 -0
- package/src/api/subscriptions/services/SubscriptionService.ts +867 -0
- package/src/api/subscriptions/services/UsageService.ts +118 -0
- package/src/api/users/__tests__/AdminUserController.spec.ts +80 -1
- package/src/api/users/__tests__/CredentialService.spec.ts +177 -0
- package/src/api/users/__tests__/EmailVerification.spec.ts +29 -18
- package/src/api/users/__tests__/PasswordReset.spec.ts +3 -0
- package/src/api/users/__tests__/RegistrationService.spec.ts +148 -1
- package/src/api/users/__tests__/SessionService.spec.ts +142 -1
- package/src/api/users/atoms/realmAuthSettingsAtom.ts +10 -1
- package/src/api/users/controllers/UserController.ts +3 -8
- package/src/api/users/notifications/UserNotifications.ts +23 -0
- package/src/api/users/schemas/loginSchema.ts +1 -1
- package/src/api/users/services/CredentialService.ts +51 -4
- package/src/api/users/services/RegistrationService.ts +38 -9
- package/src/api/users/services/SessionService.ts +62 -9
- package/src/api/users/services/UserService.ts +21 -12
- package/src/api/workflows/__tests__/$workflow.spec.ts +616 -0
- package/src/api/workflows/controllers/AdminWorkflowController.ts +191 -0
- package/src/api/workflows/entities/workflowExecutions.ts +74 -0
- package/src/api/workflows/entities/workflowStepExecutions.ts +74 -0
- package/src/api/workflows/entities/workflowStepLogs.ts +13 -0
- package/src/api/workflows/index.browser.ts +22 -0
- package/src/api/workflows/index.ts +124 -0
- package/src/api/workflows/jobs/WorkflowJobs.ts +77 -0
- package/src/api/workflows/primitives/$workflow.ts +202 -0
- package/src/api/workflows/providers/WorkflowProvider.ts +1284 -0
- package/src/api/workflows/schemas/workflowActivitySchema.ts +15 -0
- package/src/api/workflows/schemas/workflowConfigAtom.ts +51 -0
- package/src/api/workflows/schemas/workflowExecutionDetailSchema.ts +18 -0
- package/src/api/workflows/schemas/workflowExecutionQuerySchema.ts +26 -0
- package/src/api/workflows/schemas/workflowExecutionResourceSchema.ts +30 -0
- package/src/api/workflows/schemas/workflowRegistrationSchema.ts +26 -0
- package/src/api/workflows/schemas/workflowStatsSchema.ts +16 -0
- package/src/api/workflows/schemas/workflowStepExecutionResourceSchema.ts +15 -0
- package/src/api/workflows/services/WorkflowService.ts +382 -0
- package/src/cli/config/defineConfig.ts +17 -46
- package/src/cli/core/providers/ViteDevServerProvider.ts +45 -3
- package/src/cli/core/services/PackageManagerUtils.ts +3 -1
- package/src/cli/core/services/ProjectScaffolder.ts +5 -5
- package/src/cli/core/templates/agentMd.ts +14 -5
- package/src/cli/core/templates/webAppRouterTs.ts +5 -58
- package/src/cli/devtools/index.ts +21 -1
- package/src/cli/platform/index.ts +23 -2
- package/src/cli/vendor/__tests__/VendorService.spec.ts +283 -178
- package/src/cli/vendor/index.ts +20 -3
- package/src/cli/vendor/services/VendorService.ts +126 -27
- package/src/core/Alepha.ts +10 -0
- package/src/core/__tests__/TypeProvider.spec.ts +4 -2
- package/src/core/providers/SchemaValidator.ts +1 -1
- package/src/core/providers/TypeProvider.ts +46 -3
- package/src/logger/index.ts +6 -1
- package/src/orm/__tests__/enums.spec.ts +22 -29
- package/src/orm/__tests__/orm-showcase-tests.ts +430 -0
- package/src/orm/__tests__/orm-showcase.spec.ts +167 -0
- package/src/orm/core/providers/DatabaseTypeProvider.ts +0 -29
- package/src/orm/core/providers/DrizzleKitProvider.ts +56 -105
- package/src/orm/postgres/services/PostgresModelBuilder.ts +3 -6
- package/src/react/router/__tests__/$page.browser.spec.tsx +157 -0
- package/src/react/router/providers/ReactBrowserProvider.ts +39 -0
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +22 -0
- package/src/security/__tests__/$secure-combinations.spec.ts +945 -0
- package/src/security/primitives/$secure.ts +28 -0
- package/tsconfig.base.json +0 -1
- package/dist/billing/index.d.ts.map +0 -1
- package/dist/billing/index.js.map +0 -1
- package/src/billing/__tests__/BillingService.spec.ts +0 -136
- /package/src/{billing → api/payments}/entities/paymentMethods.ts +0 -0
- /package/src/{billing → api/payments}/entities/refunds.ts +0 -0
- /package/src/{billing → api/payments}/schemas/intentSchemas.ts +0 -0
- /package/src/{billing → api/payments}/schemas/paymentMethodSchemas.ts +0 -0
- /package/src/{billing → api/payments}/schemas/refundSchemas.ts +0 -0
|
@@ -311,7 +311,7 @@ declare module "alepha" {
|
|
|
311
311
|
interface Env extends Partial<Static<typeof databaseEnvSchema>> {}
|
|
312
312
|
} //# sourceMappingURL=databaseEnvSchema.d.ts.map
|
|
313
313
|
//#endregion
|
|
314
|
-
//#region ../../src/
|
|
314
|
+
//#region ../../src/api/payments/entities/paymentIntents.d.ts
|
|
315
315
|
declare const paymentIntents: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
316
316
|
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
317
317
|
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
@@ -320,7 +320,7 @@ declare const paymentIntents: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
|
320
320
|
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
321
321
|
amount: _$alepha.TInteger;
|
|
322
322
|
currency: _$alepha.TString;
|
|
323
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
323
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
324
324
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
325
325
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
326
326
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -329,7 +329,7 @@ declare const paymentIntents: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
|
329
329
|
}>>;
|
|
330
330
|
type PaymentIntentEntity = Static<typeof paymentIntents.schema>;
|
|
331
331
|
//#endregion
|
|
332
|
-
//#region ../../src/
|
|
332
|
+
//#region ../../src/api/payments/entities/refunds.d.ts
|
|
333
333
|
declare const refunds: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
334
334
|
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
335
335
|
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
@@ -345,7 +345,7 @@ declare const refunds: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
|
345
345
|
}>>;
|
|
346
346
|
type RefundEntity = Static<typeof refunds.schema>;
|
|
347
347
|
//#endregion
|
|
348
|
-
//#region ../../src/
|
|
348
|
+
//#region ../../src/api/payments/providers/PaymentProvider.d.ts
|
|
349
349
|
interface CreateSessionResult {
|
|
350
350
|
url: string;
|
|
351
351
|
providerRef: string;
|
|
@@ -366,7 +366,7 @@ interface CreatePaymentMethodResult {
|
|
|
366
366
|
expMonth?: number;
|
|
367
367
|
expYear?: number;
|
|
368
368
|
}
|
|
369
|
-
declare abstract class
|
|
369
|
+
declare abstract class PaymentProvider {
|
|
370
370
|
/**
|
|
371
371
|
* Create a checkout session with the PSP.
|
|
372
372
|
* Returns a URL to redirect the user to, and the PSP's reference ID.
|
|
@@ -389,7 +389,14 @@ declare abstract class BillingProvider {
|
|
|
389
389
|
*/
|
|
390
390
|
abstract refundPayment(providerRef: string, amount: number): Promise<RefundResult>;
|
|
391
391
|
/**
|
|
392
|
-
* Parse an incoming PSP webhook request
|
|
392
|
+
* Parse and verify an incoming PSP webhook request.
|
|
393
|
+
*
|
|
394
|
+
* Implementations MUST verify the webhook signature before returning.
|
|
395
|
+
* Throw an error if the signature is invalid or missing — this is the
|
|
396
|
+
* only authentication on the webhook endpoint (no $secure middleware).
|
|
397
|
+
*
|
|
398
|
+
* Failure to verify signatures allows attackers to forge payment
|
|
399
|
+
* confirmations by POSTing fake webhook events.
|
|
393
400
|
*/
|
|
394
401
|
abstract parseWebhook(request: Request): Promise<WebhookEvent>;
|
|
395
402
|
/**
|
|
@@ -407,12 +414,12 @@ declare abstract class BillingProvider {
|
|
|
407
414
|
abstract expireSession(providerRef: string): Promise<void>;
|
|
408
415
|
}
|
|
409
416
|
//#endregion
|
|
410
|
-
//#region ../../src/
|
|
411
|
-
declare class
|
|
417
|
+
//#region ../../src/api/payments/services/PaymentService.d.ts
|
|
418
|
+
declare class PaymentService {
|
|
412
419
|
protected readonly alepha: Alepha;
|
|
413
420
|
protected readonly log: _$alepha_logger0.Logger;
|
|
414
421
|
protected readonly dateTime: DateTimeProvider;
|
|
415
|
-
protected readonly provider:
|
|
422
|
+
protected readonly provider: PaymentProvider;
|
|
416
423
|
protected readonly intentRepo: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
417
424
|
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
418
425
|
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
@@ -421,7 +428,7 @@ declare class BillingService {
|
|
|
421
428
|
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
422
429
|
amount: _$alepha.TInteger;
|
|
423
430
|
currency: _$alepha.TString;
|
|
424
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
431
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
425
432
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
426
433
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
427
434
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -457,7 +464,7 @@ declare class BillingService {
|
|
|
457
464
|
* Create a checkout session with the payment provider and
|
|
458
465
|
* transition the intent to "processing".
|
|
459
466
|
*/
|
|
460
|
-
createSession(intentId: string, returnUrl: string, authorize?: boolean): Promise<{
|
|
467
|
+
createSession(intentId: string, returnUrl: string, authorize?: boolean, userId?: string): Promise<{
|
|
461
468
|
url: string;
|
|
462
469
|
intentId: string;
|
|
463
470
|
}>;
|
|
@@ -467,8 +474,13 @@ declare class BillingService {
|
|
|
467
474
|
handleWebhook(request: Request): Promise<void>;
|
|
468
475
|
/**
|
|
469
476
|
* Process a webhook event by updating the intent status and emitting
|
|
470
|
-
* the corresponding
|
|
477
|
+
* the corresponding payment event.
|
|
471
478
|
*/
|
|
479
|
+
/**
|
|
480
|
+
* Valid status transitions from webhook events.
|
|
481
|
+
* Only these transitions are allowed — all others are silently ignored.
|
|
482
|
+
*/
|
|
483
|
+
protected static readonly VALID_WEBHOOK_TRANSITIONS: Record<string, string[]>;
|
|
472
484
|
handleWebhookEvent(intentId: string, status: string, raw?: unknown): Promise<void>;
|
|
473
485
|
/**
|
|
474
486
|
* Capture a previously authorized payment. Optionally specify a different
|
|
@@ -513,7 +525,7 @@ declare class BillingService {
|
|
|
513
525
|
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
514
526
|
amount: _$alepha.TInteger;
|
|
515
527
|
currency: _$alepha.TString;
|
|
516
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
528
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
517
529
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
518
530
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
519
531
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -527,7 +539,7 @@ declare class BillingService {
|
|
|
527
539
|
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
528
540
|
amount: _$alepha.TInteger;
|
|
529
541
|
currency: _$alepha.TString;
|
|
530
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
542
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
531
543
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
532
544
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
533
545
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -537,11 +549,11 @@ declare class BillingService {
|
|
|
537
549
|
protected assertStatus(intent: PaymentIntentEntity, expected: PaymentIntentEntity["status"], operation: string): void;
|
|
538
550
|
}
|
|
539
551
|
//#endregion
|
|
540
|
-
//#region ../../src/
|
|
541
|
-
declare class
|
|
542
|
-
protected readonly url = "/admin/
|
|
543
|
-
protected readonly group = "admin:
|
|
544
|
-
protected readonly
|
|
552
|
+
//#region ../../src/api/payments/controllers/AdminPaymentController.d.ts
|
|
553
|
+
declare class AdminPaymentController {
|
|
554
|
+
protected readonly url = "/admin/payments";
|
|
555
|
+
protected readonly group = "admin:payments";
|
|
556
|
+
protected readonly payments: PaymentService;
|
|
545
557
|
/**
|
|
546
558
|
* List payment intents with pagination and filtering.
|
|
547
559
|
*/
|
|
@@ -561,7 +573,7 @@ declare class AdminBillingController {
|
|
|
561
573
|
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
562
574
|
amount: _$alepha.TInteger;
|
|
563
575
|
currency: _$alepha.TString;
|
|
564
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
576
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
565
577
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
566
578
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
567
579
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -584,7 +596,7 @@ declare class AdminBillingController {
|
|
|
584
596
|
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
585
597
|
amount: _$alepha.TInteger;
|
|
586
598
|
currency: _$alepha.TString;
|
|
587
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
599
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
588
600
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
589
601
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
590
602
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -610,7 +622,7 @@ declare class AdminBillingController {
|
|
|
610
622
|
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
611
623
|
amount: _$alepha.TInteger;
|
|
612
624
|
currency: _$alepha.TString;
|
|
613
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
625
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
614
626
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
615
627
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
616
628
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -633,7 +645,7 @@ declare class AdminBillingController {
|
|
|
633
645
|
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
634
646
|
amount: _$alepha.TInteger;
|
|
635
647
|
currency: _$alepha.TString;
|
|
636
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
648
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
637
649
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
638
650
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
639
651
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -681,7 +693,7 @@ declare class AdminBillingController {
|
|
|
681
693
|
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
682
694
|
amount: _$alepha.TInteger;
|
|
683
695
|
currency: _$alepha.TString;
|
|
684
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
696
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
685
697
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
686
698
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
687
699
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -706,7 +718,7 @@ declare class AdminBillingController {
|
|
|
706
718
|
organizationId: PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof PG_ORGANIZATION>;
|
|
707
719
|
amount: _$alepha.TInteger;
|
|
708
720
|
currency: _$alepha.TString;
|
|
709
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
721
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
710
722
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
711
723
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
712
724
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -726,7 +738,7 @@ declare class AdminBillingController {
|
|
|
726
738
|
}>;
|
|
727
739
|
}
|
|
728
740
|
//#endregion
|
|
729
|
-
//#region ../../src/
|
|
741
|
+
//#region ../../src/api/payments/entities/paymentMethods.d.ts
|
|
730
742
|
declare const paymentMethods: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
731
743
|
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
732
744
|
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
@@ -744,10 +756,10 @@ declare const paymentMethods: _$alepha_orm0.EntityPrimitive<_$alepha.TObject<{
|
|
|
744
756
|
}>>;
|
|
745
757
|
type PaymentMethodEntity = Static<typeof paymentMethods.schema>;
|
|
746
758
|
//#endregion
|
|
747
|
-
//#region ../../src/
|
|
759
|
+
//#region ../../src/api/payments/services/PaymentMethodService.d.ts
|
|
748
760
|
declare class PaymentMethodService {
|
|
749
761
|
protected readonly log: _$alepha_logger0.Logger;
|
|
750
|
-
protected readonly provider:
|
|
762
|
+
protected readonly provider: PaymentProvider;
|
|
751
763
|
protected readonly methodRepo: _$alepha_orm0.Repository<_$alepha.TObject<{
|
|
752
764
|
id: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TString, typeof _$alepha_orm0.PG_PRIMARY_KEY>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
753
765
|
version: _$alepha_orm0.PgAttr<_$alepha_orm0.PgAttr<_$alepha.TInteger, typeof _$alepha_orm0.PG_VERSION>, typeof _$alepha_orm0.PG_DEFAULT>;
|
|
@@ -769,11 +781,11 @@ declare class PaymentMethodService {
|
|
|
769
781
|
setDefault(methodId: string, userId: string): Promise<PaymentMethodEntity>;
|
|
770
782
|
}
|
|
771
783
|
//#endregion
|
|
772
|
-
//#region ../../src/
|
|
773
|
-
declare class
|
|
774
|
-
protected readonly url = "/
|
|
775
|
-
protected readonly group = "
|
|
776
|
-
protected readonly
|
|
784
|
+
//#region ../../src/api/payments/controllers/PaymentController.d.ts
|
|
785
|
+
declare class PaymentController {
|
|
786
|
+
protected readonly url = "/payments";
|
|
787
|
+
protected readonly group = "payments";
|
|
788
|
+
protected readonly payments: PaymentService;
|
|
777
789
|
protected readonly paymentMethods: PaymentMethodService;
|
|
778
790
|
/**
|
|
779
791
|
* List the current user's saved payment methods.
|
|
@@ -870,12 +882,12 @@ declare class BillingController {
|
|
|
870
882
|
}>;
|
|
871
883
|
}
|
|
872
884
|
//#endregion
|
|
873
|
-
//#region ../../src/
|
|
874
|
-
declare class
|
|
885
|
+
//#region ../../src/api/payments/errors/PaymentError.d.ts
|
|
886
|
+
declare class PaymentError extends AlephaError {
|
|
875
887
|
readonly status = 400;
|
|
876
888
|
}
|
|
877
889
|
//#endregion
|
|
878
|
-
//#region ../../src/
|
|
890
|
+
//#region ../../src/api/payments/providers/MemoryPaymentProvider.d.ts
|
|
879
891
|
interface MemoryCharge {
|
|
880
892
|
providerRef: string;
|
|
881
893
|
amount: number;
|
|
@@ -886,7 +898,7 @@ interface MemoryRefund {
|
|
|
886
898
|
chargeRef: string;
|
|
887
899
|
amount: number;
|
|
888
900
|
}
|
|
889
|
-
declare class
|
|
901
|
+
declare class MemoryPaymentProvider implements PaymentProvider {
|
|
890
902
|
protected readonly charges: Map<string, MemoryCharge>;
|
|
891
903
|
protected readonly refundRecords: Map<string, MemoryRefund>;
|
|
892
904
|
protected readonly methods: Map<string, CreatePaymentMethodResult>;
|
|
@@ -909,7 +921,7 @@ declare class MemoryBillingProvider implements BillingProvider {
|
|
|
909
921
|
getRefunds(): MemoryRefund[];
|
|
910
922
|
}
|
|
911
923
|
//#endregion
|
|
912
|
-
//#region ../../src/
|
|
924
|
+
//#region ../../src/api/payments/schemas/intentSchemas.d.ts
|
|
913
925
|
declare const createIntentSchema: _$alepha.TObject<{
|
|
914
926
|
amount: _$alepha.TInteger;
|
|
915
927
|
currency: _$alepha.TString;
|
|
@@ -959,7 +971,7 @@ declare const intentResourceSchema: _$alepha.TObject<{
|
|
|
959
971
|
organizationId: _$alepha_orm0.PgAttr<_$alepha.TOptional<_$alepha.TString>, typeof _$alepha_orm0.PG_ORGANIZATION>;
|
|
960
972
|
amount: _$alepha.TInteger;
|
|
961
973
|
currency: _$alepha.TString;
|
|
962
|
-
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
974
|
+
status: _$alepha.TUnsafe<"created" | "processing" | "authorized" | "captured" | "partially_refunded" | "voided" | "failed" | "cancelled" | "refunded" | "expired">;
|
|
963
975
|
providerRef: _$alepha.TOptional<_$alepha.TString>;
|
|
964
976
|
providerRaw: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
965
977
|
metadata: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
@@ -968,7 +980,7 @@ declare const intentResourceSchema: _$alepha.TObject<{
|
|
|
968
980
|
}>;
|
|
969
981
|
type IntentResource = Static<typeof intentResourceSchema>;
|
|
970
982
|
//#endregion
|
|
971
|
-
//#region ../../src/
|
|
983
|
+
//#region ../../src/api/payments/schemas/paymentMethodSchemas.d.ts
|
|
972
984
|
declare const addPaymentMethodSchema: _$alepha.TObject<{
|
|
973
985
|
token: _$alepha.TString;
|
|
974
986
|
}>;
|
|
@@ -990,7 +1002,7 @@ declare const paymentMethodResourceSchema: _$alepha.TObject<{
|
|
|
990
1002
|
}>;
|
|
991
1003
|
type PaymentMethodResource = Static<typeof paymentMethodResourceSchema>;
|
|
992
1004
|
//#endregion
|
|
993
|
-
//#region ../../src/
|
|
1005
|
+
//#region ../../src/api/payments/schemas/refundSchemas.d.ts
|
|
994
1006
|
declare const refundResourceSchema: _$alepha.TObject<{
|
|
995
1007
|
id: PgAttr<PgAttr<_$alepha.TString, typeof PG_PRIMARY_KEY>, typeof PG_DEFAULT>;
|
|
996
1008
|
version: PgAttr<PgAttr<_$alepha.TInteger, typeof PG_VERSION>, typeof PG_DEFAULT>;
|
|
@@ -1006,43 +1018,49 @@ declare const refundResourceSchema: _$alepha.TObject<{
|
|
|
1006
1018
|
}>;
|
|
1007
1019
|
type RefundResource = Static<typeof refundResourceSchema>;
|
|
1008
1020
|
//#endregion
|
|
1009
|
-
//#region ../../src/
|
|
1021
|
+
//#region ../../src/api/payments/index.d.ts
|
|
1010
1022
|
declare module "alepha" {
|
|
1011
1023
|
interface Hooks {
|
|
1012
|
-
"
|
|
1024
|
+
"payments:authorized": {
|
|
1013
1025
|
intentId: string;
|
|
1014
1026
|
amount: number;
|
|
1015
1027
|
currency: string;
|
|
1016
1028
|
metadata?: unknown;
|
|
1017
1029
|
};
|
|
1018
|
-
"
|
|
1030
|
+
"payments:captured": {
|
|
1019
1031
|
intentId: string;
|
|
1020
1032
|
amount: number;
|
|
1021
1033
|
currency: string;
|
|
1022
1034
|
metadata?: unknown;
|
|
1023
1035
|
};
|
|
1024
|
-
"
|
|
1036
|
+
"payments:failed": {
|
|
1025
1037
|
intentId: string;
|
|
1026
1038
|
amount: number;
|
|
1027
1039
|
currency: string;
|
|
1028
1040
|
metadata?: unknown;
|
|
1029
1041
|
};
|
|
1030
|
-
"
|
|
1042
|
+
"payments:voided": {
|
|
1031
1043
|
intentId: string;
|
|
1032
1044
|
amount: number;
|
|
1033
1045
|
currency: string;
|
|
1034
1046
|
metadata?: unknown;
|
|
1035
1047
|
};
|
|
1036
|
-
"
|
|
1048
|
+
"payments:refunded": {
|
|
1037
1049
|
intentId: string;
|
|
1038
1050
|
refundId: string;
|
|
1039
1051
|
amount: number;
|
|
1040
1052
|
currency: string;
|
|
1041
1053
|
metadata?: unknown;
|
|
1042
1054
|
};
|
|
1055
|
+
"payments:cancelled": {
|
|
1056
|
+
intentId: string;
|
|
1057
|
+
amount: number;
|
|
1058
|
+
currency: string;
|
|
1059
|
+
metadata?: unknown;
|
|
1060
|
+
};
|
|
1043
1061
|
}
|
|
1044
1062
|
}
|
|
1045
|
-
declare const
|
|
1063
|
+
declare const AlephaApiPayments: _$alepha.Service<_$alepha.Module>;
|
|
1046
1064
|
//#endregion
|
|
1047
|
-
export { AddPaymentMethod,
|
|
1065
|
+
export { AddPaymentMethod, AdminPaymentController, AlephaApiPayments, CaptureIntent, CheckoutResponse, CreateCheckout, CreateIntent, CreatePaymentMethodResult, CreateSessionResult, IntentQuery, IntentResource, MemoryPaymentProvider, 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 };
|
|
1048
1066
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/orm/core/schemas/insertSchema.ts","../../../src/orm/core/schemas/updateSchema.ts","../../../src/orm/core/primitives/$entity.ts","../../../src/orm/core/constants/PG_SYMBOLS.ts","../../../src/orm/core/helpers/pgAttr.ts","../../../src/orm/core/schemas/databaseEnvSchema.ts","../../../src/api/payments/entities/paymentIntents.ts","../../../src/api/payments/entities/refunds.ts","../../../src/api/payments/providers/PaymentProvider.ts","../../../src/api/payments/services/PaymentService.ts","../../../src/api/payments/controllers/AdminPaymentController.ts","../../../src/api/payments/entities/paymentMethods.ts","../../../src/api/payments/services/PaymentMethodService.ts","../../../src/api/payments/controllers/PaymentController.ts","../../../src/api/payments/errors/PaymentError.ts","../../../src/api/payments/providers/MemoryPaymentProvider.ts","../../../src/api/payments/schemas/intentSchemas.ts","../../../src/api/payments/schemas/paymentMethodSchemas.ts","../../../src/api/payments/schemas/refundSchemas.ts","../../../src/api/payments/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;KAaY,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA;EAAA,CACjB,UAAA;AAAA;EACD,WAAA;AAAA,IACF,SAAA,CAAU,CAAA,eAAgB,CAAA,KAC1B,CAAA,eAAgB,CAAA;;;;;;;;;;;;KCJV,aAAA,WAAwB,OAAA,IAAW,OAAA,eACjC,CAAA,kBAAmB,CAAA,eAAgB,CAAA;EAAA,CAC5C,YAAA;AAAA,YAGC,CAAA,GAAI,CAAA,eAAgB,CAAA,UAAW,SAAA,YAC/B,SAAA,CAAU,MAAA,EAAQ,CAAA,EAAG,KAAA,MACrB,CAAA,eAAgB,CAAA;;;UCWL,sBAAA,WACL,OAAA,eACG,MAAA,CAAO,CAAA;EFpBZ;;;;EE0BR,IAAA;EFvBI;;;EE4BJ,MAAA,EAAQ,CAAA;EFpC4C;;;EEyCpD,OAAA,IACI,IAAA;IF1CyC;;;IE+CvC,MAAA,EAAQ,IAAA;IF9CiC;;;IEkDzC,MAAA;IF9CkB;;;IEkDlB,IAAA;IF/CQ;;;IEmDR,KAAA,GAAQ,GAAA;EAAA;IFlDO;;;IEwD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