@ai-grator/api 0.0.1
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/_common/error.contract.ts +21 -0
- package/_common/http-contract.helper.ts +25 -0
- package/_common/index.ts +4 -0
- package/_common/success.contract.ts +9 -0
- package/_common/types/cursor-pagination.type.ts +9 -0
- package/_common/types/icon.type.ts +8 -0
- package/_common/types/index.ts +2 -0
- package/admin/endpoints/admin.ts +13 -0
- package/admin/endpoints/commands/create-admin-partner-bonus-operation.command.ts +45 -0
- package/admin/endpoints/commands/index.ts +3 -0
- package/admin/endpoints/commands/update-admin-partner-referral-config.command.ts +48 -0
- package/admin/endpoints/commands/update-admin-referral-config.command.ts +39 -0
- package/admin/endpoints/index.ts +3 -0
- package/admin/endpoints/queries/get-admin-partner-bonus-operations.query.ts +39 -0
- package/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.ts +37 -0
- package/admin/endpoints/queries/get-admin-partner-referral-config.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-partner-referrals.query.ts +37 -0
- package/admin/endpoints/queries/get-admin-partner.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-partners.query.ts +36 -0
- package/admin/endpoints/queries/get-admin-referral-config.query.ts +17 -0
- package/admin/endpoints/queries/index.ts +7 -0
- package/admin/enums/admin-bonus-history-operation-type.enum.ts +6 -0
- package/admin/enums/admin-bonus-operation-type.enum.ts +4 -0
- package/admin/enums/admin-partner-rates-type.enum.ts +4 -0
- package/admin/enums/index.ts +3 -0
- package/admin/index.ts +3 -0
- package/admin/models/admin-bonus-operation-response.schema.ts +16 -0
- package/admin/models/admin-partner-bonus-operation-response.schema.ts +13 -0
- package/admin/models/admin-partner-details-response.schema.ts +17 -0
- package/admin/models/admin-partner-l2-bonus-response.schema.ts +11 -0
- package/admin/models/admin-partner-referral-config-response.schema.ts +13 -0
- package/admin/models/admin-partner-referral-response.schema.ts +13 -0
- package/admin/models/admin-partner-response.schema.ts +18 -0
- package/admin/models/admin-referral-config-response.schema.ts +8 -0
- package/admin/models/index.ts +8 -0
- package/ai-model/endpoints/ai-model.ts +6 -0
- package/ai-model/endpoints/index.ts +2 -0
- package/ai-model/endpoints/queries/get-ai-model-by-uuid.query.ts +24 -0
- package/ai-model/endpoints/queries/get-ai-models.query.ts +23 -0
- package/ai-model/endpoints/queries/index.ts +2 -0
- package/ai-model/index.ts +2 -0
- package/ai-model/models/ai-model-response.schema.ts +34 -0
- package/ai-model/models/index.ts +1 -0
- package/article/endpoints/article.ts +17 -0
- package/article/endpoints/commands/create-article.command.ts +38 -0
- package/article/endpoints/commands/delete-article.command.ts +25 -0
- package/article/endpoints/commands/index.ts +4 -0
- package/article/endpoints/commands/publish-article.command.ts +26 -0
- package/article/endpoints/commands/update-article.command.ts +49 -0
- package/article/endpoints/index.ts +3 -0
- package/article/endpoints/queries/get-article-by-uuid.query.ts +26 -0
- package/article/endpoints/queries/get-articles.query.ts +27 -0
- package/article/endpoints/queries/get-published-by-slug.query.ts +24 -0
- package/article/endpoints/queries/index.ts +4 -0
- package/article/endpoints/queries/list-published.query.ts +28 -0
- package/article/enums/article-status.enum.ts +4 -0
- package/article/enums/index.ts +1 -0
- package/article/index.ts +3 -0
- package/article/models/article-content.schema.ts +13 -0
- package/article/models/article-response.schema.ts +21 -0
- package/article/models/index.ts +4 -0
- package/article/models/published-article-card.schema.ts +19 -0
- package/article/models/published-article-detail.schema.ts +22 -0
- package/auth/endpoints/auth.ts +14 -0
- package/auth/endpoints/commands/change-password.command.ts +28 -0
- package/auth/endpoints/commands/delete-account.command.ts +17 -0
- package/auth/endpoints/commands/index.ts +10 -0
- package/auth/endpoints/commands/login.command.ts +29 -0
- package/auth/endpoints/commands/logout.command.ts +16 -0
- package/auth/endpoints/commands/refresh.command.ts +19 -0
- package/auth/endpoints/commands/register.command.ts +35 -0
- package/auth/endpoints/commands/reset-password.command.ts +25 -0
- package/auth/endpoints/commands/restore-password.command.ts +26 -0
- package/auth/endpoints/commands/verify-email-retry.command.ts +28 -0
- package/auth/endpoints/commands/verify-email.command.ts +28 -0
- package/auth/endpoints/index.ts +2 -0
- package/auth/index.ts +1 -0
- package/build/_common/error.contract.d.ts +13 -0
- package/build/_common/error.contract.d.ts.map +1 -0
- package/build/_common/error.contract.js +17 -0
- package/build/_common/http-contract.helper.d.ts +21 -0
- package/build/_common/http-contract.helper.d.ts.map +1 -0
- package/build/_common/http-contract.helper.js +15 -0
- package/build/_common/index.d.ts +5 -0
- package/build/_common/index.d.ts.map +1 -0
- package/build/_common/index.js +20 -0
- package/build/_common/success.contract.d.ts +6 -0
- package/build/_common/success.contract.d.ts.map +1 -0
- package/build/_common/success.contract.js +7 -0
- package/build/_common/types/cursor-pagination.type.d.ts +7 -0
- package/build/_common/types/cursor-pagination.type.d.ts.map +1 -0
- package/build/_common/types/cursor-pagination.type.js +10 -0
- package/build/_common/types/icon.type.d.ts +7 -0
- package/build/_common/types/icon.type.d.ts.map +1 -0
- package/build/_common/types/icon.type.js +8 -0
- package/build/_common/types/index.d.ts +3 -0
- package/build/_common/types/index.d.ts.map +1 -0
- package/build/_common/types/index.js +18 -0
- package/build/admin/endpoints/admin.d.ts +13 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -0
- package/build/admin/endpoints/admin.js +15 -0
- package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.d.ts +59 -0
- package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.js +34 -0
- package/build/admin/endpoints/commands/index.d.ts +4 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -0
- package/build/admin/endpoints/commands/index.js +19 -0
- package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.d.ts +93 -0
- package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.js +37 -0
- package/build/admin/endpoints/commands/update-admin-referral-config.command.d.ts +58 -0
- package/build/admin/endpoints/commands/update-admin-referral-config.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-referral-config.command.js +36 -0
- package/build/admin/endpoints/index.d.ts +4 -0
- package/build/admin/endpoints/index.d.ts.map +1 -0
- package/build/admin/endpoints/index.js +19 -0
- package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.d.ts +57 -0
- package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.js +32 -0
- package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.d.ts +55 -0
- package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.js +32 -0
- package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.d.ts +74 -0
- package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-partner-referrals.query.d.ts +59 -0
- package/build/admin/endpoints/queries/get-admin-partner-referrals.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-referrals.query.js +32 -0
- package/build/admin/endpoints/queries/get-admin-partner.query.d.ts +46 -0
- package/build/admin/endpoints/queries/get-admin-partner.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-partners.query.d.ts +65 -0
- package/build/admin/endpoints/queries/get-admin-partners.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partners.query.js +33 -0
- package/build/admin/endpoints/queries/get-admin-referral-config.query.d.ts +34 -0
- package/build/admin/endpoints/queries/get-admin-referral-config.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-referral-config.query.js +18 -0
- package/build/admin/endpoints/queries/index.d.ts +8 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -0
- package/build/admin/endpoints/queries/index.js +23 -0
- package/build/admin/enums/admin-bonus-history-operation-type.enum.d.ts +7 -0
- package/build/admin/enums/admin-bonus-history-operation-type.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-bonus-history-operation-type.enum.js +10 -0
- package/build/admin/enums/admin-bonus-operation-type.enum.d.ts +5 -0
- package/build/admin/enums/admin-bonus-operation-type.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-bonus-operation-type.enum.js +8 -0
- package/build/admin/enums/admin-partner-rates-type.enum.d.ts +5 -0
- package/build/admin/enums/admin-partner-rates-type.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-partner-rates-type.enum.js +8 -0
- package/build/admin/enums/index.d.ts +4 -0
- package/build/admin/enums/index.d.ts.map +1 -0
- package/build/admin/enums/index.js +19 -0
- package/build/admin/index.d.ts +4 -0
- package/build/admin/index.d.ts.map +1 -0
- package/build/admin/index.js +19 -0
- package/build/admin/models/admin-bonus-operation-response.schema.d.ts +15 -0
- package/build/admin/models/admin-bonus-operation-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-bonus-operation-response.schema.js +16 -0
- package/build/admin/models/admin-partner-bonus-operation-response.schema.d.ts +12 -0
- package/build/admin/models/admin-partner-bonus-operation-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-bonus-operation-response.schema.js +13 -0
- package/build/admin/models/admin-partner-details-response.schema.d.ts +16 -0
- package/build/admin/models/admin-partner-details-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-details-response.schema.js +17 -0
- package/build/admin/models/admin-partner-l2-bonus-response.schema.d.ts +10 -0
- package/build/admin/models/admin-partner-l2-bonus-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-l2-bonus-response.schema.js +11 -0
- package/build/admin/models/admin-partner-referral-config-response.schema.d.ts +29 -0
- package/build/admin/models/admin-partner-referral-config-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-referral-config-response.schema.js +13 -0
- package/build/admin/models/admin-partner-referral-response.schema.d.ts +12 -0
- package/build/admin/models/admin-partner-referral-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-referral-response.schema.js +13 -0
- package/build/admin/models/admin-partner-response.schema.d.ts +17 -0
- package/build/admin/models/admin-partner-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-response.schema.js +18 -0
- package/build/admin/models/admin-referral-config-response.schema.d.ts +14 -0
- package/build/admin/models/admin-referral-config-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-referral-config-response.schema.js +8 -0
- package/build/admin/models/index.d.ts +9 -0
- package/build/admin/models/index.d.ts.map +1 -0
- package/build/admin/models/index.js +24 -0
- package/build/ai-model/endpoints/ai-model.d.ts +6 -0
- package/build/ai-model/endpoints/ai-model.d.ts.map +1 -0
- package/build/ai-model/endpoints/ai-model.js +8 -0
- package/build/ai-model/endpoints/index.d.ts +3 -0
- package/build/ai-model/endpoints/index.d.ts.map +1 -0
- package/build/ai-model/endpoints/index.js +18 -0
- package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.d.ts +68 -0
- package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.d.ts.map +1 -0
- package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.js +24 -0
- package/build/ai-model/endpoints/queries/get-ai-models.query.d.ts +69 -0
- package/build/ai-model/endpoints/queries/get-ai-models.query.d.ts.map +1 -0
- package/build/ai-model/endpoints/queries/get-ai-models.query.js +22 -0
- package/build/ai-model/endpoints/queries/index.d.ts +3 -0
- package/build/ai-model/endpoints/queries/index.d.ts.map +1 -0
- package/build/ai-model/endpoints/queries/index.js +18 -0
- package/build/ai-model/index.d.ts +3 -0
- package/build/ai-model/index.d.ts.map +1 -0
- package/build/ai-model/index.js +18 -0
- package/build/ai-model/models/ai-model-response.schema.d.ts +38 -0
- package/build/ai-model/models/ai-model-response.schema.d.ts.map +1 -0
- package/build/ai-model/models/ai-model-response.schema.js +32 -0
- package/build/ai-model/models/index.d.ts +2 -0
- package/build/ai-model/models/index.d.ts.map +1 -0
- package/build/ai-model/models/index.js +17 -0
- package/build/article/endpoints/article.d.ts +15 -0
- package/build/article/endpoints/article.d.ts.map +1 -0
- package/build/article/endpoints/article.js +17 -0
- package/build/article/endpoints/commands/create-article.command.d.ts +89 -0
- package/build/article/endpoints/commands/create-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/create-article.command.js +38 -0
- package/build/article/endpoints/commands/delete-article.command.d.ts +24 -0
- package/build/article/endpoints/commands/delete-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/delete-article.command.js +25 -0
- package/build/article/endpoints/commands/index.d.ts +5 -0
- package/build/article/endpoints/commands/index.d.ts.map +1 -0
- package/build/article/endpoints/commands/index.js +20 -0
- package/build/article/endpoints/commands/publish-article.command.d.ts +64 -0
- package/build/article/endpoints/commands/publish-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/publish-article.command.js +26 -0
- package/build/article/endpoints/commands/update-article.command.d.ts +96 -0
- package/build/article/endpoints/commands/update-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/update-article.command.js +48 -0
- package/build/article/endpoints/index.d.ts +4 -0
- package/build/article/endpoints/index.d.ts.map +1 -0
- package/build/article/endpoints/index.js +19 -0
- package/build/article/endpoints/queries/get-article-by-uuid.query.d.ts +64 -0
- package/build/article/endpoints/queries/get-article-by-uuid.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/get-article-by-uuid.query.js +26 -0
- package/build/article/endpoints/queries/get-articles.query.d.ts +73 -0
- package/build/article/endpoints/queries/get-articles.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/get-articles.query.js +27 -0
- package/build/article/endpoints/queries/get-published-by-slug.query.d.ts +68 -0
- package/build/article/endpoints/queries/get-published-by-slug.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/get-published-by-slug.query.js +24 -0
- package/build/article/endpoints/queries/index.d.ts +5 -0
- package/build/article/endpoints/queries/index.d.ts.map +1 -0
- package/build/article/endpoints/queries/index.js +20 -0
- package/build/article/endpoints/queries/list-published.query.d.ts +59 -0
- package/build/article/endpoints/queries/list-published.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/list-published.query.js +28 -0
- package/build/article/enums/article-status.enum.d.ts +5 -0
- package/build/article/enums/article-status.enum.d.ts.map +1 -0
- package/build/article/enums/article-status.enum.js +8 -0
- package/build/article/enums/index.d.ts +2 -0
- package/build/article/enums/index.d.ts.map +1 -0
- package/build/article/enums/index.js +17 -0
- package/build/article/index.d.ts +4 -0
- package/build/article/index.d.ts.map +1 -0
- package/build/article/index.js +19 -0
- package/build/article/models/article-content.schema.d.ts +15 -0
- package/build/article/models/article-content.schema.d.ts.map +1 -0
- package/build/article/models/article-content.schema.js +12 -0
- package/build/article/models/article-response.schema.d.ts +25 -0
- package/build/article/models/article-response.schema.d.ts.map +1 -0
- package/build/article/models/article-response.schema.js +21 -0
- package/build/article/models/index.d.ts +5 -0
- package/build/article/models/index.d.ts.map +1 -0
- package/build/article/models/index.js +20 -0
- package/build/article/models/published-article-card.schema.d.ts +21 -0
- package/build/article/models/published-article-card.schema.d.ts.map +1 -0
- package/build/article/models/published-article-card.schema.js +18 -0
- package/build/article/models/published-article-detail.schema.d.ts +31 -0
- package/build/article/models/published-article-detail.schema.d.ts.map +1 -0
- package/build/article/models/published-article-detail.schema.js +21 -0
- package/build/auth/endpoints/auth.d.ts +14 -0
- package/build/auth/endpoints/auth.d.ts.map +1 -0
- package/build/auth/endpoints/auth.js +16 -0
- package/build/auth/endpoints/commands/change-password.command.d.ts +28 -0
- package/build/auth/endpoints/commands/change-password.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/change-password.command.js +29 -0
- package/build/auth/endpoints/commands/delete-account.command.d.ts +15 -0
- package/build/auth/endpoints/commands/delete-account.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/delete-account.command.js +19 -0
- package/build/auth/endpoints/commands/index.d.ts +11 -0
- package/build/auth/endpoints/commands/index.d.ts.map +1 -0
- package/build/auth/endpoints/commands/index.js +26 -0
- package/build/auth/endpoints/commands/login.command.d.ts +31 -0
- package/build/auth/endpoints/commands/login.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/login.command.js +30 -0
- package/build/auth/endpoints/commands/logout.command.d.ts +14 -0
- package/build/auth/endpoints/commands/logout.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/logout.command.js +18 -0
- package/build/auth/endpoints/commands/refresh.command.d.ts +19 -0
- package/build/auth/endpoints/commands/refresh.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/refresh.command.js +21 -0
- package/build/auth/endpoints/commands/register.command.d.ts +40 -0
- package/build/auth/endpoints/commands/register.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/register.command.js +35 -0
- package/build/auth/endpoints/commands/reset-password.command.d.ts +24 -0
- package/build/auth/endpoints/commands/reset-password.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/reset-password.command.js +26 -0
- package/build/auth/endpoints/commands/restore-password.command.d.ts +26 -0
- package/build/auth/endpoints/commands/restore-password.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/restore-password.command.js +27 -0
- package/build/auth/endpoints/commands/verify-email-retry.command.d.ts +30 -0
- package/build/auth/endpoints/commands/verify-email-retry.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/verify-email-retry.command.js +29 -0
- package/build/auth/endpoints/commands/verify-email.command.d.ts +30 -0
- package/build/auth/endpoints/commands/verify-email.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/verify-email.command.js +29 -0
- package/build/auth/endpoints/index.d.ts +3 -0
- package/build/auth/endpoints/index.d.ts.map +1 -0
- package/build/auth/endpoints/index.js +18 -0
- package/build/auth/index.d.ts +2 -0
- package/build/auth/index.d.ts.map +1 -0
- package/build/auth/index.js +17 -0
- package/build/category/endpoints/category.d.ts +9 -0
- package/build/category/endpoints/category.d.ts.map +1 -0
- package/build/category/endpoints/category.js +11 -0
- package/build/category/endpoints/commands/create-category.command.d.ts +40 -0
- package/build/category/endpoints/commands/create-category.command.d.ts.map +1 -0
- package/build/category/endpoints/commands/create-category.command.js +29 -0
- package/build/category/endpoints/commands/delete-category.command.d.ts +24 -0
- package/build/category/endpoints/commands/delete-category.command.d.ts.map +1 -0
- package/build/category/endpoints/commands/delete-category.command.js +25 -0
- package/build/category/endpoints/commands/index.d.ts +4 -0
- package/build/category/endpoints/commands/index.d.ts.map +1 -0
- package/build/category/endpoints/commands/index.js +19 -0
- package/build/category/endpoints/commands/update-category.command.d.ts +46 -0
- package/build/category/endpoints/commands/update-category.command.d.ts.map +1 -0
- package/build/category/endpoints/commands/update-category.command.js +38 -0
- package/build/category/endpoints/index.d.ts +4 -0
- package/build/category/endpoints/index.d.ts.map +1 -0
- package/build/category/endpoints/index.js +19 -0
- package/build/category/endpoints/queries/get-categories.query.d.ts +31 -0
- package/build/category/endpoints/queries/get-categories.query.d.ts.map +1 -0
- package/build/category/endpoints/queries/get-categories.query.js +21 -0
- package/build/category/endpoints/queries/get-category-by-uuid.query.d.ts +36 -0
- package/build/category/endpoints/queries/get-category-by-uuid.query.d.ts.map +1 -0
- package/build/category/endpoints/queries/get-category-by-uuid.query.js +26 -0
- package/build/category/endpoints/queries/index.d.ts +3 -0
- package/build/category/endpoints/queries/index.d.ts.map +1 -0
- package/build/category/endpoints/queries/index.js +18 -0
- package/build/category/index.d.ts +3 -0
- package/build/category/index.d.ts.map +1 -0
- package/build/category/index.js +18 -0
- package/build/category/models/category-response.schema.d.ts +10 -0
- package/build/category/models/category-response.schema.d.ts.map +1 -0
- package/build/category/models/category-response.schema.js +11 -0
- package/build/category/models/index.d.ts +2 -0
- package/build/category/models/index.d.ts.map +1 -0
- package/build/category/models/index.js +17 -0
- package/build/chat/endpoints/chat.d.ts +9 -0
- package/build/chat/endpoints/chat.d.ts.map +1 -0
- package/build/chat/endpoints/chat.js +11 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts +50 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -0
- package/build/chat/endpoints/commands/create-chat.command.js +24 -0
- package/build/chat/endpoints/commands/delete-chat.command.d.ts +22 -0
- package/build/chat/endpoints/commands/delete-chat.command.d.ts.map +1 -0
- package/build/chat/endpoints/commands/delete-chat.command.js +23 -0
- package/build/chat/endpoints/commands/index.d.ts +4 -0
- package/build/chat/endpoints/commands/index.d.ts.map +1 -0
- package/build/chat/endpoints/commands/index.js +19 -0
- package/build/chat/endpoints/commands/update-chat.command.d.ts +57 -0
- package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -0
- package/build/chat/endpoints/commands/update-chat.command.js +33 -0
- package/build/chat/endpoints/index.d.ts +4 -0
- package/build/chat/endpoints/index.d.ts.map +1 -0
- package/build/chat/endpoints/index.js +19 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +50 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.js +24 -0
- package/build/chat/endpoints/queries/get-chats.query.d.ts +59 -0
- package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -0
- package/build/chat/endpoints/queries/get-chats.query.js +25 -0
- package/build/chat/endpoints/queries/index.d.ts +3 -0
- package/build/chat/endpoints/queries/index.d.ts.map +1 -0
- package/build/chat/endpoints/queries/index.js +18 -0
- package/build/chat/enums/chat-status.enum.d.ts +6 -0
- package/build/chat/enums/chat-status.enum.d.ts.map +1 -0
- package/build/chat/enums/chat-status.enum.js +9 -0
- package/build/chat/enums/index.d.ts +2 -0
- package/build/chat/enums/index.d.ts.map +1 -0
- package/build/chat/enums/index.js +17 -0
- package/build/chat/index.d.ts +4 -0
- package/build/chat/index.d.ts.map +1 -0
- package/build/chat/index.js +19 -0
- package/build/chat/models/chat-response.schema.d.ts +28 -0
- package/build/chat/models/chat-response.schema.d.ts.map +1 -0
- package/build/chat/models/chat-response.schema.js +21 -0
- package/build/chat/models/index.d.ts +2 -0
- package/build/chat/models/index.d.ts.map +1 -0
- package/build/chat/models/index.js +17 -0
- package/build/errors/errors.d.ts +680 -0
- package/build/errors/errors.d.ts.map +1 -0
- package/build/errors/errors.js +682 -0
- package/build/errors/index.d.ts +2 -0
- package/build/errors/index.d.ts.map +1 -0
- package/build/errors/index.js +17 -0
- package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.d.ts +60 -0
- package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.js +26 -0
- package/build/feedback-survey/endpoints/commands/index.d.ts +2 -0
- package/build/feedback-survey/endpoints/commands/index.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/commands/index.js +17 -0
- package/build/feedback-survey/endpoints/feedback-survey.d.ts +11 -0
- package/build/feedback-survey/endpoints/feedback-survey.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/feedback-survey.js +13 -0
- package/build/feedback-survey/endpoints/index.d.ts +4 -0
- package/build/feedback-survey/endpoints/index.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/index.js +19 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.d.ts +52 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.js +20 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.d.ts +17 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.js +17 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.d.ts +59 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.js +27 -0
- package/build/feedback-survey/endpoints/queries/index.d.ts +4 -0
- package/build/feedback-survey/endpoints/queries/index.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/index.js +19 -0
- package/build/feedback-survey/enums/index.d.ts +2 -0
- package/build/feedback-survey/enums/index.d.ts.map +1 -0
- package/build/feedback-survey/enums/index.js +17 -0
- package/build/feedback-survey/enums/question-type.enum.d.ts +7 -0
- package/build/feedback-survey/enums/question-type.enum.d.ts.map +1 -0
- package/build/feedback-survey/enums/question-type.enum.js +10 -0
- package/build/feedback-survey/index.d.ts +4 -0
- package/build/feedback-survey/index.d.ts.map +1 -0
- package/build/feedback-survey/index.js +19 -0
- package/build/feedback-survey/models/answer-input.schema.d.ts +9 -0
- package/build/feedback-survey/models/answer-input.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/answer-input.schema.js +10 -0
- package/build/feedback-survey/models/answer-response.schema.d.ts +12 -0
- package/build/feedback-survey/models/answer-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/answer-response.schema.js +13 -0
- package/build/feedback-survey/models/feedback-survey-submission-response.schema.d.ts +17 -0
- package/build/feedback-survey/models/feedback-survey-submission-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/feedback-survey-submission-response.schema.js +11 -0
- package/build/feedback-survey/models/index.d.ts +7 -0
- package/build/feedback-survey/models/index.d.ts.map +1 -0
- package/build/feedback-survey/models/index.js +22 -0
- package/build/feedback-survey/models/question-option-response.schema.d.ts +10 -0
- package/build/feedback-survey/models/question-option-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/question-option-response.schema.js +11 -0
- package/build/feedback-survey/models/question-response.schema.d.ts +22 -0
- package/build/feedback-survey/models/question-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/question-response.schema.js +18 -0
- package/build/feedback-survey/models/status-response.schema.d.ts +6 -0
- package/build/feedback-survey/models/status-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/status-response.schema.js +7 -0
- package/build/file/endpoints/commands/index.d.ts +2 -0
- package/build/file/endpoints/commands/index.d.ts.map +1 -0
- package/build/file/endpoints/commands/index.js +17 -0
- package/build/file/endpoints/commands/upload-file.command.d.ts +59 -0
- package/build/file/endpoints/commands/upload-file.command.d.ts.map +1 -0
- package/build/file/endpoints/commands/upload-file.command.js +30 -0
- package/build/file/endpoints/file.d.ts +5 -0
- package/build/file/endpoints/file.d.ts.map +1 -0
- package/build/file/endpoints/file.js +7 -0
- package/build/file/endpoints/index.d.ts +3 -0
- package/build/file/endpoints/index.d.ts.map +1 -0
- package/build/file/endpoints/index.js +18 -0
- package/build/file/endpoints/queries/index.d.ts +2 -0
- package/build/file/endpoints/queries/index.d.ts.map +1 -0
- package/build/file/endpoints/queries/index.js +2 -0
- package/build/file/enums/file.enum.d.ts +19 -0
- package/build/file/enums/file.enum.d.ts.map +1 -0
- package/build/file/enums/file.enum.js +88 -0
- package/build/file/enums/index.d.ts +2 -0
- package/build/file/enums/index.d.ts.map +1 -0
- package/build/file/enums/index.js +17 -0
- package/build/file/index.d.ts +4 -0
- package/build/file/index.d.ts.map +1 -0
- package/build/file/index.js +19 -0
- package/build/file/models/file-response.schema.d.ts +20 -0
- package/build/file/models/file-response.schema.d.ts.map +1 -0
- package/build/file/models/file-response.schema.js +21 -0
- package/build/file/models/index.d.ts +2 -0
- package/build/file/models/index.d.ts.map +1 -0
- package/build/file/models/index.js +17 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +63 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.js +30 -0
- package/build/generation-job/endpoints/commands/delete-generation-job.command.d.ts +22 -0
- package/build/generation-job/endpoints/commands/delete-generation-job.command.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/delete-generation-job.command.js +23 -0
- package/build/generation-job/endpoints/commands/index.d.ts +4 -0
- package/build/generation-job/endpoints/commands/index.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/index.js +19 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +77 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.js +38 -0
- package/build/generation-job/endpoints/generation-job.d.ts +10 -0
- package/build/generation-job/endpoints/generation-job.d.ts.map +1 -0
- package/build/generation-job/endpoints/generation-job.js +12 -0
- package/build/generation-job/endpoints/index.d.ts +4 -0
- package/build/generation-job/endpoints/index.d.ts.map +1 -0
- package/build/generation-job/endpoints/index.js +19 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +54 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.js +24 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +94 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +35 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +57 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +26 -0
- package/build/generation-job/endpoints/queries/index.d.ts +4 -0
- package/build/generation-job/endpoints/queries/index.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/index.js +19 -0
- package/build/generation-job/enums/generation-job-status.enum.d.ts +8 -0
- package/build/generation-job/enums/generation-job-status.enum.d.ts.map +1 -0
- package/build/generation-job/enums/generation-job-status.enum.js +11 -0
- package/build/generation-job/enums/index.d.ts +2 -0
- package/build/generation-job/enums/index.d.ts.map +1 -0
- package/build/generation-job/enums/index.js +17 -0
- package/build/generation-job/index.d.ts +4 -0
- package/build/generation-job/index.d.ts.map +1 -0
- package/build/generation-job/index.js +19 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts +26 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -0
- package/build/generation-job/models/generation-job-response.schema.js +26 -0
- package/build/generation-job/models/index.d.ts +2 -0
- package/build/generation-job/models/index.d.ts.map +1 -0
- package/build/generation-job/models/index.js +17 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +42 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.js +27 -0
- package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.d.ts +22 -0
- package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.js +23 -0
- package/build/generation-job-chat/endpoints/commands/index.d.ts +4 -0
- package/build/generation-job-chat/endpoints/commands/index.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/index.js +19 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +45 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.js +33 -0
- package/build/generation-job-chat/endpoints/generation-job-chat.d.ts +9 -0
- package/build/generation-job-chat/endpoints/generation-job-chat.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/generation-job-chat.js +11 -0
- package/build/generation-job-chat/endpoints/index.d.ts +4 -0
- package/build/generation-job-chat/endpoints/index.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/index.js +19 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +38 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.js +24 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +49 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +28 -0
- package/build/generation-job-chat/endpoints/queries/index.d.ts +3 -0
- package/build/generation-job-chat/endpoints/queries/index.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/queries/index.js +18 -0
- package/build/generation-job-chat/index.d.ts +3 -0
- package/build/generation-job-chat/index.d.ts.map +1 -0
- package/build/generation-job-chat/index.js +18 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +12 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.js +14 -0
- package/build/generation-job-chat/models/index.d.ts +2 -0
- package/build/generation-job-chat/models/index.d.ts.map +1 -0
- package/build/generation-job-chat/models/index.js +17 -0
- package/build/generation-model/endpoints/generation-model.d.ts +7 -0
- package/build/generation-model/endpoints/generation-model.d.ts.map +1 -0
- package/build/generation-model/endpoints/generation-model.js +9 -0
- package/build/generation-model/endpoints/index.d.ts +3 -0
- package/build/generation-model/endpoints/index.d.ts.map +1 -0
- package/build/generation-model/endpoints/index.js +18 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +85 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.js +25 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +77 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.js +19 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts +32 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.js +29 -0
- package/build/generation-model/endpoints/queries/index.d.ts +4 -0
- package/build/generation-model/endpoints/queries/index.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/index.js +19 -0
- package/build/generation-model/enums/generation-type.enum.d.ts +5 -0
- package/build/generation-model/enums/generation-type.enum.d.ts.map +1 -0
- package/build/generation-model/enums/generation-type.enum.js +8 -0
- package/build/generation-model/enums/index.d.ts +2 -0
- package/build/generation-model/enums/index.d.ts.map +1 -0
- package/build/generation-model/enums/index.js +17 -0
- package/build/generation-model/index.d.ts +4 -0
- package/build/generation-model/index.d.ts.map +1 -0
- package/build/generation-model/index.js +19 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts +36 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -0
- package/build/generation-model/models/generation-model-response.schema.js +23 -0
- package/build/generation-model/models/index.d.ts +3 -0
- package/build/generation-model/models/index.d.ts.map +1 -0
- package/build/generation-model/models/index.js +18 -0
- package/build/generation-model/models/pricing-policy.schema.d.ts +52 -0
- package/build/generation-model/models/pricing-policy.schema.d.ts.map +1 -0
- package/build/generation-model/models/pricing-policy.schema.js +29 -0
- package/build/index.d.ts +17 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +32 -0
- package/build/message/endpoints/commands/create-message.command.d.ts +68 -0
- package/build/message/endpoints/commands/create-message.command.d.ts.map +1 -0
- package/build/message/endpoints/commands/create-message.command.js +48 -0
- package/build/message/endpoints/commands/delete-message.command.d.ts +22 -0
- package/build/message/endpoints/commands/delete-message.command.d.ts.map +1 -0
- package/build/message/endpoints/commands/delete-message.command.js +23 -0
- package/build/message/endpoints/commands/index.d.ts +3 -0
- package/build/message/endpoints/commands/index.d.ts.map +1 -0
- package/build/message/endpoints/commands/index.js +18 -0
- package/build/message/endpoints/index.d.ts +4 -0
- package/build/message/endpoints/index.d.ts.map +1 -0
- package/build/message/endpoints/index.js +19 -0
- package/build/message/endpoints/message.d.ts +9 -0
- package/build/message/endpoints/message.d.ts.map +1 -0
- package/build/message/endpoints/message.js +11 -0
- package/build/message/endpoints/queries/get-message-by-uuid.query.d.ts +74 -0
- package/build/message/endpoints/queries/get-message-by-uuid.query.d.ts.map +1 -0
- package/build/message/endpoints/queries/get-message-by-uuid.query.js +24 -0
- package/build/message/endpoints/queries/get-message-price-estimate.query.d.ts +41 -0
- package/build/message/endpoints/queries/get-message-price-estimate.query.d.ts.map +1 -0
- package/build/message/endpoints/queries/get-message-price-estimate.query.js +35 -0
- package/build/message/endpoints/queries/get-messages-by-chat.query.d.ts +90 -0
- package/build/message/endpoints/queries/get-messages-by-chat.query.d.ts.map +1 -0
- package/build/message/endpoints/queries/get-messages-by-chat.query.js +30 -0
- package/build/message/endpoints/queries/index.d.ts +4 -0
- package/build/message/endpoints/queries/index.d.ts.map +1 -0
- package/build/message/endpoints/queries/index.js +19 -0
- package/build/message/enums/index.d.ts +3 -0
- package/build/message/enums/index.d.ts.map +1 -0
- package/build/message/enums/index.js +18 -0
- package/build/message/enums/message-roles.enum.d.ts +5 -0
- package/build/message/enums/message-roles.enum.d.ts.map +1 -0
- package/build/message/enums/message-roles.enum.js +8 -0
- package/build/message/enums/message-status.enum.d.ts +10 -0
- package/build/message/enums/message-status.enum.d.ts.map +1 -0
- package/build/message/enums/message-status.enum.js +13 -0
- package/build/message/index.d.ts +4 -0
- package/build/message/index.d.ts.map +1 -0
- package/build/message/index.js +19 -0
- package/build/message/models/index.d.ts +2 -0
- package/build/message/models/index.d.ts.map +1 -0
- package/build/message/models/index.js +17 -0
- package/build/message/models/message-response.schema.d.ts +31 -0
- package/build/message/models/message-response.schema.d.ts.map +1 -0
- package/build/message/models/message-response.schema.js +17 -0
- package/build/payment/endpoints/commands/create-payment.command.d.ts +119 -0
- package/build/payment/endpoints/commands/create-payment.command.d.ts.map +1 -0
- package/build/payment/endpoints/commands/create-payment.command.js +40 -0
- package/build/payment/endpoints/commands/index.d.ts +2 -0
- package/build/payment/endpoints/commands/index.d.ts.map +1 -0
- package/build/payment/endpoints/commands/index.js +17 -0
- package/build/payment/endpoints/index.d.ts +3 -0
- package/build/payment/endpoints/index.d.ts.map +1 -0
- package/build/payment/endpoints/index.js +18 -0
- package/build/payment/endpoints/payment.d.ts +5 -0
- package/build/payment/endpoints/payment.d.ts.map +1 -0
- package/build/payment/endpoints/payment.js +7 -0
- package/build/payment/enums/index.d.ts +2 -0
- package/build/payment/enums/index.d.ts.map +1 -0
- package/build/payment/enums/index.js +17 -0
- package/build/payment/enums/payment-status.enum.d.ts +7 -0
- package/build/payment/enums/payment-status.enum.d.ts.map +1 -0
- package/build/payment/enums/payment-status.enum.js +10 -0
- package/build/payment/index.d.ts +4 -0
- package/build/payment/index.d.ts.map +1 -0
- package/build/payment/index.js +19 -0
- package/build/payment/models/index.d.ts +2 -0
- package/build/payment/models/index.d.ts.map +1 -0
- package/build/payment/models/index.js +17 -0
- package/build/payment/models/payment-response.schema.d.ts +50 -0
- package/build/payment/models/payment-response.schema.d.ts.map +1 -0
- package/build/payment/models/payment-response.schema.js +45 -0
- package/build/referral/endpoints/index.d.ts +2 -0
- package/build/referral/endpoints/index.d.ts.map +1 -0
- package/build/referral/endpoints/index.js +17 -0
- package/build/referral/endpoints/referral.d.ts +7 -0
- package/build/referral/endpoints/referral.d.ts.map +1 -0
- package/build/referral/endpoints/referral.js +9 -0
- package/build/referral/enums/bonus-history-filter.enum.d.ts +6 -0
- package/build/referral/enums/bonus-history-filter.enum.d.ts.map +1 -0
- package/build/referral/enums/bonus-history-filter.enum.js +9 -0
- package/build/referral/enums/index.d.ts +4 -0
- package/build/referral/enums/index.d.ts.map +1 -0
- package/build/referral/enums/index.js +19 -0
- package/build/referral/enums/referral-reward-status.enum.d.ts +6 -0
- package/build/referral/enums/referral-reward-status.enum.d.ts.map +1 -0
- package/build/referral/enums/referral-reward-status.enum.js +9 -0
- package/build/referral/enums/referral-status.enum.d.ts +6 -0
- package/build/referral/enums/referral-status.enum.d.ts.map +1 -0
- package/build/referral/enums/referral-status.enum.js +9 -0
- package/build/referral/index.d.ts +4 -0
- package/build/referral/index.d.ts.map +1 -0
- package/build/referral/index.js +19 -0
- package/build/referral/models/bonus-history-response.schema.d.ts +88 -0
- package/build/referral/models/bonus-history-response.schema.d.ts.map +1 -0
- package/build/referral/models/bonus-history-response.schema.js +27 -0
- package/build/referral/models/index.d.ts +5 -0
- package/build/referral/models/index.d.ts.map +1 -0
- package/build/referral/models/index.js +20 -0
- package/build/referral/models/partner-referral-rate-config.schema.d.ts +10 -0
- package/build/referral/models/partner-referral-rate-config.schema.d.ts.map +1 -0
- package/build/referral/models/partner-referral-rate-config.schema.js +11 -0
- package/build/referral/models/referral-config-response.schema.d.ts +24 -0
- package/build/referral/models/referral-config-response.schema.d.ts.map +1 -0
- package/build/referral/models/referral-config-response.schema.js +16 -0
- package/build/referral/models/referral-stats-response.schema.d.ts +21 -0
- package/build/referral/models/referral-stats-response.schema.d.ts.map +1 -0
- package/build/referral/models/referral-stats-response.schema.js +17 -0
- package/build/scripts/generate-openapi.d.ts +2 -0
- package/build/scripts/generate-openapi.d.ts.map +1 -0
- package/build/scripts/generate-openapi.js +536 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/users/endpoints/index.d.ts +3 -0
- package/build/users/endpoints/index.d.ts.map +1 -0
- package/build/users/endpoints/index.js +18 -0
- package/build/users/endpoints/queries/get-profile.query.d.ts +13 -0
- package/build/users/endpoints/queries/get-profile.query.d.ts.map +1 -0
- package/build/users/endpoints/queries/get-profile.query.js +14 -0
- package/build/users/endpoints/queries/get-stat.query.d.ts +9 -0
- package/build/users/endpoints/queries/get-stat.query.d.ts.map +1 -0
- package/build/users/endpoints/queries/get-stat.query.js +10 -0
- package/build/users/endpoints/queries/index.d.ts +3 -0
- package/build/users/endpoints/queries/index.d.ts.map +1 -0
- package/build/users/endpoints/queries/index.js +18 -0
- package/build/users/endpoints/user.d.ts +6 -0
- package/build/users/endpoints/user.d.ts.map +1 -0
- package/build/users/endpoints/user.js +8 -0
- package/build/users/enums/index.d.ts +3 -0
- package/build/users/enums/index.d.ts.map +1 -0
- package/build/users/enums/index.js +18 -0
- package/build/users/enums/user-roles.enum.d.ts +5 -0
- package/build/users/enums/user-roles.enum.d.ts.map +1 -0
- package/build/users/enums/user-roles.enum.js +8 -0
- package/build/users/enums/user-status.enum.d.ts +6 -0
- package/build/users/enums/user-status.enum.d.ts.map +1 -0
- package/build/users/enums/user-status.enum.js +9 -0
- package/build/users/index.d.ts +3 -0
- package/build/users/index.d.ts.map +1 -0
- package/build/users/index.js +18 -0
- package/build/wallet/endpoints/index.d.ts +3 -0
- package/build/wallet/endpoints/index.d.ts.map +1 -0
- package/build/wallet/endpoints/index.js +18 -0
- package/build/wallet/endpoints/queries/get-wallet-balance.query.d.ts +20 -0
- package/build/wallet/endpoints/queries/get-wallet-balance.query.d.ts.map +1 -0
- package/build/wallet/endpoints/queries/get-wallet-balance.query.js +18 -0
- package/build/wallet/endpoints/queries/get-wallet-transactions.query.d.ts +53 -0
- package/build/wallet/endpoints/queries/get-wallet-transactions.query.d.ts.map +1 -0
- package/build/wallet/endpoints/queries/get-wallet-transactions.query.js +30 -0
- package/build/wallet/endpoints/queries/index.d.ts +3 -0
- package/build/wallet/endpoints/queries/index.d.ts.map +1 -0
- package/build/wallet/endpoints/queries/index.js +18 -0
- package/build/wallet/endpoints/wallet.d.ts +6 -0
- package/build/wallet/endpoints/wallet.d.ts.map +1 -0
- package/build/wallet/endpoints/wallet.js +8 -0
- package/build/wallet/enums/index.d.ts +4 -0
- package/build/wallet/enums/index.d.ts.map +1 -0
- package/build/wallet/enums/index.js +19 -0
- package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts +10 -0
- package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts.map +1 -0
- package/build/wallet/enums/wallet-transaction-source-type.enum.js +13 -0
- package/build/wallet/enums/wallet-transaction-status.enum.d.ts +7 -0
- package/build/wallet/enums/wallet-transaction-status.enum.d.ts.map +1 -0
- package/build/wallet/enums/wallet-transaction-status.enum.js +10 -0
- package/build/wallet/enums/wallet-transaction-type.enum.d.ts +7 -0
- package/build/wallet/enums/wallet-transaction-type.enum.d.ts.map +1 -0
- package/build/wallet/enums/wallet-transaction-type.enum.js +10 -0
- package/build/wallet/index.d.ts +4 -0
- package/build/wallet/index.d.ts.map +1 -0
- package/build/wallet/index.js +19 -0
- package/build/wallet/models/index.d.ts +3 -0
- package/build/wallet/models/index.d.ts.map +1 -0
- package/build/wallet/models/index.js +18 -0
- package/build/wallet/models/wallet-balance-response.schema.d.ts +7 -0
- package/build/wallet/models/wallet-balance-response.schema.d.ts.map +1 -0
- package/build/wallet/models/wallet-balance-response.schema.js +8 -0
- package/build/wallet/models/wallet-transaction-response.schema.d.ts +13 -0
- package/build/wallet/models/wallet-transaction-response.schema.d.ts.map +1 -0
- package/build/wallet/models/wallet-transaction-response.schema.js +14 -0
- package/category/endpoints/category.ts +9 -0
- package/category/endpoints/commands/create-category.command.ts +30 -0
- package/category/endpoints/commands/delete-category.command.ts +25 -0
- package/category/endpoints/commands/index.ts +3 -0
- package/category/endpoints/commands/update-category.command.ts +39 -0
- package/category/endpoints/index.ts +3 -0
- package/category/endpoints/queries/get-categories.query.ts +20 -0
- package/category/endpoints/queries/get-category-by-uuid.query.ts +26 -0
- package/category/endpoints/queries/index.ts +2 -0
- package/category/index.ts +2 -0
- package/category/models/category-response.schema.ts +11 -0
- package/category/models/index.ts +1 -0
- package/chat/endpoints/chat.ts +9 -0
- package/chat/endpoints/commands/create-chat.command.ts +24 -0
- package/chat/endpoints/commands/delete-chat.command.ts +23 -0
- package/chat/endpoints/commands/index.ts +3 -0
- package/chat/endpoints/commands/update-chat.command.ts +34 -0
- package/chat/endpoints/index.ts +3 -0
- package/chat/endpoints/queries/get-chat-by-uuid.query.ts +24 -0
- package/chat/endpoints/queries/get-chats.query.ts +25 -0
- package/chat/endpoints/queries/index.ts +2 -0
- package/chat/enums/chat-status.enum.ts +5 -0
- package/chat/enums/index.ts +1 -0
- package/chat/index.ts +3 -0
- package/chat/models/chat-response.schema.ts +24 -0
- package/chat/models/index.ts +1 -0
- package/errors/errors.ts +680 -0
- package/errors/index.ts +1 -0
- package/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.ts +26 -0
- package/feedback-survey/endpoints/commands/index.ts +1 -0
- package/feedback-survey/endpoints/feedback-survey.ts +13 -0
- package/feedback-survey/endpoints/index.ts +3 -0
- package/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.ts +19 -0
- package/feedback-survey/endpoints/queries/get-feedback-survey-status.query.ts +16 -0
- package/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.ts +27 -0
- package/feedback-survey/endpoints/queries/index.ts +3 -0
- package/feedback-survey/enums/index.ts +1 -0
- package/feedback-survey/enums/question-type.enum.ts +6 -0
- package/feedback-survey/index.ts +3 -0
- package/feedback-survey/models/answer-input.schema.ts +10 -0
- package/feedback-survey/models/answer-response.schema.ts +13 -0
- package/feedback-survey/models/feedback-survey-submission-response.schema.ts +11 -0
- package/feedback-survey/models/index.ts +6 -0
- package/feedback-survey/models/question-option-response.schema.ts +11 -0
- package/feedback-survey/models/question-response.schema.ts +18 -0
- package/feedback-survey/models/status-response.schema.ts +7 -0
- package/file/endpoints/commands/index.ts +1 -0
- package/file/endpoints/commands/upload-file.command.ts +30 -0
- package/file/endpoints/file.ts +5 -0
- package/file/endpoints/index.ts +2 -0
- package/file/endpoints/queries/index.ts +0 -0
- package/file/enums/file.enum.ts +101 -0
- package/file/enums/index.ts +1 -0
- package/file/index.ts +3 -0
- package/file/models/file-response.schema.ts +21 -0
- package/file/models/index.ts +1 -0
- package/generation-job/endpoints/commands/create-generation-job.command.ts +30 -0
- package/generation-job/endpoints/commands/delete-generation-job.command.ts +23 -0
- package/generation-job/endpoints/commands/index.ts +3 -0
- package/generation-job/endpoints/commands/update-generation-job.command.ts +39 -0
- package/generation-job/endpoints/generation-job.ts +10 -0
- package/generation-job/endpoints/index.ts +3 -0
- package/generation-job/endpoints/queries/get-generation-job-by-uuid.query.ts +24 -0
- package/generation-job/endpoints/queries/get-generation-job-history.query.ts +38 -0
- package/generation-job/endpoints/queries/get-generation-jobs.query.ts +26 -0
- package/generation-job/endpoints/queries/index.ts +3 -0
- package/generation-job/enums/generation-job-status.enum.ts +7 -0
- package/generation-job/enums/index.ts +1 -0
- package/generation-job/index.ts +3 -0
- package/generation-job/models/generation-job-response.schema.ts +29 -0
- package/generation-job/models/index.ts +1 -0
- package/generation-job-chat/endpoints/commands/create-generation-job-chat.command.ts +27 -0
- package/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.ts +23 -0
- package/generation-job-chat/endpoints/commands/index.ts +3 -0
- package/generation-job-chat/endpoints/commands/update-generation-job-chat.command.ts +34 -0
- package/generation-job-chat/endpoints/generation-job-chat.ts +9 -0
- package/generation-job-chat/endpoints/index.ts +3 -0
- package/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.ts +24 -0
- package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +28 -0
- package/generation-job-chat/endpoints/queries/index.ts +2 -0
- package/generation-job-chat/index.ts +2 -0
- package/generation-job-chat/models/generation-job-chat-response.schema.ts +14 -0
- package/generation-job-chat/models/index.ts +1 -0
- package/generation-model/endpoints/generation-model.ts +7 -0
- package/generation-model/endpoints/index.ts +2 -0
- package/generation-model/endpoints/queries/get-generation-models-by-type.query.ts +25 -0
- package/generation-model/endpoints/queries/get-generation-models.query.ts +18 -0
- package/generation-model/endpoints/queries/get-generation-price.query.ts +30 -0
- package/generation-model/endpoints/queries/index.ts +3 -0
- package/generation-model/enums/generation-type.enum.ts +4 -0
- package/generation-model/enums/index.ts +1 -0
- package/generation-model/index.ts +3 -0
- package/generation-model/models/generation-model-response.schema.ts +25 -0
- package/generation-model/models/index.ts +2 -0
- package/generation-model/models/pricing-policy.schema.ts +35 -0
- package/index.ts +16 -0
- package/message/endpoints/commands/create-message.command.ts +50 -0
- package/message/endpoints/commands/delete-message.command.ts +23 -0
- package/message/endpoints/commands/index.ts +2 -0
- package/message/endpoints/index.ts +3 -0
- package/message/endpoints/message.ts +9 -0
- package/message/endpoints/queries/get-message-by-uuid.query.ts +24 -0
- package/message/endpoints/queries/get-message-price-estimate.query.ts +35 -0
- package/message/endpoints/queries/get-messages-by-chat.query.ts +31 -0
- package/message/endpoints/queries/index.ts +3 -0
- package/message/enums/index.ts +2 -0
- package/message/enums/message-roles.enum.ts +4 -0
- package/message/enums/message-status.enum.ts +9 -0
- package/message/index.ts +3 -0
- package/message/models/index.ts +1 -0
- package/message/models/message-response.schema.ts +17 -0
- package/package.json +15 -0
- package/payment/endpoints/commands/create-payment.command.ts +41 -0
- package/payment/endpoints/commands/index.ts +1 -0
- package/payment/endpoints/index.ts +2 -0
- package/payment/endpoints/payment.ts +5 -0
- package/payment/enums/index.ts +1 -0
- package/payment/enums/payment-status.enum.ts +6 -0
- package/payment/index.ts +3 -0
- package/payment/models/index.ts +1 -0
- package/payment/models/payment-response.schema.ts +53 -0
- package/referral/endpoints/index.ts +1 -0
- package/referral/endpoints/referral.ts +7 -0
- package/referral/enums/bonus-history-filter.enum.ts +5 -0
- package/referral/enums/index.ts +3 -0
- package/referral/enums/referral-reward-status.enum.ts +5 -0
- package/referral/enums/referral-status.enum.ts +5 -0
- package/referral/index.ts +3 -0
- package/referral/models/bonus-history-response.schema.ts +36 -0
- package/referral/models/index.ts +4 -0
- package/referral/models/partner-referral-rate-config.schema.ts +11 -0
- package/referral/models/referral-config-response.schema.ts +19 -0
- package/referral/models/referral-stats-response.schema.ts +20 -0
- package/scripts/generate-openapi.ts +700 -0
- package/tsconfig.json +20 -0
- package/users/endpoints/index.ts +2 -0
- package/users/endpoints/queries/get-profile.query.ts +14 -0
- package/users/endpoints/queries/get-stat.query.ts +10 -0
- package/users/endpoints/queries/index.ts +2 -0
- package/users/endpoints/user.ts +6 -0
- package/users/enums/index.ts +2 -0
- package/users/enums/user-roles.enum.ts +4 -0
- package/users/enums/user-status.enum.ts +5 -0
- package/users/index.ts +2 -0
- package/wallet/endpoints/index.ts +2 -0
- package/wallet/endpoints/queries/get-wallet-balance.query.ts +17 -0
- package/wallet/endpoints/queries/get-wallet-transactions.query.ts +30 -0
- package/wallet/endpoints/queries/index.ts +2 -0
- package/wallet/endpoints/wallet.ts +6 -0
- package/wallet/enums/index.ts +3 -0
- package/wallet/enums/wallet-transaction-source-type.enum.ts +9 -0
- package/wallet/enums/wallet-transaction-status.enum.ts +6 -0
- package/wallet/enums/wallet-transaction-type.enum.ts +6 -0
- package/wallet/index.ts +3 -0
- package/wallet/models/index.ts +2 -0
- package/wallet/models/wallet-balance-response.schema.ts +8 -0
- package/wallet/models/wallet-transaction-response.schema.ts +14 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
2
|
+
export declare const GetWalletBalanceQueryResponse: import("zod").ZodObject<{
|
|
3
|
+
cashBalance: import("zod").ZodNumber;
|
|
4
|
+
bonusBalance: import("zod").ZodNumber;
|
|
5
|
+
}, import("zod/v4/core").$strip>;
|
|
6
|
+
export declare const GetWalletBalanceQuery: {
|
|
7
|
+
method: HTTP_METHODS.GET;
|
|
8
|
+
path: "";
|
|
9
|
+
summary: string;
|
|
10
|
+
responses: {
|
|
11
|
+
200: import("zod").ZodObject<{
|
|
12
|
+
cashBalance: import("zod").ZodNumber;
|
|
13
|
+
bonusBalance: import("zod").ZodNumber;
|
|
14
|
+
}, import("zod/v4/core").$strip>;
|
|
15
|
+
401: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
16
|
+
404: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
17
|
+
500: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=get-wallet-balance.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-wallet-balance.query.d.ts","sourceRoot":"","sources":["../../../../wallet/endpoints/queries/get-wallet-balance.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,6BAA6B;;;gCAA8B,CAAC;AAEzE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;CAUhC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWalletBalanceQuery = exports.GetWalletBalanceQueryResponse = void 0;
|
|
4
|
+
const _common_1 = require("../../../_common");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const wallet_1 = require("../wallet");
|
|
7
|
+
exports.GetWalletBalanceQueryResponse = models_1.WalletBalanceResponseSchema;
|
|
8
|
+
exports.GetWalletBalanceQuery = (0, _common_1.defineContract)({
|
|
9
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
10
|
+
path: wallet_1.WALLET_ROUTES.GET_BALANCE,
|
|
11
|
+
summary: 'Get current wallet balance',
|
|
12
|
+
responses: {
|
|
13
|
+
200: exports.GetWalletBalanceQueryResponse,
|
|
14
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
15
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
16
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { WALLET_TRANSACTION_STATUS, WALLET_TRANSACTION_TYPE } from '../../enums';
|
|
4
|
+
export declare const GetWalletTransactionsQueryQuery: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
7
|
+
type: z.ZodOptional<z.ZodEnum<typeof WALLET_TRANSACTION_TYPE>>;
|
|
8
|
+
status: z.ZodOptional<z.ZodEnum<typeof WALLET_TRANSACTION_STATUS>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const GetWalletTransactionsQueryResponse: z.ZodObject<{
|
|
11
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodUUID;
|
|
13
|
+
type: z.ZodEnum<typeof WALLET_TRANSACTION_TYPE>;
|
|
14
|
+
status: z.ZodEnum<typeof WALLET_TRANSACTION_STATUS>;
|
|
15
|
+
cashAmount: z.ZodNumber;
|
|
16
|
+
bonusAmount: z.ZodNumber;
|
|
17
|
+
sourceModel: z.ZodNullable<z.ZodString>;
|
|
18
|
+
createdAt: z.ZodDate;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
21
|
+
hasMore: z.ZodBoolean;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const GetWalletTransactionsQuery: {
|
|
24
|
+
method: HTTP_METHODS.GET;
|
|
25
|
+
path: "transactions";
|
|
26
|
+
summary: string;
|
|
27
|
+
request: {
|
|
28
|
+
query: z.ZodObject<{
|
|
29
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
30
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
31
|
+
type: z.ZodOptional<z.ZodEnum<typeof WALLET_TRANSACTION_TYPE>>;
|
|
32
|
+
status: z.ZodOptional<z.ZodEnum<typeof WALLET_TRANSACTION_STATUS>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
};
|
|
35
|
+
responses: {
|
|
36
|
+
200: z.ZodObject<{
|
|
37
|
+
transactions: z.ZodArray<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodUUID;
|
|
39
|
+
type: z.ZodEnum<typeof WALLET_TRANSACTION_TYPE>;
|
|
40
|
+
status: z.ZodEnum<typeof WALLET_TRANSACTION_STATUS>;
|
|
41
|
+
cashAmount: z.ZodNumber;
|
|
42
|
+
bonusAmount: z.ZodNumber;
|
|
43
|
+
sourceModel: z.ZodNullable<z.ZodString>;
|
|
44
|
+
createdAt: z.ZodDate;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
nextCursor: z.ZodNullable<z.ZodUUID>;
|
|
47
|
+
hasMore: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
50
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=get-wallet-transactions.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-wallet-transactions.query.d.ts","sourceRoot":"","sources":["../../../../wallet/endpoints/queries/get-wallet-transactions.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAEtH,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGjF,eAAO,MAAM,+BAA+B;;;;;iBAG1C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYrC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWalletTransactionsQuery = exports.GetWalletTransactionsQueryResponse = exports.GetWalletTransactionsQueryQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const enums_1 = require("../../enums");
|
|
8
|
+
const wallet_1 = require("../wallet");
|
|
9
|
+
exports.GetWalletTransactionsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid()).extend({
|
|
10
|
+
type: zod_1.z.enum(enums_1.WALLET_TRANSACTION_TYPE).optional(),
|
|
11
|
+
status: zod_1.z.enum(enums_1.WALLET_TRANSACTION_STATUS).optional(),
|
|
12
|
+
});
|
|
13
|
+
exports.GetWalletTransactionsQueryResponse = zod_1.z.object({
|
|
14
|
+
transactions: zod_1.z.array(models_1.WalletTransactionResponseSchema),
|
|
15
|
+
nextCursor: zod_1.z.uuid().nullable(),
|
|
16
|
+
hasMore: zod_1.z.boolean(),
|
|
17
|
+
});
|
|
18
|
+
exports.GetWalletTransactionsQuery = (0, _common_1.defineContract)({
|
|
19
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
20
|
+
path: wallet_1.WALLET_ROUTES.GET_TRANSACTIONS,
|
|
21
|
+
summary: 'Get wallet transaction history',
|
|
22
|
+
request: {
|
|
23
|
+
query: exports.GetWalletTransactionsQueryQuery,
|
|
24
|
+
},
|
|
25
|
+
responses: {
|
|
26
|
+
200: exports.GetWalletTransactionsQueryResponse,
|
|
27
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../wallet/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-wallet-balance.query"), exports);
|
|
18
|
+
__exportStar(require("./get-wallet-transactions.query"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../wallet/endpoints/wallet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;;CAGhB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WALLET_ROUTES = exports.WALLET_CONTROLLER = void 0;
|
|
4
|
+
exports.WALLET_CONTROLLER = 'wallet';
|
|
5
|
+
exports.WALLET_ROUTES = {
|
|
6
|
+
GET_BALANCE: '',
|
|
7
|
+
GET_TRANSACTIONS: 'transactions',
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../wallet/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./wallet-transaction-type.enum"), exports);
|
|
18
|
+
__exportStar(require("./wallet-transaction-status.enum"), exports);
|
|
19
|
+
__exportStar(require("./wallet-transaction-source-type.enum"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum WALLET_TRANSACTION_SOURCE_TYPE {
|
|
2
|
+
GENERATION_JOB_IMAGE = "generation_job_image",
|
|
3
|
+
GENERATION_JOB_VIDEO = "generation_job_video",
|
|
4
|
+
MESSAGE = "message",
|
|
5
|
+
PAYMENT = "payment",
|
|
6
|
+
EMAIL_VERIFICATION = "email_verification",
|
|
7
|
+
REFERRAL = "referral",
|
|
8
|
+
ADMIN_BONUS_OPERATION = "admin_bonus_operation"
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=wallet-transaction-source-type.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-transaction-source-type.enum.d.ts","sourceRoot":"","sources":["../../../wallet/enums/wallet-transaction-source-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,8BAA8B;IACtC,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,kBAAkB,uBAAuB;IACzC,QAAQ,aAAa;IACrB,qBAAqB,0BAA0B;CAClD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WALLET_TRANSACTION_SOURCE_TYPE = void 0;
|
|
4
|
+
var WALLET_TRANSACTION_SOURCE_TYPE;
|
|
5
|
+
(function (WALLET_TRANSACTION_SOURCE_TYPE) {
|
|
6
|
+
WALLET_TRANSACTION_SOURCE_TYPE["GENERATION_JOB_IMAGE"] = "generation_job_image";
|
|
7
|
+
WALLET_TRANSACTION_SOURCE_TYPE["GENERATION_JOB_VIDEO"] = "generation_job_video";
|
|
8
|
+
WALLET_TRANSACTION_SOURCE_TYPE["MESSAGE"] = "message";
|
|
9
|
+
WALLET_TRANSACTION_SOURCE_TYPE["PAYMENT"] = "payment";
|
|
10
|
+
WALLET_TRANSACTION_SOURCE_TYPE["EMAIL_VERIFICATION"] = "email_verification";
|
|
11
|
+
WALLET_TRANSACTION_SOURCE_TYPE["REFERRAL"] = "referral";
|
|
12
|
+
WALLET_TRANSACTION_SOURCE_TYPE["ADMIN_BONUS_OPERATION"] = "admin_bonus_operation";
|
|
13
|
+
})(WALLET_TRANSACTION_SOURCE_TYPE || (exports.WALLET_TRANSACTION_SOURCE_TYPE = WALLET_TRANSACTION_SOURCE_TYPE = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-transaction-status.enum.d.ts","sourceRoot":"","sources":["../../../wallet/enums/wallet-transaction-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WALLET_TRANSACTION_STATUS = void 0;
|
|
4
|
+
var WALLET_TRANSACTION_STATUS;
|
|
5
|
+
(function (WALLET_TRANSACTION_STATUS) {
|
|
6
|
+
WALLET_TRANSACTION_STATUS["PENDING"] = "pending";
|
|
7
|
+
WALLET_TRANSACTION_STATUS["COMPLETED"] = "completed";
|
|
8
|
+
WALLET_TRANSACTION_STATUS["FAILED"] = "failed";
|
|
9
|
+
WALLET_TRANSACTION_STATUS["REVERSED"] = "reversed";
|
|
10
|
+
})(WALLET_TRANSACTION_STATUS || (exports.WALLET_TRANSACTION_STATUS = WALLET_TRANSACTION_STATUS = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-transaction-type.enum.d.ts","sourceRoot":"","sources":["../../../wallet/enums/wallet-transaction-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB;IAC/B,KAAK,UAAU;IACf,WAAW,eAAe;IAC1B,YAAY,gBAAgB;IAC5B,eAAe,mBAAmB;CACrC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WALLET_TRANSACTION_TYPE = void 0;
|
|
4
|
+
var WALLET_TRANSACTION_TYPE;
|
|
5
|
+
(function (WALLET_TRANSACTION_TYPE) {
|
|
6
|
+
WALLET_TRANSACTION_TYPE["TOPUP"] = "topup";
|
|
7
|
+
WALLET_TRANSACTION_TYPE["BONUS_GRANT"] = "bonusGrant";
|
|
8
|
+
WALLET_TRANSACTION_TYPE["USAGE_CHARGE"] = "usageCharge";
|
|
9
|
+
WALLET_TRANSACTION_TYPE["INITIAL_BALANCE"] = "initialBalance";
|
|
10
|
+
})(WALLET_TRANSACTION_TYPE || (exports.WALLET_TRANSACTION_TYPE = WALLET_TRANSACTION_TYPE = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../wallet/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./models"), exports);
|
|
19
|
+
__exportStar(require("./endpoints"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../wallet/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./wallet-balance-response.schema"), exports);
|
|
18
|
+
__exportStar(require("./wallet-transaction-response.schema"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WalletBalanceResponseSchema: z.ZodObject<{
|
|
3
|
+
cashBalance: z.ZodNumber;
|
|
4
|
+
bonusBalance: z.ZodNumber;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type WalletBalanceResponseSchemaType = z.infer<typeof WalletBalanceResponseSchema>;
|
|
7
|
+
//# sourceMappingURL=wallet-balance-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-balance-response.schema.d.ts","sourceRoot":"","sources":["../../../wallet/models/wallet-balance-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletBalanceResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.WalletBalanceResponseSchema = zod_1.z.object({
|
|
6
|
+
cashBalance: zod_1.z.number().nonnegative(),
|
|
7
|
+
bonusBalance: zod_1.z.number().nonnegative(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WALLET_TRANSACTION_STATUS, WALLET_TRANSACTION_TYPE } from '../enums';
|
|
3
|
+
export declare const WalletTransactionResponseSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
type: z.ZodEnum<typeof WALLET_TRANSACTION_TYPE>;
|
|
6
|
+
status: z.ZodEnum<typeof WALLET_TRANSACTION_STATUS>;
|
|
7
|
+
cashAmount: z.ZodNumber;
|
|
8
|
+
bonusAmount: z.ZodNumber;
|
|
9
|
+
sourceModel: z.ZodNullable<z.ZodString>;
|
|
10
|
+
createdAt: z.ZodDate;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type WalletTransactionResponseSchemaType = z.infer<typeof WalletTransactionResponseSchema>;
|
|
13
|
+
//# sourceMappingURL=wallet-transaction-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-transaction-response.schema.d.ts","sourceRoot":"","sources":["../../../wallet/models/wallet-transaction-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAE9E,eAAO,MAAM,+BAA+B;;;;;;;;iBAQ1C,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletTransactionResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
exports.WalletTransactionResponseSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
type: zod_1.z.enum(enums_1.WALLET_TRANSACTION_TYPE),
|
|
9
|
+
status: zod_1.z.enum(enums_1.WALLET_TRANSACTION_STATUS),
|
|
10
|
+
cashAmount: zod_1.z.number(),
|
|
11
|
+
bonusAmount: zod_1.z.number(),
|
|
12
|
+
sourceModel: zod_1.z.string().nullable(),
|
|
13
|
+
createdAt: zod_1.z.date(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { CategoryResponseSchema } from '../../models';
|
|
4
|
+
import { CATEGORY_ROUTES } from '../category';
|
|
5
|
+
|
|
6
|
+
export const CATEGORY_SLUG_PATTERN = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
7
|
+
|
|
8
|
+
export const CreateCategoryCommandBody = z.object({
|
|
9
|
+
name: z.string().trim().min(1).max(255),
|
|
10
|
+
slug: z.string().trim().min(1).max(255).regex(CATEGORY_SLUG_PATTERN),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export const CreateCategoryCommandResponse = CategoryResponseSchema;
|
|
14
|
+
|
|
15
|
+
export const CreateCategoryCommand = defineContract({
|
|
16
|
+
method: HTTP_METHODS.POST,
|
|
17
|
+
path: CATEGORY_ROUTES.CREATE,
|
|
18
|
+
summary: 'Create category',
|
|
19
|
+
request: {
|
|
20
|
+
body: CreateCategoryCommandBody,
|
|
21
|
+
},
|
|
22
|
+
responses: {
|
|
23
|
+
201: CreateCategoryCommandResponse,
|
|
24
|
+
400: HttpErrorResponseSchema,
|
|
25
|
+
401: HttpErrorResponseSchema,
|
|
26
|
+
403: HttpErrorResponseSchema,
|
|
27
|
+
409: HttpErrorResponseSchema,
|
|
28
|
+
500: HttpErrorResponseSchema,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema, HttpSuccessResponseSchema } from '../../../_common';
|
|
3
|
+
import { CATEGORY_ROUTES } from '../category';
|
|
4
|
+
|
|
5
|
+
export const DeleteCategoryCommandParams = z.object({
|
|
6
|
+
uuid: z.uuid(),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const DeleteCategoryCommandResponse = HttpSuccessResponseSchema;
|
|
10
|
+
|
|
11
|
+
export const DeleteCategoryCommand = defineContract({
|
|
12
|
+
method: HTTP_METHODS.DELETE,
|
|
13
|
+
path: CATEGORY_ROUTES.DELETE(':uuid'),
|
|
14
|
+
summary: 'Delete category (soft delete)',
|
|
15
|
+
request: {
|
|
16
|
+
params: DeleteCategoryCommandParams,
|
|
17
|
+
},
|
|
18
|
+
responses: {
|
|
19
|
+
200: DeleteCategoryCommandResponse,
|
|
20
|
+
401: HttpErrorResponseSchema,
|
|
21
|
+
403: HttpErrorResponseSchema,
|
|
22
|
+
404: HttpErrorResponseSchema,
|
|
23
|
+
500: HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { CategoryResponseSchema } from '../../models';
|
|
4
|
+
import { CATEGORY_ROUTES } from '../category';
|
|
5
|
+
import { CATEGORY_SLUG_PATTERN } from './create-category.command';
|
|
6
|
+
|
|
7
|
+
export const UpdateCategoryCommandParams = z.object({
|
|
8
|
+
uuid: z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const UpdateCategoryCommandBody = z
|
|
12
|
+
.object({
|
|
13
|
+
name: z.string().trim().min(1).max(255).optional(),
|
|
14
|
+
slug: z.string().trim().min(1).max(255).regex(CATEGORY_SLUG_PATTERN).optional(),
|
|
15
|
+
})
|
|
16
|
+
.refine((value) => Object.keys(value).length > 0, {
|
|
17
|
+
message: 'At least one field is required',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const UpdateCategoryCommandResponse = CategoryResponseSchema;
|
|
21
|
+
|
|
22
|
+
export const UpdateCategoryCommand = defineContract({
|
|
23
|
+
method: HTTP_METHODS.PATCH,
|
|
24
|
+
path: CATEGORY_ROUTES.UPDATE(':uuid'),
|
|
25
|
+
summary: 'Update category',
|
|
26
|
+
request: {
|
|
27
|
+
params: UpdateCategoryCommandParams,
|
|
28
|
+
body: UpdateCategoryCommandBody,
|
|
29
|
+
},
|
|
30
|
+
responses: {
|
|
31
|
+
200: UpdateCategoryCommandResponse,
|
|
32
|
+
400: HttpErrorResponseSchema,
|
|
33
|
+
401: HttpErrorResponseSchema,
|
|
34
|
+
403: HttpErrorResponseSchema,
|
|
35
|
+
404: HttpErrorResponseSchema,
|
|
36
|
+
409: HttpErrorResponseSchema,
|
|
37
|
+
500: HttpErrorResponseSchema,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { CategoryResponseSchema } from '../../models';
|
|
4
|
+
import { CATEGORY_ROUTES } from '../category';
|
|
5
|
+
|
|
6
|
+
export const GetCategoriesQueryResponse = z.object({
|
|
7
|
+
categories: z.array(CategoryResponseSchema),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetCategoriesQuery = defineContract({
|
|
11
|
+
method: HTTP_METHODS.GET,
|
|
12
|
+
path: CATEGORY_ROUTES.GET_ALL,
|
|
13
|
+
summary: 'Get all categories',
|
|
14
|
+
responses: {
|
|
15
|
+
200: GetCategoriesQueryResponse,
|
|
16
|
+
401: HttpErrorResponseSchema,
|
|
17
|
+
403: HttpErrorResponseSchema,
|
|
18
|
+
500: HttpErrorResponseSchema,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { CategoryResponseSchema } from '../../models';
|
|
4
|
+
import { CATEGORY_ROUTES } from '../category';
|
|
5
|
+
|
|
6
|
+
export const GetCategoryByUuidQueryParams = z.object({
|
|
7
|
+
uuid: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetCategoryByUuidQueryResponse = CategoryResponseSchema;
|
|
11
|
+
|
|
12
|
+
export const GetCategoryByUuidQuery = defineContract({
|
|
13
|
+
method: HTTP_METHODS.GET,
|
|
14
|
+
path: CATEGORY_ROUTES.GET_BY_UUID(':uuid'),
|
|
15
|
+
summary: 'Get category by uuid',
|
|
16
|
+
request: {
|
|
17
|
+
params: GetCategoryByUuidQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: GetCategoryByUuidQueryResponse,
|
|
21
|
+
401: HttpErrorResponseSchema,
|
|
22
|
+
403: HttpErrorResponseSchema,
|
|
23
|
+
404: HttpErrorResponseSchema,
|
|
24
|
+
500: HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const CategoryResponseSchema = z.object({
|
|
4
|
+
uuid: z.uuid(),
|
|
5
|
+
name: z.string().min(1),
|
|
6
|
+
slug: z.string().min(1),
|
|
7
|
+
createdAt: z.date(),
|
|
8
|
+
updatedAt: z.date(),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export type CategoryResponseSchemaType = z.infer<typeof CategoryResponseSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './category-response.schema';
|