@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,308 +0,0 @@
|
|
|
1
|
-
export const ERRORS = {
|
|
2
|
-
UNKNOWN_ERROR: {
|
|
3
|
-
message: 'Неизвестная ошибка',
|
|
4
|
-
code: 'UNKNOWN_001',
|
|
5
|
-
httpCode: 500,
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
// TENANT
|
|
9
|
-
TENANT_MISSING_SITE_ID: {
|
|
10
|
-
message: 'Missing X-Site-Id header',
|
|
11
|
-
code: 'TENANT_001',
|
|
12
|
-
httpCode: 400,
|
|
13
|
-
},
|
|
14
|
-
TENANT_UNKNOWN_SITE_ID: {
|
|
15
|
-
message: 'Unknown siteId',
|
|
16
|
-
code: 'TENANT_002',
|
|
17
|
-
httpCode: 400,
|
|
18
|
-
},
|
|
19
|
-
TENANT_MISSING_JWT_SECRET: {
|
|
20
|
-
message: 'Missing JWT secret for site',
|
|
21
|
-
code: 'TENANT_003',
|
|
22
|
-
httpCode: 500,
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
// AUTH
|
|
26
|
-
AUTH_REGISTER_CONFLICT: {
|
|
27
|
-
message: 'Пользователь с этим email уже существует',
|
|
28
|
-
code: 'AUTH_001',
|
|
29
|
-
httpCode: 409,
|
|
30
|
-
},
|
|
31
|
-
AUTH_CREATE_USER_ERROR: {
|
|
32
|
-
message: 'Ошибка при создании пользователя',
|
|
33
|
-
code: 'AUTH_002',
|
|
34
|
-
httpCode: 500,
|
|
35
|
-
},
|
|
36
|
-
AUTH_LOGIN_ERROR: {
|
|
37
|
-
message: 'Неверный email или пароль',
|
|
38
|
-
code: 'AUTH_003',
|
|
39
|
-
httpCode: 401,
|
|
40
|
-
},
|
|
41
|
-
AUTH_ACCOUNT_NOT_ACTIVE: {
|
|
42
|
-
message: 'Аккаунт не активен',
|
|
43
|
-
code: 'AUTH_004',
|
|
44
|
-
httpCode: 401,
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
// USER
|
|
48
|
-
USER_NOT_FOUND: {
|
|
49
|
-
message: 'Пользователь не найден',
|
|
50
|
-
code: 'USER_001',
|
|
51
|
-
httpCode: 404,
|
|
52
|
-
},
|
|
53
|
-
USER_NOT_ID: {
|
|
54
|
-
message: 'Пользователь не найден по ID',
|
|
55
|
-
code: 'USER_002',
|
|
56
|
-
httpCode: 404,
|
|
57
|
-
},
|
|
58
|
-
USER_NOT_EMAIL: {
|
|
59
|
-
message: 'Пользователь не найден по email',
|
|
60
|
-
code: 'USER_003',
|
|
61
|
-
httpCode: 404,
|
|
62
|
-
},
|
|
63
|
-
USER_NOT_CREATED: {
|
|
64
|
-
message: 'Ошибка при создании пользователя',
|
|
65
|
-
code: 'USER_004',
|
|
66
|
-
httpCode: 500,
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
// UNREGISTERED USER
|
|
70
|
-
UNREGISTERED_USER_NOT_FOUND: {
|
|
71
|
-
message: 'Пользователь не найден',
|
|
72
|
-
code: 'UNREGISTERED_USER_001',
|
|
73
|
-
httpCode: 404,
|
|
74
|
-
},
|
|
75
|
-
UNREGISTERED_USER_SESSION_LIMIT: {
|
|
76
|
-
message: 'Слишком много активных сессий',
|
|
77
|
-
code: 'UNREGISTERED_USER_002',
|
|
78
|
-
httpCode: 429,
|
|
79
|
-
},
|
|
80
|
-
UNREGISTERED_USER_CREATE_ERROR: {
|
|
81
|
-
message: 'Ошибка при создании пользователя',
|
|
82
|
-
code: 'UNREGISTERED_USER_003',
|
|
83
|
-
httpCode: 500,
|
|
84
|
-
},
|
|
85
|
-
UNREGISTERED_USER_UPDATE_ERROR: {
|
|
86
|
-
message: 'Ошибка при обновлении пользователя',
|
|
87
|
-
code: 'UNREGISTERED_USER_004',
|
|
88
|
-
httpCode: 500,
|
|
89
|
-
},
|
|
90
|
-
UNREGISTERED_USER_FIND_ERROR: {
|
|
91
|
-
message: 'Ошибка при поиске пользователя',
|
|
92
|
-
code: 'UNREGISTERED_USER_005',
|
|
93
|
-
httpCode: 500,
|
|
94
|
-
},
|
|
95
|
-
UNREGISTERED_USER_DELETE_ERROR: {
|
|
96
|
-
message: 'Ошибка при удалении пользователя',
|
|
97
|
-
code: 'UNREGISTERED_USER_006',
|
|
98
|
-
httpCode: 500,
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
// PRODUCT
|
|
102
|
-
PRODUCT_NOT_FOUND: {
|
|
103
|
-
message: 'Продукт не найден',
|
|
104
|
-
code: 'PRODUCT_001',
|
|
105
|
-
httpCode: 404,
|
|
106
|
-
},
|
|
107
|
-
PRODUCT_FIND_ERROR: {
|
|
108
|
-
message: 'Ошибка при поиске продуктов',
|
|
109
|
-
code: 'PRODUCT_002',
|
|
110
|
-
httpCode: 500,
|
|
111
|
-
},
|
|
112
|
-
PRODUCT_CREATE_ERROR: {
|
|
113
|
-
message: 'Ошибка при создании продукта',
|
|
114
|
-
code: 'PRODUCT_003',
|
|
115
|
-
httpCode: 500,
|
|
116
|
-
},
|
|
117
|
-
PRODUCT_BUY_ERROR: {
|
|
118
|
-
message: 'Ошибка при покупке продукта',
|
|
119
|
-
code: 'PRODUCT_004',
|
|
120
|
-
httpCode: 500,
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
// SUBSCRIPTION
|
|
124
|
-
SUBSCRIPTION_NOT_FOUND: {
|
|
125
|
-
message: 'Подписка не найдена',
|
|
126
|
-
code: 'SUBSCRIPTION_001',
|
|
127
|
-
httpCode: 404,
|
|
128
|
-
},
|
|
129
|
-
SUBSCRIPTION_FIND_ERROR: {
|
|
130
|
-
message: 'Ошибка при поиске подписок',
|
|
131
|
-
code: 'SUBSCRIPTION_002',
|
|
132
|
-
httpCode: 500,
|
|
133
|
-
},
|
|
134
|
-
SUBSCRIPTION_CREATE_ERROR: {
|
|
135
|
-
message: 'Ошибка при создании подписки',
|
|
136
|
-
code: 'SUBSCRIPTION_003',
|
|
137
|
-
httpCode: 500,
|
|
138
|
-
},
|
|
139
|
-
SUBSCRIPTION_BUY_ERROR: {
|
|
140
|
-
message: 'Ошибка при покупке подписки',
|
|
141
|
-
code: 'SUBSCRIPTION_004',
|
|
142
|
-
httpCode: 500,
|
|
143
|
-
},
|
|
144
|
-
SUBSCRIPTION_ALREADY_ACTIVE: {
|
|
145
|
-
message: 'У пользователя уже есть активная подписка',
|
|
146
|
-
code: 'SUBSCRIPTION_005',
|
|
147
|
-
httpCode: 409,
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
// ORDER
|
|
151
|
-
ORDER_NOT_FOUND: {
|
|
152
|
-
message: 'Заказ не найден',
|
|
153
|
-
code: 'ORDER_001',
|
|
154
|
-
httpCode: 404,
|
|
155
|
-
},
|
|
156
|
-
ORDER_CREATE_ERROR: {
|
|
157
|
-
message: 'Ошибка при создании заказа',
|
|
158
|
-
code: 'ORDER_002',
|
|
159
|
-
httpCode: 500,
|
|
160
|
-
},
|
|
161
|
-
ORDER_RECEIPT_ERROR: {
|
|
162
|
-
message: 'Ошибка при формировании чека',
|
|
163
|
-
code: 'ORDER_003',
|
|
164
|
-
httpCode: 500,
|
|
165
|
-
},
|
|
166
|
-
ORDER_UPDATE_ERROR: {
|
|
167
|
-
message: 'Ошибка при обновлении заказа',
|
|
168
|
-
code: 'ORDER_004',
|
|
169
|
-
httpCode: 500,
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
// PAYMENT
|
|
173
|
-
PAYMENT_HISTORY_ERROR: {
|
|
174
|
-
message: 'Ошибка при получении истории оплат',
|
|
175
|
-
code: 'PAYMENT_001',
|
|
176
|
-
httpCode: 500,
|
|
177
|
-
},
|
|
178
|
-
PAYMENT_PROCESS_ERROR: {
|
|
179
|
-
message: 'Ошибка при обработке платежа',
|
|
180
|
-
code: 'PAYMENT_002',
|
|
181
|
-
httpCode: 500,
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
// TRANSACTION
|
|
185
|
-
TRANSACTION_WRITE_OFF_ERROR: {
|
|
186
|
-
message: 'Ошибка при списании токенов',
|
|
187
|
-
code: 'TRANSACTION_001',
|
|
188
|
-
httpCode: 500,
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
// S3
|
|
192
|
-
S3_GET_FILE_STREAM_ERROR: {
|
|
193
|
-
message: 'Ошибка при получении потока файла',
|
|
194
|
-
code: 'S3_001',
|
|
195
|
-
httpCode: 500,
|
|
196
|
-
},
|
|
197
|
-
S3_UPLOAD_STREAM_ERROR: {
|
|
198
|
-
message: 'Ошибка при загрузке потока файла',
|
|
199
|
-
code: 'S3_002',
|
|
200
|
-
httpCode: 500,
|
|
201
|
-
},
|
|
202
|
-
S3_UPLOAD_ERROR: {
|
|
203
|
-
message: 'Ошибка при загрузке файла',
|
|
204
|
-
code: 'S3_003',
|
|
205
|
-
httpCode: 500,
|
|
206
|
-
},
|
|
207
|
-
S3_DELETE_OBJECTS_ERROR: {
|
|
208
|
-
message: 'Ошибка при удалении файлов',
|
|
209
|
-
code: 'S3_004',
|
|
210
|
-
httpCode: 500,
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
// IMAGE GENERATION
|
|
214
|
-
IMAGE_GENERATION_MODEL_NOT_FOUND: {
|
|
215
|
-
message: 'Модель генерации изображений не найдена',
|
|
216
|
-
code: 'IMAGE_GENERATION_001',
|
|
217
|
-
httpCode: 404,
|
|
218
|
-
},
|
|
219
|
-
IMAGE_GENERATION_MODEL_INACTIVE: {
|
|
220
|
-
message: 'Модель генерации изображений недоступна',
|
|
221
|
-
code: 'IMAGE_GENERATION_002',
|
|
222
|
-
httpCode: 400,
|
|
223
|
-
},
|
|
224
|
-
IMAGE_GENERATION_MODEL_NOT_AVAILABLE: {
|
|
225
|
-
message: 'Модель недоступна по вашей подписке',
|
|
226
|
-
code: 'IMAGE_GENERATION_009',
|
|
227
|
-
httpCode: 403,
|
|
228
|
-
},
|
|
229
|
-
IMAGE_GENERATION_NOT_ENOUGH_TOKENS: {
|
|
230
|
-
message: 'Недостаточно токенов',
|
|
231
|
-
code: 'IMAGE_GENERATION_003',
|
|
232
|
-
httpCode: 402,
|
|
233
|
-
},
|
|
234
|
-
IMAGE_GENERATION_JOB_NOT_FOUND: {
|
|
235
|
-
message: 'Задача генерации изображений не найдена',
|
|
236
|
-
code: 'IMAGE_GENERATION_004',
|
|
237
|
-
httpCode: 404,
|
|
238
|
-
},
|
|
239
|
-
IMAGE_GENERATION_JOB_NOT_IN_FAILED_STATE_TO_RETRY: {
|
|
240
|
-
message: 'Задача не в статусе FAILED',
|
|
241
|
-
code: 'IMAGE_GENERATION_008',
|
|
242
|
-
httpCode: 400,
|
|
243
|
-
},
|
|
244
|
-
IMAGE_GENERATION_CALLBACK_UNAUTHORIZED: {
|
|
245
|
-
message: 'Неверный токен коллбека',
|
|
246
|
-
code: 'IMAGE_GENERATION_005',
|
|
247
|
-
httpCode: 401,
|
|
248
|
-
},
|
|
249
|
-
IMAGE_GENERATION_PROXY_ERROR: {
|
|
250
|
-
message: 'Ошибка при запросе к AI proxy',
|
|
251
|
-
code: 'IMAGE_GENERATION_006',
|
|
252
|
-
httpCode: 500,
|
|
253
|
-
},
|
|
254
|
-
IMAGE_GENERATION_UPLOAD_ERROR: {
|
|
255
|
-
message: 'Ошибка при загрузке изображений',
|
|
256
|
-
code: 'IMAGE_GENERATION_007',
|
|
257
|
-
httpCode: 500,
|
|
258
|
-
},
|
|
259
|
-
IMAGE_GENERATION_CONFIG_BUILD_ERROR: {
|
|
260
|
-
message: 'Ошибка при формировании конфига',
|
|
261
|
-
code: 'IMAGE_GENERATION_010',
|
|
262
|
-
httpCode: 500,
|
|
263
|
-
},
|
|
264
|
-
IMAGE_GENERATION_VENDOR_FIND_ERROR: {
|
|
265
|
-
message: 'Ошибка при получении вендоров',
|
|
266
|
-
code: 'IMAGE_GENERATION_011',
|
|
267
|
-
httpCode: 500,
|
|
268
|
-
},
|
|
269
|
-
IMAGE_GENERATION_MODEL_FIND_ERROR: {
|
|
270
|
-
message: 'Ошибка при получении моделей',
|
|
271
|
-
code: 'IMAGE_GENERATION_012',
|
|
272
|
-
httpCode: 500,
|
|
273
|
-
},
|
|
274
|
-
IMAGE_GENERATION_PRESET_FIND_ERROR: {
|
|
275
|
-
message: 'Ошибка при получении пресетов',
|
|
276
|
-
code: 'IMAGE_GENERATION_013',
|
|
277
|
-
httpCode: 500,
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
// FILES
|
|
281
|
-
FILE_NOT_FOUND: {
|
|
282
|
-
message: 'Файл не найден',
|
|
283
|
-
code: 'FILE_001',
|
|
284
|
-
httpCode: 404,
|
|
285
|
-
},
|
|
286
|
-
FILE_TYPE_NOT_SUPPORTED: {
|
|
287
|
-
message: 'Тип файла не поддерживается',
|
|
288
|
-
code: 'FILE_002',
|
|
289
|
-
httpCode: 400,
|
|
290
|
-
},
|
|
291
|
-
FILE_UPLOAD_ERROR: {
|
|
292
|
-
message: 'Ошибка при загрузке файла',
|
|
293
|
-
code: 'FILE_003',
|
|
294
|
-
httpCode: 500,
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
// PROMPT MODERATION
|
|
298
|
-
PROMPT_MODERATION_ERROR: {
|
|
299
|
-
message: 'Ошибка при проверке запроса',
|
|
300
|
-
code: 'MODERATION_001',
|
|
301
|
-
httpCode: 500,
|
|
302
|
-
},
|
|
303
|
-
PROMPT_MODERATION_NOT_COMPLIANT: {
|
|
304
|
-
message: 'Запрос был отклонен модерацией',
|
|
305
|
-
code: 'MODERATION_002',
|
|
306
|
-
httpCode: 400,
|
|
307
|
-
},
|
|
308
|
-
} as const;
|
package/constants/files/index.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export enum IMAGE_GENERATION_MODEL_STRATEGY {
|
|
2
|
-
DEFAULT = 'default',
|
|
3
|
-
|
|
4
|
-
KIE_Z_IMAGE_GENERATION = 'KIE_Z_IMAGE_GENERATION',
|
|
5
|
-
FLUX_IMAGE_GENERATION = 'FLUX_IMAGE_GENERATION',
|
|
6
|
-
FLUX_DEV_IMAGE_GENERATION = 'FLUX_DEV_IMAGE_GENERATION',
|
|
7
|
-
GROK_IMAGE_GENERATION = 'GROK_IMAGE_GENERATION',
|
|
8
|
-
IMAGEN_IMAGE_GENERATION = 'IMAGEN_IMAGE_GENERATION',
|
|
9
|
-
DALLE_IMAGE_GENERATION = 'DALLE_IMAGE_GENERATION',
|
|
10
|
-
MIDJOURNEY_IMAGE_GENERATION = 'MIDJOURNEY_IMAGE_GENERATION',
|
|
11
|
-
OPENAI_IMAGE_1_GENERATION = 'OPENAI_IMAGE_1_GENERATION',
|
|
12
|
-
NANO_BANANA_IMAGE_GENERATION = 'NANO_BANANA_IMAGE_GENERATION',
|
|
13
|
-
KIE_FLUX_IMAGE_GENERATION = 'KIE_FLUX_IMAGE_GENERATION',
|
|
14
|
-
KIE_SEEDREAM_IMAGE_GENERATION = 'KIE_SEEDREAM_IMAGE_GENERATION',
|
|
15
|
-
}
|
package/constants/order/index.ts
DELETED
package/constants/tools/index.ts
DELETED
package/constants/user/index.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ReceiptSchema } from './common';
|
|
3
|
-
|
|
4
|
-
export const CloudPaymentsRecurrentDataSchema = z.object({
|
|
5
|
-
period: z.number().int().positive(),
|
|
6
|
-
interval: z.literal('Month'),
|
|
7
|
-
customerReceipt: ReceiptSchema,
|
|
8
|
-
amount: z.number().nonnegative(),
|
|
9
|
-
});
|
|
10
|
-
export type CloudPaymentsRecurrentData = z.infer<typeof CloudPaymentsRecurrentDataSchema>;
|
|
11
|
-
|
|
12
|
-
export const CloudPaymentsWidgetDataSchema = z.object({
|
|
13
|
-
CloudPayments: z.object({
|
|
14
|
-
CustomerReceipt: ReceiptSchema,
|
|
15
|
-
recurrent: CloudPaymentsRecurrentDataSchema.optional(),
|
|
16
|
-
}),
|
|
17
|
-
});
|
|
18
|
-
export type CloudPaymentsWidgetData = z.infer<typeof CloudPaymentsWidgetDataSchema>;
|
|
19
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { CloudPaymentsWidgetDataSchema } from './cloud-payments-widget-data.schema';
|
|
3
|
-
|
|
4
|
-
export const CloudPaymentsWidgetSchema = z.object({
|
|
5
|
-
publicId: z.string(),
|
|
6
|
-
amount: z.number(),
|
|
7
|
-
currency: z.string(),
|
|
8
|
-
accountId: z.string(),
|
|
9
|
-
description: z.string(),
|
|
10
|
-
invoiceId: z.string(),
|
|
11
|
-
email: z.string().email(),
|
|
12
|
-
skin: z.string(),
|
|
13
|
-
autoClose: z.number(),
|
|
14
|
-
data: CloudPaymentsWidgetDataSchema,
|
|
15
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FILE_TYPE } from '../../constants';
|
|
3
|
-
|
|
4
|
-
export const AttachedFileSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
url: z.string().url(),
|
|
7
|
-
name: z.string(),
|
|
8
|
-
mimeType: z.string(),
|
|
9
|
-
type: z.nativeEnum(FILE_TYPE),
|
|
10
|
-
size: z.number().int().nonnegative(),
|
|
11
|
-
duration: z.number().optional().nullable(),
|
|
12
|
-
});
|
|
13
|
-
export type AttachedFile = z.infer<typeof AttachedFileSchema>;
|
|
14
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const IconVariantSchema = z.object({
|
|
4
|
-
png: z.string().url().optional(),
|
|
5
|
-
svg: z.string().url().optional(),
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export const IconVariantsSchema = z.object({
|
|
9
|
-
light: IconVariantSchema,
|
|
10
|
-
dark: IconVariantSchema,
|
|
11
|
-
});
|
|
12
|
-
export type IconVariants = z.infer<typeof IconVariantsSchema>;
|
|
13
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export type JsonPrimitive = string | number | boolean | null;
|
|
4
|
-
export type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue };
|
|
5
|
-
|
|
6
|
-
export const JsonPrimitiveSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
7
|
-
|
|
8
|
-
export const JsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>
|
|
9
|
-
z.union([JsonPrimitiveSchema, z.array(JsonValueSchema), z.record(JsonValueSchema)]),
|
|
10
|
-
);
|
|
11
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const ReceiptItemSchema = z.object({
|
|
4
|
-
label: z.string().min(1),
|
|
5
|
-
price: z.number().nonnegative(),
|
|
6
|
-
quantity: z.number().int().positive(),
|
|
7
|
-
amount: z.number().nonnegative(),
|
|
8
|
-
vat: z.number().int().nonnegative(),
|
|
9
|
-
});
|
|
10
|
-
export type ReceiptItem = z.infer<typeof ReceiptItemSchema>;
|
|
11
|
-
|
|
12
|
-
export const ReceiptSchema = z.object({
|
|
13
|
-
items: z.array(ReceiptItemSchema),
|
|
14
|
-
taxationSystem: z.number().int().nonnegative(),
|
|
15
|
-
email: z.string().email(),
|
|
16
|
-
isBso: z.boolean(),
|
|
17
|
-
amounts: z.object({ electronic: z.number().nonnegative() }),
|
|
18
|
-
});
|
|
19
|
-
export type Receipt = z.infer<typeof ReceiptSchema>;
|
|
20
|
-
|
package/models/file.schema.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FILE_TYPE } from '../constants';
|
|
3
|
-
|
|
4
|
-
export const FileSchema = z.object({
|
|
5
|
-
uuid: z.string().uuid(),
|
|
6
|
-
name: z.string(),
|
|
7
|
-
key: z.string(),
|
|
8
|
-
url: z.string().url(),
|
|
9
|
-
mimeType: z.string(),
|
|
10
|
-
size: z.number().int().nonnegative(),
|
|
11
|
-
type: z.nativeEnum(FILE_TYPE),
|
|
12
|
-
createdAt: z.string().datetime().or(z.date()).optional(),
|
|
13
|
-
});
|
|
14
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ImageGenerationVendorSchema } from './image-generation-vendor.schema';
|
|
3
|
-
import { ImageGenerationPresetSchema } from './image-generation-preset.schema';
|
|
4
|
-
|
|
5
|
-
export const ImageGenerationConfigSchema = z.object({
|
|
6
|
-
vendors: z.array(ImageGenerationVendorSchema),
|
|
7
|
-
presets: z.array(ImageGenerationPresetSchema),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export type ImageGenerationConfig = z.infer<typeof ImageGenerationConfigSchema>;
|
|
11
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { JOB_STATUS } from '../../constants';
|
|
3
|
-
|
|
4
|
-
export const ImageGenerationJobAttemptSchema = z.object({
|
|
5
|
-
order: z.number().int().positive(),
|
|
6
|
-
status: z.nativeEnum(JOB_STATUS),
|
|
7
|
-
error: z.string().nullable(),
|
|
8
|
-
timestamp: z.string().datetime().or(z.date()),
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export type ImageGenerationJobAttempt = z.infer<typeof ImageGenerationJobAttemptSchema>;
|
|
12
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { AttachedFileSchema } from '../common';
|
|
3
|
-
import { IMAGE_GENERATION_RESOLUTION } from '../../constants';
|
|
4
|
-
|
|
5
|
-
export const ImageGenerationJobParamsSchema = z.object({
|
|
6
|
-
aspectRatio: z.string().min(1),
|
|
7
|
-
attachedFiles: z.array(AttachedFileSchema).optional().default([]),
|
|
8
|
-
enhancePrompt: z.boolean().optional().default(false),
|
|
9
|
-
resolution: z.nativeEnum(IMAGE_GENERATION_RESOLUTION).optional(),
|
|
10
|
-
});
|
|
11
|
-
export type ImageGenerationJobParams = z.infer<typeof ImageGenerationJobParamsSchema>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { IMAGE_GENERATION_RESOLUTION } from '../../constants';
|
|
3
|
-
|
|
4
|
-
export const ImageGenerationJobRequestParamsSchema = z.object({
|
|
5
|
-
aspectRatio: z.string().min(1),
|
|
6
|
-
attachedFiles: z.array(z.string().uuid()).optional().default([]),
|
|
7
|
-
enhancePrompt: z.boolean().optional().default(false),
|
|
8
|
-
resolution: z.nativeEnum(IMAGE_GENERATION_RESOLUTION).optional(),
|
|
9
|
-
});
|
|
10
|
-
export type ImageGenerationJobRequestParams = z.infer<typeof ImageGenerationJobRequestParamsSchema>;
|
|
11
|
-
|