@veruna/api-contracts 18.0.0 → 19.1.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/build/controllers/index.d.ts +1 -2
- package/build/controllers/index.js +5 -7
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/utm.controllers.d.ts +1 -0
- package/build/controllers/utm.controllers.js +5 -0
- package/build/controllers/utm.controllers.js.map +1 -0
- package/build/locales/en.d.ts +2 -0
- package/build/locales/en.js +2 -0
- package/build/locales/en.js.map +1 -1
- package/build/locales/index.d.ts +4 -0
- package/build/locales/ru.d.ts +2 -0
- package/build/locales/ru.js +2 -0
- package/build/locales/ru.js.map +1 -1
- package/build/locales/validation.d.ts +12 -44
- package/build/locales/validation.js +12 -44
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +6 -9
- package/build/rest-api.js +6 -9
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +1 -2
- package/build/routes/index.js +4 -6
- package/build/routes/index.js.map +1 -1
- package/build/routes/notifications.routes.js.map +1 -1
- package/build/routes/payment.routes.d.ts +1 -3
- package/build/routes/payment.routes.js +1 -3
- package/build/routes/payment.routes.js.map +1 -1
- package/build/routes/utm.routes.d.ts +3 -0
- package/build/routes/utm.routes.js +7 -0
- package/build/routes/utm.routes.js.map +1 -0
- package/build/shared/frontend-routes.d.ts +3 -0
- package/build/shared/frontend-routes.js +5 -0
- package/build/shared/frontend-routes.js.map +1 -1
- package/build/shared/index.d.ts +1 -0
- package/build/shared/index.js +1 -0
- package/build/shared/index.js.map +1 -1
- package/build/shared/tariffs-anchor.enum.d.ts +3 -0
- package/build/shared/tariffs-anchor.enum.js +8 -0
- package/build/shared/tariffs-anchor.enum.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/admin-lockouts/schemas/lockout-kind.enum.d.ts +0 -1
- package/build/v1/admin-lockouts/schemas/lockout-kind.enum.js +0 -1
- package/build/v1/admin-lockouts/schemas/lockout-kind.enum.js.map +1 -1
- package/build/v1/engagement/queries/engagement-channels.query.d.ts +1 -0
- package/build/v1/engagement/queries/engagement-revenue.query.d.ts +4 -0
- package/build/v1/engagement/schemas/analytics-channels.schema.d.ts +2 -0
- package/build/v1/engagement/schemas/analytics-channels.schema.js +1 -0
- package/build/v1/engagement/schemas/analytics-channels.schema.js.map +1 -1
- package/build/v1/engagement/schemas/analytics-revenue.schema.d.ts +8 -0
- package/build/v1/engagement/schemas/analytics-revenue.schema.js +10 -3
- package/build/v1/engagement/schemas/analytics-revenue.schema.js.map +1 -1
- package/build/v1/engagement/schemas/suppression-reason.enum.js.map +1 -1
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/notifications/schemas/index.d.ts +2 -0
- package/build/v1/notifications/schemas/index.js +2 -0
- package/build/v1/notifications/schemas/index.js.map +1 -1
- package/build/v1/notifications/schemas/unsubscribe-outcome.enum.d.ts +6 -0
- package/build/v1/notifications/schemas/unsubscribe-outcome.enum.js +11 -0
- package/build/v1/notifications/schemas/unsubscribe-outcome.enum.js.map +1 -0
- package/build/v1/notifications/schemas/unsubscribe-response.schema.d.ts +6 -0
- package/build/v1/notifications/schemas/unsubscribe-response.schema.js +9 -0
- package/build/v1/notifications/schemas/unsubscribe-response.schema.js.map +1 -0
- package/build/v1/offers/schemas/user-offer-event-type.enum.d.ts +2 -1
- package/build/v1/offers/schemas/user-offer-event-type.enum.js +1 -0
- package/build/v1/offers/schemas/user-offer-event-type.enum.js.map +1 -1
- package/build/v1/offers/schemas/user-offer-status.enum.d.ts +4 -1
- package/build/v1/offers/schemas/user-offer-status.enum.js +3 -0
- package/build/v1/offers/schemas/user-offer-status.enum.js.map +1 -1
- package/build/v1/payment/admin/queries/admin-get-order.query.d.ts +10 -0
- package/build/v1/payment/admin/queries/admin-list-saved-methods.query.d.ts +1 -0
- package/build/v1/payment/admin/queries/index.d.ts +0 -1
- package/build/v1/payment/admin/queries/index.js +0 -1
- package/build/v1/payment/admin/queries/index.js.map +1 -1
- package/build/v1/payment/admin/schemas/admin-order.schema.d.ts +22 -0
- package/build/v1/payment/admin/schemas/admin-order.schema.js +14 -1
- package/build/v1/payment/admin/schemas/admin-order.schema.js.map +1 -1
- package/build/v1/payment/admin/schemas/admin-saved-method.schema.d.ts +1 -0
- package/build/v1/payment/admin/schemas/index.d.ts +0 -1
- package/build/v1/payment/admin/schemas/index.js +0 -1
- package/build/v1/payment/admin/schemas/index.js.map +1 -1
- package/build/v1/payment/commands/check-webhook.command.d.ts +0 -1
- package/build/v1/payment/commands/fail-webhook.command.d.ts +0 -1
- package/build/v1/payment/commands/index.d.ts +0 -4
- package/build/v1/payment/commands/index.js +0 -4
- package/build/v1/payment/commands/index.js.map +1 -1
- package/build/v1/payment/commands/pay-webhook.command.d.ts +0 -1
- package/build/v1/payment/commands/refund-webhook.command.js.map +1 -1
- package/build/v1/payment/commands/set-default-saved-method.command.d.ts +1 -0
- package/build/v1/payment/payment.errors.d.ts +6 -1
- package/build/v1/payment/payment.errors.js +25 -0
- package/build/v1/payment/payment.errors.js.map +1 -1
- package/build/v1/payment/queries/get-checkout-config.query.d.ts +1 -0
- package/build/v1/payment/queries/get-order-outcome.query.d.ts +31 -0
- package/build/v1/payment/queries/get-order-outcome.query.js +33 -0
- package/build/v1/payment/queries/get-order-outcome.query.js.map +1 -0
- package/build/v1/payment/queries/get-order.query.d.ts +0 -4
- package/build/v1/payment/queries/get-saved-methods.query.d.ts +3 -0
- package/build/v1/payment/queries/get-saved-methods.query.js +2 -0
- package/build/v1/payment/queries/get-saved-methods.query.js.map +1 -1
- package/build/v1/payment/queries/index.d.ts +1 -1
- package/build/v1/payment/queries/index.js +1 -1
- package/build/v1/payment/queries/index.js.map +1 -1
- package/build/v1/payment/schemas/cloudpayments-webhook.schemas.d.ts +2 -69
- package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js +2 -49
- package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js.map +1 -1
- package/build/v1/payment/schemas/cp-decline-codes.d.ts +3 -0
- package/build/v1/payment/schemas/cp-decline-codes.js +18 -3
- package/build/v1/payment/schemas/cp-decline-codes.js.map +1 -1
- package/build/v1/payment/schemas/decline-kind.enum.d.ts +2 -0
- package/build/v1/payment/schemas/decline-kind.enum.js +2 -0
- package/build/v1/payment/schemas/decline-kind.enum.js.map +1 -1
- package/build/v1/payment/schemas/index.d.ts +5 -4
- package/build/v1/payment/schemas/index.js +5 -4
- package/build/v1/payment/schemas/index.js.map +1 -1
- package/build/v1/payment/schemas/order-outcome.enum.d.ts +9 -0
- package/build/v1/payment/schemas/order-outcome.enum.js +14 -0
- package/build/v1/payment/schemas/order-outcome.enum.js.map +1 -0
- package/build/v1/payment/schemas/order-status.enum.d.ts +0 -1
- package/build/v1/payment/schemas/order-status.enum.js +0 -1
- package/build/v1/payment/schemas/order-status.enum.js.map +1 -1
- package/build/v1/payment/schemas/payment-decline-class.enum.d.ts +11 -0
- package/build/v1/payment/schemas/payment-decline-class.enum.js +16 -0
- package/build/v1/payment/schemas/payment-decline-class.enum.js.map +1 -0
- package/build/v1/payment/schemas/payment-status.enum.d.ts +1 -3
- package/build/v1/payment/schemas/payment-status.enum.js +0 -2
- package/build/v1/payment/schemas/payment-status.enum.js.map +1 -1
- package/build/v1/payment/schemas/refund-reason.enum.d.ts +6 -0
- package/build/v1/payment/schemas/refund-reason.enum.js +11 -0
- package/build/v1/payment/schemas/refund-reason.enum.js.map +1 -0
- package/build/v1/payment/schemas/refund-status.enum.d.ts +5 -0
- package/build/v1/payment/schemas/refund-status.enum.js +10 -0
- package/build/v1/payment/schemas/refund-status.enum.js.map +1 -0
- package/build/v1/payment/schemas/saved-method-status.enum.d.ts +1 -1
- package/build/v1/payment/schemas/saved-method-status.enum.js +1 -1
- package/build/v1/payment/schemas/saved-method-status.enum.js.map +1 -1
- package/build/v1/payment/schemas/saved-method-unusable-reason.enum.d.ts +5 -0
- package/build/v1/payment/schemas/saved-method-unusable-reason.enum.js +10 -0
- package/build/v1/payment/schemas/saved-method-unusable-reason.enum.js.map +1 -0
- package/build/v1/subscription/admin/commands/index.d.ts +0 -1
- package/build/v1/subscription/admin/commands/index.js +0 -1
- package/build/v1/subscription/admin/commands/index.js.map +1 -1
- package/build/v1/subscription/admin/queries/admin-get-user-billing.query.d.ts +4 -0
- package/build/v1/subscription/admin/schemas/admin-user-billing.schema.d.ts +9 -0
- package/build/v1/subscription/admin/schemas/admin-user-billing.schema.js +5 -0
- package/build/v1/subscription/admin/schemas/admin-user-billing.schema.js.map +1 -1
- package/build/v1/subscription/admin/schemas/index.d.ts +0 -1
- package/build/v1/subscription/admin/schemas/index.js +0 -1
- package/build/v1/subscription/admin/schemas/index.js.map +1 -1
- package/build/v1/subscription/commands/buy-package.command.d.ts +1 -0
- package/build/v1/subscription/commands/change-subscription.command.d.ts +5 -0
- package/build/v1/subscription/commands/checkout.command.d.ts +1 -0
- package/build/v1/subscription/queries/get-my-subscription.query.d.ts +34 -0
- package/build/v1/subscription/schemas/charge-status.enum.js.map +1 -1
- package/build/v1/subscription/schemas/index.d.ts +9 -0
- package/build/v1/subscription/schemas/index.js +9 -0
- package/build/v1/subscription/schemas/index.js.map +1 -1
- package/build/v1/subscription/schemas/payment-recovery-action-type.enum.d.ts +3 -0
- package/build/v1/subscription/schemas/payment-recovery-action-type.enum.js +8 -0
- package/build/v1/subscription/schemas/payment-recovery-action-type.enum.js.map +1 -0
- package/build/v1/subscription/schemas/payment-recovery-attempt-kind.enum.d.ts +3 -0
- package/build/v1/subscription/schemas/payment-recovery-attempt-kind.enum.js +8 -0
- package/build/v1/subscription/schemas/payment-recovery-attempt-kind.enum.js.map +1 -0
- package/build/v1/subscription/schemas/payment-recovery-attempt-state.enum.d.ts +6 -0
- package/build/v1/subscription/schemas/payment-recovery-attempt-state.enum.js +11 -0
- package/build/v1/subscription/schemas/payment-recovery-attempt-state.enum.js.map +1 -0
- package/build/v1/subscription/schemas/payment-recovery-disabled-reason.enum.d.ts +4 -0
- package/build/v1/subscription/schemas/payment-recovery-disabled-reason.enum.js +9 -0
- package/build/v1/subscription/schemas/payment-recovery-disabled-reason.enum.js.map +1 -0
- package/build/v1/subscription/schemas/payment-recovery-reason.enum.d.ts +14 -0
- package/build/v1/subscription/schemas/payment-recovery-reason.enum.js +19 -0
- package/build/v1/subscription/schemas/payment-recovery-reason.enum.js.map +1 -0
- package/build/v1/subscription/schemas/payment-recovery-stage.enum.d.ts +7 -0
- package/build/v1/subscription/schemas/payment-recovery-stage.enum.js +12 -0
- package/build/v1/subscription/schemas/payment-recovery-stage.enum.js.map +1 -0
- package/build/v1/subscription/schemas/payment-recovery-state.enum.d.ts +7 -0
- package/build/v1/subscription/schemas/payment-recovery-state.enum.js +12 -0
- package/build/v1/subscription/schemas/payment-recovery-state.enum.js.map +1 -0
- package/build/v1/subscription/schemas/payment-recovery.schema.d.ts +69 -0
- package/build/v1/subscription/schemas/payment-recovery.schema.js +53 -0
- package/build/v1/subscription/schemas/payment-recovery.schema.js.map +1 -0
- package/build/v1/subscription/schemas/subscription-status.enum.d.ts +1 -4
- package/build/v1/subscription/schemas/subscription-status.enum.js +0 -3
- package/build/v1/subscription/schemas/subscription-status.enum.js.map +1 -1
- package/build/v1/subscription/schemas/subscription-stop-reason.enum.d.ts +7 -0
- package/build/v1/subscription/schemas/subscription-stop-reason.enum.js +12 -0
- package/build/v1/subscription/schemas/subscription-stop-reason.enum.js.map +1 -0
- package/build/v1/subscription/schemas/subscription.schema.d.ts +42 -0
- package/build/v1/subscription/schemas/subscription.schema.js +8 -0
- package/build/v1/subscription/schemas/subscription.schema.js.map +1 -1
- package/build/v1/subscription/schemas/user-package-status.enum.d.ts +1 -3
- package/build/v1/subscription/schemas/user-package-status.enum.js +0 -2
- package/build/v1/subscription/schemas/user-package-status.enum.js.map +1 -1
- package/build/v1/subscription/subscription.errors.js.map +1 -1
- package/build/v1/unregistered-users/commands/authenticate.command.d.ts +5 -5
- package/build/v1/unregistered-users/schemas/authenticate-request.schema.d.ts +5 -12
- package/build/v1/unregistered-users/schemas/authenticate-request.schema.js +3 -9
- package/build/v1/unregistered-users/schemas/authenticate-request.schema.js.map +1 -1
- package/build/v1/users/users.errors.d.ts +3 -1
- package/build/v1/users/users.errors.js +10 -0
- package/build/v1/users/users.errors.js.map +1 -1
- package/build/v1/utm/commands/attach-utm.command.d.ts +20 -0
- package/build/v1/utm/commands/attach-utm.command.js +14 -0
- package/build/v1/utm/commands/attach-utm.command.js.map +1 -0
- package/build/v1/utm/commands/index.d.ts +1 -0
- package/build/v1/utm/commands/index.js +18 -0
- package/build/v1/utm/commands/index.js.map +1 -0
- package/build/v1/utm/index.d.ts +2 -0
- package/build/v1/utm/index.js +19 -0
- package/build/v1/utm/index.js.map +1 -0
- package/build/v1/utm/schemas/attach-utm-request.schema.d.ts +13 -0
- package/build/v1/utm/schemas/attach-utm-request.schema.js +12 -0
- package/build/v1/utm/schemas/attach-utm-request.schema.js.map +1 -0
- package/build/v1/utm/schemas/index.d.ts +2 -0
- package/build/v1/utm/schemas/index.js +19 -0
- package/build/v1/utm/schemas/index.js.map +1 -0
- package/build/v1/utm/schemas/utm.schema.d.ts +10 -0
- package/build/v1/utm/schemas/utm.schema.js +22 -0
- package/build/v1/utm/schemas/utm.schema.js.map +1 -0
- package/build-esm/.tsbuildinfo +1 -1
- package/build-esm/controllers/index.js +1 -2
- package/build-esm/controllers/index.js.map +1 -1
- package/build-esm/controllers/utm.controllers.js +2 -0
- package/build-esm/controllers/utm.controllers.js.map +1 -0
- package/build-esm/locales/en.js +2 -0
- package/build-esm/locales/en.js.map +1 -1
- package/build-esm/locales/ru.js +2 -0
- package/build-esm/locales/ru.js.map +1 -1
- package/build-esm/locales/validation.js +12 -44
- package/build-esm/locales/validation.js.map +1 -1
- package/build-esm/rest-api.js +8 -11
- package/build-esm/rest-api.js.map +1 -1
- package/build-esm/routes/index.js +1 -2
- package/build-esm/routes/index.js.map +1 -1
- package/build-esm/routes/notifications.routes.js.map +1 -1
- package/build-esm/routes/payment.routes.js +1 -3
- package/build-esm/routes/payment.routes.js.map +1 -1
- package/build-esm/routes/utm.routes.js +4 -0
- package/build-esm/routes/utm.routes.js.map +1 -0
- package/build-esm/shared/frontend-routes.js +4 -0
- package/build-esm/shared/frontend-routes.js.map +1 -1
- package/build-esm/shared/index.js +1 -0
- package/build-esm/shared/index.js.map +1 -1
- package/build-esm/shared/tariffs-anchor.enum.js +5 -0
- package/build-esm/shared/tariffs-anchor.enum.js.map +1 -0
- package/build-esm/v1/admin-lockouts/schemas/lockout-kind.enum.js +0 -1
- package/build-esm/v1/admin-lockouts/schemas/lockout-kind.enum.js.map +1 -1
- package/build-esm/v1/engagement/schemas/analytics-channels.schema.js +1 -0
- package/build-esm/v1/engagement/schemas/analytics-channels.schema.js.map +1 -1
- package/build-esm/v1/engagement/schemas/analytics-revenue.schema.js +9 -2
- package/build-esm/v1/engagement/schemas/analytics-revenue.schema.js.map +1 -1
- package/build-esm/v1/engagement/schemas/suppression-reason.enum.js.map +1 -1
- package/build-esm/v1/index.js +1 -0
- package/build-esm/v1/index.js.map +1 -1
- package/build-esm/v1/notifications/schemas/index.js +2 -0
- package/build-esm/v1/notifications/schemas/index.js.map +1 -1
- package/build-esm/v1/notifications/schemas/unsubscribe-outcome.enum.js +8 -0
- package/build-esm/v1/notifications/schemas/unsubscribe-outcome.enum.js.map +1 -0
- package/build-esm/v1/notifications/schemas/unsubscribe-response.schema.js +6 -0
- package/build-esm/v1/notifications/schemas/unsubscribe-response.schema.js.map +1 -0
- package/build-esm/v1/offers/schemas/user-offer-event-type.enum.js +1 -0
- package/build-esm/v1/offers/schemas/user-offer-event-type.enum.js.map +1 -1
- package/build-esm/v1/offers/schemas/user-offer-status.enum.js +3 -0
- package/build-esm/v1/offers/schemas/user-offer-status.enum.js.map +1 -1
- package/build-esm/v1/payment/admin/queries/index.js +0 -1
- package/build-esm/v1/payment/admin/queries/index.js.map +1 -1
- package/build-esm/v1/payment/admin/schemas/admin-order.schema.js +13 -0
- package/build-esm/v1/payment/admin/schemas/admin-order.schema.js.map +1 -1
- package/build-esm/v1/payment/admin/schemas/index.js +0 -1
- package/build-esm/v1/payment/admin/schemas/index.js.map +1 -1
- package/build-esm/v1/payment/commands/index.js +0 -4
- package/build-esm/v1/payment/commands/index.js.map +1 -1
- package/build-esm/v1/payment/commands/refund-webhook.command.js.map +1 -1
- package/build-esm/v1/payment/payment.errors.js +25 -0
- package/build-esm/v1/payment/payment.errors.js.map +1 -1
- package/build-esm/v1/payment/queries/get-order-outcome.query.js +30 -0
- package/build-esm/v1/payment/queries/get-order-outcome.query.js.map +1 -0
- package/build-esm/v1/payment/queries/get-saved-methods.query.js +2 -0
- package/build-esm/v1/payment/queries/get-saved-methods.query.js.map +1 -1
- package/build-esm/v1/payment/queries/index.js +1 -1
- package/build-esm/v1/payment/queries/index.js.map +1 -1
- package/build-esm/v1/payment/schemas/cloudpayments-webhook.schemas.js +1 -48
- package/build-esm/v1/payment/schemas/cloudpayments-webhook.schemas.js.map +1 -1
- package/build-esm/v1/payment/schemas/cp-decline-codes.js +17 -2
- package/build-esm/v1/payment/schemas/cp-decline-codes.js.map +1 -1
- package/build-esm/v1/payment/schemas/decline-kind.enum.js +2 -0
- package/build-esm/v1/payment/schemas/decline-kind.enum.js.map +1 -1
- package/build-esm/v1/payment/schemas/index.js +5 -4
- package/build-esm/v1/payment/schemas/index.js.map +1 -1
- package/build-esm/v1/payment/schemas/order-outcome.enum.js +11 -0
- package/build-esm/v1/payment/schemas/order-outcome.enum.js.map +1 -0
- package/build-esm/v1/payment/schemas/order-status.enum.js +0 -1
- package/build-esm/v1/payment/schemas/order-status.enum.js.map +1 -1
- package/build-esm/v1/payment/schemas/payment-decline-class.enum.js +13 -0
- package/build-esm/v1/payment/schemas/payment-decline-class.enum.js.map +1 -0
- package/build-esm/v1/payment/schemas/payment-status.enum.js +0 -2
- package/build-esm/v1/payment/schemas/payment-status.enum.js.map +1 -1
- package/build-esm/v1/payment/schemas/refund-reason.enum.js +8 -0
- package/build-esm/v1/payment/schemas/refund-reason.enum.js.map +1 -0
- package/build-esm/v1/payment/schemas/refund-status.enum.js +7 -0
- package/build-esm/v1/payment/schemas/refund-status.enum.js.map +1 -0
- package/build-esm/v1/payment/schemas/saved-method-status.enum.js +1 -1
- package/build-esm/v1/payment/schemas/saved-method-status.enum.js.map +1 -1
- package/build-esm/v1/payment/schemas/saved-method-unusable-reason.enum.js +7 -0
- package/build-esm/v1/payment/schemas/saved-method-unusable-reason.enum.js.map +1 -0
- package/build-esm/v1/subscription/admin/commands/index.js +0 -1
- package/build-esm/v1/subscription/admin/commands/index.js.map +1 -1
- package/build-esm/v1/subscription/admin/schemas/admin-user-billing.schema.js +5 -0
- package/build-esm/v1/subscription/admin/schemas/admin-user-billing.schema.js.map +1 -1
- package/build-esm/v1/subscription/admin/schemas/index.js +0 -1
- package/build-esm/v1/subscription/admin/schemas/index.js.map +1 -1
- package/build-esm/v1/subscription/schemas/charge-status.enum.js.map +1 -1
- package/build-esm/v1/subscription/schemas/index.js +9 -0
- package/build-esm/v1/subscription/schemas/index.js.map +1 -1
- package/build-esm/v1/subscription/schemas/payment-recovery-action-type.enum.js +5 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-action-type.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-attempt-kind.enum.js +5 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-attempt-kind.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-attempt-state.enum.js +8 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-attempt-state.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-disabled-reason.enum.js +6 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-disabled-reason.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-reason.enum.js +16 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-reason.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-stage.enum.js +9 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-stage.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-state.enum.js +9 -0
- package/build-esm/v1/subscription/schemas/payment-recovery-state.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/payment-recovery.schema.js +50 -0
- package/build-esm/v1/subscription/schemas/payment-recovery.schema.js.map +1 -0
- package/build-esm/v1/subscription/schemas/subscription-status.enum.js +0 -3
- package/build-esm/v1/subscription/schemas/subscription-status.enum.js.map +1 -1
- package/build-esm/v1/subscription/schemas/subscription-stop-reason.enum.js +9 -0
- package/build-esm/v1/subscription/schemas/subscription-stop-reason.enum.js.map +1 -0
- package/build-esm/v1/subscription/schemas/subscription.schema.js +8 -0
- package/build-esm/v1/subscription/schemas/subscription.schema.js.map +1 -1
- package/build-esm/v1/subscription/schemas/user-package-status.enum.js +0 -2
- package/build-esm/v1/subscription/schemas/user-package-status.enum.js.map +1 -1
- package/build-esm/v1/subscription/subscription.errors.js.map +1 -1
- package/build-esm/v1/unregistered-users/schemas/authenticate-request.schema.js +1 -7
- package/build-esm/v1/unregistered-users/schemas/authenticate-request.schema.js.map +1 -1
- package/build-esm/v1/users/users.errors.js +10 -0
- package/build-esm/v1/users/users.errors.js.map +1 -1
- package/build-esm/v1/utm/commands/attach-utm.command.js +11 -0
- package/build-esm/v1/utm/commands/attach-utm.command.js.map +1 -0
- package/build-esm/v1/utm/commands/index.js +2 -0
- package/build-esm/v1/utm/commands/index.js.map +1 -0
- package/build-esm/v1/utm/index.js +3 -0
- package/build-esm/v1/utm/index.js.map +1 -0
- package/build-esm/v1/utm/schemas/attach-utm-request.schema.js +9 -0
- package/build-esm/v1/utm/schemas/attach-utm-request.schema.js.map +1 -0
- package/build-esm/v1/utm/schemas/index.js +3 -0
- package/build-esm/v1/utm/schemas/index.js.map +1 -0
- package/build-esm/v1/utm/schemas/utm.schema.js +18 -0
- package/build-esm/v1/utm/schemas/utm.schema.js.map +1 -0
- package/package.json +1 -1
- package/build/controllers/fulfillment-admin.controllers.d.ts +0 -1
- package/build/controllers/fulfillment-admin.controllers.js +0 -5
- package/build/controllers/fulfillment-admin.controllers.js.map +0 -1
- package/build/controllers/recurring-reconciliation-admin.controllers.d.ts +0 -1
- package/build/controllers/recurring-reconciliation-admin.controllers.js +0 -5
- package/build/controllers/recurring-reconciliation-admin.controllers.js.map +0 -1
- package/build/routes/fulfillment-admin.routes.d.ts +0 -3
- package/build/routes/fulfillment-admin.routes.js +0 -7
- package/build/routes/fulfillment-admin.routes.js.map +0 -1
- package/build/routes/recurring-reconciliation-admin.routes.d.ts +0 -3
- package/build/routes/recurring-reconciliation-admin.routes.js +0 -7
- package/build/routes/recurring-reconciliation-admin.routes.js.map +0 -1
- package/build/v1/payment/admin/queries/admin-list-recurring-reconciliation.query.d.ts +0 -34
- package/build/v1/payment/admin/queries/admin-list-recurring-reconciliation.query.js +0 -14
- package/build/v1/payment/admin/queries/admin-list-recurring-reconciliation.query.js.map +0 -1
- package/build/v1/payment/admin/schemas/admin-recurring-reconciliation.schema.d.ts +0 -57
- package/build/v1/payment/admin/schemas/admin-recurring-reconciliation.schema.js +0 -49
- package/build/v1/payment/admin/schemas/admin-recurring-reconciliation.schema.js.map +0 -1
- package/build/v1/payment/commands/cancel-webhook.command.d.ts +0 -14
- package/build/v1/payment/commands/cancel-webhook.command.js +0 -14
- package/build/v1/payment/commands/cancel-webhook.command.js.map +0 -1
- package/build/v1/payment/commands/confirm-webhook.command.d.ts +0 -48
- package/build/v1/payment/commands/confirm-webhook.command.js +0 -14
- package/build/v1/payment/commands/confirm-webhook.command.js.map +0 -1
- package/build/v1/payment/commands/mark-order-fulfilled.command.d.ts +0 -13
- package/build/v1/payment/commands/mark-order-fulfilled.command.js +0 -19
- package/build/v1/payment/commands/mark-order-fulfilled.command.js.map +0 -1
- package/build/v1/payment/commands/recurrent-webhook.command.d.ts +0 -29
- package/build/v1/payment/commands/recurrent-webhook.command.js +0 -14
- package/build/v1/payment/commands/recurrent-webhook.command.js.map +0 -1
- package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.d.ts +0 -33
- package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js +0 -15
- package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js.map +0 -1
- package/build/v1/payment/schemas/cp-subscription-status.enum.d.ts +0 -7
- package/build/v1/payment/schemas/cp-subscription-status.enum.js +0 -12
- package/build/v1/payment/schemas/cp-subscription-status.enum.js.map +0 -1
- package/build/v1/payment/schemas/dunning-stopped-reason.enum.d.ts +0 -10
- package/build/v1/payment/schemas/dunning-stopped-reason.enum.js +0 -15
- package/build/v1/payment/schemas/dunning-stopped-reason.enum.js.map +0 -1
- package/build/v1/payment/schemas/order-fulfillment-outcome.enum.d.ts +0 -4
- package/build/v1/payment/schemas/order-fulfillment-outcome.enum.js +0 -9
- package/build/v1/payment/schemas/order-fulfillment-outcome.enum.js.map +0 -1
- package/build/v1/payment/schemas/recurring-status.enum.d.ts +0 -8
- package/build/v1/payment/schemas/recurring-status.enum.js +0 -13
- package/build/v1/payment/schemas/recurring-status.enum.js.map +0 -1
- package/build/v1/subscription/admin/commands/admin-retry-fulfillment.command.d.ts +0 -12
- package/build/v1/subscription/admin/commands/admin-retry-fulfillment.command.js +0 -15
- package/build/v1/subscription/admin/commands/admin-retry-fulfillment.command.js.map +0 -1
- package/build/v1/subscription/admin/schemas/admin-retry-fulfillment.schema.d.ts +0 -5
- package/build/v1/subscription/admin/schemas/admin-retry-fulfillment.schema.js +0 -8
- package/build/v1/subscription/admin/schemas/admin-retry-fulfillment.schema.js.map +0 -1
- package/build-esm/controllers/fulfillment-admin.controllers.js +0 -2
- package/build-esm/controllers/fulfillment-admin.controllers.js.map +0 -1
- package/build-esm/controllers/recurring-reconciliation-admin.controllers.js +0 -2
- package/build-esm/controllers/recurring-reconciliation-admin.controllers.js.map +0 -1
- package/build-esm/routes/fulfillment-admin.routes.js +0 -4
- package/build-esm/routes/fulfillment-admin.routes.js.map +0 -1
- package/build-esm/routes/recurring-reconciliation-admin.routes.js +0 -4
- package/build-esm/routes/recurring-reconciliation-admin.routes.js.map +0 -1
- package/build-esm/v1/payment/admin/queries/admin-list-recurring-reconciliation.query.js +0 -11
- package/build-esm/v1/payment/admin/queries/admin-list-recurring-reconciliation.query.js.map +0 -1
- package/build-esm/v1/payment/admin/schemas/admin-recurring-reconciliation.schema.js +0 -46
- package/build-esm/v1/payment/admin/schemas/admin-recurring-reconciliation.schema.js.map +0 -1
- package/build-esm/v1/payment/commands/cancel-webhook.command.js +0 -11
- package/build-esm/v1/payment/commands/cancel-webhook.command.js.map +0 -1
- package/build-esm/v1/payment/commands/confirm-webhook.command.js +0 -11
- package/build-esm/v1/payment/commands/confirm-webhook.command.js.map +0 -1
- package/build-esm/v1/payment/commands/mark-order-fulfilled.command.js +0 -16
- package/build-esm/v1/payment/commands/mark-order-fulfilled.command.js.map +0 -1
- package/build-esm/v1/payment/commands/recurrent-webhook.command.js +0 -11
- package/build-esm/v1/payment/commands/recurrent-webhook.command.js.map +0 -1
- package/build-esm/v1/payment/queries/get-paid-unfulfilled-orders.query.js +0 -12
- package/build-esm/v1/payment/queries/get-paid-unfulfilled-orders.query.js.map +0 -1
- package/build-esm/v1/payment/schemas/cp-subscription-status.enum.js +0 -9
- package/build-esm/v1/payment/schemas/cp-subscription-status.enum.js.map +0 -1
- package/build-esm/v1/payment/schemas/dunning-stopped-reason.enum.js +0 -12
- package/build-esm/v1/payment/schemas/dunning-stopped-reason.enum.js.map +0 -1
- package/build-esm/v1/payment/schemas/order-fulfillment-outcome.enum.js +0 -6
- package/build-esm/v1/payment/schemas/order-fulfillment-outcome.enum.js.map +0 -1
- package/build-esm/v1/payment/schemas/recurring-status.enum.js +0 -10
- package/build-esm/v1/payment/schemas/recurring-status.enum.js.map +0 -1
- package/build-esm/v1/subscription/admin/commands/admin-retry-fulfillment.command.js +0 -12
- package/build-esm/v1/subscription/admin/commands/admin-retry-fulfillment.command.js.map +0 -1
- package/build-esm/v1/subscription/admin/schemas/admin-retry-fulfillment.schema.js +0 -5
- package/build-esm/v1/subscription/admin/schemas/admin-retry-fulfillment.schema.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach-utm.command.js","sourceRoot":"","sources":["../../../../v1/utm/commands/attach-utm.command.ts"],"names":[],"mappings":";;;AACA,wCAA6E;AAC7E,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAChB,wBAAO,GAAG,gCAAsB,CAAC;IACjC,yBAAQ,GAAG,iCAAuB,CAAC;IACnC,oBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC;IACjC,uBAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './attach-utm.command';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./attach-utm.command"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/utm/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./commands"), exports);
|
|
18
|
+
__exportStar(require("./schemas"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/utm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AttachUtmRequestSchema: z.ZodObject<{
|
|
3
|
+
utm: z.ZodObject<{
|
|
4
|
+
utmSource: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
5
|
+
utmMedium: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
6
|
+
utmCampaign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
7
|
+
utmContent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
8
|
+
utmTerm: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const AttachUtmResponseSchema: z.ZodObject<{
|
|
12
|
+
attached: z.ZodBoolean;
|
|
13
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachUtmResponseSchema = exports.AttachUtmRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const utm_schema_1 = require("./utm.schema");
|
|
6
|
+
exports.AttachUtmRequestSchema = zod_1.z.object({
|
|
7
|
+
utm: utm_schema_1.UtmSchema,
|
|
8
|
+
});
|
|
9
|
+
exports.AttachUtmResponseSchema = zod_1.z.object({
|
|
10
|
+
attached: zod_1.z.boolean(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=attach-utm-request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach-utm-request.schema.js","sourceRoot":"","sources":["../../../../v1/utm/schemas/attach-utm-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6CAAyC;AAM5B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,GAAG,EAAE,sBAAS;CACjB,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./utm.schema"), exports);
|
|
18
|
+
__exportStar(require("./attach-utm-request.schema"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/utm/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8DAA4C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UTM_VALUE_MAX_LENGTH = 255;
|
|
3
|
+
export declare function sanitizeUtmValue(value: string): string | undefined;
|
|
4
|
+
export declare const UtmSchema: z.ZodObject<{
|
|
5
|
+
utmSource: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
6
|
+
utmMedium: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
7
|
+
utmCampaign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
8
|
+
utmContent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
9
|
+
utmTerm: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UtmSchema = exports.UTM_VALUE_MAX_LENGTH = void 0;
|
|
4
|
+
exports.sanitizeUtmValue = sanitizeUtmValue;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.UTM_VALUE_MAX_LENGTH = 255;
|
|
7
|
+
function sanitizeUtmValue(value) {
|
|
8
|
+
const cleaned = value
|
|
9
|
+
.replace(/[\u0000-\u001f\u007f<>"'`]/g, '')
|
|
10
|
+
.trim()
|
|
11
|
+
.slice(0, exports.UTM_VALUE_MAX_LENGTH);
|
|
12
|
+
return cleaned.length > 0 ? cleaned : undefined;
|
|
13
|
+
}
|
|
14
|
+
const utmValue = (message) => zod_1.z.string({ error: message }).transform(sanitizeUtmValue).optional();
|
|
15
|
+
exports.UtmSchema = zod_1.z.object({
|
|
16
|
+
utmSource: utmValue('UtmSchema.utmSource.invalid'),
|
|
17
|
+
utmMedium: utmValue('UtmSchema.utmMedium.invalid'),
|
|
18
|
+
utmCampaign: utmValue('UtmSchema.utmCampaign.invalid'),
|
|
19
|
+
utmContent: utmValue('UtmSchema.utmContent.invalid'),
|
|
20
|
+
utmTerm: utmValue('UtmSchema.utmTerm.invalid'),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=utm.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utm.schema.js","sourceRoot":"","sources":["../../../../v1/utm/schemas/utm.schema.ts"],"names":[],"mappings":";;;AAWA,4CAOC;AAlBD,6BAAwB;AAGX,QAAA,oBAAoB,GAAG,GAAG,CAAC;AAQxC,SAAgB,gBAAgB,CAAC,KAAa;IAC1C,MAAM,OAAO,GAAG,KAAK;SAEhB,OAAO,CAAC,6BAA6B,EAAE,EAAE,CAAC;SAC1C,IAAI,EAAE;SACN,KAAK,CAAC,CAAC,EAAE,4BAAoB,CAAC,CAAC;IACpC,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AACpD,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,EAAE,CACjC,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAM3D,QAAA,SAAS,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,SAAS,EAAE,QAAQ,CAAC,6BAA6B,CAAC;IAClD,SAAS,EAAE,QAAQ,CAAC,6BAA6B,CAAC;IAClD,WAAW,EAAE,QAAQ,CAAC,+BAA+B,CAAC;IACtD,UAAU,EAAE,QAAQ,CAAC,8BAA8B,CAAC;IACpD,OAAO,EAAE,QAAQ,CAAC,2BAA2B,CAAC;CACjD,CAAC,CAAC"}
|