@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,35 @@
|
|
|
1
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AUTH_ROUTES } from '../auth';
|
|
4
|
+
|
|
5
|
+
export namespace AuthRegisterSchema {
|
|
6
|
+
export const RegisterQuery = z.object({
|
|
7
|
+
ref: z.uuid().optional(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const RegisterCommandBody = z.object({
|
|
11
|
+
email: z.email(),
|
|
12
|
+
password: z.string().min(8),
|
|
13
|
+
name: z.string().min(1),
|
|
14
|
+
marketing: z.boolean(),
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export const RegisterCommandResponse = z.object({
|
|
18
|
+
success: z.literal(true),
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const RegisterCommand = defineContract({
|
|
23
|
+
method: HTTP_METHODS.POST,
|
|
24
|
+
path: AUTH_ROUTES.REGISTER,
|
|
25
|
+
summary: 'Register user',
|
|
26
|
+
request: {
|
|
27
|
+
query: AuthRegisterSchema.RegisterQuery,
|
|
28
|
+
body: AuthRegisterSchema.RegisterCommandBody,
|
|
29
|
+
},
|
|
30
|
+
responses: {
|
|
31
|
+
201: AuthRegisterSchema.RegisterCommandResponse,
|
|
32
|
+
400: HttpErrorResponseSchema,
|
|
33
|
+
409: HttpErrorResponseSchema,
|
|
34
|
+
},
|
|
35
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema, HttpSuccessResponseSchema } from '../../../_common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AUTH_ROUTES } from '../auth';
|
|
4
|
+
|
|
5
|
+
export namespace AuthResetPasswordSchema {
|
|
6
|
+
export const ResetPasswordCommandBody = z.object({
|
|
7
|
+
email: z.email(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const ResetPasswordCommandResponse = HttpSuccessResponseSchema;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const ResetPasswordCommand = defineContract({
|
|
14
|
+
method: HTTP_METHODS.POST,
|
|
15
|
+
path: AUTH_ROUTES.RESET_PASSWORD,
|
|
16
|
+
summary: 'Request password reset',
|
|
17
|
+
request: {
|
|
18
|
+
body: AuthResetPasswordSchema.ResetPasswordCommandBody,
|
|
19
|
+
},
|
|
20
|
+
responses: {
|
|
21
|
+
200: AuthResetPasswordSchema.ResetPasswordCommandResponse,
|
|
22
|
+
400: HttpErrorResponseSchema,
|
|
23
|
+
404: HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema, HttpSuccessResponseSchema } from '../../../_common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AUTH_ROUTES } from '../auth';
|
|
4
|
+
|
|
5
|
+
export namespace AuthRestorePasswordSchema {
|
|
6
|
+
export const RestorePasswordCommandBody = z.object({
|
|
7
|
+
token: z.string().min(1),
|
|
8
|
+
password: z.string().min(8),
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const RestorePasswordCommandResponse = HttpSuccessResponseSchema;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const RestorePasswordCommand = defineContract({
|
|
15
|
+
method: HTTP_METHODS.POST,
|
|
16
|
+
path: AUTH_ROUTES.RESTORE_PASSWORD,
|
|
17
|
+
summary: 'Restore password with reset token',
|
|
18
|
+
request: {
|
|
19
|
+
body: AuthRestorePasswordSchema.RestorePasswordCommandBody,
|
|
20
|
+
},
|
|
21
|
+
responses: {
|
|
22
|
+
200: AuthRestorePasswordSchema.RestorePasswordCommandResponse,
|
|
23
|
+
400: HttpErrorResponseSchema,
|
|
24
|
+
404: HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AUTH_ROUTES } from '../auth';
|
|
4
|
+
|
|
5
|
+
export namespace AuthVerifyEmailRetrySchema {
|
|
6
|
+
export const VerifyEmailRetryCommandBody = z.object({
|
|
7
|
+
email: z.email(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const VerifyEmailRetryCommandResponse = z.object({
|
|
11
|
+
success: z.boolean(),
|
|
12
|
+
accessToken: z.string().min(1).optional(),
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const VerifyEmailRetryCommand = defineContract({
|
|
17
|
+
method: HTTP_METHODS.POST,
|
|
18
|
+
path: AUTH_ROUTES.VERIFY_EMAIL_RETRY,
|
|
19
|
+
summary: 'Retry email verification',
|
|
20
|
+
request: {
|
|
21
|
+
body: AuthVerifyEmailRetrySchema.VerifyEmailRetryCommandBody,
|
|
22
|
+
},
|
|
23
|
+
responses: {
|
|
24
|
+
200: AuthVerifyEmailRetrySchema.VerifyEmailRetryCommandResponse,
|
|
25
|
+
400: HttpErrorResponseSchema,
|
|
26
|
+
404: HttpErrorResponseSchema,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineContract, HTTP_METHODS, HttpErrorResponseSchema } from '../../../_common';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AUTH_ROUTES } from '../auth';
|
|
4
|
+
|
|
5
|
+
export namespace AuthVerifyEmailSchema {
|
|
6
|
+
export const VerifyEmailCommandBody = z.object({
|
|
7
|
+
token: z.string().min(1),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const VerifyEmailCommandResponse = z.object({
|
|
11
|
+
success: z.boolean(),
|
|
12
|
+
accessToken: z.string().min(1),
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const VerifyEmailCommand = defineContract({
|
|
17
|
+
method: HTTP_METHODS.POST,
|
|
18
|
+
path: AUTH_ROUTES.VERIFY_EMAIL,
|
|
19
|
+
summary: 'Verify user email',
|
|
20
|
+
request: {
|
|
21
|
+
body: AuthVerifyEmailSchema.VerifyEmailCommandBody,
|
|
22
|
+
},
|
|
23
|
+
responses: {
|
|
24
|
+
200: AuthVerifyEmailSchema.VerifyEmailCommandResponse,
|
|
25
|
+
400: HttpErrorResponseSchema,
|
|
26
|
+
404: HttpErrorResponseSchema,
|
|
27
|
+
},
|
|
28
|
+
});
|
package/auth/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './endpoints';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export interface HttpErrorResponse {
|
|
3
|
+
message: string;
|
|
4
|
+
code: string;
|
|
5
|
+
httpCode: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const HttpErrorResponseSchema: z.ZodType<HttpErrorResponse>;
|
|
8
|
+
export declare function makeHttpErrorResponseSchema<const T extends HttpErrorResponse>(error: T): z.ZodObject<{
|
|
9
|
+
message: z.ZodLiteral<string>;
|
|
10
|
+
code: z.ZodLiteral<string>;
|
|
11
|
+
httpCode: z.ZodLiteral<number>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
//# sourceMappingURL=error.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.contract.d.ts","sourceRoot":"","sources":["../../_common/error.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAI/D,CAAC;AAEH,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,CAAC,SAAS,iBAAiB,EAAE,KAAK,EAAE,CAAC;;;;kBAMtF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpErrorResponseSchema = void 0;
|
|
4
|
+
exports.makeHttpErrorResponseSchema = makeHttpErrorResponseSchema;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.HttpErrorResponseSchema = zod_1.z.object({
|
|
7
|
+
message: zod_1.z.string(),
|
|
8
|
+
code: zod_1.z.string(),
|
|
9
|
+
httpCode: zod_1.z.int(),
|
|
10
|
+
});
|
|
11
|
+
function makeHttpErrorResponseSchema(error) {
|
|
12
|
+
return zod_1.z.object({
|
|
13
|
+
message: zod_1.z.literal(error.message),
|
|
14
|
+
code: zod_1.z.literal(error.code),
|
|
15
|
+
httpCode: zod_1.z.literal(error.httpCode),
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare enum HTTP_METHODS {
|
|
3
|
+
GET = "GET",
|
|
4
|
+
POST = "POST",
|
|
5
|
+
PUT = "PUT",
|
|
6
|
+
PATCH = "PATCH",
|
|
7
|
+
DELETE = "DELETE"
|
|
8
|
+
}
|
|
9
|
+
export type HttpContract = {
|
|
10
|
+
method: HTTP_METHODS;
|
|
11
|
+
path: string;
|
|
12
|
+
summary: string;
|
|
13
|
+
request?: {
|
|
14
|
+
body?: z.ZodTypeAny;
|
|
15
|
+
params?: z.ZodObject<z.ZodRawShape>;
|
|
16
|
+
query?: z.ZodObject<z.ZodRawShape>;
|
|
17
|
+
};
|
|
18
|
+
responses: Record<number, z.ZodTypeAny>;
|
|
19
|
+
};
|
|
20
|
+
export declare function defineContract<T extends HttpContract>(contract: T): T;
|
|
21
|
+
//# sourceMappingURL=http-contract.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-contract.helper.d.ts","sourceRoot":"","sources":["../../_common/http-contract.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,YAAY;IACpB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;CACpB;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC;QACpB,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QACpC,KAAK,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;KACtC,CAAC;IACF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;CAC3C,CAAC;AAEF,wBAAgB,cAAc,CAAC,CAAC,SAAS,YAAY,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CAErE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTTP_METHODS = void 0;
|
|
4
|
+
exports.defineContract = defineContract;
|
|
5
|
+
var HTTP_METHODS;
|
|
6
|
+
(function (HTTP_METHODS) {
|
|
7
|
+
HTTP_METHODS["GET"] = "GET";
|
|
8
|
+
HTTP_METHODS["POST"] = "POST";
|
|
9
|
+
HTTP_METHODS["PUT"] = "PUT";
|
|
10
|
+
HTTP_METHODS["PATCH"] = "PATCH";
|
|
11
|
+
HTTP_METHODS["DELETE"] = "DELETE";
|
|
12
|
+
})(HTTP_METHODS || (exports.HTTP_METHODS = HTTP_METHODS = {}));
|
|
13
|
+
function defineContract(contract) {
|
|
14
|
+
return contract;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../_common/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./http-contract.helper"), exports);
|
|
18
|
+
__exportStar(require("./error.contract"), exports);
|
|
19
|
+
__exportStar(require("./success.contract"), exports);
|
|
20
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"success.contract.d.ts","sourceRoot":"","sources":["../../_common/success.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAEnE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CURSOR_PAGINATION_DEFAULT_LIMIT = 20;
|
|
3
|
+
export declare const defineCursorPaginationQuery: <TCursorSchema extends z.ZodTypeAny>(cursorSchema: TCursorSchema) => z.ZodObject<{
|
|
4
|
+
cursor: z.ZodOptional<TCursorSchema>;
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
//# sourceMappingURL=cursor-pagination.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor-pagination.type.d.ts","sourceRoot":"","sources":["../../../_common/types/cursor-pagination.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD,eAAO,MAAM,2BAA2B,GAAI,aAAa,SAAS,CAAC,CAAC,UAAU,EAAE,cAAc,aAAa;;;iBAIrG,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineCursorPaginationQuery = exports.CURSOR_PAGINATION_DEFAULT_LIMIT = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CURSOR_PAGINATION_DEFAULT_LIMIT = 20;
|
|
6
|
+
const defineCursorPaginationQuery = (cursorSchema) => zod_1.z.object({
|
|
7
|
+
cursor: cursorSchema.optional(),
|
|
8
|
+
limit: zod_1.z.coerce.number().int().min(1).max(30).default(exports.CURSOR_PAGINATION_DEFAULT_LIMIT).optional(),
|
|
9
|
+
});
|
|
10
|
+
exports.defineCursorPaginationQuery = defineCursorPaginationQuery;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.type.d.ts","sourceRoot":"","sources":["../../../_common/types/icon.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;iBAGrB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../_common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,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("./cursor-pagination.type"), exports);
|
|
18
|
+
__exportStar(require("./icon.type"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ADMIN_CONTROLLER: "admin";
|
|
2
|
+
export declare const ADMIN_ROUTES: {
|
|
3
|
+
readonly GET_PARTNERS: "partners";
|
|
4
|
+
readonly GET_PARTNER: (partnerId: string) => string;
|
|
5
|
+
readonly GET_PARTNER_REFERRALS: (partnerId: string) => string;
|
|
6
|
+
readonly GET_PARTNER_L2_BONUSES: (partnerId: string) => string;
|
|
7
|
+
readonly GET_PARTNER_REFERRAL_CONFIG: (partnerId: string) => string;
|
|
8
|
+
readonly UPDATE_PARTNER_REFERRAL_CONFIG: (partnerId: string) => string;
|
|
9
|
+
readonly GET_PARTNER_BONUS_OPERATIONS: (partnerId: string) => string;
|
|
10
|
+
readonly CREATE_PARTNER_BONUS_OPERATION: (partnerId: string) => string;
|
|
11
|
+
readonly REFERRAL_CONFIG: "referral-config";
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/admin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;sCAEI,MAAM;gDACI,MAAM;iDACL,MAAM;sDACD,MAAM;yDACH,MAAM;uDACR,MAAM;yDACJ,MAAM;;CAE5C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ADMIN_ROUTES = exports.ADMIN_CONTROLLER = void 0;
|
|
4
|
+
exports.ADMIN_CONTROLLER = 'admin';
|
|
5
|
+
exports.ADMIN_ROUTES = {
|
|
6
|
+
GET_PARTNERS: 'partners',
|
|
7
|
+
GET_PARTNER: (partnerId) => `partners/${partnerId}`,
|
|
8
|
+
GET_PARTNER_REFERRALS: (partnerId) => `partners/${partnerId}/referrals`,
|
|
9
|
+
GET_PARTNER_L2_BONUSES: (partnerId) => `partners/${partnerId}/l2-bonuses`,
|
|
10
|
+
GET_PARTNER_REFERRAL_CONFIG: (partnerId) => `partners/${partnerId}/referral-config`,
|
|
11
|
+
UPDATE_PARTNER_REFERRAL_CONFIG: (partnerId) => `partners/${partnerId}/referral-config`,
|
|
12
|
+
GET_PARTNER_BONUS_OPERATIONS: (partnerId) => `partners/${partnerId}/bonus-operations`,
|
|
13
|
+
CREATE_PARTNER_BONUS_OPERATION: (partnerId) => `partners/${partnerId}/bonus-operations`,
|
|
14
|
+
REFERRAL_CONFIG: 'referral-config',
|
|
15
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { ADMIN_BONUS_OPERATION_TYPE } from '../../enums';
|
|
4
|
+
export declare const CreateAdminPartnerBonusOperationCommandParams: z.ZodObject<{
|
|
5
|
+
partnerId: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const CreateAdminPartnerBonusOperationCommandBody: z.ZodObject<{
|
|
8
|
+
type: z.ZodEnum<typeof ADMIN_BONUS_OPERATION_TYPE>;
|
|
9
|
+
amount: z.ZodNumber;
|
|
10
|
+
comment: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const CreateAdminPartnerBonusOperationCommandResponse: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
partnerUuid: z.ZodUUID;
|
|
15
|
+
adminUuid: z.ZodUUID;
|
|
16
|
+
type: z.ZodEnum<typeof ADMIN_BONUS_OPERATION_TYPE>;
|
|
17
|
+
amount: z.ZodNumber;
|
|
18
|
+
comment: z.ZodString;
|
|
19
|
+
walletTransactionUuid: z.ZodUUID;
|
|
20
|
+
bonusBalanceAfter: z.ZodNumber;
|
|
21
|
+
createdAt: z.ZodDate;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const CreateAdminPartnerBonusOperationCommand: {
|
|
24
|
+
method: HTTP_METHODS.POST;
|
|
25
|
+
path: string;
|
|
26
|
+
summary: string;
|
|
27
|
+
request: {
|
|
28
|
+
params: z.ZodObject<{
|
|
29
|
+
partnerId: z.ZodUUID;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
body: z.ZodObject<{
|
|
32
|
+
type: z.ZodEnum<typeof ADMIN_BONUS_OPERATION_TYPE>;
|
|
33
|
+
amount: z.ZodNumber;
|
|
34
|
+
comment: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
};
|
|
37
|
+
responses: {
|
|
38
|
+
201: z.ZodObject<{
|
|
39
|
+
uuid: z.ZodUUID;
|
|
40
|
+
partnerUuid: z.ZodUUID;
|
|
41
|
+
adminUuid: z.ZodUUID;
|
|
42
|
+
type: z.ZodEnum<typeof ADMIN_BONUS_OPERATION_TYPE>;
|
|
43
|
+
amount: z.ZodNumber;
|
|
44
|
+
comment: z.ZodString;
|
|
45
|
+
walletTransactionUuid: z.ZodUUID;
|
|
46
|
+
bonusBalanceAfter: z.ZodNumber;
|
|
47
|
+
createdAt: z.ZodDate;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
50
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
51
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
52
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
53
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type CreateAdminPartnerBonusOperationCommandParamsType = z.infer<typeof CreateAdminPartnerBonusOperationCommandParams>;
|
|
57
|
+
export type CreateAdminPartnerBonusOperationCommandBodyType = z.infer<typeof CreateAdminPartnerBonusOperationCommandBody>;
|
|
58
|
+
export type CreateAdminPartnerBonusOperationCommandResponseType = z.infer<typeof CreateAdminPartnerBonusOperationCommandResponse>;
|
|
59
|
+
//# sourceMappingURL=create-admin-partner-bonus-operation.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-admin-partner-bonus-operation.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/create-admin-partner-bonus-operation.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAIzD,eAAO,MAAM,6CAA6C;;iBAExD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;iBAItD,CAAC;AAEH,eAAO,MAAM,+CAA+C;;;;;;;;;;iBAAoC,CAAC;AAEjG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBlD,CAAC;AAEH,MAAM,MAAM,iDAAiD,GAAG,CAAC,CAAC,KAAK,CACnE,OAAO,6CAA6C,CACvD,CAAC;AACF,MAAM,MAAM,+CAA+C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,2CAA2C,CACrD,CAAC;AACF,MAAM,MAAM,mDAAmD,GAAG,CAAC,CAAC,KAAK,CACrE,OAAO,+CAA+C,CACzD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAdminPartnerBonusOperationCommand = exports.CreateAdminPartnerBonusOperationCommandResponse = exports.CreateAdminPartnerBonusOperationCommandBody = exports.CreateAdminPartnerBonusOperationCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const enums_1 = require("../../enums");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
exports.CreateAdminPartnerBonusOperationCommandParams = zod_1.z.object({
|
|
10
|
+
partnerId: zod_1.z.uuid(),
|
|
11
|
+
});
|
|
12
|
+
exports.CreateAdminPartnerBonusOperationCommandBody = zod_1.z.object({
|
|
13
|
+
type: zod_1.z.enum(enums_1.ADMIN_BONUS_OPERATION_TYPE),
|
|
14
|
+
amount: zod_1.z.number().positive(),
|
|
15
|
+
comment: zod_1.z.string().trim().min(1).max(1000),
|
|
16
|
+
});
|
|
17
|
+
exports.CreateAdminPartnerBonusOperationCommandResponse = models_1.AdminBonusOperationResponseSchema;
|
|
18
|
+
exports.CreateAdminPartnerBonusOperationCommand = (0, _common_1.defineContract)({
|
|
19
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
20
|
+
path: admin_1.ADMIN_ROUTES.CREATE_PARTNER_BONUS_OPERATION(':partnerId'),
|
|
21
|
+
summary: 'Create admin partner bonus operation',
|
|
22
|
+
request: {
|
|
23
|
+
params: exports.CreateAdminPartnerBonusOperationCommandParams,
|
|
24
|
+
body: exports.CreateAdminPartnerBonusOperationCommandBody,
|
|
25
|
+
},
|
|
26
|
+
responses: {
|
|
27
|
+
201: exports.CreateAdminPartnerBonusOperationCommandResponse,
|
|
28
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
31
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
32
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,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("./create-admin-partner-bonus-operation.command"), exports);
|
|
18
|
+
__exportStar(require("./update-admin-partner-referral-config.command"), exports);
|
|
19
|
+
__exportStar(require("./update-admin-referral-config.command"), exports);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { ADMIN_PARTNER_RATES_TYPE } from '../../enums';
|
|
4
|
+
export declare const UpdateAdminPartnerReferralConfigCommandParams: z.ZodObject<{
|
|
5
|
+
partnerId: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const UpdateAdminPartnerReferralConfigCommandBody: z.ZodObject<{
|
|
8
|
+
ratesType: z.ZodEnum<typeof ADMIN_PARTNER_RATES_TYPE>;
|
|
9
|
+
firstPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
firstPaymentReferrerFixedBonus: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
firstPaymentRefereeFixedBonus: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
subsequentPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
l2ReferralPercent: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const UpdateAdminPartnerReferralConfigCommandResponse: z.ZodObject<{
|
|
16
|
+
partnerUuid: z.ZodUUID;
|
|
17
|
+
ratesType: z.ZodEnum<typeof ADMIN_PARTNER_RATES_TYPE>;
|
|
18
|
+
globalRates: z.ZodObject<{
|
|
19
|
+
firstPaymentReferrerPercent: z.ZodNumber;
|
|
20
|
+
firstPaymentReferrerFixedBonus: z.ZodNumber;
|
|
21
|
+
firstPaymentRefereeFixedBonus: z.ZodNumber;
|
|
22
|
+
subsequentPaymentReferrerPercent: z.ZodNumber;
|
|
23
|
+
l2ReferralPercent: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
individualRates: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
firstPaymentReferrerPercent: z.ZodNumber;
|
|
27
|
+
firstPaymentReferrerFixedBonus: z.ZodNumber;
|
|
28
|
+
firstPaymentRefereeFixedBonus: z.ZodNumber;
|
|
29
|
+
subsequentPaymentReferrerPercent: z.ZodNumber;
|
|
30
|
+
l2ReferralPercent: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
effectiveRates: z.ZodObject<{
|
|
33
|
+
firstPaymentReferrerPercent: z.ZodNumber;
|
|
34
|
+
firstPaymentReferrerFixedBonus: z.ZodNumber;
|
|
35
|
+
firstPaymentRefereeFixedBonus: z.ZodNumber;
|
|
36
|
+
subsequentPaymentReferrerPercent: z.ZodNumber;
|
|
37
|
+
l2ReferralPercent: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export declare const UpdateAdminPartnerReferralConfigCommand: {
|
|
41
|
+
method: HTTP_METHODS.PATCH;
|
|
42
|
+
path: string;
|
|
43
|
+
summary: string;
|
|
44
|
+
request: {
|
|
45
|
+
params: z.ZodObject<{
|
|
46
|
+
partnerId: z.ZodUUID;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
body: z.ZodObject<{
|
|
49
|
+
ratesType: z.ZodEnum<typeof ADMIN_PARTNER_RATES_TYPE>;
|
|
50
|
+
firstPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
firstPaymentReferrerFixedBonus: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
firstPaymentRefereeFixedBonus: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
subsequentPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
l2ReferralPercent: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
};
|
|
57
|
+
responses: {
|
|
58
|
+
200: z.ZodObject<{
|
|
59
|
+
partnerUuid: z.ZodUUID;
|
|
60
|
+
ratesType: z.ZodEnum<typeof ADMIN_PARTNER_RATES_TYPE>;
|
|
61
|
+
globalRates: z.ZodObject<{
|
|
62
|
+
firstPaymentReferrerPercent: z.ZodNumber;
|
|
63
|
+
firstPaymentReferrerFixedBonus: z.ZodNumber;
|
|
64
|
+
firstPaymentRefereeFixedBonus: z.ZodNumber;
|
|
65
|
+
subsequentPaymentReferrerPercent: z.ZodNumber;
|
|
66
|
+
l2ReferralPercent: z.ZodNumber;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
individualRates: z.ZodNullable<z.ZodObject<{
|
|
69
|
+
firstPaymentReferrerPercent: z.ZodNumber;
|
|
70
|
+
firstPaymentReferrerFixedBonus: z.ZodNumber;
|
|
71
|
+
firstPaymentRefereeFixedBonus: z.ZodNumber;
|
|
72
|
+
subsequentPaymentReferrerPercent: z.ZodNumber;
|
|
73
|
+
l2ReferralPercent: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
effectiveRates: z.ZodObject<{
|
|
76
|
+
firstPaymentReferrerPercent: z.ZodNumber;
|
|
77
|
+
firstPaymentReferrerFixedBonus: z.ZodNumber;
|
|
78
|
+
firstPaymentRefereeFixedBonus: z.ZodNumber;
|
|
79
|
+
subsequentPaymentReferrerPercent: z.ZodNumber;
|
|
80
|
+
l2ReferralPercent: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
84
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
85
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
86
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
87
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type UpdateAdminPartnerReferralConfigCommandParamsType = z.infer<typeof UpdateAdminPartnerReferralConfigCommandParams>;
|
|
91
|
+
export type UpdateAdminPartnerReferralConfigCommandBodyType = z.infer<typeof UpdateAdminPartnerReferralConfigCommandBody>;
|
|
92
|
+
export type UpdateAdminPartnerReferralConfigCommandResponseType = z.infer<typeof UpdateAdminPartnerReferralConfigCommandResponse>;
|
|
93
|
+
//# sourceMappingURL=update-admin-partner-referral-config.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-admin-partner-referral-config.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-partner-referral-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAIvD,eAAO,MAAM,6CAA6C;;iBAExD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;iBAOtD,CAAC;AAEH,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;iBAA2C,CAAC;AAExG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBlD,CAAC;AAEH,MAAM,MAAM,iDAAiD,GAAG,CAAC,CAAC,KAAK,CACnE,OAAO,6CAA6C,CACvD,CAAC;AACF,MAAM,MAAM,+CAA+C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,2CAA2C,CACrD,CAAC;AACF,MAAM,MAAM,mDAAmD,GAAG,CAAC,CAAC,KAAK,CACrE,OAAO,+CAA+C,CACzD,CAAC"}
|