@purpleschool/gptbot 0.8.56 → 0.8.58
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 +0 -1
- package/api/controllers/http/ai-proxy.ts +5 -0
- package/api/controllers/http/b2b.ts +10 -0
- package/api/controllers/http/index.ts +2 -4
- package/api/controllers/http/page.ts +0 -1
- package/api/controllers/http/paraphrase.ts +0 -6
- package/api/controllers/http/payment.ts +0 -1
- package/api/controllers/http/presentation.ts +0 -1
- package/api/controllers/http/product.ts +1 -1
- package/api/controllers/http/referral.ts +1 -1
- package/api/controllers/http/review.ts +0 -1
- package/api/controllers/http/subscription.ts +1 -1
- package/api/controllers/http/ui-notification.ts +2 -2
- package/api/controllers/http/user-to-subscription.ts +0 -1
- package/api/controllers/http/user.ts +0 -2
- package/api/routes.ts +27 -141
- package/build/api/controllers/http/ai-model.js +0 -1
- package/build/api/controllers/http/ai-proxy.js +7 -0
- package/build/api/controllers/http/b2b.js +12 -0
- package/build/api/controllers/http/index.js +2 -4
- package/build/api/controllers/http/page.js +0 -1
- package/build/api/controllers/http/paraphrase.js +0 -6
- package/build/api/controllers/http/payment.js +0 -1
- package/build/api/controllers/http/presentation.js +0 -1
- 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 +0 -1
- 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-to-subscription.js +0 -1
- package/build/api/controllers/http/user.js +0 -2
- package/build/api/routes.js +27 -101
- package/build/commands/ai-model/index.js +0 -2
- package/build/commands/b2b/get-api-key.command.js +12 -0
- package/build/{constants/community/community-post-report/enums → commands/b2b}/index.js +5 -1
- package/build/commands/b2b/refresh-api-key.command.js +12 -0
- package/build/commands/b2b/send-image-request.command.js +24 -0
- package/build/commands/b2b/send-text-request.command.js +22 -0
- package/build/commands/b2b/submit-balance-top-up-form.command.js +21 -0
- package/build/commands/folder/find-folder-by-uuid-with-chats.command.js +0 -1
- package/build/commands/folder/find-folders-by-user.command.js +0 -1
- package/build/commands/index.js +1 -2
- package/build/commands/payment/check.command.js +1 -1
- package/build/commands/payment/index.js +0 -1
- package/build/commands/review/create-review.command.js +1 -1
- package/build/commands/review/find-reviews.command.js +1 -1
- package/build/commands/review/index.js +0 -2
- package/build/commands/subscription/create-custom-subscription-plan.command.js +1 -1
- package/build/commands/tools/image-editor/retry-image-editor-job.command.js +0 -10
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.js +1 -11
- package/build/commands/tools/index.js +0 -1
- package/build/commands/tools/music/retry-music-job.command.js +0 -4
- package/build/commands/tools/music/set-reaction-to-music-job.command.js +1 -11
- package/build/commands/tools/paraphrase/index.js +1 -7
- package/build/commands/tools/presentation/index.js +0 -1
- package/build/commands/tools/stt/set-reaction-to-stt-job.command.js +1 -11
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.js +1 -11
- package/build/commands/tools/video/retry-video-job.command.js +0 -5
- package/build/commands/tools/video/set-reaction-to-video-job.command.js +1 -11
- package/build/commands/tools/video-editor/retry-video-editor-job.command.js +0 -5
- package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.js +1 -11
- package/build/commands/tools/writer/set-reaction.writer-document.command.js +1 -11
- package/build/commands/user/find-users-by-criteria.command.js +1 -1
- package/build/commands/user/get-me.command.js +0 -2
- 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 +0 -2
- package/build/commands/user-to-subscription/index.js +0 -1
- package/build/commands/webmaster-click/get-webmaster-clicks-overview.command.js +6 -3
- package/build/constants/cloud-payments/index.js +1 -2
- package/build/constants/errors/errors.js +21 -257
- package/build/constants/form-submission/enums/form-type.enum.js +1 -0
- package/build/constants/index.js +0 -4
- package/build/constants/page/enums/page-type.enum.js +0 -1
- package/build/constants/payment/enums/index.js +0 -1
- package/build/constants/payment/enums/payment-status.enum.js +0 -1
- package/build/constants/presentation/enums/slide-content-type.enum.js +0 -1
- package/build/constants/presentation/maps/slide-layout-map.constant.js +0 -1
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +0 -6
- package/build/constants/subscription/enums/subscription-status.enum.js +2 -2
- package/build/constants/tool/enums/index.js +0 -1
- package/build/constants/tool/enums/tool-job-status.enum.js +0 -1
- package/build/constants/tool-video/enums/video-pricing-rule-type.enum.js +0 -1
- package/build/helpers/index.js +0 -2
- package/build/helpers/video/calculate-video-price.helper.js +1 -5
- package/build/models/api-key.schema.js +15 -0
- package/build/models/index.js +1 -2
- package/build/models/order.schema.js +0 -1
- package/build/models/page.schema.js +1 -2
- package/build/models/payment.schema.js +2 -5
- package/build/models/review.schema.js +0 -2
- package/build/models/subscription-feature.schema.js +1 -27
- package/build/models/tool.schema.js +0 -3
- package/build/models/tools/image-editor/image-editor-config.schema.js +0 -1
- package/build/models/tools/image-editor/image-editor-job.schema.js +2 -11
- package/build/models/tools/image-editor/image-editor-model.schema.js +1 -9
- package/build/models/tools/index.js +0 -2
- package/build/models/tools/music/music-track.schema.js +0 -1
- package/build/models/tools/paraphrase/paraphrase-job.schema.js +0 -5
- package/build/models/tools/presentation/pptx-export-payload.schema.js +1 -34
- package/build/models/tools/presentation/slide-content-edit.schema.js +1 -18
- package/build/models/tools/presentation/slide-content.schema.js +1 -26
- package/build/models/tools/stt/stt-job.schema.js +0 -1
- package/build/models/tools/tts/tts-job.schema.js +0 -1
- package/build/models/tools/video/video-job.schema.js +0 -2
- package/build/models/tools/video/video-model.schema.js +1 -8
- package/build/models/tools/video-editor/video-editor-job.schema.js +0 -1
- package/build/models/tools/writer/writer-document-outline.schema.js +2 -1
- package/build/models/webmaster-click.schema.js +2 -2
- package/commands/ai-model/index.ts +0 -2
- package/commands/{community/get-count-of-likes-on-my-posts.command.ts → b2b/get-api-key.command.ts} +4 -2
- package/commands/b2b/index.ts +5 -0
- package/commands/{tools/image-generation/delete-all-image-generation-jobs.command.ts → b2b/refresh-api-key.command.ts} +5 -2
- package/commands/b2b/send-image-request.command.ts +28 -0
- package/commands/b2b/send-text-request.command.ts +26 -0
- package/commands/b2b/submit-balance-top-up-form.command.ts +22 -0
- package/commands/folder/find-folder-by-uuid-with-chats.command.ts +0 -1
- package/commands/folder/find-folders-by-user.command.ts +0 -1
- package/commands/index.ts +1 -2
- package/commands/payment/check.command.ts +1 -1
- package/commands/payment/index.ts +0 -1
- package/commands/review/create-review.command.ts +1 -1
- package/commands/review/find-reviews.command.ts +1 -1
- package/commands/review/index.ts +0 -2
- package/commands/subscription/create-custom-subscription-plan.command.ts +1 -1
- package/commands/tools/image-editor/retry-image-editor-job.command.ts +1 -13
- package/commands/tools/image-editor/set-reaction-to-image-editor-job.command.ts +3 -16
- package/commands/tools/index.ts +0 -1
- package/commands/tools/music/retry-music-job.command.ts +1 -7
- package/commands/tools/music/set-reaction-to-music-job.command.ts +3 -16
- package/commands/tools/paraphrase/index.ts +1 -7
- package/commands/tools/presentation/index.ts +0 -1
- package/commands/tools/stt/set-reaction-to-stt-job.command.ts +3 -16
- package/commands/tools/tts/set-reaction-to-tts-job.command.ts +3 -16
- package/commands/tools/video/retry-video-job.command.ts +1 -8
- package/commands/tools/video/set-reaction-to-video-job.command.ts +3 -16
- package/commands/tools/video-editor/retry-video-editor-job.command.ts +0 -7
- package/commands/tools/video-editor/set-reaction-to-video-editor-job.command.ts +3 -16
- package/commands/tools/writer/set-reaction.writer-document.command.ts +3 -16
- package/commands/user/find-users-by-criteria.command.ts +1 -1
- package/commands/user/get-me.command.ts +0 -2
- 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 +0 -2
- package/commands/user-to-subscription/index.ts +0 -1
- package/commands/webmaster-click/get-webmaster-clicks-overview.command.ts +8 -3
- package/constants/cloud-payments/index.ts +0 -2
- package/constants/errors/errors.ts +21 -258
- package/constants/form-submission/enums/form-type.enum.ts +1 -0
- package/constants/index.ts +0 -4
- package/constants/page/enums/page-type.enum.ts +0 -1
- package/constants/payment/enums/index.ts +0 -1
- package/constants/payment/enums/payment-status.enum.ts +0 -1
- package/constants/presentation/enums/slide-content-type.enum.ts +0 -1
- package/constants/presentation/maps/slide-layout-map.constant.ts +0 -1
- package/constants/subscription/enums/subscription-feature-type.enum.ts +0 -6
- package/constants/subscription/enums/subscription-status.enum.ts +2 -2
- package/constants/tool/enums/index.ts +0 -1
- package/constants/tool/enums/tool-job-status.enum.ts +0 -1
- package/constants/tool-video/enums/video-pricing-rule-type.enum.ts +0 -1
- package/helpers/index.ts +0 -2
- package/helpers/video/calculate-video-price.helper.ts +1 -7
- package/models/api-key.schema.ts +10 -0
- package/models/index.ts +1 -2
- package/models/order.schema.ts +0 -1
- package/models/page.schema.ts +1 -2
- package/models/payment.schema.ts +1 -5
- package/models/review.schema.ts +0 -2
- package/models/subscription-feature.schema.ts +0 -34
- package/models/tool.schema.ts +0 -3
- package/models/tools/image-editor/image-editor-config.schema.ts +0 -1
- package/models/tools/image-editor/image-editor-job.schema.ts +2 -13
- package/models/tools/image-editor/image-editor-model.schema.ts +0 -16
- package/models/tools/index.ts +0 -2
- package/models/tools/music/music-track.schema.ts +0 -1
- package/models/tools/paraphrase/paraphrase-job.schema.ts +0 -5
- package/models/tools/presentation/pptx-export-payload.schema.ts +0 -34
- package/models/tools/presentation/slide-content-edit.schema.ts +0 -21
- package/models/tools/presentation/slide-content.schema.ts +0 -45
- package/models/tools/stt/stt-job.schema.ts +0 -1
- package/models/tools/tts/tts-job.schema.ts +0 -1
- package/models/tools/video/video-job.schema.ts +0 -2
- package/models/tools/video/video-model.schema.ts +1 -8
- package/models/tools/video-editor/video-editor-job.schema.ts +0 -1
- package/models/tools/writer/writer-document-outline.schema.ts +2 -1
- package/models/webmaster-click.schema.ts +2 -2
- package/package.json +1 -1
- package/api/controllers/http/community.ts +0 -25
- package/api/controllers/http/image-generation.ts +0 -14
- package/api/controllers/http/kie.ts +0 -5
- package/api/controllers/http/user-profile.ts +0 -8
- package/build/api/controllers/http/community.js +0 -25
- package/build/api/controllers/http/image-generation.js +0 -16
- package/build/api/controllers/http/kie.js +0 -7
- package/build/api/controllers/http/user-profile.js +0 -10
- package/build/commands/ai-model/find-formatted-ai-model-v2.command.js +0 -23
- package/build/commands/ai-model/find-model-pages.command.js +0 -31
- package/build/commands/community/archive-community-post.command.js +0 -13
- package/build/commands/community/create-community-post.command.js +0 -34
- package/build/commands/community/delete-community-post.command.js +0 -13
- package/build/commands/community/get-all-community-posts-by-criteria.command.js +0 -25
- package/build/commands/community/get-community-post-by-uuid.command.js +0 -14
- package/build/commands/community/get-count-of-likes-on-my-posts.command.js +0 -10
- package/build/commands/community/get-my-community-posts-by-criteria.command.js +0 -32
- package/build/commands/community/get-my-favorite-community-posts.command.js +0 -19
- package/build/commands/community/get-my-likes-community-posts.command.js +0 -19
- package/build/commands/community/index.js +0 -29
- package/build/commands/community/send-report-to-community-post.command.js +0 -15
- package/build/commands/community/set-favorite-community-post.command.js +0 -13
- package/build/commands/community/set-like-community-post.command.js +0 -14
- package/build/commands/community/share-my-community-post.command.js +0 -13
- package/build/commands/payment/refund-payment.command.js +0 -15
- package/build/commands/review/find-all-reviews.command.js +0 -20
- package/build/commands/review/get-review-count.command.js +0 -15
- package/build/commands/tools/image-generation/delete-all-image-generation-jobs.command.js +0 -10
- package/build/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.js +0 -13
- package/build/commands/tools/image-generation/find-image-generation-job-by-uuid.command.js +0 -14
- package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +0 -18
- package/build/commands/tools/image-generation/get-image-generation-config.command.js +0 -11
- package/build/commands/tools/image-generation/image-generation.command.js +0 -23
- package/build/commands/tools/image-generation/index.js +0 -24
- package/build/commands/tools/image-generation/set-reaction-to-image-generation-job.command.js +0 -28
- package/build/commands/tools/image-generation/update-image-generation-job-title.command.js +0 -17
- package/build/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.js +0 -8
- package/build/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.js +0 -11
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +0 -18
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.js +0 -14
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.js +0 -28
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.js +0 -17
- package/build/commands/tools/presentation/set-reaction-to-presentation.command.js +0 -28
- package/build/commands/user/cancel-user-subscription.command.js +0 -21
- package/build/commands/user/get-user-payments.command.js +0 -26
- package/build/commands/user-profile/delete-avatar.command.js +0 -12
- package/build/commands/user-profile/get-user-profile-by-user-id.command.js +0 -14
- package/build/commands/user-profile/index.js +0 -20
- package/build/commands/user-profile/update-profile.command.js +0 -14
- package/build/commands/user-profile/upload-avatar.command.js +0 -11
- package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +0 -16
- package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js +0 -18
- package/build/constants/community/community-post-report/index.js +0 -17
- package/build/constants/community/default-pagination.constant.js +0 -6
- package/build/constants/community/enums/community-aspect-ratio.enum.js +0 -11
- package/build/constants/community/enums/community-post-visibility.enum.js +0 -8
- package/build/constants/community/enums/community-status.enum.js +0 -11
- package/build/constants/community/enums/community-tool-type.enum.js +0 -10
- package/build/constants/community/enums/community-type.enum.js +0 -11
- package/build/constants/community/enums/index.js +0 -21
- package/build/constants/community/index.js +0 -19
- package/build/constants/model/enums/index.js +0 -17
- package/build/constants/model/enums/unified-model-content-type.enum.js +0 -21
- package/build/constants/model/index.js +0 -17
- package/build/constants/payment/enums/payment-sort-by.enum.js +0 -10
- package/build/constants/tool/enums/tool-content-type.enum.js +0 -17
- package/build/constants/tool-image-generation/enums/image-generation-resolution.enum.js +0 -9
- package/build/constants/tool-image-generation/enums/index.js +0 -17
- package/build/constants/tool-image-generation/index.js +0 -17
- package/build/constants/user-profile/index.js +0 -17
- package/build/constants/user-profile/user-profile.constant.js +0 -10
- package/build/helpers/image-editor/calculate-image-editor-price.helper.js +0 -13
- package/build/helpers/image-editor/index.js +0 -17
- package/build/helpers/image-generation/calculate-image-generation-price.helper.js +0 -16
- package/build/helpers/image-generation/index.js +0 -17
- package/build/models/community/community-post-media-data.schema.js +0 -53
- package/build/models/community/community-post-report/community-post-report.schema.js +0 -13
- package/build/models/community/community-post-report/index.js +0 -17
- package/build/models/community/community-post.schema.js +0 -44
- package/build/models/community/index.js +0 -19
- package/build/models/tools/common/attached-tool-file.schema.js +0 -13
- package/build/models/tools/common/index.js +0 -17
- package/build/models/tools/image-generation/image-generation-config.schema.js +0 -23
- package/build/models/tools/image-generation/image-generation-job.schema.js +0 -35
- package/build/models/tools/image-generation/image-generation-model.schema.js +0 -41
- package/build/models/tools/image-generation/index.js +0 -19
- package/build/models/user-profile.schema.js +0 -16
- package/commands/ai-model/find-formatted-ai-model-v2.command.ts +0 -23
- package/commands/ai-model/find-model-pages.command.ts +0 -34
- package/commands/community/archive-community-post.command.ts +0 -13
- package/commands/community/create-community-post.command.ts +0 -40
- package/commands/community/delete-community-post.command.ts +0 -13
- package/commands/community/get-all-community-posts-by-criteria.command.ts +0 -29
- package/commands/community/get-community-post-by-uuid.command.ts +0 -16
- package/commands/community/get-my-community-posts-by-criteria.command.ts +0 -40
- package/commands/community/get-my-favorite-community-posts.command.ts +0 -19
- package/commands/community/get-my-likes-community-posts.command.ts +0 -19
- package/commands/community/index.ts +0 -13
- package/commands/community/send-report-to-community-post.command.ts +0 -17
- package/commands/community/set-favorite-community-post.command.ts +0 -13
- package/commands/community/set-like-community-post.command.ts +0 -14
- package/commands/community/share-my-community-post.command.ts +0 -13
- package/commands/payment/refund-payment.command.ts +0 -17
- package/commands/review/find-all-reviews.command.ts +0 -19
- package/commands/review/get-review-count.command.ts +0 -13
- package/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.ts +0 -13
- package/commands/tools/image-generation/find-image-generation-job-by-uuid.command.ts +0 -16
- package/commands/tools/image-generation/find-image-generation-jobs.command.ts +0 -18
- package/commands/tools/image-generation/get-image-generation-config.command.ts +0 -9
- package/commands/tools/image-generation/image-generation.command.ts +0 -25
- package/commands/tools/image-generation/index.ts +0 -8
- package/commands/tools/image-generation/set-reaction-to-image-generation-job.command.ts +0 -33
- package/commands/tools/image-generation/update-image-generation-job-title.command.ts +0 -19
- package/commands/tools/paraphrase/delete-all-paraphrase-jobs.command.ts +0 -6
- package/commands/tools/paraphrase/delete-paraphrase-job-by-uuid.command.ts +0 -11
- package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +0 -18
- package/commands/tools/paraphrase/retry-paraphrase-job.command.ts +0 -14
- package/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.ts +0 -33
- package/commands/tools/paraphrase/update-paraphrase-job-title.command.ts +0 -19
- package/commands/tools/presentation/set-reaction-to-presentation.command.ts +0 -33
- package/commands/user/cancel-user-subscription.command.ts +0 -21
- package/commands/user/get-user-payments.command.ts +0 -27
- package/commands/user-profile/delete-avatar.command.ts +0 -14
- package/commands/user-profile/get-user-profile-by-user-id.command.ts +0 -16
- package/commands/user-profile/index.ts +0 -4
- package/commands/user-profile/update-profile.command.ts +0 -16
- package/commands/user-profile/upload-avatar.command.ts +0 -10
- package/commands/user-to-subscription/delete-user-to-subscription.command.ts +0 -18
- package/constants/community/community-post-report/enums/community-post-report-reason.enum.ts +0 -14
- package/constants/community/community-post-report/enums/index.ts +0 -1
- package/constants/community/community-post-report/index.ts +0 -1
- package/constants/community/default-pagination.constant.ts +0 -4
- package/constants/community/enums/community-aspect-ratio.enum.ts +0 -7
- package/constants/community/enums/community-post-visibility.enum.ts +0 -4
- package/constants/community/enums/community-status.enum.ts +0 -7
- package/constants/community/enums/community-tool-type.enum.ts +0 -6
- package/constants/community/enums/community-type.enum.ts +0 -7
- package/constants/community/enums/index.ts +0 -5
- package/constants/community/index.ts +0 -3
- package/constants/model/enums/index.ts +0 -1
- package/constants/model/enums/unified-model-content-type.enum.ts +0 -17
- package/constants/model/index.ts +0 -1
- package/constants/payment/enums/payment-sort-by.enum.ts +0 -6
- package/constants/tool/enums/tool-content-type.enum.ts +0 -13
- package/constants/tool-image-generation/enums/image-generation-resolution.enum.ts +0 -5
- package/constants/tool-image-generation/enums/index.ts +0 -1
- package/constants/tool-image-generation/index.ts +0 -1
- package/constants/user-profile/index.ts +0 -1
- package/constants/user-profile/user-profile.constant.ts +0 -14
- package/helpers/image-editor/calculate-image-editor-price.helper.ts +0 -23
- package/helpers/image-editor/index.ts +0 -1
- package/helpers/image-generation/calculate-image-generation-price.helper.ts +0 -29
- package/helpers/image-generation/index.ts +0 -1
- package/models/community/community-post-media-data.schema.ts +0 -65
- package/models/community/community-post-report/community-post-report.schema.ts +0 -11
- package/models/community/community-post-report/index.ts +0 -1
- package/models/community/community-post.schema.ts +0 -48
- package/models/community/index.ts +0 -3
- package/models/tools/common/attached-tool-file.schema.ts +0 -13
- package/models/tools/common/index.ts +0 -1
- package/models/tools/image-generation/image-generation-config.schema.ts +0 -29
- package/models/tools/image-generation/image-generation-job.schema.ts +0 -42
- package/models/tools/image-generation/image-generation-model.schema.ts +0 -52
- package/models/tools/image-generation/index.ts +0 -3
- package/models/user-profile.schema.ts +0 -15
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetMyLikesCommunityPostsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
const models_1 = require("../../models");
|
|
7
|
-
var GetMyLikesCommunityPostsCommand;
|
|
8
|
-
(function (GetMyLikesCommunityPostsCommand) {
|
|
9
|
-
GetMyLikesCommunityPostsCommand.RequestQuerySchema = zod_1.z.object({
|
|
10
|
-
offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
|
|
11
|
-
limit: zod_1.z.coerce.number().int().min(1).max(100).default(constants_1.DEFAULT_PAGINATION_LIMIT).optional(),
|
|
12
|
-
sortOrder: zod_1.z.nativeEnum(constants_1.SORT_ORDER).optional(),
|
|
13
|
-
});
|
|
14
|
-
GetMyLikesCommunityPostsCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: zod_1.z.array(models_1.ResponseCommunityPostSchema),
|
|
16
|
-
page: zod_1.z.number(),
|
|
17
|
-
totalPages: zod_1.z.number(),
|
|
18
|
-
});
|
|
19
|
-
})(GetMyLikesCommunityPostsCommand || (exports.GetMyLikesCommunityPostsCommand = GetMyLikesCommunityPostsCommand = {}));
|
|
@@ -1,29 +0,0 @@
|
|
|
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-all-community-posts-by-criteria.command"), exports);
|
|
18
|
-
__exportStar(require("./get-community-post-by-uuid.command"), exports);
|
|
19
|
-
__exportStar(require("./create-community-post.command"), exports);
|
|
20
|
-
__exportStar(require("./set-like-community-post.command"), exports);
|
|
21
|
-
__exportStar(require("./set-favorite-community-post.command"), exports);
|
|
22
|
-
__exportStar(require("./delete-community-post.command"), exports);
|
|
23
|
-
__exportStar(require("./archive-community-post.command"), exports);
|
|
24
|
-
__exportStar(require("./get-my-community-posts-by-criteria.command"), exports);
|
|
25
|
-
__exportStar(require("./share-my-community-post.command"), exports);
|
|
26
|
-
__exportStar(require("./get-my-likes-community-posts.command"), exports);
|
|
27
|
-
__exportStar(require("./get-my-favorite-community-posts.command"), exports);
|
|
28
|
-
__exportStar(require("./send-report-to-community-post.command"), exports);
|
|
29
|
-
__exportStar(require("./get-count-of-likes-on-my-posts.command"), exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SendReportToCommunityPostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
|
-
var SendReportToCommunityPostCommand;
|
|
7
|
-
(function (SendReportToCommunityPostCommand) {
|
|
8
|
-
SendReportToCommunityPostCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
SendReportToCommunityPostCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
-
reason: zod_1.z.nativeEnum(constants_1.COMMUNITY_POST_REPORT_REASON),
|
|
13
|
-
});
|
|
14
|
-
SendReportToCommunityPostCommand.ResponseSchema = zod_1.z.void();
|
|
15
|
-
})(SendReportToCommunityPostCommand || (exports.SendReportToCommunityPostCommand = SendReportToCommunityPostCommand = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetFavoriteCommunityPostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var SetFavoriteCommunityPostCommand;
|
|
6
|
-
(function (SetFavoriteCommunityPostCommand) {
|
|
7
|
-
SetFavoriteCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
SetFavoriteCommunityPostCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
})(SetFavoriteCommunityPostCommand || (exports.SetFavoriteCommunityPostCommand = SetFavoriteCommunityPostCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetLikeCommunityPostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var SetLikeCommunityPostCommand;
|
|
7
|
-
(function (SetLikeCommunityPostCommand) {
|
|
8
|
-
SetLikeCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
SetLikeCommunityPostCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: models_1.ResponseCommunityPostSchema,
|
|
13
|
-
});
|
|
14
|
-
})(SetLikeCommunityPostCommand || (exports.SetLikeCommunityPostCommand = SetLikeCommunityPostCommand = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShareMyCommunityPostCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var ShareMyCommunityPostCommand;
|
|
6
|
-
(function (ShareMyCommunityPostCommand) {
|
|
7
|
-
ShareMyCommunityPostCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
ShareMyCommunityPostCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.string().url(),
|
|
12
|
-
});
|
|
13
|
-
})(ShareMyCommunityPostCommand || (exports.ShareMyCommunityPostCommand = ShareMyCommunityPostCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefundPaymentCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var RefundPaymentCommand;
|
|
6
|
-
(function (RefundPaymentCommand) {
|
|
7
|
-
RefundPaymentCommand.RequestSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
RefundPaymentCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.object({
|
|
12
|
-
isSuccess: zod_1.z.boolean(),
|
|
13
|
-
}),
|
|
14
|
-
});
|
|
15
|
-
})(RefundPaymentCommand || (exports.RefundPaymentCommand = RefundPaymentCommand = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
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.FindAllReviewsCommand = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const models_1 = require("../../models");
|
|
9
|
-
var FindAllReviewsCommand;
|
|
10
|
-
(function (FindAllReviewsCommand) {
|
|
11
|
-
FindAllReviewsCommand.RequestSchema = zod_1.default.object({
|
|
12
|
-
limit: zod_1.default.string().transform((val) => parseInt(val, 10)),
|
|
13
|
-
offset: zod_1.default.string().transform((val) => parseInt(val, 10)),
|
|
14
|
-
});
|
|
15
|
-
FindAllReviewsCommand.ResponseSchema = zod_1.default.object({
|
|
16
|
-
data: zod_1.default.array(models_1.ReviewSchema),
|
|
17
|
-
totalPages: zod_1.default.number(),
|
|
18
|
-
page: zod_1.default.number(),
|
|
19
|
-
});
|
|
20
|
-
})(FindAllReviewsCommand || (exports.FindAllReviewsCommand = FindAllReviewsCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
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.GetReviewCountCommand = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
var GetReviewCountCommand;
|
|
9
|
-
(function (GetReviewCountCommand) {
|
|
10
|
-
GetReviewCountCommand.ResponseSchema = zod_1.default.object({
|
|
11
|
-
data: zod_1.default.object({
|
|
12
|
-
count: zod_1.default.number(),
|
|
13
|
-
}),
|
|
14
|
-
});
|
|
15
|
-
})(GetReviewCountCommand || (exports.GetReviewCountCommand = GetReviewCountCommand = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAllImageGenerationJobsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeleteAllImageGenerationJobsCommand;
|
|
6
|
-
(function (DeleteAllImageGenerationJobsCommand) {
|
|
7
|
-
DeleteAllImageGenerationJobsCommand.ResponseSchema = zod_1.z.object({
|
|
8
|
-
data: zod_1.z.boolean(),
|
|
9
|
-
});
|
|
10
|
-
})(DeleteAllImageGenerationJobsCommand || (exports.DeleteAllImageGenerationJobsCommand = DeleteAllImageGenerationJobsCommand = {}));
|
package/build/commands/tools/image-generation/delete-image-generation-job-by-uuid.command.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteImageGenerationJobByUUIDCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeleteImageGenerationJobByUUIDCommand;
|
|
6
|
-
(function (DeleteImageGenerationJobByUUIDCommand) {
|
|
7
|
-
DeleteImageGenerationJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
DeleteImageGenerationJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
-
data: zod_1.z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
})(DeleteImageGenerationJobByUUIDCommand || (exports.DeleteImageGenerationJobByUUIDCommand = DeleteImageGenerationJobByUUIDCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindImageGenerationJobByUUIDCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var FindImageGenerationJobByUUIDCommand;
|
|
7
|
-
(function (FindImageGenerationJobByUUIDCommand) {
|
|
8
|
-
FindImageGenerationJobByUUIDCommand.RequestParamsSchema = models_1.ToolJobSchema.pick({
|
|
9
|
-
uuid: true,
|
|
10
|
-
});
|
|
11
|
-
FindImageGenerationJobByUUIDCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: models_1.ImageGenerationJobSchema,
|
|
13
|
-
});
|
|
14
|
-
})(FindImageGenerationJobByUUIDCommand || (exports.FindImageGenerationJobByUUIDCommand = FindImageGenerationJobByUUIDCommand = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindImageGenerationJobsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var FindImageGenerationJobsCommand;
|
|
7
|
-
(function (FindImageGenerationJobsCommand) {
|
|
8
|
-
FindImageGenerationJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
-
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
-
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
-
title: zod_1.z.string().optional(),
|
|
12
|
-
});
|
|
13
|
-
FindImageGenerationJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
-
data: zod_1.z.array(models_1.ImageGenerationJobSchema),
|
|
15
|
-
totalPages: zod_1.z.number(),
|
|
16
|
-
page: zod_1.z.number(),
|
|
17
|
-
});
|
|
18
|
-
})(FindImageGenerationJobsCommand || (exports.FindImageGenerationJobsCommand = FindImageGenerationJobsCommand = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetImageGenerationConfigCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var GetImageGenerationConfigCommand;
|
|
7
|
-
(function (GetImageGenerationConfigCommand) {
|
|
8
|
-
GetImageGenerationConfigCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
-
data: models_1.ImageGenerationConfigSchema,
|
|
10
|
-
});
|
|
11
|
-
})(GetImageGenerationConfigCommand || (exports.GetImageGenerationConfigCommand = GetImageGenerationConfigCommand = {}));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageGenerationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
const constants_1 = require("../../../constants");
|
|
7
|
-
var ImageGenerationCommand;
|
|
8
|
-
(function (ImageGenerationCommand) {
|
|
9
|
-
ImageGenerationCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
modelId: zod_1.z.string().uuid(),
|
|
11
|
-
prompt: zod_1.z.string(),
|
|
12
|
-
params: zod_1.z.object({
|
|
13
|
-
aspectRatio: zod_1.z.string(),
|
|
14
|
-
attachedFiles: zod_1.z.string().array(),
|
|
15
|
-
enhancePrompt: zod_1.z.boolean(),
|
|
16
|
-
resolution: zod_1.z.nativeEnum(constants_1.IMAGE_GENERATION_RESOLUTION).optional(),
|
|
17
|
-
}),
|
|
18
|
-
presetId: zod_1.z.string().uuid().nullable().optional(),
|
|
19
|
-
});
|
|
20
|
-
ImageGenerationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
-
data: models_1.ToolJobSchema,
|
|
22
|
-
});
|
|
23
|
-
})(ImageGenerationCommand || (exports.ImageGenerationCommand = ImageGenerationCommand = {}));
|
|
@@ -1,24 +0,0 @@
|
|
|
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("./image-generation.command"), exports);
|
|
18
|
-
__exportStar(require("./find-image-generation-job-by-uuid.command"), exports);
|
|
19
|
-
__exportStar(require("./find-image-generation-jobs.command"), exports);
|
|
20
|
-
__exportStar(require("./set-reaction-to-image-generation-job.command"), exports);
|
|
21
|
-
__exportStar(require("./update-image-generation-job-title.command"), exports);
|
|
22
|
-
__exportStar(require("./delete-image-generation-job-by-uuid.command"), exports);
|
|
23
|
-
__exportStar(require("./delete-all-image-generation-jobs.command"), exports);
|
|
24
|
-
__exportStar(require("./get-image-generation-config.command"), exports);
|
package/build/commands/tools/image-generation/set-reaction-to-image-generation-job.command.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetReactionToImageGenerationJobCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
const constants_1 = require("../../../constants");
|
|
7
|
-
var SetReactionToImageGenerationJobCommand;
|
|
8
|
-
(function (SetReactionToImageGenerationJobCommand) {
|
|
9
|
-
SetReactionToImageGenerationJobCommand.RequestSchema = zod_1.z
|
|
10
|
-
.object({
|
|
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',
|
|
21
|
-
});
|
|
22
|
-
SetReactionToImageGenerationJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
23
|
-
uuid: zod_1.z.string().uuid(),
|
|
24
|
-
});
|
|
25
|
-
SetReactionToImageGenerationJobCommand.ResponseSchema = zod_1.z.object({
|
|
26
|
-
data: models_1.ImageGenerationJobSchema,
|
|
27
|
-
});
|
|
28
|
-
})(SetReactionToImageGenerationJobCommand || (exports.SetReactionToImageGenerationJobCommand = SetReactionToImageGenerationJobCommand = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateImageGenerationJobTitleCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var UpdateImageGenerationJobTitleCommand;
|
|
7
|
-
(function (UpdateImageGenerationJobTitleCommand) {
|
|
8
|
-
UpdateImageGenerationJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
title: zod_1.z.string(),
|
|
10
|
-
});
|
|
11
|
-
UpdateImageGenerationJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.string().uuid(),
|
|
13
|
-
});
|
|
14
|
-
UpdateImageGenerationJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: models_1.ImageGenerationJobSchema,
|
|
16
|
-
});
|
|
17
|
-
})(UpdateImageGenerationJobTitleCommand || (exports.UpdateImageGenerationJobTitleCommand = UpdateImageGenerationJobTitleCommand = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAllParaphraseJobsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeleteAllParaphraseJobsCommand;
|
|
6
|
-
(function (DeleteAllParaphraseJobsCommand) {
|
|
7
|
-
DeleteAllParaphraseJobsCommand.ResponseSchema = zod_1.z.void();
|
|
8
|
-
})(DeleteAllParaphraseJobsCommand || (exports.DeleteAllParaphraseJobsCommand = DeleteAllParaphraseJobsCommand = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteParaphraseJobByUUIDCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
var DeleteParaphraseJobByUUIDCommand;
|
|
6
|
-
(function (DeleteParaphraseJobByUUIDCommand) {
|
|
7
|
-
DeleteParaphraseJobByUUIDCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
});
|
|
10
|
-
DeleteParaphraseJobByUUIDCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
-
})(DeleteParaphraseJobByUUIDCommand || (exports.DeleteParaphraseJobByUUIDCommand = DeleteParaphraseJobByUUIDCommand = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FindParaphraseJobsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var FindParaphraseJobsCommand;
|
|
7
|
-
(function (FindParaphraseJobsCommand) {
|
|
8
|
-
FindParaphraseJobsCommand.RequestQuerySchema = zod_1.z.object({
|
|
9
|
-
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
|
-
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
|
-
title: zod_1.z.string().optional(),
|
|
12
|
-
});
|
|
13
|
-
FindParaphraseJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
-
data: zod_1.z.array(models_1.ParaphraseToolJobSchema),
|
|
15
|
-
totalPages: zod_1.z.number(),
|
|
16
|
-
page: zod_1.z.number(),
|
|
17
|
-
});
|
|
18
|
-
})(FindParaphraseJobsCommand || (exports.FindParaphraseJobsCommand = FindParaphraseJobsCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RetryParaphraseJobCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var RetryParaphraseJobCommand;
|
|
7
|
-
(function (RetryParaphraseJobCommand) {
|
|
8
|
-
RetryParaphraseJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
RetryParaphraseJobCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: models_1.ParaphraseToolJobSchema,
|
|
13
|
-
});
|
|
14
|
-
})(RetryParaphraseJobCommand || (exports.RetryParaphraseJobCommand = RetryParaphraseJobCommand = {}));
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetReactionToParaphraseJobCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
const constants_1 = require("../../../constants");
|
|
7
|
-
var SetReactionToParaphraseJobCommand;
|
|
8
|
-
(function (SetReactionToParaphraseJobCommand) {
|
|
9
|
-
SetReactionToParaphraseJobCommand.RequestSchema = zod_1.z
|
|
10
|
-
.object({
|
|
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',
|
|
21
|
-
});
|
|
22
|
-
SetReactionToParaphraseJobCommand.RequestParamsSchema = zod_1.z.object({
|
|
23
|
-
uuid: zod_1.z.string().uuid(),
|
|
24
|
-
});
|
|
25
|
-
SetReactionToParaphraseJobCommand.ResponseSchema = zod_1.z.object({
|
|
26
|
-
data: models_1.ParaphraseToolJobSchema,
|
|
27
|
-
});
|
|
28
|
-
})(SetReactionToParaphraseJobCommand || (exports.SetReactionToParaphraseJobCommand = SetReactionToParaphraseJobCommand = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateParaphraseJobTitleCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../../models");
|
|
6
|
-
var UpdateParaphraseJobTitleCommand;
|
|
7
|
-
(function (UpdateParaphraseJobTitleCommand) {
|
|
8
|
-
UpdateParaphraseJobTitleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
title: zod_1.z.string().min(1).max(40).trim(),
|
|
10
|
-
});
|
|
11
|
-
UpdateParaphraseJobTitleCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.string().uuid(),
|
|
13
|
-
});
|
|
14
|
-
UpdateParaphraseJobTitleCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: models_1.ParaphraseToolJobSchema,
|
|
16
|
-
});
|
|
17
|
-
})(UpdateParaphraseJobTitleCommand || (exports.UpdateParaphraseJobTitleCommand = UpdateParaphraseJobTitleCommand = {}));
|
|
@@ -1,28 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,21 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,26 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
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);
|
|
@@ -1,14 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
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 = {}));
|
package/build/constants/community/community-post-report/enums/community-post-report-reason.enum.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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 = {}));
|