@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,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export interface HttpErrorResponse {
|
|
4
|
+
message: string;
|
|
5
|
+
code: string;
|
|
6
|
+
httpCode: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const HttpErrorResponseSchema: z.ZodType<HttpErrorResponse> = z.object({
|
|
10
|
+
message: z.string(),
|
|
11
|
+
code: z.string(),
|
|
12
|
+
httpCode: z.int(),
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export function makeHttpErrorResponseSchema<const T extends HttpErrorResponse>(error: T) {
|
|
16
|
+
return z.object({
|
|
17
|
+
message: z.literal(error.message),
|
|
18
|
+
code: z.literal(error.code),
|
|
19
|
+
httpCode: z.literal(error.httpCode),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export enum HTTP_METHODS {
|
|
4
|
+
GET = 'GET',
|
|
5
|
+
POST = 'POST',
|
|
6
|
+
PUT = 'PUT',
|
|
7
|
+
PATCH = 'PATCH',
|
|
8
|
+
DELETE = 'DELETE',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type HttpContract = {
|
|
12
|
+
method: HTTP_METHODS;
|
|
13
|
+
path: string;
|
|
14
|
+
summary: string;
|
|
15
|
+
request?: {
|
|
16
|
+
body?: z.ZodTypeAny;
|
|
17
|
+
params?: z.ZodObject<z.ZodRawShape>;
|
|
18
|
+
query?: z.ZodObject<z.ZodRawShape>;
|
|
19
|
+
};
|
|
20
|
+
responses: Record<number, z.ZodTypeAny>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export function defineContract<T extends HttpContract>(contract: T): T {
|
|
24
|
+
return contract;
|
|
25
|
+
}
|
package/_common/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const CURSOR_PAGINATION_DEFAULT_LIMIT = 20;
|
|
4
|
+
|
|
5
|
+
export const defineCursorPaginationQuery = <TCursorSchema extends z.ZodTypeAny>(cursorSchema: TCursorSchema) =>
|
|
6
|
+
z.object({
|
|
7
|
+
cursor: cursorSchema.optional(),
|
|
8
|
+
limit: z.coerce.number().int().min(1).max(30).default(CURSOR_PAGINATION_DEFAULT_LIMIT).optional(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const ADMIN_CONTROLLER = 'admin' as const;
|
|
2
|
+
|
|
3
|
+
export const ADMIN_ROUTES = {
|
|
4
|
+
GET_PARTNERS: 'partners',
|
|
5
|
+
GET_PARTNER: (partnerId: string) => `partners/${partnerId}`,
|
|
6
|
+
GET_PARTNER_REFERRALS: (partnerId: string) => `partners/${partnerId}/referrals`,
|
|
7
|
+
GET_PARTNER_L2_BONUSES: (partnerId: string) => `partners/${partnerId}/l2-bonuses`,
|
|
8
|
+
GET_PARTNER_REFERRAL_CONFIG: (partnerId: string) => `partners/${partnerId}/referral-config`,
|
|
9
|
+
UPDATE_PARTNER_REFERRAL_CONFIG: (partnerId: string) => `partners/${partnerId}/referral-config`,
|
|
10
|
+
GET_PARTNER_BONUS_OPERATIONS: (partnerId: string) => `partners/${partnerId}/bonus-operations`,
|
|
11
|
+
CREATE_PARTNER_BONUS_OPERATION: (partnerId: string) => `partners/${partnerId}/bonus-operations`,
|
|
12
|
+
REFERRAL_CONFIG: 'referral-config',
|
|
13
|
+
} as const;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { ADMIN_BONUS_OPERATION_TYPE } from '../../enums';
|
|
4
|
+
import { AdminBonusOperationResponseSchema } from '../../models';
|
|
5
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
6
|
+
|
|
7
|
+
export const CreateAdminPartnerBonusOperationCommandParams = z.object({
|
|
8
|
+
partnerId: z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const CreateAdminPartnerBonusOperationCommandBody = z.object({
|
|
12
|
+
type: z.enum(ADMIN_BONUS_OPERATION_TYPE),
|
|
13
|
+
amount: z.number().positive(),
|
|
14
|
+
comment: z.string().trim().min(1).max(1000),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export const CreateAdminPartnerBonusOperationCommandResponse = AdminBonusOperationResponseSchema;
|
|
18
|
+
|
|
19
|
+
export const CreateAdminPartnerBonusOperationCommand = defineContract({
|
|
20
|
+
method: HTTP_METHODS.POST,
|
|
21
|
+
path: ADMIN_ROUTES.CREATE_PARTNER_BONUS_OPERATION(':partnerId'),
|
|
22
|
+
summary: 'Create admin partner bonus operation',
|
|
23
|
+
request: {
|
|
24
|
+
params: CreateAdminPartnerBonusOperationCommandParams,
|
|
25
|
+
body: CreateAdminPartnerBonusOperationCommandBody,
|
|
26
|
+
},
|
|
27
|
+
responses: {
|
|
28
|
+
201: CreateAdminPartnerBonusOperationCommandResponse,
|
|
29
|
+
400: HttpErrorResponseSchema,
|
|
30
|
+
401: HttpErrorResponseSchema,
|
|
31
|
+
403: HttpErrorResponseSchema,
|
|
32
|
+
404: HttpErrorResponseSchema,
|
|
33
|
+
500: HttpErrorResponseSchema,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export type CreateAdminPartnerBonusOperationCommandParamsType = z.infer<
|
|
38
|
+
typeof CreateAdminPartnerBonusOperationCommandParams
|
|
39
|
+
>;
|
|
40
|
+
export type CreateAdminPartnerBonusOperationCommandBodyType = z.infer<
|
|
41
|
+
typeof CreateAdminPartnerBonusOperationCommandBody
|
|
42
|
+
>;
|
|
43
|
+
export type CreateAdminPartnerBonusOperationCommandResponseType = z.infer<
|
|
44
|
+
typeof CreateAdminPartnerBonusOperationCommandResponse
|
|
45
|
+
>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { ADMIN_PARTNER_RATES_TYPE } from '../../enums';
|
|
4
|
+
import { AdminPartnerReferralConfigResponseSchema } from '../../models';
|
|
5
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
6
|
+
|
|
7
|
+
export const UpdateAdminPartnerReferralConfigCommandParams = z.object({
|
|
8
|
+
partnerId: z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const UpdateAdminPartnerReferralConfigCommandBody = z.object({
|
|
12
|
+
ratesType: z.enum(ADMIN_PARTNER_RATES_TYPE),
|
|
13
|
+
firstPaymentReferrerPercent: z.number().min(0).max(1).optional(),
|
|
14
|
+
firstPaymentReferrerFixedBonus: z.number().int().nonnegative().optional(),
|
|
15
|
+
firstPaymentRefereeFixedBonus: z.number().int().nonnegative().optional(),
|
|
16
|
+
subsequentPaymentReferrerPercent: z.number().min(0).max(1).optional(),
|
|
17
|
+
l2ReferralPercent: z.number().min(0).max(1).optional(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const UpdateAdminPartnerReferralConfigCommandResponse = AdminPartnerReferralConfigResponseSchema;
|
|
21
|
+
|
|
22
|
+
export const UpdateAdminPartnerReferralConfigCommand = defineContract({
|
|
23
|
+
method: HTTP_METHODS.PATCH,
|
|
24
|
+
path: ADMIN_ROUTES.UPDATE_PARTNER_REFERRAL_CONFIG(':partnerId'),
|
|
25
|
+
summary: 'Update admin partner referral config',
|
|
26
|
+
request: {
|
|
27
|
+
params: UpdateAdminPartnerReferralConfigCommandParams,
|
|
28
|
+
body: UpdateAdminPartnerReferralConfigCommandBody,
|
|
29
|
+
},
|
|
30
|
+
responses: {
|
|
31
|
+
200: UpdateAdminPartnerReferralConfigCommandResponse,
|
|
32
|
+
400: HttpErrorResponseSchema,
|
|
33
|
+
401: HttpErrorResponseSchema,
|
|
34
|
+
403: HttpErrorResponseSchema,
|
|
35
|
+
404: HttpErrorResponseSchema,
|
|
36
|
+
500: HttpErrorResponseSchema,
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export type UpdateAdminPartnerReferralConfigCommandParamsType = z.infer<
|
|
41
|
+
typeof UpdateAdminPartnerReferralConfigCommandParams
|
|
42
|
+
>;
|
|
43
|
+
export type UpdateAdminPartnerReferralConfigCommandBodyType = z.infer<
|
|
44
|
+
typeof UpdateAdminPartnerReferralConfigCommandBody
|
|
45
|
+
>;
|
|
46
|
+
export type UpdateAdminPartnerReferralConfigCommandResponseType = z.infer<
|
|
47
|
+
typeof UpdateAdminPartnerReferralConfigCommandResponse
|
|
48
|
+
>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminReferralConfigResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const UpdateAdminReferralConfigCommandBody = z
|
|
7
|
+
.object({
|
|
8
|
+
referralWindowDays: z.number().int().min(1).optional(),
|
|
9
|
+
firstPaymentReferrerPercent: z.number().min(0).max(1).optional(),
|
|
10
|
+
firstPaymentReferrerFixedBonus: z.number().int().nonnegative().optional(),
|
|
11
|
+
firstPaymentRefereeFixedBonus: z.number().int().nonnegative().optional(),
|
|
12
|
+
subsequentPaymentReferrerPercent: z.number().min(0).max(1).optional(),
|
|
13
|
+
subsequentPaymentMinAmount: z.number().int().nonnegative().optional(),
|
|
14
|
+
l2ReferralPercent: z.number().min(0).max(1).optional(),
|
|
15
|
+
})
|
|
16
|
+
.refine((value) => Object.keys(value).length > 0, {
|
|
17
|
+
message: 'At least one field is required',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const UpdateAdminReferralConfigCommandResponse = AdminReferralConfigResponseSchema;
|
|
21
|
+
|
|
22
|
+
export const UpdateAdminReferralConfigCommand = defineContract({
|
|
23
|
+
method: HTTP_METHODS.PATCH,
|
|
24
|
+
path: ADMIN_ROUTES.REFERRAL_CONFIG,
|
|
25
|
+
summary: 'Update admin referral config',
|
|
26
|
+
request: {
|
|
27
|
+
body: UpdateAdminReferralConfigCommandBody,
|
|
28
|
+
},
|
|
29
|
+
responses: {
|
|
30
|
+
200: UpdateAdminReferralConfigCommandResponse,
|
|
31
|
+
400: HttpErrorResponseSchema,
|
|
32
|
+
401: HttpErrorResponseSchema,
|
|
33
|
+
403: HttpErrorResponseSchema,
|
|
34
|
+
500: HttpErrorResponseSchema,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export type UpdateAdminReferralConfigCommandBodyType = z.infer<typeof UpdateAdminReferralConfigCommandBody>;
|
|
39
|
+
export type UpdateAdminReferralConfigCommandResponseType = z.infer<typeof UpdateAdminReferralConfigCommandResponse>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, defineCursorPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminPartnerBonusOperationResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const GetAdminPartnerBonusOperationsQueryParams = z.object({
|
|
7
|
+
partnerId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetAdminPartnerBonusOperationsQueryQuery = defineCursorPaginationQuery(z.uuid());
|
|
11
|
+
|
|
12
|
+
export const GetAdminPartnerBonusOperationsQueryResponse = z.object({
|
|
13
|
+
operations: z.array(AdminPartnerBonusOperationResponseSchema),
|
|
14
|
+
nextCursor: z.uuid().nullable(),
|
|
15
|
+
hasMore: z.boolean(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const GetAdminPartnerBonusOperationsQuery = defineContract({
|
|
19
|
+
method: HTTP_METHODS.GET,
|
|
20
|
+
path: ADMIN_ROUTES.GET_PARTNER_BONUS_OPERATIONS(':partnerId'),
|
|
21
|
+
summary: 'Get admin partner bonus operations',
|
|
22
|
+
request: {
|
|
23
|
+
params: GetAdminPartnerBonusOperationsQueryParams,
|
|
24
|
+
query: GetAdminPartnerBonusOperationsQueryQuery,
|
|
25
|
+
},
|
|
26
|
+
responses: {
|
|
27
|
+
200: GetAdminPartnerBonusOperationsQueryResponse,
|
|
28
|
+
401: HttpErrorResponseSchema,
|
|
29
|
+
403: HttpErrorResponseSchema,
|
|
30
|
+
404: HttpErrorResponseSchema,
|
|
31
|
+
500: HttpErrorResponseSchema,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export type GetAdminPartnerBonusOperationsQueryParamsType = z.infer<typeof GetAdminPartnerBonusOperationsQueryParams>;
|
|
36
|
+
export type GetAdminPartnerBonusOperationsQueryQueryType = z.infer<typeof GetAdminPartnerBonusOperationsQueryQuery>;
|
|
37
|
+
export type GetAdminPartnerBonusOperationsQueryResponseType = z.infer<
|
|
38
|
+
typeof GetAdminPartnerBonusOperationsQueryResponse
|
|
39
|
+
>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, defineCursorPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminPartnerL2BonusResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const GetAdminPartnerL2BonusesQueryParams = z.object({
|
|
7
|
+
partnerId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetAdminPartnerL2BonusesQueryQuery = defineCursorPaginationQuery(z.uuid());
|
|
11
|
+
|
|
12
|
+
export const GetAdminPartnerL2BonusesQueryResponse = z.object({
|
|
13
|
+
bonuses: z.array(AdminPartnerL2BonusResponseSchema),
|
|
14
|
+
nextCursor: z.uuid().nullable(),
|
|
15
|
+
hasMore: z.boolean(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const GetAdminPartnerL2BonusesQuery = defineContract({
|
|
19
|
+
method: HTTP_METHODS.GET,
|
|
20
|
+
path: ADMIN_ROUTES.GET_PARTNER_L2_BONUSES(':partnerId'),
|
|
21
|
+
summary: 'Get admin partner L2 bonuses',
|
|
22
|
+
request: {
|
|
23
|
+
params: GetAdminPartnerL2BonusesQueryParams,
|
|
24
|
+
query: GetAdminPartnerL2BonusesQueryQuery,
|
|
25
|
+
},
|
|
26
|
+
responses: {
|
|
27
|
+
200: GetAdminPartnerL2BonusesQueryResponse,
|
|
28
|
+
401: HttpErrorResponseSchema,
|
|
29
|
+
403: HttpErrorResponseSchema,
|
|
30
|
+
404: HttpErrorResponseSchema,
|
|
31
|
+
500: HttpErrorResponseSchema,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export type GetAdminPartnerL2BonusesQueryParamsType = z.infer<typeof GetAdminPartnerL2BonusesQueryParams>;
|
|
36
|
+
export type GetAdminPartnerL2BonusesQueryQueryType = z.infer<typeof GetAdminPartnerL2BonusesQueryQuery>;
|
|
37
|
+
export type GetAdminPartnerL2BonusesQueryResponseType = z.infer<typeof GetAdminPartnerL2BonusesQueryResponse>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminPartnerReferralConfigResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const GetAdminPartnerReferralConfigQueryParams = z.object({
|
|
7
|
+
partnerId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetAdminPartnerReferralConfigQueryResponse = AdminPartnerReferralConfigResponseSchema;
|
|
11
|
+
|
|
12
|
+
export const GetAdminPartnerReferralConfigQuery = defineContract({
|
|
13
|
+
method: HTTP_METHODS.GET,
|
|
14
|
+
path: ADMIN_ROUTES.GET_PARTNER_REFERRAL_CONFIG(':partnerId'),
|
|
15
|
+
summary: 'Get admin partner referral config',
|
|
16
|
+
request: {
|
|
17
|
+
params: GetAdminPartnerReferralConfigQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: GetAdminPartnerReferralConfigQueryResponse,
|
|
21
|
+
401: HttpErrorResponseSchema,
|
|
22
|
+
403: HttpErrorResponseSchema,
|
|
23
|
+
404: HttpErrorResponseSchema,
|
|
24
|
+
500: HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type GetAdminPartnerReferralConfigQueryParamsType = z.infer<typeof GetAdminPartnerReferralConfigQueryParams>;
|
|
29
|
+
export type GetAdminPartnerReferralConfigQueryResponseType = z.infer<typeof GetAdminPartnerReferralConfigQueryResponse>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, defineCursorPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminPartnerReferralResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const GetAdminPartnerReferralsQueryParams = z.object({
|
|
7
|
+
partnerId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetAdminPartnerReferralsQueryQuery = defineCursorPaginationQuery(z.uuid());
|
|
11
|
+
|
|
12
|
+
export const GetAdminPartnerReferralsQueryResponse = z.object({
|
|
13
|
+
referrals: z.array(AdminPartnerReferralResponseSchema),
|
|
14
|
+
nextCursor: z.uuid().nullable(),
|
|
15
|
+
hasMore: z.boolean(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const GetAdminPartnerReferralsQuery = defineContract({
|
|
19
|
+
method: HTTP_METHODS.GET,
|
|
20
|
+
path: ADMIN_ROUTES.GET_PARTNER_REFERRALS(':partnerId'),
|
|
21
|
+
summary: 'Get admin partner referrals',
|
|
22
|
+
request: {
|
|
23
|
+
params: GetAdminPartnerReferralsQueryParams,
|
|
24
|
+
query: GetAdminPartnerReferralsQueryQuery,
|
|
25
|
+
},
|
|
26
|
+
responses: {
|
|
27
|
+
200: GetAdminPartnerReferralsQueryResponse,
|
|
28
|
+
401: HttpErrorResponseSchema,
|
|
29
|
+
403: HttpErrorResponseSchema,
|
|
30
|
+
404: HttpErrorResponseSchema,
|
|
31
|
+
500: HttpErrorResponseSchema,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export type GetAdminPartnerReferralsQueryParamsType = z.infer<typeof GetAdminPartnerReferralsQueryParams>;
|
|
36
|
+
export type GetAdminPartnerReferralsQueryQueryType = z.infer<typeof GetAdminPartnerReferralsQueryQuery>;
|
|
37
|
+
export type GetAdminPartnerReferralsQueryResponseType = z.infer<typeof GetAdminPartnerReferralsQueryResponse>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { AdminPartnerDetailsResponseSchema } from '../../models';
|
|
4
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
5
|
+
|
|
6
|
+
export const GetAdminPartnerQueryParams = z.object({
|
|
7
|
+
partnerId: z.uuid(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const GetAdminPartnerQueryResponse = AdminPartnerDetailsResponseSchema;
|
|
11
|
+
|
|
12
|
+
export const GetAdminPartnerQuery = defineContract({
|
|
13
|
+
method: HTTP_METHODS.GET,
|
|
14
|
+
path: ADMIN_ROUTES.GET_PARTNER(':partnerId'),
|
|
15
|
+
summary: 'Get admin partner details',
|
|
16
|
+
request: {
|
|
17
|
+
params: GetAdminPartnerQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: GetAdminPartnerQueryResponse,
|
|
21
|
+
401: HttpErrorResponseSchema,
|
|
22
|
+
403: HttpErrorResponseSchema,
|
|
23
|
+
404: HttpErrorResponseSchema,
|
|
24
|
+
500: HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export type GetAdminPartnerQueryParamsType = z.infer<typeof GetAdminPartnerQueryParams>;
|
|
29
|
+
export type GetAdminPartnerQueryResponseType = z.infer<typeof GetAdminPartnerQueryResponse>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineContract, defineCursorPaginationQuery, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
3
|
+
import { USER_STATUS } from '../../../users';
|
|
4
|
+
import { ADMIN_PARTNER_RATES_TYPE } from '../../enums';
|
|
5
|
+
import { AdminPartnerResponseSchema } from '../../models';
|
|
6
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
7
|
+
|
|
8
|
+
export const GetAdminPartnersQueryQuery = defineCursorPaginationQuery(z.uuid()).extend({
|
|
9
|
+
search: z.string().trim().max(255).optional(),
|
|
10
|
+
status: z.enum(USER_STATUS).optional(),
|
|
11
|
+
ratesType: z.enum(ADMIN_PARTNER_RATES_TYPE).optional(),
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export const GetAdminPartnersQueryResponse = z.object({
|
|
15
|
+
partners: z.array(AdminPartnerResponseSchema),
|
|
16
|
+
nextCursor: z.uuid().nullable(),
|
|
17
|
+
hasMore: z.boolean(),
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const GetAdminPartnersQuery = defineContract({
|
|
21
|
+
method: HTTP_METHODS.GET,
|
|
22
|
+
path: ADMIN_ROUTES.GET_PARTNERS,
|
|
23
|
+
summary: 'Get admin partners list',
|
|
24
|
+
request: {
|
|
25
|
+
query: GetAdminPartnersQueryQuery,
|
|
26
|
+
},
|
|
27
|
+
responses: {
|
|
28
|
+
200: GetAdminPartnersQueryResponse,
|
|
29
|
+
401: HttpErrorResponseSchema,
|
|
30
|
+
403: HttpErrorResponseSchema,
|
|
31
|
+
500: HttpErrorResponseSchema,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export type GetAdminPartnersQueryQueryType = z.infer<typeof GetAdminPartnersQueryQuery>;
|
|
36
|
+
export type GetAdminPartnersQueryResponseType = z.infer<typeof GetAdminPartnersQueryResponse>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
2
|
+
import { AdminReferralConfigResponseSchema } from '../../models';
|
|
3
|
+
import { ADMIN_ROUTES } from '../admin';
|
|
4
|
+
|
|
5
|
+
export const GetAdminReferralConfigQueryResponse = AdminReferralConfigResponseSchema;
|
|
6
|
+
|
|
7
|
+
export const GetAdminReferralConfigQuery = defineContract({
|
|
8
|
+
method: HTTP_METHODS.GET,
|
|
9
|
+
path: ADMIN_ROUTES.REFERRAL_CONFIG,
|
|
10
|
+
summary: 'Get admin referral config',
|
|
11
|
+
responses: {
|
|
12
|
+
200: GetAdminReferralConfigQueryResponse,
|
|
13
|
+
401: HttpErrorResponseSchema,
|
|
14
|
+
403: HttpErrorResponseSchema,
|
|
15
|
+
500: HttpErrorResponseSchema,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './get-admin-referral-config.query';
|
|
2
|
+
export * from './get-admin-partner.query';
|
|
3
|
+
export * from './get-admin-partner-bonus-operations.query';
|
|
4
|
+
export * from './get-admin-partner-l2-bonuses.query';
|
|
5
|
+
export * from './get-admin-partner-referral-config.query';
|
|
6
|
+
export * from './get-admin-partner-referrals.query';
|
|
7
|
+
export * from './get-admin-partners.query';
|
package/admin/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ADMIN_BONUS_OPERATION_TYPE } from '../enums';
|
|
3
|
+
|
|
4
|
+
export const AdminBonusOperationResponseSchema = z.object({
|
|
5
|
+
uuid: z.uuid(),
|
|
6
|
+
partnerUuid: z.uuid(),
|
|
7
|
+
adminUuid: z.uuid(),
|
|
8
|
+
type: z.enum(ADMIN_BONUS_OPERATION_TYPE),
|
|
9
|
+
amount: z.number().positive(),
|
|
10
|
+
comment: z.string().min(1),
|
|
11
|
+
walletTransactionUuid: z.uuid(),
|
|
12
|
+
bonusBalanceAfter: z.number(),
|
|
13
|
+
createdAt: z.date(),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export type AdminBonusOperationResponseSchemaType = z.infer<typeof AdminBonusOperationResponseSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ADMIN_BONUS_HISTORY_OPERATION_TYPE } from '../enums';
|
|
3
|
+
|
|
4
|
+
export const AdminPartnerBonusOperationResponseSchema = z.object({
|
|
5
|
+
uuid: z.uuid(),
|
|
6
|
+
type: z.enum(ADMIN_BONUS_HISTORY_OPERATION_TYPE),
|
|
7
|
+
amount: z.number().nonnegative(),
|
|
8
|
+
balanceAfter: z.number().nullable(),
|
|
9
|
+
comment: z.string().nullable(),
|
|
10
|
+
createdAt: z.date(),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type AdminPartnerBonusOperationResponseSchemaType = z.infer<typeof AdminPartnerBonusOperationResponseSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
import { ADMIN_PARTNER_RATES_TYPE } from '../enums';
|
|
4
|
+
|
|
5
|
+
export const AdminPartnerDetailsResponseSchema = z.object({
|
|
6
|
+
uuid: z.uuid(),
|
|
7
|
+
email: z.email(),
|
|
8
|
+
referralsTotal: z.number().int().nonnegative(),
|
|
9
|
+
activeReferrals: z.number().int().nonnegative(),
|
|
10
|
+
bonusBalance: z.number(),
|
|
11
|
+
earnedTotal: z.number(),
|
|
12
|
+
spentBonuses: z.number(),
|
|
13
|
+
ratesType: z.enum(ADMIN_PARTNER_RATES_TYPE),
|
|
14
|
+
status: z.enum(USER_STATUS),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export type AdminPartnerDetailsResponseSchemaType = z.infer<typeof AdminPartnerDetailsResponseSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const AdminPartnerL2BonusResponseSchema = z.object({
|
|
4
|
+
uuid: z.uuid(),
|
|
5
|
+
partnerUuid: z.uuid(),
|
|
6
|
+
partnerEmail: z.email(),
|
|
7
|
+
amount: z.number().nonnegative(),
|
|
8
|
+
createdAt: z.date(),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export type AdminPartnerL2BonusResponseSchemaType = z.infer<typeof AdminPartnerL2BonusResponseSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PartnerReferralRateConfigSchema } from '../../referral/models';
|
|
3
|
+
import { ADMIN_PARTNER_RATES_TYPE } from '../enums';
|
|
4
|
+
|
|
5
|
+
export const AdminPartnerReferralConfigResponseSchema = z.object({
|
|
6
|
+
partnerUuid: z.uuid(),
|
|
7
|
+
ratesType: z.enum(ADMIN_PARTNER_RATES_TYPE),
|
|
8
|
+
globalRates: PartnerReferralRateConfigSchema,
|
|
9
|
+
individualRates: PartnerReferralRateConfigSchema.nullable(),
|
|
10
|
+
effectiveRates: PartnerReferralRateConfigSchema,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type AdminPartnerReferralConfigResponseSchemaType = z.infer<typeof AdminPartnerReferralConfigResponseSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const AdminPartnerReferralResponseSchema = z.object({
|
|
4
|
+
referralUuid: z.uuid(),
|
|
5
|
+
userUuid: z.uuid(),
|
|
6
|
+
email: z.email(),
|
|
7
|
+
registeredAt: z.date(),
|
|
8
|
+
depositsTotal: z.number().nonnegative(),
|
|
9
|
+
isActive: z.boolean(),
|
|
10
|
+
earnedBonusTotal: z.number().nonnegative(),
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export type AdminPartnerReferralResponseSchemaType = z.infer<typeof AdminPartnerReferralResponseSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { USER_STATUS } from '../../users';
|
|
3
|
+
import { ADMIN_PARTNER_RATES_TYPE } from '../enums';
|
|
4
|
+
|
|
5
|
+
export const AdminPartnerResponseSchema = z.object({
|
|
6
|
+
uuid: z.uuid(),
|
|
7
|
+
email: z.email(),
|
|
8
|
+
referralCode: z.uuid(),
|
|
9
|
+
refLink: z.url(),
|
|
10
|
+
referralsTotal: z.number().int().nonnegative(),
|
|
11
|
+
activeReferrals: z.number().int().nonnegative(),
|
|
12
|
+
bonusBalance: z.number(),
|
|
13
|
+
earnedTotal: z.number(),
|
|
14
|
+
ratesType: z.enum(ADMIN_PARTNER_RATES_TYPE),
|
|
15
|
+
status: z.enum(USER_STATUS),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type AdminPartnerResponseSchemaType = z.infer<typeof AdminPartnerResponseSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ReferralConfigResponseSchema } from '../../referral/models';
|
|
3
|
+
|
|
4
|
+
export const AdminReferralConfigResponseSchema = z.object({
|
|
5
|
+
config: ReferralConfigResponseSchema,
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type AdminReferralConfigResponseSchemaType = z.infer<typeof AdminReferralConfigResponseSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './admin-referral-config-response.schema';
|
|
2
|
+
export * from './admin-bonus-operation-response.schema';
|
|
3
|
+
export * from './admin-partner-details-response.schema';
|
|
4
|
+
export * from './admin-partner-bonus-operation-response.schema';
|
|
5
|
+
export * from './admin-partner-l2-bonus-response.schema';
|
|
6
|
+
export * from './admin-partner-referral-config-response.schema';
|
|
7
|
+
export * from './admin-partner-referral-response.schema';
|
|
8
|
+
export * from './admin-partner-response.schema';
|