@purpleschool/gptbot 0.8.58 → 0.8.60
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/api/controllers/http/ai-model.ts +1 -0
- package/api/controllers/http/chat-private.ts +0 -1
- package/api/controllers/http/community.ts +25 -0
- package/api/controllers/http/image-generation.ts +14 -0
- package/api/controllers/http/index.ts +3 -1
- package/api/controllers/http/page.ts +1 -0
- package/api/controllers/http/paraphrase.ts +6 -0
- package/api/controllers/http/payment.ts +1 -0
- package/api/controllers/http/presentation.ts +1 -0
- package/api/controllers/http/product.ts +1 -1
- package/api/controllers/http/referral.ts +1 -1
- package/api/controllers/http/review.ts +1 -0
- package/api/controllers/http/subscription.ts +1 -1
- package/api/controllers/http/ui-notification.ts +2 -2
- package/api/controllers/http/user-profile.ts +8 -0
- package/api/controllers/http/user-to-subscription.ts +1 -0
- package/api/controllers/http/user.ts +2 -0
- package/api/routes.ts +139 -22
- package/build/api/controllers/http/ai-model.js +1 -0
- package/build/api/controllers/http/chat-private.js +0 -1
- package/build/api/controllers/http/community.js +25 -0
- package/build/api/controllers/http/image-generation.js +16 -0
- package/build/api/controllers/http/index.js +3 -1
- package/build/api/controllers/http/page.js +1 -0
- package/build/api/controllers/http/paraphrase.js +6 -0
- package/build/api/controllers/http/payment.js +1 -0
- package/build/api/controllers/http/presentation.js +1 -0
- package/build/api/controllers/http/product.js +1 -1
- package/build/api/controllers/http/referral.js +1 -1
- package/build/api/controllers/http/review.js +1 -0
- package/build/api/controllers/http/subscription.js +1 -1
- package/build/api/controllers/http/ui-notification.js +2 -2
- package/build/api/controllers/http/user-profile.js +10 -0
- package/build/api/controllers/http/user-to-subscription.js +1 -0
- package/build/api/controllers/http/user.js +2 -0
- package/build/api/routes.js +99 -21
- package/build/commands/ai-model/find-formatted-ai-model-v2.command.js +23 -0
- package/build/commands/ai-model/find-model-pages.command.js +31 -0
- package/build/commands/ai-model/index.js +2 -0
- package/build/commands/community/archive-community-post.command.js +13 -0
- package/build/commands/community/create-community-post.command.js +34 -0
- package/build/commands/community/delete-community-post.command.js +13 -0
- package/build/commands/community/get-all-community-posts-by-criteria.command.js +25 -0
- package/build/commands/community/get-community-post-by-uuid.command.js +14 -0
- package/build/commands/community/get-count-of-likes-on-my-posts.command.js +10 -0
- package/build/commands/community/get-my-community-posts-by-criteria.command.js +32 -0
- package/build/commands/community/get-my-favorite-community-posts.command.js +19 -0
- package/build/commands/community/get-my-likes-community-posts.command.js +19 -0
- package/build/commands/community/index.js +29 -0
- package/build/commands/community/send-report-to-community-post.command.js +15 -0
- package/build/commands/community/set-favorite-community-post.command.js +13 -0
- package/build/commands/community/set-like-community-post.command.js +14 -0
- package/build/commands/community/share-my-community-post.command.js +13 -0
- package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +1 -0
- package/build/commands/folder/find-folders-by-user.command.js +1 -0
- package/build/commands/index.js +2 -0
- package/build/commands/message/index.js +0 -1
- package/build/commands/payment/check.command.js +1 -1
- package/build/commands/payment/index.js +1 -0
- package/build/commands/payment/refund-payment.command.js +15 -0
- package/build/commands/review/create-review.command.js +1 -1
- package/build/commands/review/find-all-reviews.command.js +20 -0
- package/build/commands/review/find-reviews.command.js +1 -1
- package/build/commands/review/get-review-count.command.js +15 -0
- package/build/commands/review/index.js +2 -0
- package/build/commands/subscription/create-custom-subscription-plan.command.js +1 -1
- package/build/commands/tools/image-editor/retry-image-editor-job.command.js +10 -0
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.js +11 -1
- package/build/commands/tools/image-generation/delete-all-image-generation-jobs.command.js +10 -0
- package/build/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.js +13 -0
- package/build/commands/tools/image-generation/find-image-generation-job-by-uuid.command.js +14 -0
- package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +18 -0
- package/build/commands/tools/image-generation/get-image-generation-config.command.js +11 -0
- package/build/commands/tools/image-generation/image-generation.command.js +23 -0
- package/build/commands/tools/image-generation/index.js +24 -0
- package/build/commands/tools/image-generation/set-reaction-to-image-generation-job.command.js +28 -0
- package/build/commands/tools/image-generation/update-image-generation-job-title.command.js +17 -0
- package/build/commands/tools/index.js +1 -0
- package/build/commands/tools/music/retry-music-job.command.js +4 -0
- package/build/commands/tools/music/set-reaction-to-music-job.command.js +11 -1
- package/build/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.js +8 -0
- package/build/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.js +11 -0
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +18 -0
- package/build/commands/tools/paraphrase/index.js +7 -1
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.js +14 -0
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.js +28 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.js +17 -0
- package/build/commands/tools/presentation/index.js +1 -0
- package/build/commands/tools/presentation/set-reaction-to-presentation.command.js +28 -0
- package/build/commands/tools/stt/set-reaction-to-stt-job.command.js +11 -1
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.js +11 -1
- package/build/commands/tools/video/retry-video-job.command.js +5 -0
- package/build/commands/tools/video/set-reaction-to-video-job.command.js +11 -1
- package/build/commands/tools/video-editor/retry-video-editor-job.command.js +5 -0
- package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +11 -1
- package/build/commands/tools/writer/set-reaction.writer-document.command.js +11 -1
- package/build/commands/user/cancel-user-subscription.command.js +21 -0
- package/build/commands/user/find-users-by-criteria.command.js +1 -1
- package/build/commands/user/get-me.command.js +2 -0
- package/build/commands/user/get-user-payments.command.js +26 -0
- package/build/commands/user/get-user-products.command.js +1 -1
- package/build/commands/user/get-user-subscriptions.command.js +1 -1
- package/build/commands/user/index.js +2 -0
- package/build/commands/user-profile/delete-avatar.command.js +12 -0
- package/build/commands/user-profile/get-user-profile-by-user-id.command.js +14 -0
- package/build/commands/user-profile/index.js +20 -0
- package/build/commands/user-profile/update-profile.command.js +14 -0
- package/build/commands/user-profile/upload-avatar.command.js +11 -0
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +16 -0
- package/build/commands/user-to-subscription/index.js +1 -0
- package/build/commands/webmaster-click/get-webmaster-clicks-overview.command.js +3 -6
- package/build/constants/cloud-payments/index.js +2 -1
- package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js +18 -0
- package/build/constants/community/community-post-report/enums/index.js +17 -0
- package/build/constants/community/community-post-report/index.js +17 -0
- package/build/constants/community/default-pagination.constant.js +6 -0
- package/build/constants/community/enums/community-aspect-ratio.enum.js +11 -0
- package/build/constants/community/enums/community-post-visibility.enum.js +8 -0
- package/build/constants/community/enums/community-status.enum.js +11 -0
- package/build/constants/community/enums/community-tool-type.enum.js +10 -0
- package/build/constants/community/enums/community-type.enum.js +11 -0
- package/build/constants/community/enums/index.js +21 -0
- package/build/constants/community/index.js +19 -0
- package/build/constants/errors/errors.js +275 -14
- package/build/constants/index.js +4 -0
- package/build/constants/model/enums/index.js +17 -0
- package/build/constants/model/enums/unified-model-content-type.enum.js +21 -0
- package/build/constants/model/index.js +17 -0
- package/build/constants/page/enums/page-type.enum.js +1 -0
- package/build/constants/payment/enums/index.js +1 -0
- package/build/constants/payment/enums/payment-sort-by.enum.js +10 -0
- package/build/constants/payment/enums/payment-status.enum.js +1 -0
- package/build/constants/presentation/enums/slide-content-type.enum.js +1 -0
- package/build/constants/presentation/maps/slide-layout-map.constant.js +1 -0
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +6 -0
- package/build/constants/subscription/enums/subscription-status.enum.js +2 -2
- package/build/constants/tool/enums/index.js +1 -0
- package/build/constants/tool/enums/tool-content-type.enum.js +17 -0
- package/build/constants/tool/enums/tool-job-status.enum.js +1 -0
- package/build/constants/tool-image-generation/enums/image-generation-resolution.enum.js +9 -0
- package/build/constants/tool-image-generation/enums/index.js +17 -0
- package/build/constants/tool-image-generation/index.js +17 -0
- package/build/constants/tool-video/enums/video-pricing-rule-type.enum.js +1 -0
- package/build/constants/user-profile/index.js +17 -0
- package/build/constants/user-profile/user-profile.constant.js +10 -0
- package/build/helpers/image-editor/calculate-image-editor-price.helper.js +13 -0
- package/build/helpers/image-editor/index.js +17 -0
- package/build/helpers/image-generation/calculate-image-generation-price.helper.js +16 -0
- package/build/helpers/image-generation/index.js +17 -0
- package/build/helpers/index.js +2 -0
- package/build/helpers/video/calculate-video-price.helper.js +5 -1
- package/build/models/community/community-post-media-data.schema.js +53 -0
- package/build/models/community/community-post-report/community-post-report.schema.js +13 -0
- package/build/models/community/community-post-report/index.js +17 -0
- package/build/models/community/community-post.schema.js +44 -0
- package/build/models/community/index.js +19 -0
- package/build/models/index.js +2 -0
- package/build/models/order.schema.js +1 -0
- package/build/models/page.schema.js +2 -1
- package/build/models/payment.schema.js +5 -2
- package/build/models/review.schema.js +2 -0
- package/build/models/subscription-feature.schema.js +27 -1
- package/build/models/tool.schema.js +3 -0
- package/build/models/tools/common/attached-tool-file.schema.js +13 -0
- package/build/models/tools/common/index.js +17 -0
- package/build/models/tools/image-editor/image-editor-config.schema.js +1 -0
- package/build/models/tools/image-editor/image-editor-job.schema.js +11 -2
- package/build/models/tools/image-editor/image-editor-model.schema.js +9 -1
- package/build/models/tools/image-generation/image-generation-config.schema.js +23 -0
- package/build/models/tools/image-generation/image-generation-job.schema.js +35 -0
- package/build/models/tools/image-generation/image-generation-model.schema.js +41 -0
- package/build/models/tools/image-generation/index.js +19 -0
- package/build/models/tools/index.js +2 -0
- package/build/models/tools/music/music-track.schema.js +1 -0
- package/build/models/tools/paraphrase/paraphrase-job.schema.js +5 -0
- package/build/models/tools/presentation/pptx-export-payload.schema.js +34 -1
- package/build/models/tools/presentation/slide-content-edit.schema.js +18 -1
- package/build/models/tools/presentation/slide-content.schema.js +26 -1
- package/build/models/tools/stt/stt-job.schema.js +1 -0
- package/build/models/tools/tts/tts-job.schema.js +1 -0
- package/build/models/tools/video/video-job.schema.js +2 -0
- package/build/models/tools/video/video-model.schema.js +8 -1
- package/build/models/tools/video-editor/video-editor-job.schema.js +1 -0
- package/build/models/tools/writer/writer-document-outline.schema.js +1 -2
- package/build/models/user-profile.schema.js +16 -0
- package/build/models/webmaster-click.schema.js +2 -2
- package/commands/ai-model/find-formatted-ai-model-v2.command.ts +23 -0
- package/commands/ai-model/find-model-pages.command.ts +34 -0
- package/commands/ai-model/index.ts +2 -0
- package/commands/community/archive-community-post.command.ts +13 -0
- package/commands/community/create-community-post.command.ts +40 -0
- package/commands/community/delete-community-post.command.ts +13 -0
- package/commands/community/get-all-community-posts-by-criteria.command.ts +29 -0
- package/commands/community/get-community-post-by-uuid.command.ts +16 -0
- package/commands/community/get-count-of-likes-on-my-posts.command.ts +9 -0
- package/commands/community/get-my-community-posts-by-criteria.command.ts +40 -0
- package/commands/community/get-my-favorite-community-posts.command.ts +19 -0
- package/commands/community/get-my-likes-community-posts.command.ts +19 -0
- package/commands/community/index.ts +13 -0
- package/commands/community/send-report-to-community-post.command.ts +17 -0
- package/commands/community/set-favorite-community-post.command.ts +13 -0
- package/commands/community/set-like-community-post.command.ts +14 -0
- package/commands/community/share-my-community-post.command.ts +13 -0
- package/commands/folder/find-folder-by-uuid-with-chats.command.ts +1 -0
- package/commands/folder/find-folders-by-user.command.ts +1 -0
- package/commands/index.ts +2 -0
- package/commands/message/index.ts +0 -1
- package/commands/payment/check.command.ts +1 -1
- package/commands/payment/index.ts +1 -0
- package/commands/payment/refund-payment.command.ts +17 -0
- package/commands/review/create-review.command.ts +1 -1
- package/commands/review/find-all-reviews.command.ts +19 -0
- package/commands/review/find-reviews.command.ts +1 -1
- package/commands/review/get-review-count.command.ts +13 -0
- package/commands/review/index.ts +2 -0
- package/commands/subscription/create-custom-subscription-plan.command.ts +1 -1
- package/commands/tools/image-editor/retry-image-editor-job.command.ts +13 -1
- package/commands/tools/image-editor/set-reaction-to-image-editor-job.command.ts +16 -3
- package/commands/tools/image-generation/delete-all-image-generation-jobs.command.ts +8 -0
- package/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.ts +13 -0
- package/commands/tools/image-generation/find-image-generation-job-by-uuid.command.ts +16 -0
- package/commands/tools/image-generation/find-image-generation-jobs.command.ts +18 -0
- package/commands/tools/image-generation/get-image-generation-config.command.ts +9 -0
- package/commands/tools/image-generation/image-generation.command.ts +25 -0
- package/commands/tools/image-generation/index.ts +8 -0
- package/commands/tools/image-generation/set-reaction-to-image-generation-job.command.ts +33 -0
- package/commands/tools/image-generation/update-image-generation-job-title.command.ts +19 -0
- package/commands/tools/index.ts +1 -0
- package/commands/tools/music/retry-music-job.command.ts +7 -1
- package/commands/tools/music/set-reaction-to-music-job.command.ts +16 -3
- package/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.ts +6 -0
- package/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.ts +11 -0
- package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +18 -0
- package/commands/tools/paraphrase/index.ts +7 -1
- package/commands/tools/paraphrase/retry-paraphrase-job.command.ts +14 -0
- package/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.ts +33 -0
- package/commands/tools/paraphrase/update-paraphrase-job-title.command.ts +19 -0
- package/commands/tools/presentation/index.ts +1 -0
- package/commands/tools/presentation/set-reaction-to-presentation.command.ts +33 -0
- package/commands/tools/stt/set-reaction-to-stt-job.command.ts +16 -3
- package/commands/tools/tts/set-reaction-to-tts-job.command.ts +16 -3
- package/commands/tools/video/retry-video-job.command.ts +8 -1
- package/commands/tools/video/set-reaction-to-video-job.command.ts +16 -3
- package/commands/tools/video-editor/retry-video-editor-job.command.ts +7 -0
- package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +16 -3
- package/commands/tools/writer/set-reaction.writer-document.command.ts +16 -3
- package/commands/user/cancel-user-subscription.command.ts +21 -0
- package/commands/user/find-users-by-criteria.command.ts +1 -1
- package/commands/user/get-me.command.ts +2 -0
- package/commands/user/get-user-payments.command.ts +27 -0
- package/commands/user/get-user-products.command.ts +2 -2
- package/commands/user/get-user-subscriptions.command.ts +2 -2
- package/commands/user/index.ts +2 -0
- package/commands/user-profile/delete-avatar.command.ts +14 -0
- package/commands/user-profile/get-user-profile-by-user-id.command.ts +16 -0
- package/commands/user-profile/index.ts +4 -0
- package/commands/user-profile/update-profile.command.ts +16 -0
- package/commands/user-profile/upload-avatar.command.ts +10 -0
- package/commands/user-to-subscription/delete-user-to-subscription.command.ts +18 -0
- package/commands/user-to-subscription/index.ts +1 -0
- package/commands/webmaster-click/get-webmaster-clicks-overview.command.ts +3 -8
- package/constants/cloud-payments/index.ts +2 -0
- package/constants/community/community-post-report/enums/community-post-report-reason.enum.ts +14 -0
- package/constants/community/community-post-report/enums/index.ts +1 -0
- package/constants/community/community-post-report/index.ts +1 -0
- package/constants/community/default-pagination.constant.ts +4 -0
- package/constants/community/enums/community-aspect-ratio.enum.ts +7 -0
- package/constants/community/enums/community-post-visibility.enum.ts +4 -0
- package/constants/community/enums/community-status.enum.ts +7 -0
- package/constants/community/enums/community-tool-type.enum.ts +6 -0
- package/constants/community/enums/community-type.enum.ts +7 -0
- package/constants/community/enums/index.ts +5 -0
- package/constants/community/index.ts +3 -0
- package/constants/errors/errors.ts +276 -14
- package/constants/index.ts +4 -0
- package/constants/model/enums/index.ts +1 -0
- package/constants/model/enums/unified-model-content-type.enum.ts +17 -0
- package/constants/model/index.ts +1 -0
- package/constants/page/enums/page-type.enum.ts +1 -0
- package/constants/payment/enums/index.ts +1 -0
- package/constants/payment/enums/payment-sort-by.enum.ts +6 -0
- package/constants/payment/enums/payment-status.enum.ts +1 -0
- package/constants/presentation/enums/slide-content-type.enum.ts +1 -0
- package/constants/presentation/maps/slide-layout-map.constant.ts +1 -0
- package/constants/subscription/enums/subscription-feature-type.enum.ts +6 -0
- package/constants/subscription/enums/subscription-status.enum.ts +2 -2
- package/constants/tool/enums/index.ts +1 -0
- package/constants/tool/enums/tool-content-type.enum.ts +13 -0
- package/constants/tool/enums/tool-job-status.enum.ts +1 -0
- package/constants/tool-image-generation/enums/image-generation-resolution.enum.ts +5 -0
- package/constants/tool-image-generation/enums/index.ts +1 -0
- package/constants/tool-image-generation/index.ts +1 -0
- package/constants/tool-video/enums/video-pricing-rule-type.enum.ts +1 -0
- package/constants/user-profile/index.ts +1 -0
- package/constants/user-profile/user-profile.constant.ts +14 -0
- package/helpers/image-editor/calculate-image-editor-price.helper.ts +23 -0
- package/helpers/image-editor/index.ts +1 -0
- package/helpers/image-generation/calculate-image-generation-price.helper.ts +29 -0
- package/helpers/image-generation/index.ts +1 -0
- package/helpers/index.ts +2 -0
- package/helpers/video/calculate-video-price.helper.ts +7 -1
- package/models/community/community-post-media-data.schema.ts +65 -0
- package/models/community/community-post-report/community-post-report.schema.ts +11 -0
- package/models/community/community-post-report/index.ts +1 -0
- package/models/community/community-post.schema.ts +48 -0
- package/models/community/index.ts +3 -0
- package/models/index.ts +2 -0
- package/models/order.schema.ts +1 -0
- package/models/page.schema.ts +2 -1
- package/models/payment.schema.ts +5 -1
- package/models/review.schema.ts +2 -0
- package/models/subscription-feature.schema.ts +34 -0
- package/models/tool.schema.ts +3 -0
- package/models/tools/common/attached-tool-file.schema.ts +13 -0
- package/models/tools/common/index.ts +1 -0
- package/models/tools/image-editor/image-editor-config.schema.ts +1 -0
- package/models/tools/image-editor/image-editor-job.schema.ts +13 -2
- package/models/tools/image-editor/image-editor-model.schema.ts +16 -0
- package/models/tools/image-generation/image-generation-config.schema.ts +29 -0
- package/models/tools/image-generation/image-generation-job.schema.ts +42 -0
- package/models/tools/image-generation/image-generation-model.schema.ts +52 -0
- package/models/tools/image-generation/index.ts +3 -0
- package/models/tools/index.ts +2 -0
- package/models/tools/music/music-track.schema.ts +1 -0
- package/models/tools/paraphrase/paraphrase-job.schema.ts +5 -0
- package/models/tools/presentation/pptx-export-payload.schema.ts +34 -0
- package/models/tools/presentation/slide-content-edit.schema.ts +21 -0
- package/models/tools/presentation/slide-content.schema.ts +45 -0
- package/models/tools/stt/stt-job.schema.ts +1 -0
- package/models/tools/tts/tts-job.schema.ts +1 -0
- package/models/tools/video/video-job.schema.ts +2 -0
- package/models/tools/video/video-model.schema.ts +8 -1
- package/models/tools/video-editor/video-editor-job.schema.ts +1 -0
- package/models/tools/writer/writer-document-outline.schema.ts +1 -2
- package/models/user-profile.schema.ts +15 -0
- package/models/webmaster-click.schema.ts +2 -2
- package/package.json +1 -1
- package/api/controllers/http/ai-proxy.ts +0 -5
- package/build/api/controllers/http/ai-proxy.js +0 -7
- package/build/commands/message/create-image-message.command.js +0 -25
- package/commands/message/create-image-message.command.ts +0 -30
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetReactionToPresentationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var SetReactionToPresentationCommand;
|
|
8
|
+
(function (SetReactionToPresentationCommand) {
|
|
9
|
+
SetReactionToPresentationCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
SetReactionToPresentationCommand.RequestBodySchema = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
15
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
16
|
+
})
|
|
17
|
+
.refine((data) => {
|
|
18
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return true;
|
|
22
|
+
}, {
|
|
23
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
24
|
+
});
|
|
25
|
+
SetReactionToPresentationCommand.ResponseSchema = zod_1.z.object({
|
|
26
|
+
data: models_1.PresentationSchema,
|
|
27
|
+
});
|
|
28
|
+
})(SetReactionToPresentationCommand || (exports.SetReactionToPresentationCommand = SetReactionToPresentationCommand = {}));
|
|
@@ -6,8 +6,18 @@ const models_1 = require("../../../models");
|
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
7
|
var SetReactionToSTTJobCommand;
|
|
8
8
|
(function (SetReactionToSTTJobCommand) {
|
|
9
|
-
SetReactionToSTTJobCommand.RequestSchema = zod_1.z
|
|
9
|
+
SetReactionToSTTJobCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
10
11
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
12
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
13
|
+
})
|
|
14
|
+
.refine((data) => {
|
|
15
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}, {
|
|
20
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
11
21
|
});
|
|
12
22
|
SetReactionToSTTJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
23
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -6,8 +6,18 @@ const models_1 = require("../../../models");
|
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
7
|
var SetReactionToTTSJobCommand;
|
|
8
8
|
(function (SetReactionToTTSJobCommand) {
|
|
9
|
-
SetReactionToTTSJobCommand.RequestSchema = zod_1.z
|
|
9
|
+
SetReactionToTTSJobCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
10
11
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
12
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
13
|
+
})
|
|
14
|
+
.refine((data) => {
|
|
15
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}, {
|
|
20
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
11
21
|
});
|
|
12
22
|
SetReactionToTTSJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
23
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -8,6 +8,11 @@ var RetryVideoJobCommand;
|
|
|
8
8
|
RetryVideoJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
10
10
|
});
|
|
11
|
+
RetryVideoJobCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
modelId: zod_1.z.string().uuid().optional(),
|
|
13
|
+
prompt: zod_1.z.string().optional(),
|
|
14
|
+
params: models_1.VideoGenerationRequestParamsSchema.optional(),
|
|
15
|
+
});
|
|
11
16
|
RetryVideoJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
17
|
data: models_1.VideoJobSchema,
|
|
13
18
|
});
|
|
@@ -6,8 +6,18 @@ const models_1 = require("../../../models");
|
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
7
|
var SetReactionToVideoJobCommand;
|
|
8
8
|
(function (SetReactionToVideoJobCommand) {
|
|
9
|
-
SetReactionToVideoJobCommand.RequestSchema = zod_1.z
|
|
9
|
+
SetReactionToVideoJobCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
10
11
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
12
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
13
|
+
})
|
|
14
|
+
.refine((data) => {
|
|
15
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}, {
|
|
20
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
11
21
|
});
|
|
12
22
|
SetReactionToVideoJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
23
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -8,6 +8,11 @@ var RetryVideoEditorJobCommand;
|
|
|
8
8
|
RetryVideoEditorJobCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
9
|
uuid: true,
|
|
10
10
|
});
|
|
11
|
+
RetryVideoEditorJobCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
modelId: zod_1.z.string().uuid().optional(),
|
|
13
|
+
prompt: zod_1.z.string().optional(),
|
|
14
|
+
fileId: zod_1.z.string().uuid().optional(),
|
|
15
|
+
});
|
|
11
16
|
RetryVideoEditorJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
17
|
data: models_1.VideoEditorJobSchema,
|
|
13
18
|
});
|
|
@@ -6,8 +6,18 @@ const models_1 = require("../../../models");
|
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
7
|
var SetReactionToVideoEditorJobCommand;
|
|
8
8
|
(function (SetReactionToVideoEditorJobCommand) {
|
|
9
|
-
SetReactionToVideoEditorJobCommand.RequestSchema = zod_1.z
|
|
9
|
+
SetReactionToVideoEditorJobCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
10
11
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
|
|
12
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
13
|
+
})
|
|
14
|
+
.refine((data) => {
|
|
15
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}, {
|
|
20
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
11
21
|
});
|
|
12
22
|
SetReactionToVideoEditorJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
13
23
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -9,8 +9,18 @@ var SetReactionWriterDocumentCommand;
|
|
|
9
9
|
SetReactionWriterDocumentCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
10
|
uuid: zod_1.z.string().uuid(),
|
|
11
11
|
});
|
|
12
|
-
SetReactionWriterDocumentCommand.RequestBodySchema = zod_1.z
|
|
12
|
+
SetReactionWriterDocumentCommand.RequestBodySchema = zod_1.z
|
|
13
|
+
.object({
|
|
13
14
|
reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION),
|
|
15
|
+
dislikeReason: zod_1.z.string().nullable().default(null),
|
|
16
|
+
})
|
|
17
|
+
.refine((data) => {
|
|
18
|
+
if (data.reaction !== constants_1.USER_REACTION.DISLIKED && data.dislikeReason) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return true;
|
|
22
|
+
}, {
|
|
23
|
+
message: 'Dislike reason is not allowed when reaction is not DISLIKED',
|
|
14
24
|
});
|
|
15
25
|
SetReactionWriterDocumentCommand.ResponseSchema = zod_1.z.object({
|
|
16
26
|
data: models_1.WriterDocumentSchema,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CancelUserSubscriptionCommand = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
var CancelUserSubscriptionCommand;
|
|
9
|
+
(function (CancelUserSubscriptionCommand) {
|
|
10
|
+
CancelUserSubscriptionCommand.RequestParamSchema = zod_1.default.object({
|
|
11
|
+
uuid: zod_1.default.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
CancelUserSubscriptionCommand.RequestSchema = zod_1.default.object({
|
|
14
|
+
subscriptionId: zod_1.default.string().uuid(),
|
|
15
|
+
});
|
|
16
|
+
CancelUserSubscriptionCommand.ResponseSchema = zod_1.default.object({
|
|
17
|
+
data: zod_1.default.object({
|
|
18
|
+
isCancelled: zod_1.default.boolean(),
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
})(CancelUserSubscriptionCommand || (exports.CancelUserSubscriptionCommand = CancelUserSubscriptionCommand = {}));
|
|
@@ -35,7 +35,7 @@ var FindUsersByCriteriaCommand;
|
|
|
35
35
|
return input;
|
|
36
36
|
}, zod_1.default.object({
|
|
37
37
|
uuid: zod_1.default.string().uuid().optional(),
|
|
38
|
-
email: zod_1.default.string().
|
|
38
|
+
email: zod_1.default.string().optional(),
|
|
39
39
|
status: zod_1.default.nativeEnum(constants_1.USER_STATUS).optional(),
|
|
40
40
|
role: zod_1.default.nativeEnum(constants_1.ROLE).optional(),
|
|
41
41
|
telegramId: zod_1.default.coerce.number().optional(),
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetMeCommand = void 0;
|
|
4
4
|
const constants_1 = require("../../constants");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
+
const models_1 = require("../../models");
|
|
6
7
|
var GetMeCommand;
|
|
7
8
|
(function (GetMeCommand) {
|
|
8
9
|
GetMeCommand.RequestSchema = zod_1.z.object({});
|
|
@@ -15,6 +16,7 @@ var GetMeCommand;
|
|
|
15
16
|
signupMethod: zod_1.z.nativeEnum(constants_1.SIGNUP_METHOD),
|
|
16
17
|
telegramId: zod_1.z.number().nullable(),
|
|
17
18
|
webmasterId: zod_1.z.string().uuid().nullable(),
|
|
19
|
+
profile: models_1.UserProfileResponseSchema,
|
|
18
20
|
}),
|
|
19
21
|
});
|
|
20
22
|
})(GetMeCommand || (exports.GetMeCommand = GetMeCommand = {}));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GetUserPaymentsCommand = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const constants_1 = require("../../constants");
|
|
9
|
+
const models_1 = require("../../models");
|
|
10
|
+
var GetUserPaymentsCommand;
|
|
11
|
+
(function (GetUserPaymentsCommand) {
|
|
12
|
+
GetUserPaymentsCommand.RequestParamSchema = zod_1.default.object({
|
|
13
|
+
uuid: zod_1.default.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
GetUserPaymentsCommand.RequestSchema = zod_1.default
|
|
16
|
+
.object({
|
|
17
|
+
status: zod_1.default.nativeEnum(constants_1.PAYMENT_STATUS).optional(),
|
|
18
|
+
orderId: zod_1.default.string().optional(),
|
|
19
|
+
sortBy: zod_1.default.nativeEnum(constants_1.PAYMENT_SORT_BY).optional(),
|
|
20
|
+
sortOrder: zod_1.default.nativeEnum(constants_1.SORT_ORDER).default(constants_1.SORT_ORDER.DESC).optional(),
|
|
21
|
+
})
|
|
22
|
+
.partial();
|
|
23
|
+
GetUserPaymentsCommand.ResponseSchema = zod_1.default.object({
|
|
24
|
+
data: zod_1.default.array(models_1.PaymentWithDescriptionSchema),
|
|
25
|
+
});
|
|
26
|
+
})(GetUserPaymentsCommand || (exports.GetUserPaymentsCommand = GetUserPaymentsCommand = {}));
|
|
@@ -20,6 +20,6 @@ var GetUserProductsCommand;
|
|
|
20
20
|
})
|
|
21
21
|
.partial();
|
|
22
22
|
GetUserProductsCommand.ResponseSchema = zod_1.default.object({
|
|
23
|
-
data: zod_1.default.array(models_1.
|
|
23
|
+
data: zod_1.default.array(models_1.UserToProductWithProductSchema),
|
|
24
24
|
});
|
|
25
25
|
})(GetUserProductsCommand || (exports.GetUserProductsCommand = GetUserProductsCommand = {}));
|
|
@@ -20,6 +20,6 @@ var GetUserSubscriptionsCommand;
|
|
|
20
20
|
})
|
|
21
21
|
.partial();
|
|
22
22
|
GetUserSubscriptionsCommand.ResponseSchema = zod_1.default.object({
|
|
23
|
-
data: zod_1.default.array(models_1.
|
|
23
|
+
data: zod_1.default.array(models_1.UserToSubscriptionWithSubscriptionSchema),
|
|
24
24
|
});
|
|
25
25
|
})(GetUserSubscriptionsCommand || (exports.GetUserSubscriptionsCommand = GetUserSubscriptionsCommand = {}));
|
|
@@ -25,3 +25,5 @@ __exportStar(require("./get-user-subscriptions.command"), exports);
|
|
|
25
25
|
__exportStar(require("./get-user-products.command"), exports);
|
|
26
26
|
__exportStar(require("./delete-account.command"), exports);
|
|
27
27
|
__exportStar(require("./get-aggregated-user-data.command"), exports);
|
|
28
|
+
__exportStar(require("./get-user-payments.command"), exports);
|
|
29
|
+
__exportStar(require("./cancel-user-subscription.command"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAvatarCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var DeleteAvatarCommand;
|
|
7
|
+
(function (DeleteAvatarCommand) {
|
|
8
|
+
DeleteAvatarCommand.RequestSchema = zod_1.z.object({});
|
|
9
|
+
DeleteAvatarCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: models_1.UserProfileResponseSchema,
|
|
11
|
+
});
|
|
12
|
+
})(DeleteAvatarCommand || (exports.DeleteAvatarCommand = DeleteAvatarCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUserProfileByUserIdCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetUserProfileByUserIdCommand;
|
|
7
|
+
(function (GetUserProfileByUserIdCommand) {
|
|
8
|
+
GetUserProfileByUserIdCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
userId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetUserProfileByUserIdCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.UserProfileResponseSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetUserProfileByUserIdCommand || (exports.GetUserProfileByUserIdCommand = GetUserProfileByUserIdCommand = {}));
|
|
@@ -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("./get-user-profile-by-user-id.command"), exports);
|
|
18
|
+
__exportStar(require("./upload-avatar.command"), exports);
|
|
19
|
+
__exportStar(require("./update-profile.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-avatar.command"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateProfileCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateProfileCommand;
|
|
7
|
+
(function (UpdateProfileCommand) {
|
|
8
|
+
UpdateProfileCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
name: zod_1.z.string().min(1).max(100).optional(),
|
|
10
|
+
});
|
|
11
|
+
UpdateProfileCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.UserProfileResponseSchema,
|
|
13
|
+
});
|
|
14
|
+
})(UpdateProfileCommand || (exports.UpdateProfileCommand = UpdateProfileCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadAvatarCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UploadAvatarCommand;
|
|
7
|
+
(function (UploadAvatarCommand) {
|
|
8
|
+
UploadAvatarCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.UserProfileResponseSchema,
|
|
10
|
+
});
|
|
11
|
+
})(UploadAvatarCommand || (exports.UploadAvatarCommand = UploadAvatarCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteUserToSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var DeleteUserToSubscriptionCommand;
|
|
7
|
+
(function (DeleteUserToSubscriptionCommand) {
|
|
8
|
+
DeleteUserToSubscriptionCommand.RequestSchema = models_1.UserToSubscriptionSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
DeleteUserToSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.object({
|
|
13
|
+
isDeleted: zod_1.z.boolean(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
})(DeleteUserToSubscriptionCommand || (exports.DeleteUserToSubscriptionCommand = DeleteUserToSubscriptionCommand = {}));
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-user-to-subscriptions.command"), exports);
|
|
18
18
|
__exportStar(require("./update-user-to-subscription.command"), exports);
|
|
19
19
|
__exportStar(require("./get-user-to-subscription-by-uuid.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-user-to-subscription.command"), exports);
|
|
@@ -15,12 +15,9 @@ var GetWebmasterClicksOverviewCommand;
|
|
|
15
15
|
groupBy: zod_1.z.nativeEnum(constants_1.GROUP_BY).default(constants_1.GROUP_BY.DAY),
|
|
16
16
|
});
|
|
17
17
|
GetWebmasterClicksOverviewCommand.WebmasterClickOverviewResponseSchema = zod_1.z.object({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
endDate: zod_1.z.string(),
|
|
22
|
-
clicks: zod_1.z.number(),
|
|
23
|
-
})),
|
|
18
|
+
startDate: zod_1.z.string(),
|
|
19
|
+
endDate: zod_1.z.string(),
|
|
20
|
+
clicks: zod_1.z.number(),
|
|
24
21
|
});
|
|
25
22
|
GetWebmasterClicksOverviewCommand.ResponseSchema = zod_1.z.object({
|
|
26
23
|
data: zod_1.z.array(GetWebmasterClicksOverviewCommand.WebmasterClickOverviewResponseSchema),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLOUD_PAYMENTS_CREATE = exports.CLOUD_PAYMENTS_GET_SUBSCRIPTION = exports.CLOUD_PAYMENTS_UPDATE = exports.CLOUD_PAYMENTS_CANCEL = exports.FORMATS = void 0;
|
|
3
|
+
exports.CLOUD_PAYMENTS_REFUND = exports.CLOUD_PAYMENTS_CREATE = exports.CLOUD_PAYMENTS_GET_SUBSCRIPTION = exports.CLOUD_PAYMENTS_UPDATE = exports.CLOUD_PAYMENTS_CANCEL = exports.FORMATS = void 0;
|
|
4
4
|
exports.FORMATS = {
|
|
5
5
|
UTF8: 'utf-8',
|
|
6
6
|
BASE64: 'base64',
|
|
@@ -10,3 +10,4 @@ exports.CLOUD_PAYMENTS_CANCEL = 'https://api.cloudpayments.ru/subscriptions/canc
|
|
|
10
10
|
exports.CLOUD_PAYMENTS_UPDATE = 'https://api.cloudpayments.ru/subscriptions/update';
|
|
11
11
|
exports.CLOUD_PAYMENTS_GET_SUBSCRIPTION = 'https://api.cloudpayments.ru/subscriptions/get ';
|
|
12
12
|
exports.CLOUD_PAYMENTS_CREATE = 'https://api.cloudpayments.ru/subscriptions/create';
|
|
13
|
+
exports.CLOUD_PAYMENTS_REFUND = 'https://api.cloudpayments.ru/payments/refund';
|
package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMUNITY_POST_REPORT_REASON = void 0;
|
|
4
|
+
var COMMUNITY_POST_REPORT_REASON;
|
|
5
|
+
(function (COMMUNITY_POST_REPORT_REASON) {
|
|
6
|
+
COMMUNITY_POST_REPORT_REASON["SPAM"] = "spam";
|
|
7
|
+
COMMUNITY_POST_REPORT_REASON["COPYRIGHT"] = "copyright";
|
|
8
|
+
COMMUNITY_POST_REPORT_REASON["TRADEMARK"] = "trademark";
|
|
9
|
+
COMMUNITY_POST_REPORT_REASON["HATE_SPEECH"] = "hate_speech";
|
|
10
|
+
COMMUNITY_POST_REPORT_REASON["VIOLENCE"] = "violence";
|
|
11
|
+
COMMUNITY_POST_REPORT_REASON["SEXUAL_CONTENT"] = "sexual_content";
|
|
12
|
+
COMMUNITY_POST_REPORT_REASON["CHILD_SAFE_VIOLATION"] = "child_safe_violation";
|
|
13
|
+
COMMUNITY_POST_REPORT_REASON["ILLEGAL_CONTENT"] = "illegal_content";
|
|
14
|
+
COMMUNITY_POST_REPORT_REASON["PRIVACY_VIOLATION"] = "privacy_violation";
|
|
15
|
+
COMMUNITY_POST_REPORT_REASON["DEEPFAKE"] = "deepfake";
|
|
16
|
+
COMMUNITY_POST_REPORT_REASON["OFFENSIVE_CONTENT"] = "offensive_content";
|
|
17
|
+
COMMUNITY_POST_REPORT_REASON["MISINFORMATION"] = "misinformation";
|
|
18
|
+
})(COMMUNITY_POST_REPORT_REASON || (exports.COMMUNITY_POST_REPORT_REASON = COMMUNITY_POST_REPORT_REASON = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./community-post-report-reason.enum"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_PAGINATION_SORT_BY = exports.DEFAULT_PAGINATION_SORT_ORDER = exports.DEFAULT_PAGINATION_LIMIT = void 0;
|
|
4
|
+
exports.DEFAULT_PAGINATION_LIMIT = 30;
|
|
5
|
+
exports.DEFAULT_PAGINATION_SORT_ORDER = 'desc';
|
|
6
|
+
exports.DEFAULT_PAGINATION_SORT_BY = 'publishedAt';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMUNITY_POST_ASPECT_RATIO = void 0;
|
|
4
|
+
var COMMUNITY_POST_ASPECT_RATIO;
|
|
5
|
+
(function (COMMUNITY_POST_ASPECT_RATIO) {
|
|
6
|
+
COMMUNITY_POST_ASPECT_RATIO["HORIZONTAL_16_9"] = "16:9";
|
|
7
|
+
COMMUNITY_POST_ASPECT_RATIO["VERTICAL_9_16"] = "9:16";
|
|
8
|
+
COMMUNITY_POST_ASPECT_RATIO["SQUARE"] = "1:1";
|
|
9
|
+
COMMUNITY_POST_ASPECT_RATIO["HORIZONTAL_4_3"] = "4:3";
|
|
10
|
+
COMMUNITY_POST_ASPECT_RATIO["VERTICAL_3_4"] = "3:4";
|
|
11
|
+
})(COMMUNITY_POST_ASPECT_RATIO || (exports.COMMUNITY_POST_ASPECT_RATIO = COMMUNITY_POST_ASPECT_RATIO = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMUNITY_POST_VISIBILITY = void 0;
|
|
4
|
+
var COMMUNITY_POST_VISIBILITY;
|
|
5
|
+
(function (COMMUNITY_POST_VISIBILITY) {
|
|
6
|
+
COMMUNITY_POST_VISIBILITY["PUBLIC"] = "public";
|
|
7
|
+
COMMUNITY_POST_VISIBILITY["UNLISTED"] = "unlisted";
|
|
8
|
+
})(COMMUNITY_POST_VISIBILITY || (exports.COMMUNITY_POST_VISIBILITY = COMMUNITY_POST_VISIBILITY = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMUNITY_POST_STATUS = void 0;
|
|
4
|
+
var COMMUNITY_POST_STATUS;
|
|
5
|
+
(function (COMMUNITY_POST_STATUS) {
|
|
6
|
+
COMMUNITY_POST_STATUS["PENDING"] = "pending";
|
|
7
|
+
COMMUNITY_POST_STATUS["REJECTED"] = "rejected";
|
|
8
|
+
COMMUNITY_POST_STATUS["PUBLISHED"] = "published";
|
|
9
|
+
COMMUNITY_POST_STATUS["ARCHIVED"] = "archived";
|
|
10
|
+
COMMUNITY_POST_STATUS["DELETED"] = "deleted";
|
|
11
|
+
})(COMMUNITY_POST_STATUS || (exports.COMMUNITY_POST_STATUS = COMMUNITY_POST_STATUS = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMUNITY_TOOL_TYPE = void 0;
|
|
4
|
+
var COMMUNITY_TOOL_TYPE;
|
|
5
|
+
(function (COMMUNITY_TOOL_TYPE) {
|
|
6
|
+
COMMUNITY_TOOL_TYPE["IMAGE_EDITOR"] = "image_editor";
|
|
7
|
+
COMMUNITY_TOOL_TYPE["VIDEO"] = "video";
|
|
8
|
+
COMMUNITY_TOOL_TYPE["VIDEO_EDITOR"] = "video_editor";
|
|
9
|
+
COMMUNITY_TOOL_TYPE["MUSIC"] = "music";
|
|
10
|
+
})(COMMUNITY_TOOL_TYPE || (exports.COMMUNITY_TOOL_TYPE = COMMUNITY_TOOL_TYPE = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COMMUNITY_POST_TYPE = void 0;
|
|
4
|
+
var COMMUNITY_POST_TYPE;
|
|
5
|
+
(function (COMMUNITY_POST_TYPE) {
|
|
6
|
+
COMMUNITY_POST_TYPE["IMAGE"] = "image";
|
|
7
|
+
COMMUNITY_POST_TYPE["IMAGE_EDITOR"] = "image_editor";
|
|
8
|
+
COMMUNITY_POST_TYPE["VIDEO"] = "video";
|
|
9
|
+
COMMUNITY_POST_TYPE["VIDEO_EDITOR"] = "video_editor";
|
|
10
|
+
COMMUNITY_POST_TYPE["MUSIC"] = "music";
|
|
11
|
+
})(COMMUNITY_POST_TYPE || (exports.COMMUNITY_POST_TYPE = COMMUNITY_POST_TYPE = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./community-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./community-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./community-aspect-ratio.enum"), exports);
|
|
20
|
+
__exportStar(require("./community-tool-type.enum"), exports);
|
|
21
|
+
__exportStar(require("./community-post-visibility.enum"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./default-pagination.constant"), exports);
|
|
19
|
+
__exportStar(require("./community-post-report"), exports);
|