@purpleschool/multisite 0.0.1 → 0.0.3
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/api/controller/http/ai-proxy.d.ts +6 -0
- package/build/api/controller/http/ai-proxy.d.ts.map +1 -0
- package/build/api/controller/http/ai-proxy.js +1 -0
- package/build/api/controller/http/auth.d.ts +14 -0
- package/build/api/controller/http/auth.d.ts.map +1 -0
- package/build/api/controller/http/auth.js +8 -0
- package/build/api/controller/http/cloud-payments.d.ts +5 -0
- package/build/api/controller/http/cloud-payments.d.ts.map +1 -0
- package/build/api/controller/http/file.d.ts +6 -0
- package/build/api/controller/http/file.d.ts.map +1 -0
- package/build/api/controller/http/health.d.ts +4 -0
- package/build/api/controller/http/health.d.ts.map +1 -0
- package/build/api/controller/http/image-editor.d.ts +15 -0
- package/build/api/controller/http/image-editor.d.ts.map +1 -0
- package/build/api/controller/http/image-editor.js +17 -0
- package/build/api/controller/http/image-generation.d.ts +15 -0
- package/build/api/controller/http/image-generation.d.ts.map +1 -0
- package/{api/controller/http/index.ts → build/api/controller/http/index.d.ts} +5 -0
- package/build/api/controller/http/index.d.ts.map +1 -0
- package/build/api/controller/http/index.js +4 -0
- package/build/api/controller/http/marketplace-card.d.ts +15 -0
- package/build/api/controller/http/marketplace-card.d.ts.map +1 -0
- package/build/api/controller/http/marketplace-card.js +17 -0
- package/build/api/controller/http/page-question.d.ts +9 -0
- package/build/api/controller/http/page-question.d.ts.map +1 -0
- package/build/api/controller/http/page-question.js +11 -0
- package/build/api/controller/http/page.d.ts +12 -0
- package/build/api/controller/http/page.d.ts.map +1 -0
- package/build/api/controller/http/page.js +14 -0
- package/build/api/controller/http/payment.d.ts +5 -0
- package/build/api/controller/http/payment.d.ts.map +1 -0
- package/build/api/controller/http/product.d.ts +7 -0
- package/build/api/controller/http/product.d.ts.map +1 -0
- package/build/api/controller/http/subscription.d.ts +7 -0
- package/build/api/controller/http/subscription.d.ts.map +1 -0
- package/build/api/controller/http/transaction.d.ts +5 -0
- package/build/api/controller/http/transaction.d.ts.map +1 -0
- package/build/api/controller/http/unregistered-user.d.ts +2 -0
- package/build/api/controller/http/unregistered-user.d.ts.map +1 -0
- package/build/api/controller/http/user.d.ts +5 -0
- package/build/api/controller/http/user.d.ts.map +1 -0
- package/build/api/controller/index.d.ts +2 -0
- package/build/api/controller/index.d.ts.map +1 -0
- package/{api/index.ts → build/api/index.d.ts} +1 -0
- package/build/api/index.d.ts.map +1 -0
- package/build/api/routes.d.ts +90 -0
- package/build/api/routes.d.ts.map +1 -0
- package/build/api/routes.js +23 -0
- package/build/commands/auth/create-user.command.d.ts +35 -0
- package/build/commands/auth/create-user.command.d.ts.map +1 -0
- package/build/commands/auth/create-user.command.js +16 -0
- package/build/commands/auth/index.d.ts +10 -0
- package/build/commands/auth/index.d.ts.map +1 -0
- package/build/commands/auth/index.js +7 -0
- package/build/commands/auth/login.command.d.ts +37 -0
- package/build/commands/auth/login.command.d.ts.map +1 -0
- package/build/commands/auth/register.command.d.ts +44 -0
- package/build/commands/auth/register.command.d.ts.map +1 -0
- package/build/commands/auth/register.command.js +3 -0
- package/build/commands/auth/reset-password.command.d.ts +36 -0
- package/build/commands/auth/reset-password.command.d.ts.map +1 -0
- package/build/commands/auth/reset-password.command.js +17 -0
- package/build/commands/auth/restore-password.command.d.ts +35 -0
- package/build/commands/auth/restore-password.command.d.ts.map +1 -0
- package/build/commands/auth/restore-password.command.js +16 -0
- package/build/commands/auth/verify-email-retry.command.d.ts +30 -0
- package/build/commands/auth/verify-email-retry.command.d.ts.map +1 -0
- package/build/commands/auth/verify-email-retry.command.js +15 -0
- package/build/commands/auth/verify-email.command.d.ts +33 -0
- package/build/commands/auth/verify-email.command.d.ts.map +1 -0
- package/build/commands/auth/verify-email.command.js +16 -0
- package/build/commands/auth/vk-login.command.d.ts +45 -0
- package/build/commands/auth/vk-login.command.d.ts.map +1 -0
- package/build/commands/auth/vk-login.command.js +20 -0
- package/build/commands/auth/yandex-login.command.d.ts +39 -0
- package/build/commands/auth/yandex-login.command.d.ts.map +1 -0
- package/build/commands/auth/yandex-login.command.js +18 -0
- package/{commands/file/index.ts → build/commands/file/index.d.ts} +1 -0
- package/build/commands/file/index.d.ts.map +1 -0
- package/build/commands/file/upload-file.command.d.ts +57 -0
- package/build/commands/file/upload-file.command.d.ts.map +1 -0
- package/build/commands/image-editor/execute-image-editor.command.d.ts +275 -0
- package/build/commands/image-editor/execute-image-editor.command.d.ts.map +1 -0
- package/build/commands/image-editor/execute-image-editor.command.js +16 -0
- package/build/commands/image-editor/index.d.ts +8 -0
- package/build/commands/image-editor/index.d.ts.map +1 -0
- package/build/commands/image-editor/index.js +23 -0
- package/build/commands/image-editor/proxy-image-editor-callback.command.d.ts +26 -0
- package/build/commands/image-editor/proxy-image-editor-callback.command.d.ts.map +1 -0
- package/build/commands/image-editor/proxy-image-editor-callback.command.js +15 -0
- package/build/commands/image-editor/retry-image-editor-job.command.d.ts +275 -0
- package/build/commands/image-editor/retry-image-editor-job.command.d.ts.map +1 -0
- package/build/commands/image-editor/retry-image-editor-job.command.js +16 -0
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +253 -0
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts.map +1 -0
- package/build/commands/image-editor/set-reaction-to-image-editor-job.command.js +16 -0
- package/build/commands/image-editor/soft-delete-image-editor-job-by-uuid.command.d.ts +12 -0
- package/build/commands/image-editor/soft-delete-image-editor-job-by-uuid.command.d.ts.map +1 -0
- package/build/commands/image-editor/soft-delete-image-editor-job-by-uuid.command.js +10 -0
- package/build/commands/image-editor/soft-delete-image-editor-jobs-by-criteria.command.d.ts +12 -0
- package/build/commands/image-editor/soft-delete-image-editor-jobs-by-criteria.command.d.ts.map +1 -0
- package/build/commands/image-editor/soft-delete-image-editor-jobs-by-criteria.command.js +10 -0
- package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +249 -0
- package/build/commands/image-editor/update-image-editor-job-title.command.d.ts.map +1 -0
- package/build/commands/image-editor/update-image-editor-job-title.command.js +14 -0
- package/build/commands/image-generation/execute-image-generation.command.d.ts +316 -0
- package/build/commands/image-generation/execute-image-generation.command.d.ts.map +1 -0
- package/{commands/image-generation/index.ts → build/commands/image-generation/index.d.ts} +1 -0
- package/build/commands/image-generation/index.d.ts.map +1 -0
- package/build/commands/image-generation/proxy-image-generation-callback.command.d.ts +48 -0
- package/build/commands/image-generation/proxy-image-generation-callback.command.d.ts.map +1 -0
- package/build/commands/image-generation/retry-image-generation-job.command.d.ts +316 -0
- package/build/commands/image-generation/retry-image-generation-job.command.d.ts.map +1 -0
- package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +292 -0
- package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts.map +1 -0
- package/build/commands/image-generation/soft-delete-image-generation-job-by-uuid.command.d.ts +12 -0
- package/build/commands/image-generation/soft-delete-image-generation-job-by-uuid.command.d.ts.map +1 -0
- package/build/commands/image-generation/soft-delete-image-generation-jobs-by-criteria.command.d.ts +12 -0
- package/build/commands/image-generation/soft-delete-image-generation-jobs-by-criteria.command.d.ts.map +1 -0
- package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +282 -0
- package/build/commands/image-generation/update-image-generation-job-title.command.d.ts.map +1 -0
- package/{commands/index.ts → build/commands/index.d.ts} +4 -0
- package/build/commands/index.d.ts.map +1 -0
- package/build/commands/index.js +3 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts +155 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/execute-marketplace-card.command.js +12 -0
- package/build/commands/marketplace-card/index.d.ts +7 -0
- package/build/commands/marketplace-card/index.d.ts.map +1 -0
- package/build/commands/marketplace-card/index.js +22 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts +163 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/retry-marketplace-card-job.command.js +25 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +143 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.js +19 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts +20 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.js +13 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts +12 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.js +10 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts +139 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts.map +1 -0
- package/build/commands/marketplace-card/update-marketplace-card-job-title.command.js +17 -0
- package/build/commands/page/create-page-question.command.d.ts +64 -0
- package/build/commands/page/create-page-question.command.d.ts.map +1 -0
- package/build/commands/page/create-page-question.command.js +16 -0
- package/build/commands/page/create-page.command.d.ts +188 -0
- package/build/commands/page/create-page.command.d.ts.map +1 -0
- package/build/commands/page/create-page.command.js +16 -0
- package/build/commands/page/delete-page-question.command.d.ts +20 -0
- package/build/commands/page/delete-page-question.command.d.ts.map +1 -0
- package/build/commands/page/delete-page-question.command.js +13 -0
- package/build/commands/page/delete-page.command.d.ts +14 -0
- package/build/commands/page/delete-page.command.d.ts.map +1 -0
- package/build/commands/page/delete-page.command.js +11 -0
- package/build/commands/page/find-page-by-alias.command.d.ts +559 -0
- package/build/commands/page/find-page-by-alias.command.d.ts.map +1 -0
- package/build/commands/page/find-page-by-alias.command.js +20 -0
- package/build/commands/page/find-page-by-criteria.command.d.ts +206 -0
- package/build/commands/page/find-page-by-criteria.command.d.ts.map +1 -0
- package/build/commands/page/find-page-by-criteria.command.js +22 -0
- package/build/commands/page/find-page.command.d.ts +387 -0
- package/build/commands/page/find-page.command.d.ts.map +1 -0
- package/build/commands/page/find-page.command.js +17 -0
- package/build/commands/page/index.d.ts +10 -0
- package/build/commands/page/index.d.ts.map +1 -0
- package/build/commands/page/index.js +25 -0
- package/build/commands/page/update-page-question.command.d.ts +72 -0
- package/build/commands/page/update-page-question.command.d.ts.map +1 -0
- package/build/commands/page/update-page-question.command.js +19 -0
- package/build/commands/page/update-page.command.d.ts +193 -0
- package/build/commands/page/update-page.command.d.ts.map +1 -0
- package/build/commands/page/update-page.command.js +19 -0
- package/build/commands/payment/cloud-payments.command.d.ts +113 -0
- package/build/commands/payment/cloud-payments.command.d.ts.map +1 -0
- package/{commands/payment/index.ts → build/commands/payment/index.d.ts} +1 -0
- package/build/commands/payment/index.d.ts.map +1 -0
- package/build/commands/product/buy-product.command.d.ts +547 -0
- package/build/commands/product/buy-product.command.d.ts.map +1 -0
- package/{commands/product/index.ts → build/commands/product/index.d.ts} +1 -0
- package/build/commands/product/index.d.ts.map +1 -0
- package/build/commands/subscription/buy-subscription.command.d.ts +547 -0
- package/build/commands/subscription/buy-subscription.command.d.ts.map +1 -0
- package/{commands/subscription/index.ts → build/commands/subscription/index.d.ts} +1 -0
- package/build/commands/subscription/index.d.ts.map +1 -0
- package/{commands/transaction/index.ts → build/commands/transaction/index.d.ts} +1 -0
- package/build/commands/transaction/index.d.ts.map +1 -0
- package/build/commands/transaction/write-off.command.d.ts +44 -0
- package/build/commands/transaction/write-off.command.d.ts.map +1 -0
- package/{commands/unregistered-user/index.ts → build/commands/unregistered-user/index.d.ts} +1 -1
- package/build/commands/unregistered-user/index.d.ts.map +1 -0
- package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +39 -0
- package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts.map +1 -0
- package/{constants/common/enums/index.ts → build/constants/common/enums/index.d.ts} +1 -1
- package/build/constants/common/enums/index.d.ts.map +1 -0
- package/build/constants/common/enums/user-reaction.enum.d.ts +5 -0
- package/build/constants/common/enums/user-reaction.enum.d.ts.map +1 -0
- package/build/constants/common/index.d.ts +2 -0
- package/build/constants/common/index.d.ts.map +1 -0
- package/build/constants/email/email-endpoint.d.ts +2 -0
- package/build/constants/email/email-endpoint.d.ts.map +1 -0
- package/build/constants/email/email-endpoint.js +4 -0
- package/build/constants/email/index.d.ts +3 -0
- package/build/constants/email/index.d.ts.map +1 -0
- package/build/constants/email/index.js +18 -0
- package/build/constants/email/subjects.d.ts +13 -0
- package/build/constants/email/subjects.d.ts.map +1 -0
- package/build/constants/email/subjects.js +15 -0
- package/build/constants/errors/errors.d.ts +643 -0
- package/build/constants/errors/errors.d.ts.map +1 -0
- package/build/constants/errors/errors.js +369 -2
- package/build/constants/errors/index.d.ts +2 -0
- package/build/constants/errors/index.d.ts.map +1 -0
- package/build/constants/files/enums/file-type.enum.d.ts +4 -0
- package/build/constants/files/enums/file-type.enum.d.ts.map +1 -0
- package/build/constants/files/enums/index.d.ts +2 -0
- package/build/constants/files/enums/index.d.ts.map +1 -0
- package/build/constants/files/index.d.ts +2 -0
- package/build/constants/files/index.d.ts.map +1 -0
- package/build/constants/image-editor/enums/image-editing-strategy.enum.d.ts +10 -0
- package/build/constants/image-editor/enums/image-editing-strategy.enum.d.ts.map +1 -0
- package/build/constants/image-editor/enums/image-editing-strategy.enum.js +13 -0
- package/build/constants/image-editor/enums/image-editor-model-type.enum.d.ts +6 -0
- package/build/constants/image-editor/enums/image-editor-model-type.enum.d.ts.map +1 -0
- package/build/constants/image-editor/enums/image-editor-model-type.enum.js +9 -0
- package/build/constants/image-editor/enums/index.d.ts +3 -0
- package/build/constants/image-editor/enums/index.d.ts.map +1 -0
- package/build/constants/image-editor/enums/index.js +18 -0
- package/build/constants/image-editor/index.d.ts +2 -0
- package/build/constants/image-editor/index.d.ts.map +1 -0
- package/build/constants/image-editor/index.js +17 -0
- package/build/constants/image-generation/enums/image-generation-model-strategy.enum.d.ts +15 -0
- package/build/constants/image-generation/enums/image-generation-model-strategy.enum.d.ts.map +1 -0
- package/build/constants/image-generation/enums/image-generation-resolution.enum.d.ts +6 -0
- package/build/constants/image-generation/enums/image-generation-resolution.enum.d.ts.map +1 -0
- package/{constants/image-generation/enums/index.ts → build/constants/image-generation/enums/index.d.ts} +1 -0
- package/build/constants/image-generation/enums/index.d.ts.map +1 -0
- package/build/constants/image-generation/index.d.ts +2 -0
- package/build/constants/image-generation/index.d.ts.map +1 -0
- package/{constants/index.ts → build/constants/index.d.ts} +4 -0
- package/build/constants/index.d.ts.map +1 -0
- package/build/constants/index.js +3 -0
- package/{constants/order/enums/index.ts → build/constants/order/enums/index.d.ts} +1 -1
- package/build/constants/order/enums/index.d.ts.map +1 -0
- package/build/constants/order/enums/order-status.enum.d.ts +6 -0
- package/build/constants/order/enums/order-status.enum.d.ts.map +1 -0
- package/build/constants/order/enums/order-type.enum.d.ts +4 -0
- package/build/constants/order/enums/order-type.enum.d.ts.map +1 -0
- package/build/constants/order/index.d.ts +2 -0
- package/build/constants/order/index.d.ts.map +1 -0
- package/build/constants/page/enums/page-type.enum.d.ts +6 -0
- package/build/constants/page/enums/page-type.enum.d.ts.map +1 -0
- package/build/constants/page/enums/page-type.enum.js +9 -0
- package/build/constants/page/index.d.ts +2 -0
- package/build/constants/page/index.d.ts.map +1 -0
- package/build/constants/page/index.js +17 -0
- package/{constants/payment/enums/index.ts → build/constants/payment/enums/index.d.ts} +1 -1
- package/build/constants/payment/enums/index.d.ts.map +1 -0
- package/build/constants/payment/enums/payment-status.enum.d.ts +4 -0
- package/build/constants/payment/enums/payment-status.enum.d.ts.map +1 -0
- package/build/constants/payment/index.d.ts +2 -0
- package/build/constants/payment/index.d.ts.map +1 -0
- package/build/constants/subscription/free-subscription-id.constant.d.ts +2 -0
- package/build/constants/subscription/free-subscription-id.constant.d.ts.map +1 -0
- package/{constants/subscription/index.ts → build/constants/subscription/index.d.ts} +1 -1
- package/build/constants/subscription/index.d.ts.map +1 -0
- package/{constants/tools/enums/index.ts → build/constants/tools/enums/index.d.ts} +2 -0
- package/build/constants/tools/enums/index.d.ts.map +1 -0
- package/build/constants/tools/enums/index.js +1 -0
- package/build/constants/tools/enums/job-request-origin.enum.d.ts +4 -0
- package/build/constants/tools/enums/job-request-origin.enum.d.ts.map +1 -0
- package/build/constants/tools/enums/job-status.enum.d.ts +6 -0
- package/build/constants/tools/enums/job-status.enum.d.ts.map +1 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts +7 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts.map +1 -0
- package/build/constants/tools/enums/marketplace-card-strategy.enum.js +10 -0
- package/build/constants/tools/enums/tool-model-status.enum.d.ts +5 -0
- package/build/constants/tools/enums/tool-model-status.enum.d.ts.map +1 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts +6 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -0
- package/build/constants/tools/enums/tool-type.enum.js +2 -0
- package/build/constants/tools/index.d.ts +2 -0
- package/build/constants/tools/index.d.ts.map +1 -0
- package/{constants/transaction/enums/index.ts → build/constants/transaction/enums/index.d.ts} +1 -1
- package/build/constants/transaction/enums/index.d.ts.map +1 -0
- package/build/constants/transaction/enums/transaction-status.enum.d.ts +6 -0
- package/build/constants/transaction/enums/transaction-status.enum.d.ts.map +1 -0
- package/build/constants/transaction/index.d.ts +2 -0
- package/build/constants/transaction/index.d.ts.map +1 -0
- package/build/constants/user/enums/index.d.ts +4 -0
- package/build/constants/user/enums/index.d.ts.map +1 -0
- package/build/constants/user/enums/index.js +1 -0
- package/build/constants/user/enums/signup-method.enum.d.ts +7 -0
- package/build/constants/user/enums/signup-method.enum.d.ts.map +1 -0
- package/build/constants/user/enums/signup-method.enum.js +10 -0
- package/build/constants/user/enums/user-role.enum.d.ts +6 -0
- package/build/constants/user/enums/user-role.enum.d.ts.map +1 -0
- package/build/constants/user/enums/user-status.enum.d.ts +6 -0
- package/build/constants/user/enums/user-status.enum.d.ts.map +1 -0
- package/build/constants/user/index.d.ts +2 -0
- package/build/constants/user/index.d.ts.map +1 -0
- package/{constants/user-to-product/enums/index.ts → build/constants/user-to-product/enums/index.d.ts} +1 -1
- package/build/constants/user-to-product/enums/index.d.ts.map +1 -0
- package/build/constants/user-to-product/enums/user-to-product-status.enum.d.ts +4 -0
- package/build/constants/user-to-product/enums/user-to-product-status.enum.d.ts.map +1 -0
- package/build/constants/user-to-product/index.d.ts +2 -0
- package/build/constants/user-to-product/index.d.ts.map +1 -0
- package/{constants/user-to-subscription/enums/index.ts → build/constants/user-to-subscription/enums/index.d.ts} +1 -1
- package/build/constants/user-to-subscription/enums/index.d.ts.map +1 -0
- package/build/constants/user-to-subscription/enums/user-to-subscription-status.enum.d.ts +4 -0
- package/build/constants/user-to-subscription/enums/user-to-subscription-status.enum.d.ts.map +1 -0
- package/build/constants/user-to-subscription/index.d.ts +2 -0
- package/build/constants/user-to-subscription/index.d.ts.map +1 -0
- package/{index.ts → build/index.d.ts} +1 -0
- package/build/index.d.ts.map +1 -0
- package/build/models/cloud-payments-widget-data.schema.d.ts +419 -0
- package/build/models/cloud-payments-widget-data.schema.d.ts.map +1 -0
- package/build/models/cloud-payments-widget.schema.d.ts +424 -0
- package/build/models/cloud-payments-widget.schema.d.ts.map +1 -0
- package/build/models/common/attached-file.schema.d.ts +29 -0
- package/build/models/common/attached-file.schema.d.ts.map +1 -0
- package/build/models/common/icon-variants.schema.d.ts +53 -0
- package/build/models/common/icon-variants.schema.d.ts.map +1 -0
- package/{models/common/index.ts → build/models/common/index.d.ts} +1 -0
- package/build/models/common/index.d.ts.map +1 -0
- package/build/models/common/json-value.schema.d.ts +8 -0
- package/build/models/common/json-value.schema.d.ts.map +1 -0
- package/build/models/common/receipt.schema.d.ts +82 -0
- package/build/models/common/receipt.schema.d.ts.map +1 -0
- package/build/models/file.schema.d.ts +31 -0
- package/build/models/file.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-config.schema.d.ts +509 -0
- package/build/models/image-editor/image-editor-config.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-config.schema.js +10 -0
- package/build/models/image-editor/image-editor-job-params.schema.d.ts +62 -0
- package/build/models/image-editor/image-editor-job-params.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-job-params.schema.js +12 -0
- package/build/models/image-editor/image-editor-job-request-params.schema.d.ts +16 -0
- package/build/models/image-editor/image-editor-job-request-params.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-job-request-params.schema.js +9 -0
- package/build/models/image-editor/image-editor-job.schema.d.ts +160 -0
- package/build/models/image-editor/image-editor-job.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-job.schema.js +30 -0
- package/build/models/image-editor/image-editor-model-params.schema.d.ts +48 -0
- package/build/models/image-editor/image-editor-model-params.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-model-params.schema.js +15 -0
- package/build/models/image-editor/image-editor-model.schema.d.ts +212 -0
- package/build/models/image-editor/image-editor-model.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-model.schema.js +28 -0
- package/build/models/image-editor/image-editor-pricing-rule.schema.d.ts +30 -0
- package/build/models/image-editor/image-editor-pricing-rule.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-pricing-rule.schema.js +11 -0
- package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +149 -0
- package/build/models/image-editor/image-editor-prompt-group.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-prompt-group.schema.js +13 -0
- package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +47 -0
- package/build/models/image-editor/image-editor-system-prompt.schema.d.ts.map +1 -0
- package/build/models/image-editor/image-editor-system-prompt.schema.js +20 -0
- package/build/models/image-editor/index.d.ts +10 -0
- package/build/models/image-editor/index.d.ts.map +1 -0
- package/build/models/image-editor/index.js +25 -0
- package/build/models/image-generation/image-generation-config.schema.d.ts +535 -0
- package/build/models/image-generation/image-generation-config.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-job-attempt.schema.d.ts +20 -0
- package/build/models/image-generation/image-generation-job-attempt.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-job-params.schema.d.ts +60 -0
- package/build/models/image-generation/image-generation-job-params.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-job-request-params.schema.d.ts +20 -0
- package/build/models/image-generation/image-generation-job-request-params.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-job.schema.d.ts +182 -0
- package/build/models/image-generation/image-generation-job.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-model-params.schema.d.ts +42 -0
- package/build/models/image-generation/image-generation-model-params.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-model.schema.d.ts +215 -0
- package/build/models/image-generation/image-generation-model.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-preset.schema.d.ts +19 -0
- package/build/models/image-generation/image-generation-preset.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-pricing-rule.schema.d.ts +66 -0
- package/build/models/image-generation/image-generation-pricing-rule.schema.d.ts.map +1 -0
- package/build/models/image-generation/image-generation-vendor.schema.d.ts +381 -0
- package/build/models/image-generation/image-generation-vendor.schema.d.ts.map +1 -0
- package/{models/image-generation/index.ts → build/models/image-generation/index.d.ts} +1 -0
- package/build/models/image-generation/index.d.ts.map +1 -0
- package/{models/index.ts → build/models/index.d.ts} +5 -0
- package/build/models/index.d.ts.map +1 -0
- package/build/models/index.js +4 -0
- package/build/models/marketplace-card/index.d.ts +7 -0
- package/build/models/marketplace-card/index.d.ts.map +1 -0
- package/build/models/marketplace-card/index.js +22 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts +203 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-config.schema.js +10 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts +34 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-job-request-params.schema.js +15 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts +74 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-job.schema.js +28 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts +30 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-model-params.schema.js +11 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts +123 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-model.schema.js +15 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts +19 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts.map +1 -0
- package/build/models/marketplace-card/marketplace-card-style-preset.schema.js +10 -0
- package/build/models/page-question.schema.d.ts +24 -0
- package/build/models/page-question.schema.d.ts.map +1 -0
- package/build/models/page-question.schema.js +12 -0
- package/build/models/page.schema.d.ts +232 -0
- package/build/models/page.schema.d.ts.map +1 -0
- package/build/models/page.schema.js +37 -0
- package/build/models/product.schema.d.ts +24 -0
- package/build/models/product.schema.d.ts.map +1 -0
- package/build/models/subscription.schema.d.ts +30 -0
- package/build/models/subscription.schema.d.ts.map +1 -0
- package/build/models/tools/index.d.ts +2 -0
- package/build/models/tools/index.d.ts.map +1 -0
- package/build/models/tools/vendor.schema.d.ts +76 -0
- package/build/models/tools/vendor.schema.d.ts.map +1 -0
- package/build/models/user.schema.d.ts +25 -0
- package/build/models/user.schema.d.ts.map +1 -0
- package/build/queries/file/find-files.command.d.ts +91 -0
- package/build/queries/file/find-files.command.d.ts.map +1 -0
- package/build/queries/file/get-file.command.d.ts +65 -0
- package/build/queries/file/get-file.command.d.ts.map +1 -0
- package/{queries/file/index.ts → build/queries/file/index.d.ts} +1 -1
- package/build/queries/file/index.d.ts.map +1 -0
- package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +275 -0
- package/build/queries/image-editor/find-image-editor-jobs.command.d.ts.map +1 -0
- package/build/queries/image-editor/find-image-editor-jobs.command.js +20 -0
- package/build/queries/image-editor/get-image-editor-config.command.d.ts +667 -0
- package/build/queries/image-editor/get-image-editor-config.command.d.ts.map +1 -0
- package/build/queries/image-editor/get-image-editor-config.command.js +11 -0
- package/build/queries/image-editor/get-image-editor-job.command.d.ts +249 -0
- package/build/queries/image-editor/get-image-editor-job.command.d.ts.map +1 -0
- package/build/queries/image-editor/get-image-editor-job.command.js +14 -0
- package/build/queries/image-editor/get-image-editor-price.command.d.ts +53 -0
- package/build/queries/image-editor/get-image-editor-price.command.d.ts.map +1 -0
- package/build/queries/image-editor/get-image-editor-price.command.js +17 -0
- package/build/queries/image-editor/index.d.ts +5 -0
- package/build/queries/image-editor/index.d.ts.map +1 -0
- package/build/queries/image-editor/index.js +20 -0
- package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +308 -0
- package/build/queries/image-generation/find-image-generation-jobs.command.d.ts.map +1 -0
- package/build/queries/image-generation/get-image-generation-config.command.d.ts +679 -0
- package/build/queries/image-generation/get-image-generation-config.command.d.ts.map +1 -0
- package/build/queries/image-generation/get-image-generation-job.command.d.ts +282 -0
- package/build/queries/image-generation/get-image-generation-job.command.d.ts.map +1 -0
- package/build/queries/image-generation/get-image-generation-price.command.d.ts +44 -0
- package/build/queries/image-generation/get-image-generation-price.command.d.ts.map +1 -0
- package/{queries/image-generation/index.ts → build/queries/image-generation/index.d.ts} +1 -0
- package/build/queries/image-generation/index.d.ts.map +1 -0
- package/{queries/index.ts → build/queries/index.d.ts} +4 -1
- package/build/queries/index.d.ts.map +1 -0
- package/build/queries/index.js +3 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts +160 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/find-marketplace-card-jobs.command.js +21 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts +273 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-config.command.js +11 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts +131 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-job.command.js +14 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts +30 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts.map +1 -0
- package/build/queries/marketplace-card/get-marketplace-card-price.command.js +15 -0
- package/build/queries/marketplace-card/index.d.ts +5 -0
- package/build/queries/marketplace-card/index.d.ts.map +1 -0
- package/build/queries/marketplace-card/index.js +20 -0
- package/build/queries/page/find-all-page-questions.query.d.ts +49 -0
- package/build/queries/page/find-all-page-questions.query.d.ts.map +1 -0
- package/build/queries/page/find-all-page-questions.query.js +12 -0
- package/build/queries/page/find-page-question-by-uuid.query.d.ts +55 -0
- package/build/queries/page/find-page-question-by-uuid.query.d.ts.map +1 -0
- package/build/queries/page/find-page-question-by-uuid.query.js +14 -0
- package/build/queries/page/find-page-questions-by-page-id.query.d.ts +55 -0
- package/build/queries/page/find-page-questions-by-page-id.query.d.ts.map +1 -0
- package/build/queries/page/find-page-questions-by-page-id.query.js +14 -0
- package/build/queries/page/index.d.ts +4 -0
- package/build/queries/page/index.d.ts.map +1 -0
- package/build/queries/page/index.js +19 -0
- package/build/queries/payment/get-payment-history.command.d.ts +62 -0
- package/build/queries/payment/get-payment-history.command.d.ts.map +1 -0
- package/{queries/payment/index.ts → build/queries/payment/index.d.ts} +1 -1
- package/build/queries/payment/index.d.ts.map +1 -0
- package/build/queries/product/find-products.command.d.ts +47 -0
- package/build/queries/product/find-products.command.d.ts.map +1 -0
- package/{queries/product/index.ts → build/queries/product/index.d.ts} +1 -1
- package/build/queries/product/index.d.ts.map +1 -0
- package/build/queries/subscription/find-subscriptions.command.d.ts +57 -0
- package/build/queries/subscription/find-subscriptions.command.d.ts.map +1 -0
- package/{queries/subscription/index.ts → build/queries/subscription/index.d.ts} +1 -1
- package/build/queries/subscription/index.d.ts.map +1 -0
- package/build/queries/user/get-my-products.command.d.ts +97 -0
- package/build/queries/user/get-my-products.command.d.ts.map +1 -0
- package/build/queries/user/get-my-subscriptions.command.d.ts +121 -0
- package/build/queries/user/get-my-subscriptions.command.d.ts.map +1 -0
- package/build/queries/user/get-user.command.d.ts +38 -0
- package/build/queries/user/get-user.command.d.ts.map +1 -0
- package/{queries/user/index.ts → build/queries/user/index.d.ts} +1 -0
- package/build/queries/user/index.d.ts.map +1 -0
- package/package.json +34 -2
- package/api/controller/http/ai-proxy.ts +0 -6
- package/api/controller/http/auth.ts +0 -7
- package/api/controller/http/cloud-payments.ts +0 -6
- package/api/controller/http/file.ts +0 -7
- package/api/controller/http/health.ts +0 -4
- package/api/controller/http/image-generation.ts +0 -15
- package/api/controller/http/payment.ts +0 -6
- package/api/controller/http/product.ts +0 -7
- package/api/controller/http/subscription.ts +0 -8
- package/api/controller/http/transaction.ts +0 -6
- package/api/controller/http/unregistered-user.ts +0 -1
- package/api/controller/http/user.ts +0 -5
- package/api/controller/index.ts +0 -2
- package/api/routes.ts +0 -76
- package/commands/auth/index.ts +0 -2
- package/commands/auth/login.command.ts +0 -18
- package/commands/auth/register.command.ts +0 -18
- package/commands/file/upload-file.command.ts +0 -10
- package/commands/image-generation/execute-image-generation.command.ts +0 -20
- package/commands/image-generation/proxy-image-generation-callback.command.ts +0 -21
- package/commands/image-generation/retry-image-generation-job.command.ts +0 -20
- package/commands/image-generation/set-reaction-to-image-generation-job.command.ts +0 -29
- package/commands/image-generation/soft-delete-image-generation-job-by-uuid.command.ts +0 -10
- package/commands/image-generation/soft-delete-image-generation-jobs-by-criteria.command.ts +0 -10
- package/commands/image-generation/update-image-generation-job-title.command.ts +0 -17
- package/commands/payment/cloud-payments.command.ts +0 -53
- package/commands/product/buy-product.command.ts +0 -20
- package/commands/subscription/buy-subscription.command.ts +0 -20
- package/commands/transaction/write-off.command.ts +0 -19
- package/commands/unregistered-user/upsert-unregistered-user.command.ts +0 -17
- package/constants/common/enums/user-reaction.enum.ts +0 -5
- package/constants/common/index.ts +0 -2
- package/constants/errors/errors.ts +0 -308
- package/constants/errors/index.ts +0 -2
- package/constants/files/enums/file-type.enum.ts +0 -4
- package/constants/files/enums/index.ts +0 -2
- package/constants/files/index.ts +0 -2
- package/constants/image-generation/enums/image-generation-model-strategy.enum.ts +0 -15
- package/constants/image-generation/enums/image-generation-resolution.enum.ts +0 -6
- package/constants/image-generation/index.ts +0 -2
- package/constants/order/enums/order-status.enum.ts +0 -6
- package/constants/order/enums/order-type.enum.ts +0 -4
- package/constants/order/index.ts +0 -2
- package/constants/payment/enums/payment-status.enum.ts +0 -4
- package/constants/payment/index.ts +0 -2
- package/constants/subscription/free-subscription-id.constant.ts +0 -2
- package/constants/tools/enums/job-request-origin.enum.ts +0 -4
- package/constants/tools/enums/job-status.enum.ts +0 -6
- package/constants/tools/enums/tool-model-status.enum.ts +0 -5
- package/constants/tools/enums/tool-type.enum.ts +0 -4
- package/constants/tools/index.ts +0 -2
- package/constants/transaction/enums/transaction-status.enum.ts +0 -6
- package/constants/transaction/index.ts +0 -2
- package/constants/user/enums/index.ts +0 -3
- package/constants/user/enums/user-role.enum.ts +0 -6
- package/constants/user/enums/user-status.enum.ts +0 -6
- package/constants/user/index.ts +0 -2
- package/constants/user-to-product/enums/user-to-product-status.enum.ts +0 -4
- package/constants/user-to-product/index.ts +0 -2
- package/constants/user-to-subscription/enums/user-to-subscription-status.enum.ts +0 -4
- package/constants/user-to-subscription/index.ts +0 -2
- package/models/cloud-payments-widget-data.schema.ts +0 -19
- package/models/cloud-payments-widget.schema.ts +0 -15
- package/models/common/attached-file.schema.ts +0 -14
- package/models/common/icon-variants.schema.ts +0 -13
- package/models/common/json-value.schema.ts +0 -11
- package/models/common/receipt.schema.ts +0 -20
- package/models/file.schema.ts +0 -14
- package/models/image-generation/image-generation-config.schema.ts +0 -11
- package/models/image-generation/image-generation-job-attempt.schema.ts +0 -12
- package/models/image-generation/image-generation-job-params.schema.ts +0 -11
- package/models/image-generation/image-generation-job-request-params.schema.ts +0 -11
- package/models/image-generation/image-generation-job.schema.ts +0 -30
- package/models/image-generation/image-generation-model-params.schema.ts +0 -22
- package/models/image-generation/image-generation-model.schema.ts +0 -28
- package/models/image-generation/image-generation-preset.schema.ts +0 -11
- package/models/image-generation/image-generation-pricing-rule.schema.ts +0 -20
- package/models/image-generation/image-generation-vendor.schema.ts +0 -9
- package/models/product.schema.ts +0 -10
- package/models/subscription.schema.ts +0 -12
- package/models/tools/index.ts +0 -2
- package/models/tools/vendor.schema.ts +0 -12
- package/models/user.schema.ts +0 -11
- package/queries/file/find-files.command.ts +0 -21
- package/queries/file/get-file.command.ts +0 -15
- package/queries/image-generation/find-image-generation-jobs.command.ts +0 -21
- package/queries/image-generation/get-image-generation-config.command.ts +0 -9
- package/queries/image-generation/get-image-generation-job.command.ts +0 -15
- package/queries/image-generation/get-image-generation-price.command.ts +0 -19
- package/queries/payment/get-payment-history.command.ts +0 -17
- package/queries/product/find-products.command.ts +0 -10
- package/queries/subscription/find-subscriptions.command.ts +0 -10
- package/queries/user/get-my-products.command.ts +0 -19
- package/queries/user/get-my-subscriptions.command.ts +0 -21
- package/queries/user/get-user.command.ts +0 -14
- package/tsconfig.json +0 -104
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const IMAGE_GENERATION_PRIVATE_CONTROLLER = 'image-generation/private' as const;
|
|
2
|
-
export const IMAGE_GENERATION_PUBLIC_CONTROLLER = 'image-generation/public' as const;
|
|
3
|
-
|
|
4
|
-
export const IMAGE_GENERATION_ROUTES = {
|
|
5
|
-
CONFIG: 'config',
|
|
6
|
-
PRICE: 'price',
|
|
7
|
-
EXECUTE: 'execute',
|
|
8
|
-
GET_JOBS: 'jobs',
|
|
9
|
-
GET_JOB: (uuid: string) => `jobs/${uuid}`,
|
|
10
|
-
UPDATE: (uuid: string) => `jobs/${uuid}`,
|
|
11
|
-
SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
|
|
12
|
-
DELETE: (uuid: string) => `jobs/${uuid}`,
|
|
13
|
-
DELETE_ALL: 'jobs',
|
|
14
|
-
RETRY: (uuid: string) => `jobs/${uuid}/retry`,
|
|
15
|
-
} as const;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const UNREGISTERED_USER_CONTROLLER = 'unregistered-user' as const;
|
package/api/controller/index.ts
DELETED
package/api/routes.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import * as CONTROLLERS from './controller';
|
|
2
|
-
|
|
3
|
-
export const ROOT = '/api' as const;
|
|
4
|
-
|
|
5
|
-
export const REST_API = {
|
|
6
|
-
HEALTH: {
|
|
7
|
-
PING: `${ROOT}/${CONTROLLERS.HEALTH_ROUTES.PING}`,
|
|
8
|
-
},
|
|
9
|
-
AUTH: {
|
|
10
|
-
REGISTER: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.REGISTER}`,
|
|
11
|
-
LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.LOGIN}`,
|
|
12
|
-
},
|
|
13
|
-
UNREGISTERED_USER: {
|
|
14
|
-
UPSERT: `${ROOT}/${CONTROLLERS.UNREGISTERED_USER_CONTROLLER}`,
|
|
15
|
-
},
|
|
16
|
-
USERS: {
|
|
17
|
-
GET: `${ROOT}/${CONTROLLERS.USER_CONTROLLER}`,
|
|
18
|
-
},
|
|
19
|
-
PRODUCT_PUBLIC: {
|
|
20
|
-
GET: `${ROOT}/${CONTROLLERS.PRODUCT_PUBLIC_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.GET_ALL}`,
|
|
21
|
-
},
|
|
22
|
-
PRODUCT_PRIVATE: {
|
|
23
|
-
GET: `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.GET_ALL}`,
|
|
24
|
-
BUY: (uuid: string) =>
|
|
25
|
-
`${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.PRODUCT_ROUTES.BUY}`,
|
|
26
|
-
},
|
|
27
|
-
SUBSCRIPTION_PUBLIC: {
|
|
28
|
-
GET: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
|
|
29
|
-
},
|
|
30
|
-
SUBSCRIPTION_PRIVATE: {
|
|
31
|
-
GET: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
|
|
32
|
-
BUY: (uuid: string) =>
|
|
33
|
-
`${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.BUY}`,
|
|
34
|
-
},
|
|
35
|
-
PAYMENT: {
|
|
36
|
-
HISTORY: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
|
|
37
|
-
},
|
|
38
|
-
CLOUD_PAYMENTS: {
|
|
39
|
-
CALLBACK: (type: string) =>
|
|
40
|
-
`${ROOT}/${CONTROLLERS.CLOUD_PAYMENTS_CONTROLLER}/${CONTROLLERS.CLOUD_PAYMENTS_ROUTES.CALLBACK}/${type}`,
|
|
41
|
-
},
|
|
42
|
-
IMAGE_GENERATION_PUBLIC: {
|
|
43
|
-
CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
|
|
44
|
-
PRICE: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PUBLIC_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.PRICE}`,
|
|
45
|
-
},
|
|
46
|
-
IMAGE_GENERATION_PRIVATE: {
|
|
47
|
-
CONFIG: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.CONFIG}`,
|
|
48
|
-
EXECUTE: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.EXECUTE}`,
|
|
49
|
-
LIST_JOBS: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOBS}`,
|
|
50
|
-
GET_JOB: (uuid: string) =>
|
|
51
|
-
`${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.GET_JOB(uuid)}`,
|
|
52
|
-
UPDATE: (uuid: string) =>
|
|
53
|
-
`${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.UPDATE(uuid)}`,
|
|
54
|
-
SET_REACTION: (uuid: string) =>
|
|
55
|
-
`${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.SET_REACTION(uuid)}`,
|
|
56
|
-
DELETE: (uuid: string) =>
|
|
57
|
-
`${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE(uuid)}`,
|
|
58
|
-
DELETE_ALL: `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_PRIVATE_CONTROLLER}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
|
|
59
|
-
},
|
|
60
|
-
AI_PROXY: {
|
|
61
|
-
IMAGE_GENERATION_CALLBACK: `${ROOT}/${CONTROLLERS.AI_PROXY_CONTROLLER}/${CONTROLLERS.AI_PROXY_ROUTES.IMAGE_GENERATION_CALLBACK}`,
|
|
62
|
-
},
|
|
63
|
-
FILES_PRIVATE: {
|
|
64
|
-
UPLOAD: `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD}`,
|
|
65
|
-
LIST: `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}`,
|
|
66
|
-
GET: (uuid: string) => `${ROOT}/${CONTROLLERS.FILE_PRIVATE_CONTROLLER}/${uuid}`,
|
|
67
|
-
},
|
|
68
|
-
FILES_PUBLIC: {
|
|
69
|
-
UPLOAD: `${ROOT}/${CONTROLLERS.FILE_PUBLIC_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD}`,
|
|
70
|
-
LIST: `${ROOT}/${CONTROLLERS.FILE_PUBLIC_CONTROLLER}`,
|
|
71
|
-
GET: (uuid: string) => `${ROOT}/${CONTROLLERS.FILE_PUBLIC_CONTROLLER}/${uuid}`,
|
|
72
|
-
},
|
|
73
|
-
TRANSACTION: {
|
|
74
|
-
WRITE_OFF: `${ROOT}/${CONTROLLERS.TRANSACTION_CONTROLLER}/${CONTROLLERS.TRANSACTION_ROUTES.WRITE_OFF}`,
|
|
75
|
-
},
|
|
76
|
-
} as const;
|
package/commands/auth/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { UserSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace LoginCommand {
|
|
5
|
-
export const RequestSchema = UserSchema.pick({
|
|
6
|
-
email: true,
|
|
7
|
-
password: true,
|
|
8
|
-
});
|
|
9
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
data: z.object({
|
|
13
|
-
accessToken: z.string(),
|
|
14
|
-
}),
|
|
15
|
-
});
|
|
16
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
-
}
|
|
18
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { UserSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace RegisterCommand {
|
|
5
|
-
export const RequestSchema = UserSchema.pick({
|
|
6
|
-
email: true,
|
|
7
|
-
password: true,
|
|
8
|
-
});
|
|
9
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
data: z.object({
|
|
13
|
-
accessToken: z.string(),
|
|
14
|
-
}),
|
|
15
|
-
});
|
|
16
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
17
|
-
}
|
|
18
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ImageGenerationJobRequestParamsSchema, ImageGenerationJobSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace ExecuteImageGenerationCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
modelId: z.string().uuid(),
|
|
7
|
-
prompt: z.string().min(1).max(4000),
|
|
8
|
-
presetId: z.string().uuid().nullable().optional(),
|
|
9
|
-
params: ImageGenerationJobRequestParamsSchema,
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
13
|
-
|
|
14
|
-
export const ResponseSchema = z.object({
|
|
15
|
-
data: ImageGenerationJobSchema,
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace ProxyImageGenerationCallbackCommand {
|
|
4
|
-
export const RequestSchema = z.object({
|
|
5
|
-
model: z.string(),
|
|
6
|
-
response: z
|
|
7
|
-
.object({
|
|
8
|
-
data: z.array(z.string()),
|
|
9
|
-
externalId: z.string(),
|
|
10
|
-
type: z.string(),
|
|
11
|
-
errorMsg: z.string().optional(),
|
|
12
|
-
})
|
|
13
|
-
.optional(),
|
|
14
|
-
});
|
|
15
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
16
|
-
|
|
17
|
-
export const ResponseSchema = z.object({
|
|
18
|
-
ok: z.boolean(),
|
|
19
|
-
});
|
|
20
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ImageGenerationJobRequestParamsSchema, ImageGenerationJobSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace RetryImageGenerationJobCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
prompt: z.string().min(1).max(4000).optional(),
|
|
7
|
-
modelId: z.string().uuid().optional(),
|
|
8
|
-
presetId: z.string().uuid().nullable().optional(),
|
|
9
|
-
params: ImageGenerationJobRequestParamsSchema.optional(),
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
13
|
-
|
|
14
|
-
export const ResponseSchema = z.object({
|
|
15
|
-
data: ImageGenerationJobSchema,
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { USER_REACTION } from '../../constants';
|
|
3
|
-
import { ImageGenerationJobSchema } from '../../models';
|
|
4
|
-
|
|
5
|
-
export namespace SetReactionToImageGenerationJobCommand {
|
|
6
|
-
export const RequestSchema = z
|
|
7
|
-
.object({
|
|
8
|
-
reaction: z.nativeEnum(USER_REACTION).nullable(),
|
|
9
|
-
dislikeReason: z.string().nullable().default(null),
|
|
10
|
-
})
|
|
11
|
-
.superRefine((data, ctx) => {
|
|
12
|
-
if (data.reaction !== USER_REACTION.DISLIKE && data.dislikeReason) {
|
|
13
|
-
ctx.addIssue({
|
|
14
|
-
code: z.ZodIssueCode.custom,
|
|
15
|
-
message: 'Dislike reason is not allowed when reaction is not dislike',
|
|
16
|
-
path: ['dislikeReason'],
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
22
|
-
|
|
23
|
-
export const ResponseSchema = z.object({
|
|
24
|
-
data: ImageGenerationJobSchema,
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
28
|
-
}
|
|
29
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ImageGenerationJobSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace UpdateImageGenerationJobTitleCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
title: z.string().min(1).max(200),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
data: ImageGenerationJobSchema,
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
16
|
-
}
|
|
17
|
-
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JsonValueSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace CloudPaymentsCheckCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
transactionId: z.union([z.string(), z.number()]).optional(),
|
|
7
|
-
amount: z.union([z.string(), z.number()]),
|
|
8
|
-
paymentAmount: z.union([z.string(), z.number()]),
|
|
9
|
-
currency: z.string(),
|
|
10
|
-
paymentCurrency: z.string(),
|
|
11
|
-
invoiceId: z.string().optional(),
|
|
12
|
-
accountId: z.string().optional(),
|
|
13
|
-
data: z.string().optional(),
|
|
14
|
-
});
|
|
15
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
16
|
-
|
|
17
|
-
export const ResponseSchema = z.object({
|
|
18
|
-
code: z.number(),
|
|
19
|
-
});
|
|
20
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export namespace CloudPaymentsPayCommand {
|
|
24
|
-
export const RequestSchema = z.object({
|
|
25
|
-
transactionId: z.number().optional(),
|
|
26
|
-
amount: z.number(),
|
|
27
|
-
currency: z.string().optional().default('RUB'),
|
|
28
|
-
paymentAmount: z.union([z.string(), z.number()]).optional(),
|
|
29
|
-
paymentCurrency: z.string().optional(),
|
|
30
|
-
invoiceId: z.string().optional(),
|
|
31
|
-
accountId: z.string(),
|
|
32
|
-
subscriptionId: z.string().optional(),
|
|
33
|
-
data: JsonValueSchema.optional(),
|
|
34
|
-
});
|
|
35
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
36
|
-
|
|
37
|
-
export const ResponseSchema = z.object({ code: z.number() });
|
|
38
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export namespace CloudPaymentsRecurrentCommand {
|
|
42
|
-
export const RequestSchema = z.object({
|
|
43
|
-
id: z.string(),
|
|
44
|
-
accountId: z.string(),
|
|
45
|
-
status: z.string(),
|
|
46
|
-
failedTransactionsNumber: z.number().optional(),
|
|
47
|
-
lastTransactionDate: z.string().optional(),
|
|
48
|
-
});
|
|
49
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
50
|
-
|
|
51
|
-
export const ResponseSchema = z.object({ code: z.number() });
|
|
52
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
53
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { CloudPaymentsWidgetSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace BuyProductCommand {
|
|
5
|
-
export const RequestParamSchema = z.object({
|
|
6
|
-
uuid: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
9
|
-
|
|
10
|
-
export const RequestSchema = z.object({
|
|
11
|
-
promocode: z.string().min(1).max(64).optional(),
|
|
12
|
-
});
|
|
13
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
14
|
-
|
|
15
|
-
export const ResponseSchema = z.object({
|
|
16
|
-
data: CloudPaymentsWidgetSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { CloudPaymentsWidgetSchema } from '../../models';
|
|
3
|
-
|
|
4
|
-
export namespace BuySubscriptionCommand {
|
|
5
|
-
export const RequestParamSchema = z.object({
|
|
6
|
-
uuid: z.string().uuid(),
|
|
7
|
-
});
|
|
8
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
9
|
-
|
|
10
|
-
export const RequestSchema = z.object({
|
|
11
|
-
promocode: z.string().min(1).max(64).optional(),
|
|
12
|
-
});
|
|
13
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
14
|
-
|
|
15
|
-
export const ResponseSchema = z.object({
|
|
16
|
-
data: CloudPaymentsWidgetSchema,
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { TRANSACTION_STATUS } from '../../constants';
|
|
3
|
-
|
|
4
|
-
export namespace WriteOffCommand {
|
|
5
|
-
export const RequestSchema = z.object({
|
|
6
|
-
sum: z.number().int().positive(),
|
|
7
|
-
description: z.string().min(1).max(500).default('Использование токенов'),
|
|
8
|
-
});
|
|
9
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
10
|
-
|
|
11
|
-
export const ResponseSchema = z.object({
|
|
12
|
-
data: z.object({
|
|
13
|
-
transactionId: z.string().uuid(),
|
|
14
|
-
status: z.nativeEnum(TRANSACTION_STATUS),
|
|
15
|
-
remainingSum: z.number().int(),
|
|
16
|
-
}),
|
|
17
|
-
});
|
|
18
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export namespace UpsertUnregisteredUserCommand {
|
|
4
|
-
export const RequestSchema = z.object({});
|
|
5
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
6
|
-
|
|
7
|
-
export const ResponseSchema = z.object({
|
|
8
|
-
data: z.object({
|
|
9
|
-
unregisteredUserId: z.string().uuid(),
|
|
10
|
-
accessToken: z.string(),
|
|
11
|
-
tokenBalance: z.number().int(),
|
|
12
|
-
expiresAt: z.coerce.date(),
|
|
13
|
-
}),
|
|
14
|
-
});
|
|
15
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
16
|
-
}
|
|
17
|
-
|