@veruna/api-contracts 6.9.0 → 6.10.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 +3 -0
- package/build/controllers/index.js +10 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/payment.controllers.d.ts +2 -0
- package/build/controllers/payment.controllers.js +6 -0
- package/build/controllers/payment.controllers.js.map +1 -0
- package/build/controllers/plans.controllers.d.ts +3 -0
- package/build/controllers/plans.controllers.js +7 -0
- package/build/controllers/plans.controllers.js.map +1 -0
- package/build/controllers/subscription.controllers.d.ts +1 -0
- package/build/controllers/subscription.controllers.js +5 -0
- package/build/controllers/subscription.controllers.js.map +1 -0
- package/build/locales/en.d.ts +25 -0
- package/build/locales/en.js +25 -0
- package/build/locales/en.js.map +1 -1
- package/build/locales/index.d.ts +50 -0
- package/build/locales/ru.d.ts +25 -0
- package/build/locales/ru.js +25 -0
- package/build/locales/ru.js.map +1 -1
- package/build/locales/validation.d.ts +686 -0
- package/build/locales/validation.js +516 -2
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +167 -90
- package/build/rest-api.js +167 -90
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +3 -0
- package/build/routes/index.js +9 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/payment.routes.d.ts +13 -0
- package/build/routes/payment.routes.js +17 -0
- package/build/routes/payment.routes.js.map +1 -0
- package/build/routes/plans.routes.d.ts +9 -0
- package/build/routes/plans.routes.js +13 -0
- package/build/routes/plans.routes.js.map +1 -0
- package/build/routes/subscription.routes.d.ts +8 -0
- package/build/routes/subscription.routes.js +12 -0
- package/build/routes/subscription.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js +1 -1
- package/build/v1/admin-file/commands/admin-file-delete-by-key.command.js.map +1 -1
- package/build/v1/admin-file/commands/admin-file-upload.command.js +1 -1
- package/build/v1/admin-file/commands/admin-file-upload.command.js.map +1 -1
- package/build/v1/admin-file/queries/admin-file-get-by-key.query.js +1 -1
- package/build/v1/admin-file/queries/admin-file-get-by-key.query.js.map +1 -1
- package/build/v1/admin-file/queries/admin-file-list.query.js +1 -1
- package/build/v1/admin-file/queries/admin-file-list.query.js.map +1 -1
- package/build/v1/analytics/queries/list-messages.query.js +1 -1
- package/build/v1/analytics/queries/list-messages.query.js.map +1 -1
- package/build/v1/analytics/queries/message-details.query.js +1 -1
- package/build/v1/analytics/queries/message-details.query.js.map +1 -1
- package/build/v1/analytics/queries/requests-chart.query.js +1 -1
- package/build/v1/analytics/queries/requests-chart.query.js.map +1 -1
- package/build/v1/analytics/queries/spend-chart.query.js +1 -1
- package/build/v1/analytics/queries/spend-chart.query.js.map +1 -1
- package/build/v1/antifraud/admin/commands/admin-set-preset.command.js +1 -1
- package/build/v1/antifraud/admin/commands/admin-set-preset.command.js.map +1 -1
- package/build/v1/antifraud/admin/queries/admin-get-preset-history.query.js +1 -1
- package/build/v1/antifraud/admin/queries/admin-get-preset-history.query.js.map +1 -1
- package/build/v1/antifraud/admin/queries/admin-get-settings.query.js +1 -1
- package/build/v1/antifraud/admin/queries/admin-get-settings.query.js.map +1 -1
- package/build/v1/assistants/catalog/queries/catalog-long-reg.query.js +1 -1
- package/build/v1/assistants/catalog/queries/catalog-long-reg.query.js.map +1 -1
- package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.js +1 -1
- package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.js.map +1 -1
- package/build/v1/assistants/catalog/queries/catalog-short-reg.query.js +1 -1
- package/build/v1/assistants/catalog/queries/catalog-short-reg.query.js.map +1 -1
- package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.js +1 -1
- package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.js.map +1 -1
- package/build/v1/avatar/commands/avatar-delete.command.js +1 -1
- package/build/v1/avatar/commands/avatar-delete.command.js.map +1 -1
- package/build/v1/avatar/commands/avatar-upload.command.js +1 -1
- package/build/v1/avatar/commands/avatar-upload.command.js.map +1 -1
- package/build/v1/billing/commands/admin-create-markup-tier.command.js +1 -1
- package/build/v1/billing/commands/admin-create-markup-tier.command.js.map +1 -1
- package/build/v1/billing/commands/admin-delete-markup-tier.command.js +1 -1
- package/build/v1/billing/commands/admin-delete-markup-tier.command.js.map +1 -1
- package/build/v1/billing/commands/admin-update-markup-tier.command.js +1 -1
- package/build/v1/billing/commands/admin-update-markup-tier.command.js.map +1 -1
- package/build/v1/billing/queries/admin-list-markup-tiers.query.js +1 -1
- package/build/v1/billing/queries/admin-list-markup-tiers.query.js.map +1 -1
- package/build/v1/chat/commands/delete-homeless-chats.command.js +1 -1
- package/build/v1/chat/commands/delete-homeless-chats.command.js.map +1 -1
- package/build/v1/chat/queries/get-chat-history.query.js +1 -1
- package/build/v1/chat/queries/get-chat-history.query.js.map +1 -1
- package/build/v1/chat/queries/get-generating-chats.query.js +1 -1
- package/build/v1/chat/queries/get-generating-chats.query.js.map +1 -1
- package/build/v1/chat/queries/search-chats.query.js +1 -1
- package/build/v1/chat/queries/search-chats.query.js.map +1 -1
- package/build/v1/chat-project/commands/create-project.command.js +1 -1
- package/build/v1/chat-project/commands/create-project.command.js.map +1 -1
- package/build/v1/chat-project/commands/delete-folder-chats.command.js +1 -1
- package/build/v1/chat-project/commands/delete-folder-chats.command.js.map +1 -1
- package/build/v1/chat-project/commands/delete-project.command.js +1 -1
- package/build/v1/chat-project/commands/delete-project.command.js.map +1 -1
- package/build/v1/chat-project/commands/organize.command.js +1 -1
- package/build/v1/chat-project/commands/organize.command.js.map +1 -1
- package/build/v1/chat-project/commands/update-project.command.js +1 -1
- package/build/v1/chat-project/commands/update-project.command.js.map +1 -1
- package/build/v1/chat-project/queries/get-project-chats.query.js +1 -1
- package/build/v1/chat-project/queries/get-project-chats.query.js.map +1 -1
- package/build/v1/chat-project/queries/get-project.query.js +1 -1
- package/build/v1/chat-project/queries/get-project.query.js.map +1 -1
- package/build/v1/chat-project/queries/get-projects.query.js +1 -1
- package/build/v1/chat-project/queries/get-projects.query.js.map +1 -1
- package/build/v1/client-file/commands/client-file-attach.command.js +1 -1
- package/build/v1/client-file/commands/client-file-attach.command.js.map +1 -1
- package/build/v1/client-file/commands/client-file-delete.command.js +1 -1
- package/build/v1/client-file/commands/client-file-delete.command.js.map +1 -1
- package/build/v1/client-file/commands/client-file-upload.command.js +1 -1
- package/build/v1/client-file/commands/client-file-upload.command.js.map +1 -1
- package/build/v1/client-file/commands/user-file-delete.command.js +1 -1
- package/build/v1/client-file/commands/user-file-delete.command.js.map +1 -1
- package/build/v1/client-file/queries/client-file-list.query.js +1 -1
- package/build/v1/client-file/queries/client-file-list.query.js.map +1 -1
- package/build/v1/client-file/queries/user-files-list.query.js +1 -1
- package/build/v1/client-file/queries/user-files-list.query.js.map +1 -1
- package/build/v1/client-file/queries/user-files-stats.query.js +1 -1
- package/build/v1/client-file/queries/user-files-stats.query.js.map +1 -1
- package/build/v1/daily-rewards/commands/admin-upsert-reward-config.command.js +1 -1
- package/build/v1/daily-rewards/commands/admin-upsert-reward-config.command.js.map +1 -1
- package/build/v1/daily-rewards/commands/claim-daily-reward.command.js +1 -1
- package/build/v1/daily-rewards/commands/claim-daily-reward.command.js.map +1 -1
- package/build/v1/daily-rewards/commands/restore-streak-with-grace.command.js +1 -1
- package/build/v1/daily-rewards/commands/restore-streak-with-grace.command.js.map +1 -1
- package/build/v1/daily-rewards/queries/admin-get-reward-configs.query.js +1 -1
- package/build/v1/daily-rewards/queries/admin-get-reward-configs.query.js.map +1 -1
- package/build/v1/daily-rewards/queries/get-claim-history.query.js +1 -1
- package/build/v1/daily-rewards/queries/get-claim-history.query.js.map +1 -1
- package/build/v1/daily-rewards/queries/get-reward-table.query.js +1 -1
- package/build/v1/daily-rewards/queries/get-reward-table.query.js.map +1 -1
- package/build/v1/daily-rewards/queries/get-streak-status.query.js +1 -1
- package/build/v1/daily-rewards/queries/get-streak-status.query.js.map +1 -1
- package/build/v1/index.d.ts +3 -0
- package/build/v1/index.js +3 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/model-route/admin/commands/create-model-route.command.js +1 -1
- package/build/v1/model-route/admin/commands/create-model-route.command.js.map +1 -1
- package/build/v1/notifications/commands/update-notification-settings.command.js +1 -1
- package/build/v1/notifications/commands/update-notification-settings.command.js.map +1 -1
- package/build/v1/notifications/queries/get-notification-settings.query.js +1 -1
- package/build/v1/notifications/queries/get-notification-settings.query.js.map +1 -1
- package/build/v1/payment/commands/charge-saved-method.command.d.ts +15 -0
- package/build/v1/payment/commands/charge-saved-method.command.js +25 -0
- package/build/v1/payment/commands/charge-saved-method.command.js.map +1 -0
- package/build/v1/payment/commands/check-webhook.command.d.ts +20 -0
- package/build/v1/payment/commands/check-webhook.command.js +14 -0
- package/build/v1/payment/commands/check-webhook.command.js.map +1 -0
- package/build/v1/payment/commands/confirm-webhook.command.d.ts +19 -0
- package/build/v1/payment/commands/confirm-webhook.command.js +14 -0
- package/build/v1/payment/commands/confirm-webhook.command.js.map +1 -0
- package/build/v1/payment/commands/create-order.command.d.ts +25 -0
- package/build/v1/payment/commands/create-order.command.js +43 -0
- package/build/v1/payment/commands/create-order.command.js.map +1 -0
- package/build/v1/payment/commands/fail-webhook.command.d.ts +21 -0
- package/build/v1/payment/commands/fail-webhook.command.js +14 -0
- package/build/v1/payment/commands/fail-webhook.command.js.map +1 -0
- package/build/v1/payment/commands/index.d.ts +10 -0
- package/build/v1/payment/commands/index.js +27 -0
- package/build/v1/payment/commands/index.js.map +1 -0
- package/build/v1/payment/commands/mark-order-fulfilled.command.d.ts +13 -0
- package/build/v1/payment/commands/mark-order-fulfilled.command.js +19 -0
- package/build/v1/payment/commands/mark-order-fulfilled.command.js.map +1 -0
- package/build/v1/payment/commands/pay-webhook.command.d.ts +25 -0
- package/build/v1/payment/commands/pay-webhook.command.js +14 -0
- package/build/v1/payment/commands/pay-webhook.command.js.map +1 -0
- package/build/v1/payment/commands/recurrent-webhook.command.d.ts +22 -0
- package/build/v1/payment/commands/recurrent-webhook.command.js +14 -0
- package/build/v1/payment/commands/recurrent-webhook.command.js.map +1 -0
- package/build/v1/payment/commands/refund-webhook.command.d.ts +18 -0
- package/build/v1/payment/commands/refund-webhook.command.js +14 -0
- package/build/v1/payment/commands/refund-webhook.command.js.map +1 -0
- package/build/v1/payment/commands/revoke-saved-method.command.d.ts +15 -0
- package/build/v1/payment/commands/revoke-saved-method.command.js +24 -0
- package/build/v1/payment/commands/revoke-saved-method.command.js.map +1 -0
- package/build/v1/payment/index.d.ts +6 -0
- package/build/v1/payment/index.js +28 -0
- package/build/v1/payment/index.js.map +1 -0
- package/build/v1/payment/payment.errors.d.ts +16 -0
- package/build/v1/payment/payment.errors.js +69 -0
- package/build/v1/payment/payment.errors.js.map +1 -0
- package/build/v1/payment/queries/get-checkout-config.query.d.ts +20 -0
- package/build/v1/payment/queries/get-checkout-config.query.js +23 -0
- package/build/v1/payment/queries/get-checkout-config.query.js.map +1 -0
- package/build/v1/payment/queries/get-order.query.d.ts +29 -0
- package/build/v1/payment/queries/get-order.query.js +18 -0
- package/build/v1/payment/queries/get-order.query.js.map +1 -0
- package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.d.ts +29 -0
- package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js +15 -0
- package/build/v1/payment/queries/get-paid-unfulfilled-orders.query.js.map +1 -0
- package/build/v1/payment/queries/get-saved-methods.query.d.ts +33 -0
- package/build/v1/payment/queries/get-saved-methods.query.js +30 -0
- package/build/v1/payment/queries/get-saved-methods.query.js.map +1 -0
- package/build/v1/payment/queries/index.d.ts +4 -0
- package/build/v1/payment/queries/index.js +21 -0
- package/build/v1/payment/queries/index.js.map +1 -0
- package/build/v1/payment/schemas/charge-initiator.enum.d.ts +4 -0
- package/build/v1/payment/schemas/charge-initiator.enum.js +9 -0
- package/build/v1/payment/schemas/charge-initiator.enum.js.map +1 -0
- package/build/v1/payment/schemas/cloudpayments-webhook.schemas.d.ts +106 -0
- package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js +134 -0
- package/build/v1/payment/schemas/cloudpayments-webhook.schemas.js.map +1 -0
- package/build/v1/payment/schemas/cp-decline-codes.d.ts +4 -0
- package/build/v1/payment/schemas/cp-decline-codes.js +45 -0
- package/build/v1/payment/schemas/cp-decline-codes.js.map +1 -0
- package/build/v1/payment/schemas/cp-transaction-status.enum.d.ts +10 -0
- package/build/v1/payment/schemas/cp-transaction-status.enum.js +16 -0
- package/build/v1/payment/schemas/cp-transaction-status.enum.js.map +1 -0
- package/build/v1/payment/schemas/currency.enum.d.ts +3 -0
- package/build/v1/payment/schemas/currency.enum.js +8 -0
- package/build/v1/payment/schemas/currency.enum.js.map +1 -0
- package/build/v1/payment/schemas/decline-kind.enum.d.ts +6 -0
- package/build/v1/payment/schemas/decline-kind.enum.js +11 -0
- package/build/v1/payment/schemas/decline-kind.enum.js.map +1 -0
- package/build/v1/payment/schemas/dunning-stopped-reason.enum.d.ts +8 -0
- package/build/v1/payment/schemas/dunning-stopped-reason.enum.js +13 -0
- package/build/v1/payment/schemas/dunning-stopped-reason.enum.js.map +1 -0
- package/build/v1/payment/schemas/index.d.ts +12 -0
- package/build/v1/payment/schemas/index.js +29 -0
- package/build/v1/payment/schemas/index.js.map +1 -0
- package/build/v1/payment/schemas/order-kind.enum.d.ts +6 -0
- package/build/v1/payment/schemas/order-kind.enum.js +11 -0
- package/build/v1/payment/schemas/order-kind.enum.js.map +1 -0
- package/build/v1/payment/schemas/order-status.enum.d.ts +7 -0
- package/build/v1/payment/schemas/order-status.enum.js +12 -0
- package/build/v1/payment/schemas/order-status.enum.js.map +1 -0
- package/build/v1/payment/schemas/payment-provider.enum.d.ts +3 -0
- package/build/v1/payment/schemas/payment-provider.enum.js +8 -0
- package/build/v1/payment/schemas/payment-provider.enum.js.map +1 -0
- package/build/v1/payment/schemas/payment-status.enum.d.ts +7 -0
- package/build/v1/payment/schemas/payment-status.enum.js +12 -0
- package/build/v1/payment/schemas/payment-status.enum.js.map +1 -0
- package/build/v1/payment/schemas/saved-method-status.enum.d.ts +5 -0
- package/build/v1/payment/schemas/saved-method-status.enum.js +10 -0
- package/build/v1/payment/schemas/saved-method-status.enum.js.map +1 -0
- package/build/v1/plans/commands/admin-create-plan.command.d.ts +60 -0
- package/build/v1/plans/commands/admin-create-plan.command.js +14 -0
- package/build/v1/plans/commands/admin-create-plan.command.js.map +1 -0
- package/build/v1/plans/commands/admin-delete-plan.command.d.ts +12 -0
- package/build/v1/plans/commands/admin-delete-plan.command.js +15 -0
- package/build/v1/plans/commands/admin-delete-plan.command.js.map +1 -0
- package/build/v1/plans/commands/admin-update-plan.command.d.ts +59 -0
- package/build/v1/plans/commands/admin-update-plan.command.js +14 -0
- package/build/v1/plans/commands/admin-update-plan.command.js.map +1 -0
- package/build/v1/plans/commands/index.d.ts +3 -0
- package/build/v1/plans/commands/index.js +20 -0
- package/build/v1/plans/commands/index.js.map +1 -0
- package/build/v1/plans/index.d.ts +6 -0
- package/build/v1/plans/index.js +28 -0
- package/build/v1/plans/index.js.map +1 -0
- package/build/v1/plans/plans.errors.d.ts +11 -0
- package/build/v1/plans/plans.errors.js +44 -0
- package/build/v1/plans/plans.errors.js.map +1 -0
- package/build/v1/plans/queries/admin-get-plan-by-id.query.d.ts +41 -0
- package/build/v1/plans/queries/admin-get-plan-by-id.query.js +15 -0
- package/build/v1/plans/queries/admin-get-plan-by-id.query.js.map +1 -0
- package/build/v1/plans/queries/index.d.ts +2 -0
- package/build/v1/plans/queries/index.js +19 -0
- package/build/v1/plans/queries/index.js.map +1 -0
- package/build/v1/plans/queries/list-plans.query.d.ts +115 -0
- package/build/v1/plans/queries/list-plans.query.js +22 -0
- package/build/v1/plans/queries/list-plans.query.js.map +1 -0
- package/build/v1/plans/schemas/admin-delete-plan.schema.d.ts +4 -0
- package/build/v1/plans/schemas/admin-delete-plan.schema.js +8 -0
- package/build/v1/plans/schemas/admin-delete-plan.schema.js.map +1 -0
- package/build/v1/plans/schemas/index.d.ts +5 -0
- package/build/v1/plans/schemas/index.js +22 -0
- package/build/v1/plans/schemas/index.js.map +1 -0
- package/build/v1/plans/schemas/plan-feature.enum.d.ts +5 -0
- package/build/v1/plans/schemas/plan-feature.enum.js +10 -0
- package/build/v1/plans/schemas/plan-feature.enum.js.map +1 -0
- package/build/v1/plans/schemas/plan-status.enum.d.ts +5 -0
- package/build/v1/plans/schemas/plan-status.enum.js +10 -0
- package/build/v1/plans/schemas/plan-status.enum.js.map +1 -0
- package/build/v1/plans/schemas/plan-type.enum.d.ts +5 -0
- package/build/v1/plans/schemas/plan-type.enum.js +10 -0
- package/build/v1/plans/schemas/plan-type.enum.js.map +1 -0
- package/build/v1/plans/schemas/plan.schema.d.ts +270 -0
- package/build/v1/plans/schemas/plan.schema.js +249 -0
- package/build/v1/plans/schemas/plan.schema.js.map +1 -0
- package/build/v1/settings/commands/update-user-setting.command.js +1 -1
- package/build/v1/settings/commands/update-user-setting.command.js.map +1 -1
- package/build/v1/settings/queries/get-user-settings.query.js +1 -1
- package/build/v1/settings/queries/get-user-settings.query.js.map +1 -1
- package/build/v1/subscription/commands/buy-package.command.d.ts +19 -0
- package/build/v1/subscription/commands/buy-package.command.js +14 -0
- package/build/v1/subscription/commands/buy-package.command.js.map +1 -0
- package/build/v1/subscription/commands/cancel-subscription.command.d.ts +13 -0
- package/build/v1/subscription/commands/cancel-subscription.command.js +15 -0
- package/build/v1/subscription/commands/cancel-subscription.command.js.map +1 -0
- package/build/v1/subscription/commands/change-subscription.command.d.ts +18 -0
- package/build/v1/subscription/commands/change-subscription.command.js +14 -0
- package/build/v1/subscription/commands/change-subscription.command.js.map +1 -0
- package/build/v1/subscription/commands/checkout.command.d.ts +20 -0
- package/build/v1/subscription/commands/checkout.command.js +14 -0
- package/build/v1/subscription/commands/checkout.command.js.map +1 -0
- package/build/v1/subscription/commands/index.d.ts +5 -0
- package/build/v1/subscription/commands/index.js +22 -0
- package/build/v1/subscription/commands/index.js.map +1 -0
- package/build/v1/subscription/commands/uncancel-subscription.command.d.ts +12 -0
- package/build/v1/subscription/commands/uncancel-subscription.command.js +15 -0
- package/build/v1/subscription/commands/uncancel-subscription.command.js.map +1 -0
- package/build/v1/subscription/index.d.ts +6 -0
- package/build/v1/subscription/index.js +26 -0
- package/build/v1/subscription/index.js.map +1 -0
- package/build/v1/subscription/queries/get-my-subscription.query.d.ts +35 -0
- package/build/v1/subscription/queries/get-my-subscription.query.js +15 -0
- package/build/v1/subscription/queries/get-my-subscription.query.js.map +1 -0
- package/build/v1/subscription/queries/get-subscription-change-preview.query.d.ts +24 -0
- package/build/v1/subscription/queries/get-subscription-change-preview.query.js +35 -0
- package/build/v1/subscription/queries/get-subscription-change-preview.query.js.map +1 -0
- package/build/v1/subscription/queries/index.d.ts +2 -0
- package/build/v1/subscription/queries/index.js +19 -0
- package/build/v1/subscription/queries/index.js.map +1 -0
- package/build/v1/subscription/schemas/charge-status.enum.d.ts +5 -0
- package/build/v1/subscription/schemas/charge-status.enum.js +10 -0
- package/build/v1/subscription/schemas/charge-status.enum.js.map +1 -0
- package/build/v1/subscription/schemas/index.d.ts +6 -0
- package/build/v1/subscription/schemas/index.js +23 -0
- package/build/v1/subscription/schemas/index.js.map +1 -0
- package/build/v1/subscription/schemas/plan-transition-kind.enum.d.ts +6 -0
- package/build/v1/subscription/schemas/plan-transition-kind.enum.js +11 -0
- package/build/v1/subscription/schemas/plan-transition-kind.enum.js.map +1 -0
- package/build/v1/subscription/schemas/purchase-kind.enum.d.ts +6 -0
- package/build/v1/subscription/schemas/purchase-kind.enum.js +11 -0
- package/build/v1/subscription/schemas/purchase-kind.enum.js.map +1 -0
- package/build/v1/subscription/schemas/subscription-status.enum.d.ts +8 -0
- package/build/v1/subscription/schemas/subscription-status.enum.js +13 -0
- package/build/v1/subscription/schemas/subscription-status.enum.js.map +1 -0
- package/build/v1/subscription/schemas/subscription.schema.d.ts +110 -0
- package/build/v1/subscription/schemas/subscription.schema.js +113 -0
- package/build/v1/subscription/schemas/subscription.schema.js.map +1 -0
- package/build/v1/subscription/schemas/user-package-status.enum.d.ts +6 -0
- package/build/v1/subscription/schemas/user-package-status.enum.js +11 -0
- package/build/v1/subscription/schemas/user-package-status.enum.js.map +1 -0
- package/build/v1/subscription/subscription.errors.d.ts +17 -0
- package/build/v1/subscription/subscription.errors.js +74 -0
- package/build/v1/subscription/subscription.errors.js.map +1 -0
- package/build/v1/tasks/commands/admin-create-task-definition.command.js +1 -1
- package/build/v1/tasks/commands/admin-create-task-definition.command.js.map +1 -1
- package/build/v1/tasks/commands/admin-delete-task-definition.command.js +1 -1
- package/build/v1/tasks/commands/admin-delete-task-definition.command.js.map +1 -1
- package/build/v1/tasks/commands/admin-update-task-definition.command.js +1 -1
- package/build/v1/tasks/commands/admin-update-task-definition.command.js.map +1 -1
- package/build/v1/tasks/commands/claim-task.command.js +1 -1
- package/build/v1/tasks/commands/claim-task.command.js.map +1 -1
- package/build/v1/tasks/commands/verify-task.command.js +1 -1
- package/build/v1/tasks/commands/verify-task.command.js.map +1 -1
- package/build/v1/tasks/queries/get-admin-task-definitions.query.js +1 -1
- package/build/v1/tasks/queries/get-admin-task-definitions.query.js.map +1 -1
- package/build/v1/tasks/queries/get-user-tasks.query.js +1 -1
- package/build/v1/tasks/queries/get-user-tasks.query.js.map +1 -1
- package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.js +1 -1
- package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.js.map +1 -1
- package/build/v1/telegram-auth/commands/init-telegram-auth.command.js +1 -1
- package/build/v1/telegram-auth/commands/init-telegram-auth.command.js.map +1 -1
- package/build/v1/telegram-auth/queries/get-telegram-auth-status.query.js +1 -1
- package/build/v1/telegram-auth/queries/get-telegram-auth-status.query.js.map +1 -1
- package/build/v1/unregistered-users/commands/authenticate.command.js +1 -1
- package/build/v1/unregistered-users/commands/authenticate.command.js.map +1 -1
- package/build/v1/verification/commands/cancel-verification.command.js +1 -1
- package/build/v1/verification/commands/cancel-verification.command.js.map +1 -1
- package/build/v1/verification/commands/resend.command.js +1 -1
- package/build/v1/verification/commands/resend.command.js.map +1 -1
- package/build/v1/verification/queries/get-active-verifications.query.js +1 -1
- package/build/v1/verification/queries/get-active-verifications.query.js.map +1 -1
- package/build/v1/vk-auth/commands/exchange-vk-auth.command.js +1 -1
- package/build/v1/vk-auth/commands/exchange-vk-auth.command.js.map +1 -1
- package/build/v1/vk-auth/commands/init-vk-auth.command.js +1 -1
- package/build/v1/vk-auth/commands/init-vk-auth.command.js.map +1 -1
- package/build/v1/vk-auth/queries/get-vk-auth-status.query.js +1 -1
- package/build/v1/vk-auth/queries/get-vk-auth-status.query.js.map +1 -1
- package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js +1 -1
- package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js.map +1 -1
- package/build/v1/wallet/schemas/balance-type-code.enum.d.ts +5 -1
- package/build/v1/wallet/schemas/balance-type-code.enum.js +4 -0
- package/build/v1/wallet/schemas/balance-type-code.enum.js.map +1 -1
- package/build/v1/wallet/schemas/source-type.enum.d.ts +2 -1
- package/build/v1/wallet/schemas/source-type.enum.js +1 -0
- package/build/v1/wallet/schemas/source-type.enum.js.map +1 -1
- package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js +1 -1
- package/build/v1/web-notifications/commands/mark-web-notifications-read-up-to.command.js.map +1 -1
- package/build/v1/web-notifications/queries/get-web-notifications.query.js +1 -1
- package/build/v1/web-notifications/queries/get-web-notifications.query.js.map +1 -1
- package/build/v1/web-notifications/queries/get-web-unread-count.query.js +1 -1
- package/build/v1/web-notifications/queries/get-web-unread-count.query.js.map +1 -1
- package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js +1 -1
- package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js.map +1 -1
- package/build/v1/yandex-auth/commands/init-yandex-auth.command.js +1 -1
- package/build/v1/yandex-auth/commands/init-yandex-auth.command.js.map +1 -1
- package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js +1 -1
- package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js.map +1 -1
- package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js +1 -1
- package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace AdminCreatePlanCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
type: z.ZodEnum<typeof import("../schemas").PlanType>;
|
|
6
|
+
code: z.ZodString;
|
|
7
|
+
status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
|
|
8
|
+
isCustom: z.ZodBoolean;
|
|
9
|
+
displayOrder: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
isHighlighted: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
badge: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
12
|
+
monthlyGrant: z.ZodString;
|
|
13
|
+
bonusPercent: z.ZodDefault<z.ZodNumber>;
|
|
14
|
+
rolloverPercent: z.ZodDefault<z.ZodNumber>;
|
|
15
|
+
maxCharsPerRequest: z.ZodNumber;
|
|
16
|
+
grantsAllModels: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
modelIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18
|
+
features: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>>;
|
|
19
|
+
prices: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
20
|
+
periodMonths: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
price: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
const Response: z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
type: z.ZodEnum<typeof import("../schemas").PlanType>;
|
|
27
|
+
code: z.ZodString;
|
|
28
|
+
status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
|
|
29
|
+
isCustom: z.ZodBoolean;
|
|
30
|
+
displayOrder: z.ZodNumber;
|
|
31
|
+
isHighlighted: z.ZodBoolean;
|
|
32
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
33
|
+
monthlyGrant: z.ZodString;
|
|
34
|
+
bonusPercent: z.ZodNumber;
|
|
35
|
+
rolloverPercent: z.ZodNumber;
|
|
36
|
+
maxCharsPerRequest: z.ZodNumber;
|
|
37
|
+
grantsAllModels: z.ZodBoolean;
|
|
38
|
+
features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
|
|
39
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
40
|
+
periodMonths: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
price: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
models: z.ZodObject<{
|
|
44
|
+
count: z.ZodNumber;
|
|
45
|
+
total: z.ZodNumber;
|
|
46
|
+
allModels: z.ZodBoolean;
|
|
47
|
+
availableModelIds: z.ZodArray<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
generationEstimate: z.ZodArray<z.ZodObject<{
|
|
50
|
+
modality: z.ZodEnum<typeof import("../..").Modality>;
|
|
51
|
+
available: z.ZodBoolean;
|
|
52
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
const URL: "/api/v1/admin/plans";
|
|
57
|
+
const METHOD = HttpMethod.POST;
|
|
58
|
+
type RequestType = z.infer<typeof Request>;
|
|
59
|
+
type ResponseType = z.infer<typeof Response>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminCreatePlanCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
7
|
+
var AdminCreatePlanCommand;
|
|
8
|
+
(function (AdminCreatePlanCommand) {
|
|
9
|
+
AdminCreatePlanCommand.Request = schemas_1.AdminCreatePlanRequestSchema;
|
|
10
|
+
AdminCreatePlanCommand.Response = schemas_1.PlanSchema;
|
|
11
|
+
AdminCreatePlanCommand.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.CREATE;
|
|
12
|
+
AdminCreatePlanCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
13
|
+
})(AdminCreatePlanCommand || (exports.AdminCreatePlanCommand = AdminCreatePlanCommand = {}));
|
|
14
|
+
//# sourceMappingURL=admin-create-plan.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-create-plan.command.js","sourceRoot":"","sources":["../../../../v1/plans/commands/admin-create-plan.command.ts"],"names":[],"mappings":";;;AACA,wCAAsE;AACtE,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,sBAAsB,CAStC;AATD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,sCAA4B,CAAC;IACvC,+BAAQ,GAAG,oBAAU,CAAC;IAEtB,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,6BAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,sBAAsB,sCAAtB,sBAAsB,QAStC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace AdminDeletePlanCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
success: z.ZodBoolean;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const URL: (id: string) => string;
|
|
9
|
+
const METHOD = HttpMethod.DELETE;
|
|
10
|
+
type RequestType = z.infer<typeof Request>;
|
|
11
|
+
type ResponseType = z.infer<typeof Response>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminDeletePlanCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
7
|
+
const admin_delete_plan_schema_1 = require("../schemas/admin-delete-plan.schema");
|
|
8
|
+
var AdminDeletePlanCommand;
|
|
9
|
+
(function (AdminDeletePlanCommand) {
|
|
10
|
+
AdminDeletePlanCommand.Request = zod_1.z.object({});
|
|
11
|
+
AdminDeletePlanCommand.Response = admin_delete_plan_schema_1.AdminDeletePlanResponseSchema;
|
|
12
|
+
AdminDeletePlanCommand.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.DELETE;
|
|
13
|
+
AdminDeletePlanCommand.METHOD = http_method_enum_1.HttpMethod.DELETE;
|
|
14
|
+
})(AdminDeletePlanCommand || (exports.AdminDeletePlanCommand = AdminDeletePlanCommand = {}));
|
|
15
|
+
//# sourceMappingURL=admin-delete-plan.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-delete-plan.command.js","sourceRoot":"","sources":["../../../../v1/plans/commands/admin-delete-plan.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gDAA6C;AAC7C,uEAA8D;AAC9D,kFAAoF;AAEpF,IAAiB,sBAAsB,CAUtC;AAVD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,+BAAQ,GAAG,wDAA6B,CAAC;IAGzC,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,6BAAM,GAAG,6BAAU,CAAC,MAAM,CAAC;AAI5C,CAAC,EAVgB,sBAAsB,sCAAtB,sBAAsB,QAUtC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace AdminUpdatePlanCommand {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
code: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodOptional<z.ZodEnum<typeof import("../schemas").PlanStatus>>;
|
|
7
|
+
isCustom: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
displayOrder: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
isHighlighted: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
badge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
monthlyGrant: z.ZodOptional<z.ZodString>;
|
|
12
|
+
bonusPercent: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
rolloverPercent: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
maxCharsPerRequest: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
grantsAllModels: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
modelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
features: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>>;
|
|
18
|
+
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
+
periodMonths: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
price: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
const Response: z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
type: z.ZodEnum<typeof import("../schemas").PlanType>;
|
|
26
|
+
code: z.ZodString;
|
|
27
|
+
status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
|
|
28
|
+
isCustom: z.ZodBoolean;
|
|
29
|
+
displayOrder: z.ZodNumber;
|
|
30
|
+
isHighlighted: z.ZodBoolean;
|
|
31
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
32
|
+
monthlyGrant: z.ZodString;
|
|
33
|
+
bonusPercent: z.ZodNumber;
|
|
34
|
+
rolloverPercent: z.ZodNumber;
|
|
35
|
+
maxCharsPerRequest: z.ZodNumber;
|
|
36
|
+
grantsAllModels: z.ZodBoolean;
|
|
37
|
+
features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
|
|
38
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
39
|
+
periodMonths: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
price: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
models: z.ZodObject<{
|
|
43
|
+
count: z.ZodNumber;
|
|
44
|
+
total: z.ZodNumber;
|
|
45
|
+
allModels: z.ZodBoolean;
|
|
46
|
+
availableModelIds: z.ZodArray<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
generationEstimate: z.ZodArray<z.ZodObject<{
|
|
49
|
+
modality: z.ZodEnum<typeof import("../..").Modality>;
|
|
50
|
+
available: z.ZodBoolean;
|
|
51
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
const URL: (id: string) => string;
|
|
56
|
+
const METHOD = HttpMethod.PATCH;
|
|
57
|
+
type RequestType = z.infer<typeof Request>;
|
|
58
|
+
type ResponseType = z.infer<typeof Response>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminUpdatePlanCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const rest_api_1 = require("../../../rest-api");
|
|
6
|
+
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
7
|
+
var AdminUpdatePlanCommand;
|
|
8
|
+
(function (AdminUpdatePlanCommand) {
|
|
9
|
+
AdminUpdatePlanCommand.Request = schemas_1.AdminUpdatePlanRequestSchema;
|
|
10
|
+
AdminUpdatePlanCommand.Response = schemas_1.PlanSchema;
|
|
11
|
+
AdminUpdatePlanCommand.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.UPDATE;
|
|
12
|
+
AdminUpdatePlanCommand.METHOD = http_method_enum_1.HttpMethod.PATCH;
|
|
13
|
+
})(AdminUpdatePlanCommand || (exports.AdminUpdatePlanCommand = AdminUpdatePlanCommand = {}));
|
|
14
|
+
//# sourceMappingURL=admin-update-plan.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-update-plan.command.js","sourceRoot":"","sources":["../../../../v1/plans/commands/admin-update-plan.command.ts"],"names":[],"mappings":";;;AACA,wCAAsE;AACtE,gDAA6C;AAC7C,uEAA8D;AAE9D,IAAiB,sBAAsB,CAUtC;AAVD,WAAiB,sBAAsB;IACtB,8BAAO,GAAG,sCAA4B,CAAC;IACvC,+BAAQ,GAAG,oBAAU,CAAC;IAGtB,0BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,6BAAM,GAAG,6BAAU,CAAC,KAAK,CAAC;AAI3C,CAAC,EAVgB,sBAAsB,sCAAtB,sBAAsB,QAUtC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./admin-create-plan.command"), exports);
|
|
18
|
+
__exportStar(require("./admin-update-plan.command"), exports);
|
|
19
|
+
__exportStar(require("./admin-delete-plan.command"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/plans/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
exports.PLANS_ADMIN_ROUTES = exports.PLANS_ROUTES = exports.PLANS_ADMIN_CONTROLLER = exports.PLANS_CONTROLLER = void 0;
|
|
18
|
+
__exportStar(require("./schemas"), exports);
|
|
19
|
+
__exportStar(require("./plans.errors"), exports);
|
|
20
|
+
__exportStar(require("./commands"), exports);
|
|
21
|
+
__exportStar(require("./queries"), exports);
|
|
22
|
+
var controllers_1 = require("../../controllers");
|
|
23
|
+
Object.defineProperty(exports, "PLANS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.PLANS_CONTROLLER; } });
|
|
24
|
+
Object.defineProperty(exports, "PLANS_ADMIN_CONTROLLER", { enumerable: true, get: function () { return controllers_1.PLANS_ADMIN_CONTROLLER; } });
|
|
25
|
+
var routes_1 = require("../../routes");
|
|
26
|
+
Object.defineProperty(exports, "PLANS_ROUTES", { enumerable: true, get: function () { return routes_1.PLANS_ROUTES; } });
|
|
27
|
+
Object.defineProperty(exports, "PLANS_ADMIN_ROUTES", { enumerable: true, get: function () { return routes_1.PLANS_ADMIN_ROUTES; } });
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/plans/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,iDAA+B;AAC/B,6CAA2B;AAC3B,4CAA0B;AAE1B,iDAA6E;AAApE,+GAAA,gBAAgB,OAAA;AAAE,qHAAA,sBAAsB,OAAA;AACjD,uCAAgE;AAAvD,sGAAA,YAAY,OAAA;AAAE,4GAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ErrorMetadata } from '../../shared';
|
|
2
|
+
export declare enum PlanErrorCode {
|
|
3
|
+
PLAN_NOT_FOUND = "PLAN_NOT_FOUND",
|
|
4
|
+
PLAN_NOT_AVAILABLE = "PLAN_NOT_AVAILABLE",
|
|
5
|
+
INVALID_PLAN_TYPE = "INVALID_PLAN_TYPE",
|
|
6
|
+
INVALID_PLAN_CONFIG = "INVALID_PLAN_CONFIG",
|
|
7
|
+
INVALID_PERIOD = "INVALID_PERIOD",
|
|
8
|
+
CUSTOM_PRICE_OUT_OF_RANGE = "CUSTOM_PRICE_OUT_OF_RANGE",
|
|
9
|
+
INVALID_MODEL_IDS = "INVALID_MODEL_IDS"
|
|
10
|
+
}
|
|
11
|
+
export declare const PLAN_ERRORS: Record<PlanErrorCode, ErrorMetadata>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PLAN_ERRORS = exports.PlanErrorCode = void 0;
|
|
4
|
+
var PlanErrorCode;
|
|
5
|
+
(function (PlanErrorCode) {
|
|
6
|
+
PlanErrorCode["PLAN_NOT_FOUND"] = "PLAN_NOT_FOUND";
|
|
7
|
+
PlanErrorCode["PLAN_NOT_AVAILABLE"] = "PLAN_NOT_AVAILABLE";
|
|
8
|
+
PlanErrorCode["INVALID_PLAN_TYPE"] = "INVALID_PLAN_TYPE";
|
|
9
|
+
PlanErrorCode["INVALID_PLAN_CONFIG"] = "INVALID_PLAN_CONFIG";
|
|
10
|
+
PlanErrorCode["INVALID_PERIOD"] = "INVALID_PERIOD";
|
|
11
|
+
PlanErrorCode["CUSTOM_PRICE_OUT_OF_RANGE"] = "CUSTOM_PRICE_OUT_OF_RANGE";
|
|
12
|
+
PlanErrorCode["INVALID_MODEL_IDS"] = "INVALID_MODEL_IDS";
|
|
13
|
+
})(PlanErrorCode || (exports.PlanErrorCode = PlanErrorCode = {}));
|
|
14
|
+
exports.PLAN_ERRORS = {
|
|
15
|
+
[PlanErrorCode.PLAN_NOT_FOUND]: {
|
|
16
|
+
code: PlanErrorCode.PLAN_NOT_FOUND,
|
|
17
|
+
statusCode: 404,
|
|
18
|
+
},
|
|
19
|
+
[PlanErrorCode.PLAN_NOT_AVAILABLE]: {
|
|
20
|
+
code: PlanErrorCode.PLAN_NOT_AVAILABLE,
|
|
21
|
+
statusCode: 409,
|
|
22
|
+
},
|
|
23
|
+
[PlanErrorCode.INVALID_PLAN_TYPE]: {
|
|
24
|
+
code: PlanErrorCode.INVALID_PLAN_TYPE,
|
|
25
|
+
statusCode: 400,
|
|
26
|
+
},
|
|
27
|
+
[PlanErrorCode.INVALID_PLAN_CONFIG]: {
|
|
28
|
+
code: PlanErrorCode.INVALID_PLAN_CONFIG,
|
|
29
|
+
statusCode: 400,
|
|
30
|
+
},
|
|
31
|
+
[PlanErrorCode.INVALID_PERIOD]: {
|
|
32
|
+
code: PlanErrorCode.INVALID_PERIOD,
|
|
33
|
+
statusCode: 400,
|
|
34
|
+
},
|
|
35
|
+
[PlanErrorCode.CUSTOM_PRICE_OUT_OF_RANGE]: {
|
|
36
|
+
code: PlanErrorCode.CUSTOM_PRICE_OUT_OF_RANGE,
|
|
37
|
+
statusCode: 400,
|
|
38
|
+
},
|
|
39
|
+
[PlanErrorCode.INVALID_MODEL_IDS]: {
|
|
40
|
+
code: PlanErrorCode.INVALID_MODEL_IDS,
|
|
41
|
+
statusCode: 422,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=plans.errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plans.errors.js","sourceRoot":"","sources":["../../../v1/plans/plans.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,aAkBX;AAlBD,WAAY,aAAa;IACrB,kDAAiC,CAAA;IACjC,0DAAyC,CAAA;IACzC,wDAAuC,CAAA;IAMvC,4DAA2C,CAAA;IAC3C,kDAAiC,CAAA;IACjC,wEAAuD,CAAA;IAMvD,wDAAuC,CAAA;AAC3C,CAAC,EAlBW,aAAa,6BAAb,aAAa,QAkBxB;AAEY,QAAA,WAAW,GAAyC;IAC7D,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;QAC5B,IAAI,EAAE,aAAa,CAAC,cAAc;QAClC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE;QAChC,IAAI,EAAE,aAAa,CAAC,kBAAkB;QACtC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE;QAC/B,IAAI,EAAE,aAAa,CAAC,iBAAiB;QACrC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,mBAAmB,CAAC,EAAE;QACjC,IAAI,EAAE,aAAa,CAAC,mBAAmB;QACvC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;QAC5B,IAAI,EAAE,aAAa,CAAC,cAAc;QAClC,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;QACvC,IAAI,EAAE,aAAa,CAAC,yBAAyB;QAC7C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE;QAC/B,IAAI,EAAE,aAAa,CAAC,iBAAiB;QACrC,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace AdminGetPlanByIdQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
type: z.ZodEnum<typeof import("../schemas").PlanType>;
|
|
8
|
+
code: z.ZodString;
|
|
9
|
+
status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
|
|
10
|
+
isCustom: z.ZodBoolean;
|
|
11
|
+
displayOrder: z.ZodNumber;
|
|
12
|
+
isHighlighted: z.ZodBoolean;
|
|
13
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
14
|
+
monthlyGrant: z.ZodString;
|
|
15
|
+
bonusPercent: z.ZodNumber;
|
|
16
|
+
rolloverPercent: z.ZodNumber;
|
|
17
|
+
maxCharsPerRequest: z.ZodNumber;
|
|
18
|
+
grantsAllModels: z.ZodBoolean;
|
|
19
|
+
features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
|
|
20
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
21
|
+
periodMonths: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
price: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
models: z.ZodObject<{
|
|
25
|
+
count: z.ZodNumber;
|
|
26
|
+
total: z.ZodNumber;
|
|
27
|
+
allModels: z.ZodBoolean;
|
|
28
|
+
availableModelIds: z.ZodArray<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
generationEstimate: z.ZodArray<z.ZodObject<{
|
|
31
|
+
modality: z.ZodEnum<typeof import("../..").Modality>;
|
|
32
|
+
available: z.ZodBoolean;
|
|
33
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
const URL: (id: string) => string;
|
|
38
|
+
const METHOD = HttpMethod.GET;
|
|
39
|
+
type RequestType = z.infer<typeof Request>;
|
|
40
|
+
type ResponseType = z.infer<typeof Response>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminGetPlanByIdQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
8
|
+
var AdminGetPlanByIdQuery;
|
|
9
|
+
(function (AdminGetPlanByIdQuery) {
|
|
10
|
+
AdminGetPlanByIdQuery.Request = zod_1.z.object({});
|
|
11
|
+
AdminGetPlanByIdQuery.Response = schemas_1.PlanSchema;
|
|
12
|
+
AdminGetPlanByIdQuery.URL = rest_api_1.REST_API.V1.PLANS.ADMIN.GET_BY_ID;
|
|
13
|
+
AdminGetPlanByIdQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
14
|
+
})(AdminGetPlanByIdQuery || (exports.AdminGetPlanByIdQuery = AdminGetPlanByIdQuery = {}));
|
|
15
|
+
//# sourceMappingURL=admin-get-plan-by-id.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-get-plan-by-id.query.js","sourceRoot":"","sources":["../../../../v1/plans/queries/admin-get-plan-by-id.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAwC;AACxC,gDAA6C;AAC7C,uEAA8D;AAM9D,IAAiB,qBAAqB,CAWrC;AAXD,WAAiB,qBAAqB;IAErB,6BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,8BAAQ,GAAG,oBAAU,CAAC;IAGtB,yBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;IACxC,4BAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EAXgB,qBAAqB,qCAArB,qBAAqB,QAWrC"}
|
|
@@ -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("./list-plans.query"), exports);
|
|
18
|
+
__exportStar(require("./admin-get-plan-by-id.query"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/plans/queries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,+DAA6C"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method.enum';
|
|
3
|
+
export declare namespace ListPlansQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
modelTree: z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
icon: z.ZodString;
|
|
10
|
+
order: z.ZodNumber;
|
|
11
|
+
models: z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodString;
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
icon: z.ZodString;
|
|
15
|
+
order: z.ZodNumber;
|
|
16
|
+
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
|
|
17
|
+
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
items: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
type: z.ZodEnum<typeof import("../schemas").PlanType>;
|
|
23
|
+
code: z.ZodString;
|
|
24
|
+
status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
|
|
25
|
+
isCustom: z.ZodBoolean;
|
|
26
|
+
displayOrder: z.ZodNumber;
|
|
27
|
+
isHighlighted: z.ZodBoolean;
|
|
28
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
29
|
+
monthlyGrant: z.ZodString;
|
|
30
|
+
bonusPercent: z.ZodNumber;
|
|
31
|
+
rolloverPercent: z.ZodNumber;
|
|
32
|
+
maxCharsPerRequest: z.ZodNumber;
|
|
33
|
+
grantsAllModels: z.ZodBoolean;
|
|
34
|
+
features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
|
|
35
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
36
|
+
periodMonths: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
price: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
models: z.ZodObject<{
|
|
40
|
+
count: z.ZodNumber;
|
|
41
|
+
total: z.ZodNumber;
|
|
42
|
+
allModels: z.ZodBoolean;
|
|
43
|
+
availableModelIds: z.ZodArray<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
generationEstimate: z.ZodArray<z.ZodObject<{
|
|
46
|
+
modality: z.ZodEnum<typeof import("../..").Modality>;
|
|
47
|
+
available: z.ZodBoolean;
|
|
48
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
const URL: "/api/v1/unreg/plans/list";
|
|
54
|
+
const METHOD = HttpMethod.GET;
|
|
55
|
+
type RequestType = z.infer<typeof Request>;
|
|
56
|
+
type ResponseType = z.infer<typeof Response>;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace ListPlansRegQuery {
|
|
59
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
60
|
+
const Response: z.ZodObject<{
|
|
61
|
+
modelTree: z.ZodArray<z.ZodObject<{
|
|
62
|
+
uuid: z.ZodString;
|
|
63
|
+
title: z.ZodString;
|
|
64
|
+
icon: z.ZodString;
|
|
65
|
+
order: z.ZodNumber;
|
|
66
|
+
models: z.ZodArray<z.ZodObject<{
|
|
67
|
+
uuid: z.ZodString;
|
|
68
|
+
title: z.ZodString;
|
|
69
|
+
icon: z.ZodString;
|
|
70
|
+
order: z.ZodNumber;
|
|
71
|
+
inputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
|
|
72
|
+
outputModalities: z.ZodArray<z.ZodEnum<typeof import("../..").Modality>>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
items: z.ZodArray<z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
type: z.ZodEnum<typeof import("../schemas").PlanType>;
|
|
78
|
+
code: z.ZodString;
|
|
79
|
+
status: z.ZodEnum<typeof import("../schemas").PlanStatus>;
|
|
80
|
+
isCustom: z.ZodBoolean;
|
|
81
|
+
displayOrder: z.ZodNumber;
|
|
82
|
+
isHighlighted: z.ZodBoolean;
|
|
83
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
84
|
+
monthlyGrant: z.ZodString;
|
|
85
|
+
bonusPercent: z.ZodNumber;
|
|
86
|
+
rolloverPercent: z.ZodNumber;
|
|
87
|
+
maxCharsPerRequest: z.ZodNumber;
|
|
88
|
+
grantsAllModels: z.ZodBoolean;
|
|
89
|
+
features: z.ZodArray<z.ZodEnum<typeof import("../schemas").PlanFeature>>;
|
|
90
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
91
|
+
periodMonths: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
price: z.ZodString;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
models: z.ZodObject<{
|
|
95
|
+
count: z.ZodNumber;
|
|
96
|
+
total: z.ZodNumber;
|
|
97
|
+
allModels: z.ZodBoolean;
|
|
98
|
+
availableModelIds: z.ZodArray<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
generationEstimate: z.ZodArray<z.ZodObject<{
|
|
101
|
+
modality: z.ZodEnum<typeof import("../..").Modality>;
|
|
102
|
+
available: z.ZodBoolean;
|
|
103
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
104
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
currentPlanCode: z.ZodNullable<z.ZodString>;
|
|
107
|
+
transition: z.ZodNullable<z.ZodEnum<typeof import("../schemas").PlanTransition>>;
|
|
108
|
+
surcharge: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
const URL: "/api/v1/plans/list";
|
|
112
|
+
const METHOD = HttpMethod.GET;
|
|
113
|
+
type RequestType = z.infer<typeof Request>;
|
|
114
|
+
type ResponseType = z.infer<typeof Response>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPlansRegQuery = exports.ListPlansQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
8
|
+
var ListPlansQuery;
|
|
9
|
+
(function (ListPlansQuery) {
|
|
10
|
+
ListPlansQuery.Request = zod_1.z.object({});
|
|
11
|
+
ListPlansQuery.Response = schemas_1.PlanListResponseSchema;
|
|
12
|
+
ListPlansQuery.URL = rest_api_1.REST_API.V1.PLANS.UNREG.LIST;
|
|
13
|
+
ListPlansQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
14
|
+
})(ListPlansQuery || (exports.ListPlansQuery = ListPlansQuery = {}));
|
|
15
|
+
var ListPlansRegQuery;
|
|
16
|
+
(function (ListPlansRegQuery) {
|
|
17
|
+
ListPlansRegQuery.Request = zod_1.z.object({});
|
|
18
|
+
ListPlansRegQuery.Response = schemas_1.PlanCatalogResponseSchema;
|
|
19
|
+
ListPlansRegQuery.URL = rest_api_1.REST_API.V1.PLANS.REG.LIST;
|
|
20
|
+
ListPlansRegQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
21
|
+
})(ListPlansRegQuery || (exports.ListPlansRegQuery = ListPlansRegQuery = {}));
|
|
22
|
+
//# sourceMappingURL=list-plans.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-plans.query.js","sourceRoot":"","sources":["../../../../v1/plans/queries/list-plans.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAA+E;AAC/E,gDAA6C;AAC7C,uEAA8D;AAM9D,IAAiB,cAAc,CAS9B;AATD,WAAiB,cAAc;IACd,sBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,uBAAQ,GAAG,gCAAsB,CAAC;IAElC,kBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;IACnC,qBAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,cAAc,8BAAd,cAAc,QAS9B;AAOD,IAAiB,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IACjB,yBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,0BAAQ,GAAG,mCAAyB,CAAC;IAErC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;IACjC,wBAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,iBAAiB,iCAAjB,iBAAiB,QASjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminDeletePlanResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.AdminDeletePlanResponseSchema = zod_1.z.object({
|
|
6
|
+
success: zod_1.z.boolean(),
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=admin-delete-plan.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-delete-plan.schema.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/admin-delete-plan.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./plan-type.enum"), exports);
|
|
18
|
+
__exportStar(require("./plan-status.enum"), exports);
|
|
19
|
+
__exportStar(require("./plan-feature.enum"), exports);
|
|
20
|
+
__exportStar(require("./plan.schema"), exports);
|
|
21
|
+
__exportStar(require("./admin-delete-plan.schema"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qDAAmC;AACnC,sDAAoC;AACpC,gDAA8B;AAC9B,6DAA2C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlanFeature = void 0;
|
|
4
|
+
var PlanFeature;
|
|
5
|
+
(function (PlanFeature) {
|
|
6
|
+
PlanFeature["WEB_SEARCH"] = "WEB_SEARCH";
|
|
7
|
+
PlanFeature["FILE_ATTACH"] = "FILE_ATTACH";
|
|
8
|
+
PlanFeature["REASONING"] = "REASONING";
|
|
9
|
+
})(PlanFeature || (exports.PlanFeature = PlanFeature = {}));
|
|
10
|
+
//# sourceMappingURL=plan-feature.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-feature.enum.js","sourceRoot":"","sources":["../../../../v1/plans/schemas/plan-feature.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;AAC3B,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|