@purpleschool/gptbot 0.9.96 → 0.10.0
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/auth.ts +1 -0
- package/api/controllers/http/b2b.ts +1 -0
- package/api/controllers/http/index.ts +4 -0
- package/api/controllers/http/interior-design.ts +14 -0
- package/api/controllers/http/marketplace-card.ts +14 -0
- package/api/controllers/http/page.ts +2 -0
- package/api/controllers/http/payment.ts +1 -0
- package/api/controllers/http/product.ts +1 -0
- package/api/controllers/http/solving-edu-task.ts +14 -0
- package/api/controllers/http/subscription.ts +2 -1
- package/api/controllers/http/team-account.ts +21 -0
- package/api/routes.ts +125 -2
- package/build/api/controllers/http/auth.js +1 -0
- package/build/api/controllers/http/b2b.js +1 -0
- package/build/api/controllers/http/index.js +4 -0
- package/build/api/controllers/http/interior-design.js +16 -0
- package/build/api/controllers/http/marketplace-card.js +16 -0
- package/build/api/controllers/http/page.js +2 -0
- package/build/api/controllers/http/payment.js +1 -0
- package/build/api/controllers/http/product.js +1 -0
- package/build/api/controllers/http/solving-edu-task.js +16 -0
- package/build/api/controllers/http/subscription.js +2 -1
- package/build/api/controllers/http/team-account.js +23 -0
- package/build/api/routes.js +93 -2
- package/build/commands/b2b/get-b2b-documentation.command.js +99 -0
- package/build/commands/b2b/index.js +2 -0
- package/build/commands/b2b/send-text-request.command.js +2 -5
- package/build/commands/b2b/upload-b2b-file.command.js +12 -0
- package/build/commands/cabinet/get-user-statistics-by-month.command.js +4 -0
- package/build/commands/chat/archive-all.command.js +1 -4
- package/build/commands/chat/check-limit.command.js +7 -0
- package/build/commands/chat/create-chat.command.js +0 -1
- package/build/commands/chat/find-chats.command.js +1 -1
- package/build/commands/chat/get-last-active-chat-command.js +0 -1
- package/build/commands/index.js +3 -0
- package/build/commands/message/create-text-message.command.js +1 -0
- package/build/commands/page/find-pages-by-criteria.command.js +36 -0
- package/build/commands/page/index.js +1 -0
- package/build/commands/payment/find-payments-by-criteria.command.js +53 -0
- package/build/commands/payment/index.js +1 -0
- package/build/commands/product/buy-product.command.js +25 -1
- package/build/commands/product/index.js +1 -0
- package/build/commands/product/refund-product.command.js +15 -0
- package/build/commands/subscription/buy-subscription.command.js +24 -1
- package/build/commands/subscription/index.js +1 -1
- package/build/commands/subscription/refund-subscription.command.js +15 -0
- package/build/commands/subscription/upgrade-subscription.command.js +25 -1
- package/build/commands/team-account/accept-team-account-invite.command.js +14 -0
- package/build/commands/team-account/create-manual-team-product.command.js +15 -0
- package/build/commands/team-account/create-manual-team-subscription.command.js +16 -0
- package/build/commands/team-account/create-team-account.command.js +16 -0
- package/build/commands/team-account/find-current-team-account-products.command.js +11 -0
- package/build/commands/team-account/find-current-team-account-subscriptions.command.js +11 -0
- package/build/commands/team-account/find-team-account-members.command.js +11 -0
- package/build/commands/team-account/find-team-account-operations.command.js +15 -0
- package/build/commands/team-account/find-team-account-products.command.js +11 -0
- package/build/commands/team-account/find-team-account-subscriptions.command.js +11 -0
- package/build/commands/team-account/find-team-accounts-by-name.command.js +18 -0
- package/build/commands/team-account/get-my-team-account.command.js +11 -0
- package/build/commands/team-account/get-team-account-balance.command.js +15 -0
- package/build/commands/team-account/index.js +33 -0
- package/build/commands/team-account/invite-team-account-member.command.js +17 -0
- package/build/commands/team-account/refund-team-account-balance.command.js +14 -0
- package/build/commands/team-account/remove-team-account-member.command.js +15 -0
- package/build/commands/team-account/update-team-account-member.command.js +23 -0
- package/build/commands/team-account/update-team-account.command.js +18 -0
- package/build/commands/team-to-product/add-team-to-product.command.js +16 -0
- package/build/commands/team-to-product/get-team-to-product-by-uuid.command.js +14 -0
- package/build/commands/team-to-product/get-team-to-products.command.js +14 -0
- package/build/commands/team-to-product/index.js +20 -0
- package/build/commands/team-to-product/update-team-to-product.command.js +21 -0
- package/build/commands/team-to-subscription/add-team-to-subscription.command.js +20 -0
- package/build/commands/team-to-subscription/get-team-to-subscription-by-uuid.command.js +14 -0
- package/build/commands/team-to-subscription/get-team-to-subscriptions.command.js +14 -0
- package/build/commands/team-to-subscription/index.js +20 -0
- package/build/commands/team-to-subscription/update-team-to-subscription.command.js +31 -0
- package/build/commands/tools/image-editor/image-editor.command.js +1 -0
- package/build/commands/tools/image-editor/retry-image-editor-job.command.js +1 -0
- package/build/commands/tools/index.js +3 -0
- package/build/commands/tools/interior-design/delete-all-interior-design-jobs.command.js +8 -0
- package/build/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.js +11 -0
- package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.js +14 -0
- package/build/commands/tools/interior-design/find-interior-design-jobs.command.js +18 -0
- package/build/commands/tools/interior-design/get-interior-design-tool-config.command.js +11 -0
- package/build/commands/tools/interior-design/index.js +25 -0
- package/build/commands/tools/interior-design/interior-design.command.js +20 -0
- package/build/commands/tools/interior-design/retry-interior-design-job.command.js +25 -0
- package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.js +28 -0
- package/build/commands/tools/interior-design/update-interior-design-job-title.command.js +17 -0
- package/build/commands/tools/marketplace-card/delete-all-marketplace-card-jobs.command.js +10 -0
- package/build/commands/tools/marketplace-card/delete-marketplace-card-by-uuid.command.js +13 -0
- package/build/commands/tools/marketplace-card/execute-marketplace-card.command.js +48 -0
- package/build/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.js +14 -0
- package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.js +18 -0
- package/build/commands/tools/marketplace-card/get-marketplace-card-config.command.js +11 -0
- package/build/commands/tools/marketplace-card/index.js +25 -0
- package/build/commands/tools/marketplace-card/retry-marketplace-card-job.command.js +51 -0
- package/build/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.js +28 -0
- package/build/commands/tools/marketplace-card/update-marketplace-card-job-title.command.js +17 -0
- package/build/commands/tools/solving-edu-task/delete-all-solving-edu-task-jobs.command.js +10 -0
- package/build/commands/tools/solving-edu-task/delete-solving-edu-task-job-by-uuid.command.js +13 -0
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.js +14 -0
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.js +18 -0
- package/build/commands/tools/solving-edu-task/get-solving-edu-task-tool-config.command.js +11 -0
- package/build/commands/tools/solving-edu-task/index.js +25 -0
- package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.js +23 -0
- package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.js +28 -0
- package/build/commands/tools/solving-edu-task/solving-edu-task.command.js +30 -0
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.js +17 -0
- package/build/commands/user/get-me.command.js +2 -1
- package/build/commands/user/get-user-payments.command.js +3 -1
- package/build/constants/ai-model/enums/index.js +0 -1
- package/build/constants/billing/enums/billing-scope.enum.js +8 -0
- package/build/constants/{errors → billing/enums}/index.js +1 -2
- package/build/constants/billing/index.js +17 -0
- package/build/constants/cabinet/enums/index.js +1 -0
- package/build/constants/cabinet/enums/statistics-metric-type.enum.js +8 -0
- package/build/constants/index.js +2 -1
- package/build/constants/model/enums/unified-model-content-type.enum.js +2 -1
- package/build/constants/page/enums/index.js +1 -0
- package/build/constants/page/enums/page-sort-by.enum.js +8 -0
- package/build/constants/payment/enums/index.js +1 -0
- package/build/constants/payment/enums/payment-provider.enum.js +8 -0
- package/build/constants/product/enums/product-status.enum.js +1 -0
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +5 -1
- package/build/constants/subscription/enums/subscription-status.enum.js +1 -0
- package/build/constants/subscription/enums/user-to-subscription-marks.enum.js +1 -0
- package/build/constants/team-account/enums/index.js +20 -0
- package/build/constants/team-account/enums/team-account-invite-status.enum.js +10 -0
- package/build/constants/team-account/enums/team-account-member-role.enum.js +9 -0
- package/build/constants/team-account/enums/team-account-member-status.enum.js +11 -0
- package/build/constants/team-account/enums/team-account-operation-type.enum.js +10 -0
- package/build/constants/team-account/index.js +17 -0
- package/build/constants/tool/enums/index.js +0 -1
- package/build/constants/transaction/enums/user-balance-status.enum.js +3 -0
- package/build/constants/ui-notification/enums/ui-notification-type.enum.js +1 -0
- package/build/constants/user/enums/user-status.js +1 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/interior-design/calculate-interior-design-price.helper.js +13 -0
- package/build/helpers/interior-design/index.js +17 -0
- package/build/models/ai-model.schema.js +0 -1
- package/build/models/b2b/b2b-completions-stream-chunk.schema.js +10 -0
- package/build/models/b2b/b2b-file-upload-response.schema.js +11 -0
- package/build/models/b2b/index.js +18 -0
- package/build/models/chat.schema.js +1 -1
- package/build/models/community/community-post-media-data.schema.js +1 -0
- package/build/models/index.js +3 -0
- package/build/models/json-value.schema.js +13 -0
- package/build/models/message.schema.js +1 -0
- package/build/models/payment.schema.js +8 -3
- package/build/models/product.schema.js +2 -0
- package/build/models/prompt.schema.js +0 -2
- package/build/models/subscription-feature.schema.js +24 -3
- package/build/models/subscription.schema.js +1 -0
- package/build/models/team-account/index.js +22 -0
- package/build/models/team-account/team-account-invite.schema.js +20 -0
- package/build/models/team-account/team-account-member.schema.js +17 -0
- package/build/models/team-account/team-account-operation.schema.js +12 -0
- package/build/models/team-account/team-account.schema.js +14 -0
- package/build/models/team-account/team-to-product.schema.js +21 -0
- package/build/models/team-account/team-to-subscription.schema.js +31 -0
- package/build/models/tools/image-editor/image-editor-job.schema.js +1 -0
- package/build/models/tools/image-editor/image-editor-model.schema.js +6 -0
- package/build/models/tools/image-generation/image-generation-model.schema.js +8 -5
- package/build/models/tools/index.js +3 -0
- package/build/models/tools/interior-design/index.js +19 -0
- package/build/models/tools/interior-design/interior-design-config.schema.js +23 -0
- package/build/models/tools/interior-design/interior-design-job.schema.js +27 -0
- package/build/models/tools/interior-design/interior-design-model.schema.js +34 -0
- package/build/models/tools/marketplace-card/index.js +18 -0
- package/build/models/tools/marketplace-card/marketplace-card-config.schema.js +30 -0
- package/build/models/tools/marketplace-card/marketplace-card-job.schema.js +24 -0
- package/build/models/tools/solving-edu-task/index.js +19 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-config.schema.js +8 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.js +25 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-model.schema.js +22 -0
- package/build/models/tools/video-editor/video-editor-job.schema.js +14 -1
- package/build/models/user-profile.schema.js +1 -0
- package/commands/b2b/get-b2b-documentation.command.ts +121 -0
- package/commands/b2b/index.ts +2 -0
- package/commands/b2b/send-text-request.command.ts +2 -5
- package/commands/b2b/upload-b2b-file.command.ts +14 -0
- package/commands/cabinet/get-user-statistics-by-month.command.ts +5 -1
- package/commands/chat/archive-all.command.ts +2 -4
- package/commands/chat/check-limit.command.ts +7 -0
- package/commands/chat/create-chat.command.ts +0 -1
- package/commands/chat/find-chats.command.ts +2 -5
- package/commands/chat/get-last-active-chat-command.ts +0 -1
- package/commands/index.ts +3 -0
- package/commands/message/create-text-message.command.ts +1 -0
- package/commands/page/find-pages-by-criteria.command.ts +50 -0
- package/commands/page/index.ts +1 -0
- package/commands/payment/find-payments-by-criteria.command.ts +63 -0
- package/commands/payment/index.ts +1 -0
- package/commands/product/buy-product.command.ts +27 -1
- package/commands/product/index.ts +1 -0
- package/commands/product/refund-product.command.ts +17 -0
- package/commands/subscription/buy-subscription.command.ts +26 -1
- package/commands/subscription/index.ts +1 -1
- package/commands/subscription/refund-subscription.command.ts +17 -0
- package/commands/subscription/upgrade-subscription.command.ts +27 -1
- package/commands/team-account/accept-team-account-invite.command.ts +16 -0
- package/commands/team-account/create-manual-team-product.command.ts +17 -0
- package/commands/team-account/create-manual-team-subscription.command.ts +18 -0
- package/commands/team-account/create-team-account.command.ts +18 -0
- package/commands/team-account/find-current-team-account-products.command.ts +10 -0
- package/commands/team-account/find-current-team-account-subscriptions.command.ts +10 -0
- package/commands/team-account/find-team-account-members.command.ts +10 -0
- package/commands/team-account/find-team-account-operations.command.ts +17 -0
- package/commands/team-account/find-team-account-products.command.ts +10 -0
- package/commands/team-account/find-team-account-subscriptions.command.ts +10 -0
- package/commands/team-account/find-team-accounts-by-name.command.ts +20 -0
- package/commands/team-account/get-my-team-account.command.ts +10 -0
- package/commands/team-account/get-team-account-balance.command.ts +14 -0
- package/commands/team-account/index.ts +17 -0
- package/commands/team-account/invite-team-account-member.command.ts +19 -0
- package/commands/team-account/refund-team-account-balance.command.ts +16 -0
- package/commands/team-account/remove-team-account-member.command.ts +17 -0
- package/commands/team-account/update-team-account-member.command.ts +25 -0
- package/commands/team-account/update-team-account.command.ts +24 -0
- package/commands/team-to-product/add-team-to-product.command.ts +18 -0
- package/commands/team-to-product/get-team-to-product-by-uuid.command.ts +16 -0
- package/commands/team-to-product/get-team-to-products.command.ts +16 -0
- package/commands/team-to-product/index.ts +4 -0
- package/commands/team-to-product/update-team-to-product.command.ts +26 -0
- package/commands/team-to-subscription/add-team-to-subscription.command.ts +22 -0
- package/commands/team-to-subscription/get-team-to-subscription-by-uuid.command.ts +16 -0
- package/commands/team-to-subscription/get-team-to-subscriptions.command.ts +16 -0
- package/commands/team-to-subscription/index.ts +4 -0
- package/commands/team-to-subscription/update-team-to-subscription.command.ts +36 -0
- package/commands/tools/image-editor/image-editor.command.ts +1 -0
- package/commands/tools/image-editor/retry-image-editor-job.command.ts +1 -0
- package/commands/tools/index.ts +3 -0
- package/commands/tools/interior-design/delete-all-interior-design-jobs.command.ts +6 -0
- package/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.ts +11 -0
- package/commands/tools/interior-design/find-interior-design-job-by-uuid.command.ts +16 -0
- package/commands/tools/interior-design/find-interior-design-jobs.command.ts +18 -0
- package/commands/tools/interior-design/get-interior-design-tool-config.command.ts +10 -0
- package/commands/tools/interior-design/index.ts +9 -0
- package/commands/tools/interior-design/interior-design.command.ts +21 -0
- package/commands/tools/interior-design/retry-interior-design-job.command.ts +27 -0
- package/commands/tools/interior-design/set-reaction-to-interior-design-job.command.ts +33 -0
- package/commands/tools/interior-design/update-interior-design-job-title.command.ts +19 -0
- package/commands/tools/marketplace-card/delete-all-marketplace-card-jobs.command.ts +8 -0
- package/commands/tools/marketplace-card/delete-marketplace-card-by-uuid.command.ts +13 -0
- package/commands/tools/marketplace-card/execute-marketplace-card.command.ts +53 -0
- package/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.ts +16 -0
- package/commands/tools/marketplace-card/find-marketplace-card-jobs.command.ts +18 -0
- package/commands/tools/marketplace-card/get-marketplace-card-config.command.ts +9 -0
- package/commands/tools/marketplace-card/index.ts +9 -0
- package/commands/tools/marketplace-card/retry-marketplace-card-job.command.ts +57 -0
- package/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.ts +33 -0
- package/commands/tools/marketplace-card/update-marketplace-card-job-title.command.ts +19 -0
- package/commands/tools/solving-edu-task/delete-all-solving-edu-task-jobs.command.ts +8 -0
- package/commands/tools/solving-edu-task/delete-solving-edu-task-job-by-uuid.command.ts +13 -0
- package/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.ts +16 -0
- package/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.ts +18 -0
- package/commands/tools/solving-edu-task/get-solving-edu-task-tool-config.command.ts +9 -0
- package/commands/tools/solving-edu-task/index.ts +9 -0
- package/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.ts +25 -0
- package/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.ts +33 -0
- package/commands/tools/solving-edu-task/solving-edu-task.command.ts +31 -0
- package/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.ts +19 -0
- package/commands/user/get-me.command.ts +2 -1
- package/commands/user/get-user-payments.command.ts +4 -2
- package/constants/ai-model/enums/index.ts +0 -1
- package/constants/billing/enums/billing-scope.enum.ts +4 -0
- package/constants/billing/enums/index.ts +1 -0
- package/constants/billing/index.ts +1 -0
- package/constants/cabinet/enums/index.ts +1 -0
- package/constants/cabinet/enums/statistics-metric-type.enum.ts +4 -0
- package/constants/index.ts +2 -1
- package/constants/model/enums/unified-model-content-type.enum.ts +2 -1
- package/constants/page/enums/index.ts +1 -0
- package/constants/page/enums/page-sort-by.enum.ts +4 -0
- package/constants/payment/enums/index.ts +1 -0
- package/constants/payment/enums/payment-provider.enum.ts +4 -0
- package/constants/product/enums/product-status.enum.ts +1 -0
- package/constants/subscription/enums/subscription-feature-type.enum.ts +5 -1
- package/constants/subscription/enums/subscription-status.enum.ts +1 -0
- package/constants/subscription/enums/user-to-subscription-marks.enum.ts +1 -0
- package/constants/team-account/enums/index.ts +4 -0
- package/constants/team-account/enums/team-account-invite-status.enum.ts +6 -0
- package/constants/team-account/enums/team-account-member-role.enum.ts +5 -0
- package/constants/team-account/enums/team-account-member-status.enum.ts +7 -0
- package/constants/team-account/enums/team-account-operation-type.enum.ts +6 -0
- package/constants/team-account/index.ts +1 -0
- package/constants/tool/enums/index.ts +0 -1
- package/constants/transaction/enums/user-balance-status.enum.ts +3 -0
- package/constants/ui-notification/enums/ui-notification-type.enum.ts +1 -0
- package/constants/user/enums/user-status.ts +1 -0
- package/helpers/index.ts +1 -0
- package/helpers/interior-design/calculate-interior-design-price.helper.ts +23 -0
- package/helpers/interior-design/index.ts +1 -0
- package/models/ai-model.schema.ts +3 -7
- package/models/b2b/b2b-completions-stream-chunk.schema.ts +10 -0
- package/models/b2b/b2b-file-upload-response.schema.ts +14 -0
- package/models/b2b/index.ts +2 -0
- package/models/chat.schema.ts +1 -1
- package/models/community/community-post-media-data.schema.ts +1 -0
- package/models/index.ts +3 -0
- package/models/json-value.schema.ts +23 -0
- package/models/message.schema.ts +1 -0
- package/models/payment.schema.ts +7 -2
- package/models/product.schema.ts +2 -0
- package/models/prompt.schema.ts +0 -2
- package/models/subscription-feature.schema.ts +32 -7
- package/models/subscription.schema.ts +7 -1
- package/models/team-account/index.ts +6 -0
- package/models/team-account/team-account-invite.schema.ts +18 -0
- package/models/team-account/team-account-member.schema.ts +15 -0
- package/models/team-account/team-account-operation.schema.ts +10 -0
- package/models/team-account/team-account.schema.ts +12 -0
- package/models/team-account/team-to-product.schema.ts +20 -0
- package/models/team-account/team-to-subscription.schema.ts +33 -0
- package/models/tools/image-editor/image-editor-job.schema.ts +1 -0
- package/models/tools/image-editor/image-editor-model.schema.ts +9 -0
- package/models/tools/image-generation/image-generation-model.schema.ts +8 -5
- package/models/tools/index.ts +3 -0
- package/models/tools/interior-design/index.ts +3 -0
- package/models/tools/interior-design/interior-design-config.schema.ts +29 -0
- package/models/tools/interior-design/interior-design-job.schema.ts +32 -0
- package/models/tools/interior-design/interior-design-model.schema.ts +45 -0
- package/models/tools/marketplace-card/index.ts +2 -0
- package/models/tools/marketplace-card/marketplace-card-config.schema.ts +33 -0
- package/models/tools/marketplace-card/marketplace-card-job.schema.ts +25 -0
- package/models/tools/solving-edu-task/index.ts +3 -0
- package/models/tools/solving-edu-task/solving-edu-task-config.schema.ts +8 -0
- package/models/tools/solving-edu-task/solving-edu-task-job.schema.ts +28 -0
- package/models/tools/solving-edu-task/solving-edu-task-model.schema.ts +25 -0
- package/models/tools/video-editor/video-editor-job.schema.ts +14 -1
- package/models/user-profile.schema.ts +1 -0
- package/package.json +1 -1
- package/build/commands/subscription/create-custom-subscription-plan.command.js +0 -24
- package/build/constants/ai-model/enums/ai-model-content-type.enum.js +0 -7
- package/build/constants/errors/errors.js +0 -4351
- package/build/constants/errors/verbose.js +0 -9
- package/build/constants/tool/enums/tool-type.enum.js +0 -12
- package/commands/subscription/create-custom-subscription-plan.command.ts +0 -26
- package/constants/ai-model/enums/ai-model-content-type.enum.ts +0 -7
- package/constants/errors/errors.ts +0 -4391
- package/constants/errors/index.ts +0 -2
- package/constants/errors/verbose.ts +0 -7
- package/constants/tool/enums/tool-type.enum.ts +0 -8
package/build/api/routes.js
CHANGED
|
@@ -41,6 +41,7 @@ exports.REST_API = {
|
|
|
41
41
|
AUTH: {
|
|
42
42
|
REGISTER: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.REGISTER}`,
|
|
43
43
|
LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.LOGIN}`,
|
|
44
|
+
ADMIN_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.ADMIN_LOGIN}`,
|
|
44
45
|
VK_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VK_LOGIN}`,
|
|
45
46
|
YANDEX_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.YANDEX_LOGIN}`,
|
|
46
47
|
CREATE_USER: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CREATE_USER}`,
|
|
@@ -77,6 +78,8 @@ exports.REST_API = {
|
|
|
77
78
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
78
79
|
GET_BY_ALIAS: (alias) => `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_ALIAS(alias)}`,
|
|
79
80
|
GET_BY_ALL_WITH_RELATIONS: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.GET_ALL_WITH_RELATIONS}`,
|
|
81
|
+
FIND_BY_CRITERIA: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_CRITERIA}`,
|
|
82
|
+
FIND_BY_CRITERIA_WITH_RELATIONS: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_CRITERIA_WITH_RELATIONS}`,
|
|
80
83
|
MODEL_PAGES: `${exports.ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.MODEL_PAGES}`,
|
|
81
84
|
},
|
|
82
85
|
CATEGORY: {
|
|
@@ -153,13 +156,14 @@ exports.REST_API = {
|
|
|
153
156
|
CREATE: `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}`,
|
|
154
157
|
BUY: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.BUY(uuid)}`,
|
|
155
158
|
MY: `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.MY}`,
|
|
159
|
+
REFUND: (uuid) => `${exports.ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.REFUND(uuid)}`,
|
|
156
160
|
},
|
|
157
161
|
SUBSCRIPTION_PUBLIC: {
|
|
158
162
|
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
|
|
163
|
+
CUSTOM_ALL: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CUSTOM_ALL}`,
|
|
159
164
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FIND_BY_UUID}/${uuid}`,
|
|
160
165
|
FAST_BUY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FAST_BUY}/${uuid}`,
|
|
161
166
|
FREE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FREE}`,
|
|
162
|
-
CREATE_CUSTOM: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CREATE_CUSTOM}`,
|
|
163
167
|
},
|
|
164
168
|
SUBSCRIPTION_PRIVATE: {
|
|
165
169
|
GET: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
|
|
@@ -174,9 +178,28 @@ exports.REST_API = {
|
|
|
174
178
|
DOWNGRADE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DOWNGRADE}`,
|
|
175
179
|
GET_AVAILABLE_UPGRADES: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_AVAILABLE_UPGRADES}`,
|
|
176
180
|
GET_AVAILABLE_DOWNGRADES: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_AVAILABLE_DOWNGRADES}`,
|
|
177
|
-
CREATE_CUSTOM: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CREATE_CUSTOM}`,
|
|
178
181
|
SUMMARY: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.SUMMARY}`,
|
|
179
182
|
RECOVER_PAST_DUE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.RECOVER_PAST_DUE(uuid)}`,
|
|
183
|
+
REFUND: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.REFUND(uuid)}`,
|
|
184
|
+
},
|
|
185
|
+
TEAM_ACCOUNT: {
|
|
186
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CREATE}`,
|
|
187
|
+
UPDATE_ME: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.UPDATE_ME}`,
|
|
188
|
+
UPDATE_MEMBER: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.UPDATE_MEMBER}`,
|
|
189
|
+
INVITE_MEMBER: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.INVITE_MEMBER}`,
|
|
190
|
+
REMOVE_MEMBER: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.REMOVE_MEMBER}`,
|
|
191
|
+
ACCEPT_INVITE: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.ACCEPT_INVITE}`,
|
|
192
|
+
GET_ME: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_ME}`,
|
|
193
|
+
GET_MEMBERS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_MEMBERS}`,
|
|
194
|
+
GET_OPERATIONS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_OPERATIONS}`,
|
|
195
|
+
GET_PRODUCTS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_PRODUCTS}`,
|
|
196
|
+
GET_SUBSCRIPTIONS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_SUBSCRIPTIONS}`,
|
|
197
|
+
GET_CURRENT_PRODUCTS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_PRODUCTS}`,
|
|
198
|
+
GET_CURRENT_SUBSCRIPTIONS: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_SUBSCRIPTIONS}`,
|
|
199
|
+
GET_BALANCE: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_BALANCE}`,
|
|
200
|
+
CREATE_MANUAL_SUBSCRIPTION: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CREATE_MANUAL_SUBSCRIPTION}`,
|
|
201
|
+
CREATE_MANUAL_PRODUCT: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CREATE_MANUAL_PRODUCT}`,
|
|
202
|
+
ADMIN_FIND_BY_NAME: `${exports.ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.ADMIN_FIND_BY_NAME}`,
|
|
180
203
|
},
|
|
181
204
|
FILES: {
|
|
182
205
|
UPLOAD_FILE: `${exports.ROOT}/${CONTROLLERS.FILE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD_FILE}`,
|
|
@@ -573,6 +596,28 @@ exports.REST_API = {
|
|
|
573
596
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.VIDEO_EDITOR_CONTROLLER_PRIVATE}/${CONTROLLERS.VIDEO_EDITOR_ROUTES.DELETE_ALL}`,
|
|
574
597
|
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.VIDEO_EDITOR_CONTROLLER_PRIVATE}/${CONTROLLERS.VIDEO_EDITOR_ROUTES.RETRY(uuid)}`,
|
|
575
598
|
},
|
|
599
|
+
INTERIOR_DESIGN_PUBLIC: {
|
|
600
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.CONFIG}`,
|
|
601
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.EXECUTE}`,
|
|
602
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOBS}`,
|
|
603
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOB(uuid)}`,
|
|
604
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.UPDATE(uuid)}`,
|
|
605
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.SET_REACTION(uuid)}`,
|
|
606
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE(uuid)}`,
|
|
607
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE_ALL}`,
|
|
608
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.RETRY(uuid)}`,
|
|
609
|
+
},
|
|
610
|
+
INTERIOR_DESIGN_PRIVATE: {
|
|
611
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.CONFIG}`,
|
|
612
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.EXECUTE}`,
|
|
613
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOBS}`,
|
|
614
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOB(uuid)}`,
|
|
615
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.UPDATE(uuid)}`,
|
|
616
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.SET_REACTION(uuid)}`,
|
|
617
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE(uuid)}`,
|
|
618
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE_ALL}`,
|
|
619
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.RETRY(uuid)}`,
|
|
620
|
+
},
|
|
576
621
|
MESSAGE_PUBLIC: {
|
|
577
622
|
FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.MESSAGE_CONTROLLER_PUBLIC}/${CONTROLLERS.MESSAGE_PUBLIC_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
578
623
|
RATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MESSAGE_CONTROLLER_PUBLIC}/${CONTROLLERS.MESSAGE_PUBLIC_ROUTES.RATE(uuid)}`,
|
|
@@ -636,6 +681,7 @@ exports.REST_API = {
|
|
|
636
681
|
PAYMENT: {
|
|
637
682
|
HISTORY: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
|
|
638
683
|
REFUND: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.REFUND}`,
|
|
684
|
+
FIND_BY_CRITERIA: `${exports.ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.FIND_BY_CRITERIA}`,
|
|
639
685
|
},
|
|
640
686
|
COURSE: {
|
|
641
687
|
FIND_BY_UUID: `${exports.ROOT}/${CONTROLLERS.COURSE_CONTROLLER}/${CONTROLLERS.COURSE_ROUTES.FIND_BY_UUID}`,
|
|
@@ -668,6 +714,7 @@ exports.REST_API = {
|
|
|
668
714
|
SEND_TEXT_REQUEST: `${exports.ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.SEND_TEXT_REQUEST}`,
|
|
669
715
|
SEND_IMAGE_REQUEST: `${exports.ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.SEND_IMAGE_REQUEST}`,
|
|
670
716
|
GET_B2B_IMAGE_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.GET_B2B_IMAGE_JOB(uuid)}`,
|
|
717
|
+
DOCUMENTATION: `${exports.ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.DOCUMENTATION}`,
|
|
671
718
|
FILE_UPLOAD: `${exports.ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.FILE_UPLOAD}`,
|
|
672
719
|
BALANCE_TOP_UP: `${exports.ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.BALANCE_TOP_UP}`,
|
|
673
720
|
},
|
|
@@ -720,4 +767,48 @@ exports.REST_API = {
|
|
|
720
767
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.DELETE_ALL}`,
|
|
721
768
|
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
|
|
722
769
|
},
|
|
770
|
+
MARKETPLACE_CARD_CONTROLLER_PRIVATE: {
|
|
771
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.CONFIG}`,
|
|
772
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.EXECUTE}`,
|
|
773
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOBS}`,
|
|
774
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOB(uuid)}`,
|
|
775
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.UPDATE(uuid)}`,
|
|
776
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.SET_REACTION(uuid)}`,
|
|
777
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE(uuid)}`,
|
|
778
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE_ALL}`,
|
|
779
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.RETRY(uuid)}`,
|
|
780
|
+
},
|
|
781
|
+
MARKETPLACE_CARD_CONTROLLER_PUBLIC: {
|
|
782
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.CONFIG}`,
|
|
783
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.EXECUTE}`,
|
|
784
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOBS}`,
|
|
785
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOB(uuid)}`,
|
|
786
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.UPDATE(uuid)}`,
|
|
787
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.SET_REACTION(uuid)}`,
|
|
788
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE(uuid)}`,
|
|
789
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE_ALL}`,
|
|
790
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.RETRY(uuid)}`,
|
|
791
|
+
},
|
|
792
|
+
SOLVING_EDU_TASK_PRIVATE: {
|
|
793
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.CONFIG}`,
|
|
794
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.EXECUTE}`,
|
|
795
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOBS}`,
|
|
796
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOB(uuid)}`,
|
|
797
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.UPDATE(uuid)}`,
|
|
798
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.SET_REACTION(uuid)}`,
|
|
799
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE(uuid)}`,
|
|
800
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE_ALL}`,
|
|
801
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.RETRY(uuid)}`,
|
|
802
|
+
},
|
|
803
|
+
SOLVING_EDU_TASK_PUBLIC: {
|
|
804
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.CONFIG}`,
|
|
805
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.EXECUTE}`,
|
|
806
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOBS}`,
|
|
807
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOB(uuid)}`,
|
|
808
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.UPDATE(uuid)}`,
|
|
809
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.SET_REACTION(uuid)}`,
|
|
810
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE(uuid)}`,
|
|
811
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE_ALL}`,
|
|
812
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.RETRY(uuid)}`,
|
|
813
|
+
},
|
|
723
814
|
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetB2bDocumentationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
var GetB2bDocumentationCommand;
|
|
8
|
+
(function (GetB2bDocumentationCommand) {
|
|
9
|
+
GetB2bDocumentationCommand.HttpMethodSchema = zod_1.z.enum(['GET', 'POST', 'PATCH', 'DELETE']);
|
|
10
|
+
GetB2bDocumentationCommand.AuthTypeSchema = zod_1.z.enum(['jwt', 'apiKey', 'none']);
|
|
11
|
+
GetB2bDocumentationCommand.HeaderSchema = zod_1.z.object({
|
|
12
|
+
name: zod_1.z.string(),
|
|
13
|
+
required: zod_1.z.boolean(),
|
|
14
|
+
description: zod_1.z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
GetB2bDocumentationCommand.EndpointParamSchema = zod_1.z.object({
|
|
17
|
+
name: zod_1.z.string(),
|
|
18
|
+
required: zod_1.z.boolean(),
|
|
19
|
+
schemaRef: zod_1.z.string(),
|
|
20
|
+
});
|
|
21
|
+
GetB2bDocumentationCommand.EndpointBodySchema = zod_1.z.object({
|
|
22
|
+
schemaRef: zod_1.z.string(),
|
|
23
|
+
contentType: zod_1.z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
GetB2bDocumentationCommand.EndpointExampleSchema = zod_1.z.object({
|
|
26
|
+
title: zod_1.z.string(),
|
|
27
|
+
curl: zod_1.z.string().optional(),
|
|
28
|
+
curlTemplate: zod_1.z.string().optional(),
|
|
29
|
+
variables: zod_1.z
|
|
30
|
+
.array(zod_1.z.object({
|
|
31
|
+
name: zod_1.z.string(),
|
|
32
|
+
description: zod_1.z.string().optional(),
|
|
33
|
+
}))
|
|
34
|
+
.optional(),
|
|
35
|
+
request: models_1.JsonValueSchema.optional(),
|
|
36
|
+
response: models_1.JsonValueSchema.optional(),
|
|
37
|
+
});
|
|
38
|
+
GetB2bDocumentationCommand.EndpointSchema = zod_1.z.object({
|
|
39
|
+
id: zod_1.z.string(),
|
|
40
|
+
title: zod_1.z.string(),
|
|
41
|
+
description: zod_1.z.string().optional(),
|
|
42
|
+
method: GetB2bDocumentationCommand.HttpMethodSchema,
|
|
43
|
+
path: zod_1.z.string(),
|
|
44
|
+
auth: GetB2bDocumentationCommand.AuthTypeSchema,
|
|
45
|
+
headers: zod_1.z.array(GetB2bDocumentationCommand.HeaderSchema).optional(),
|
|
46
|
+
pathParams: zod_1.z.array(GetB2bDocumentationCommand.EndpointParamSchema).optional(),
|
|
47
|
+
requestBody: GetB2bDocumentationCommand.EndpointBodySchema.optional(),
|
|
48
|
+
responseBody: GetB2bDocumentationCommand.EndpointBodySchema.optional(),
|
|
49
|
+
notes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
50
|
+
examples: zod_1.z.array(GetB2bDocumentationCommand.EndpointExampleSchema).optional(),
|
|
51
|
+
});
|
|
52
|
+
GetB2bDocumentationCommand.ErrorSchema = zod_1.z.object({
|
|
53
|
+
id: zod_1.z.string(),
|
|
54
|
+
httpStatus: zod_1.z.number().int().optional(),
|
|
55
|
+
message: zod_1.z.string(),
|
|
56
|
+
description: zod_1.z.string().optional(),
|
|
57
|
+
relatedEndpoints: zod_1.z.array(zod_1.z.string()).optional(),
|
|
58
|
+
});
|
|
59
|
+
GetB2bDocumentationCommand.JsonSchemaSchema = zod_1.z.object({
|
|
60
|
+
id: zod_1.z.string(),
|
|
61
|
+
title: zod_1.z.string().optional(),
|
|
62
|
+
jsonSchema: models_1.JsonObjectSchema,
|
|
63
|
+
});
|
|
64
|
+
GetB2bDocumentationCommand.SectionSchema = zod_1.z.object({
|
|
65
|
+
id: zod_1.z.string(),
|
|
66
|
+
title: zod_1.z.string(),
|
|
67
|
+
body: zod_1.z.string(),
|
|
68
|
+
});
|
|
69
|
+
const B2bDocTextModelSchema = models_1.AiModelSchema.omit({
|
|
70
|
+
createdAt: true,
|
|
71
|
+
updatedAt: true,
|
|
72
|
+
}).extend({
|
|
73
|
+
createdAt: zod_1.z.string(),
|
|
74
|
+
updatedAt: zod_1.z.string(),
|
|
75
|
+
aiModel: zod_1.z.string(),
|
|
76
|
+
});
|
|
77
|
+
const B2bDocImageModelSchema = models_1.ImageGenerationModelSchema.extend({
|
|
78
|
+
aiModel: zod_1.z.string(),
|
|
79
|
+
iconVariants: models_1.IconVariantsSchema,
|
|
80
|
+
});
|
|
81
|
+
GetB2bDocumentationCommand.ReferencesSchema = zod_1.z
|
|
82
|
+
.object({
|
|
83
|
+
textModels: zod_1.z.array(B2bDocTextModelSchema).optional(),
|
|
84
|
+
imageModels: zod_1.z.array(B2bDocImageModelSchema).optional(),
|
|
85
|
+
features: zod_1.z.array(zod_1.z.nativeEnum(constants_1.AI_MODEL_FEATURE)).optional(),
|
|
86
|
+
supportedFileMimeTypes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
87
|
+
})
|
|
88
|
+
.partial()
|
|
89
|
+
.optional();
|
|
90
|
+
GetB2bDocumentationCommand.ResponseSchema = zod_1.z.object({
|
|
91
|
+
data: zod_1.z.object({
|
|
92
|
+
endpoints: zod_1.z.array(GetB2bDocumentationCommand.EndpointSchema),
|
|
93
|
+
errors: zod_1.z.array(GetB2bDocumentationCommand.ErrorSchema),
|
|
94
|
+
schemas: zod_1.z.array(GetB2bDocumentationCommand.JsonSchemaSchema),
|
|
95
|
+
extraSections: zod_1.z.array(GetB2bDocumentationCommand.SectionSchema),
|
|
96
|
+
references: GetB2bDocumentationCommand.ReferencesSchema,
|
|
97
|
+
}),
|
|
98
|
+
});
|
|
99
|
+
})(GetB2bDocumentationCommand || (exports.GetB2bDocumentationCommand = GetB2bDocumentationCommand = {}));
|
|
@@ -20,3 +20,5 @@ __exportStar(require("./send-text-request.command"), exports);
|
|
|
20
20
|
__exportStar(require("./send-image-request.command"), exports);
|
|
21
21
|
__exportStar(require("./submit-balance-top-up-form.command"), exports);
|
|
22
22
|
__exportStar(require("./find-b2b-image-generation-job-by-uuid.command"), exports);
|
|
23
|
+
__exportStar(require("./get-b2b-documentation.command"), exports);
|
|
24
|
+
__exportStar(require("./upload-b2b-file.command"), exports);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SendTextRequestCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
|
+
const models_1 = require("../../models");
|
|
6
7
|
var SendTextRequestCommand;
|
|
7
8
|
(function (SendTextRequestCommand) {
|
|
8
9
|
SendTextRequestCommand.BodySchema = zod_1.z.object({
|
|
@@ -14,9 +15,5 @@ var SendTextRequestCommand;
|
|
|
14
15
|
SendTextRequestCommand.HeadersSchema = zod_1.z.object({
|
|
15
16
|
'x-rugpt-key': zod_1.z.string(),
|
|
16
17
|
});
|
|
17
|
-
SendTextRequestCommand.ResponseSchema =
|
|
18
|
-
data: zod_1.z.object({
|
|
19
|
-
text: zod_1.z.string(),
|
|
20
|
-
}),
|
|
21
|
-
});
|
|
18
|
+
SendTextRequestCommand.ResponseSchema = models_1.B2bCompletionsStreamChunkSchema;
|
|
22
19
|
})(SendTextRequestCommand || (exports.SendTextRequestCommand = SendTextRequestCommand = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadB2bFileCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const b2b_file_upload_response_schema_1 = require("../../models/b2b/b2b-file-upload-response.schema");
|
|
6
|
+
var UploadB2bFileCommand;
|
|
7
|
+
(function (UploadB2bFileCommand) {
|
|
8
|
+
UploadB2bFileCommand.HeadersSchema = zod_1.z.object({
|
|
9
|
+
'x-rugpt-key': zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
UploadB2bFileCommand.ResponseSchema = b2b_file_upload_response_schema_1.B2bFileUploadResponseSchema;
|
|
12
|
+
})(UploadB2bFileCommand || (exports.UploadB2bFileCommand = UploadB2bFileCommand = {}));
|
|
@@ -7,6 +7,10 @@ var GetUserStatisticsByMonthCommand;
|
|
|
7
7
|
(function (GetUserStatisticsByMonthCommand) {
|
|
8
8
|
GetUserStatisticsByMonthCommand.RequestSchema = zod_1.z.object({
|
|
9
9
|
origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API).optional(),
|
|
10
|
+
metric: zod_1.z
|
|
11
|
+
.nativeEnum(constants_1.STATISTICS_METRIC_TYPE)
|
|
12
|
+
.default(constants_1.STATISTICS_METRIC_TYPE.REQUESTS)
|
|
13
|
+
.optional(),
|
|
10
14
|
});
|
|
11
15
|
GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema = zod_1.z.object({
|
|
12
16
|
month: zod_1.z.string(),
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ArchiveAllCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
5
|
var ArchiveAllCommand;
|
|
7
6
|
(function (ArchiveAllCommand) {
|
|
8
|
-
ArchiveAllCommand.RequestSchema = zod_1.z.
|
|
9
|
-
type: zod_1.z.nativeEnum(constants_1.AI_MODEL_CONTENT_TYPE),
|
|
10
|
-
});
|
|
7
|
+
ArchiveAllCommand.RequestSchema = zod_1.z.void();
|
|
11
8
|
ArchiveAllCommand.ResponseSchema = zod_1.z.void();
|
|
12
9
|
})(ArchiveAllCommand || (exports.ArchiveAllCommand = ArchiveAllCommand = {}));
|
|
@@ -12,6 +12,13 @@ var CheckLimitCommand;
|
|
|
12
12
|
productBalance: zod_1.z.number(),
|
|
13
13
|
referralBonusBalance: zod_1.z.number(),
|
|
14
14
|
carriedOverBalance: zod_1.z.number(),
|
|
15
|
+
teamAvailableBalance: zod_1.z
|
|
16
|
+
.object({
|
|
17
|
+
balance: zod_1.z.number(),
|
|
18
|
+
limit: zod_1.z.number().nullable(),
|
|
19
|
+
})
|
|
20
|
+
.optional(),
|
|
21
|
+
reservedTokenBalance: zod_1.z.number().optional(),
|
|
15
22
|
}),
|
|
16
23
|
});
|
|
17
24
|
})(CheckLimitCommand || (exports.CheckLimitCommand = CheckLimitCommand = {}));
|
|
@@ -10,7 +10,7 @@ var FindChatsCommand;
|
|
|
10
10
|
offset: zod_1.z.coerce.number().min(0).default(0),
|
|
11
11
|
title: zod_1.z.string().optional(),
|
|
12
12
|
});
|
|
13
|
-
const QuerySchema =
|
|
13
|
+
const QuerySchema = models_1.ChatSchema.pick({ categoryId: true, lastUsedAiModelId: true }).partial();
|
|
14
14
|
FindChatsCommand.RequestQuerySchema = zod_1.z.intersection(QuerySchema, PaginationQuerySchema);
|
|
15
15
|
FindChatsCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
data: zod_1.z.array(models_1.ChatSchema),
|
|
@@ -7,7 +7,6 @@ var GetLastActiveChatCommand;
|
|
|
7
7
|
(function (GetLastActiveChatCommand) {
|
|
8
8
|
GetLastActiveChatCommand.RequestQuerySchema = models_1.ChatSchema.pick({
|
|
9
9
|
categoryId: true,
|
|
10
|
-
aIModelId: true,
|
|
11
10
|
});
|
|
12
11
|
GetLastActiveChatCommand.Response = zod_1.z.object({
|
|
13
12
|
data: models_1.ChatWithMessagesSchema,
|
package/build/commands/index.js
CHANGED
|
@@ -58,3 +58,6 @@ __exportStar(require("./webmaster-click"), exports);
|
|
|
58
58
|
__exportStar(require("./b2b"), exports);
|
|
59
59
|
__exportStar(require("./community"), exports);
|
|
60
60
|
__exportStar(require("./user-profile"), exports);
|
|
61
|
+
__exportStar(require("./team-account"), exports);
|
|
62
|
+
__exportStar(require("./team-to-subscription"), exports);
|
|
63
|
+
__exportStar(require("./team-to-product"), exports);
|
|
@@ -10,6 +10,7 @@ var CreateTextMessageCommand;
|
|
|
10
10
|
text: zod_1.z.string(),
|
|
11
11
|
files: zod_1.z.array(zod_1.z.string().uuid()).optional().default([]),
|
|
12
12
|
features: zod_1.z.array(zod_1.z.nativeEnum(constants_1.AI_MODEL_FEATURE)).optional().default([]),
|
|
13
|
+
aiModelId: zod_1.z.string().uuid(),
|
|
13
14
|
});
|
|
14
15
|
CreateTextMessageCommand.RequestParamSchema = models_1.ChatSchema.pick({
|
|
15
16
|
uuid: true,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPagesByCriteriaCommand = void 0;
|
|
4
|
+
const models_1 = require("../../models");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
var FindPagesByCriteriaCommand;
|
|
8
|
+
(function (FindPagesByCriteriaCommand) {
|
|
9
|
+
FindPagesByCriteriaCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
title: zod_1.z.string().optional(),
|
|
11
|
+
type: zod_1.z.nativeEnum(constants_1.PageType).optional(),
|
|
12
|
+
toolId: zod_1.z.string().uuid().optional(),
|
|
13
|
+
toolModelId: zod_1.z.string().uuid().optional(),
|
|
14
|
+
toolTitle: zod_1.z.string().optional(),
|
|
15
|
+
sortBy: zod_1.z.nativeEnum(constants_1.PAGE_SORT_BY).optional(),
|
|
16
|
+
sortOrder: zod_1.z.nativeEnum(constants_1.SORT_ORDER).default(constants_1.SORT_ORDER.DESC).optional(),
|
|
17
|
+
limit: zod_1.z.coerce.number().min(1),
|
|
18
|
+
offset: zod_1.z.coerce.number().min(0).default(0),
|
|
19
|
+
});
|
|
20
|
+
FindPagesByCriteriaCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: zod_1.z.array(models_1.PageSchema),
|
|
22
|
+
page: zod_1.z.number(),
|
|
23
|
+
totalPages: zod_1.z.number(),
|
|
24
|
+
});
|
|
25
|
+
FindPagesByCriteriaCommand.PageWithRelationsSchema = models_1.PageSchema.extend({
|
|
26
|
+
category: zod_1.z.union([models_1.CategorySchema, zod_1.z.null()]),
|
|
27
|
+
aIModel: zod_1.z.union([models_1.AiModelSchema, zod_1.z.null()]),
|
|
28
|
+
tool: models_1.ToolSchema.nullable(),
|
|
29
|
+
questions: zod_1.z.array(models_1.QuestionSchema),
|
|
30
|
+
});
|
|
31
|
+
FindPagesByCriteriaCommand.ResponseWithRelationsSchema = zod_1.z.object({
|
|
32
|
+
data: zod_1.z.array(FindPagesByCriteriaCommand.PageWithRelationsSchema),
|
|
33
|
+
page: zod_1.z.number(),
|
|
34
|
+
totalPages: zod_1.z.number(),
|
|
35
|
+
});
|
|
36
|
+
})(FindPagesByCriteriaCommand || (exports.FindPagesByCriteriaCommand = FindPagesByCriteriaCommand = {}));
|
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-page.command"), exports);
|
|
18
18
|
__exportStar(require("./delete-page.command"), exports);
|
|
19
19
|
__exportStar(require("./find-page-by-alias.command"), exports);
|
|
20
|
+
__exportStar(require("./find-pages-by-criteria.command"), exports);
|
|
20
21
|
__exportStar(require("./find-page.command"), exports);
|
|
21
22
|
__exportStar(require("./update-page.command"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindPaymentsByCriteriaCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var FindPaymentsByCriteriaCommand;
|
|
8
|
+
(function (FindPaymentsByCriteriaCommand) {
|
|
9
|
+
FindPaymentsByCriteriaCommand.RequestSchema = zod_1.z.preprocess((input) => {
|
|
10
|
+
if (input && typeof input === 'object' && !Array.isArray(input)) {
|
|
11
|
+
const obj = Object.assign({}, input);
|
|
12
|
+
const onlyNormalize = ['createdAt', 'sum'];
|
|
13
|
+
const relevantBracketed = Object.keys(obj).some((key) => {
|
|
14
|
+
const match = key.match(/^(\w+)\[(\w+)\]$/);
|
|
15
|
+
return match && onlyNormalize.includes(match[1]);
|
|
16
|
+
});
|
|
17
|
+
if (!relevantBracketed) {
|
|
18
|
+
return obj;
|
|
19
|
+
}
|
|
20
|
+
const result = Object.assign({}, obj);
|
|
21
|
+
for (const key of Object.keys(obj)) {
|
|
22
|
+
const match = key.match(/^(\w+)\[(\w+)\]$/);
|
|
23
|
+
if (match && onlyNormalize.includes(match[1])) {
|
|
24
|
+
const [, outer, inner] = match;
|
|
25
|
+
result[outer] = result[outer] || {};
|
|
26
|
+
result[outer][inner] = obj[key];
|
|
27
|
+
delete result[key];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
return input;
|
|
33
|
+
}, zod_1.z.object({
|
|
34
|
+
status: zod_1.z.nativeEnum(constants_1.PAYMENT_STATUS).optional(),
|
|
35
|
+
orderId: zod_1.z.string().optional(),
|
|
36
|
+
sum: models_1.NumberFilter.optional(),
|
|
37
|
+
userEmail: zod_1.z.string().optional(),
|
|
38
|
+
createdAt: models_1.DateFilter.optional(),
|
|
39
|
+
userId: zod_1.z.string().optional(),
|
|
40
|
+
signupMethod: zod_1.z.nativeEnum(constants_1.SIGNUP_METHOD).optional(),
|
|
41
|
+
vkId: zod_1.z.string().optional(),
|
|
42
|
+
yandexId: zod_1.z.string().optional(),
|
|
43
|
+
sortBy: zod_1.z.nativeEnum(constants_1.PAYMENT_SORT_BY).optional(),
|
|
44
|
+
sortOrder: zod_1.z.nativeEnum(constants_1.SORT_ORDER).default(constants_1.SORT_ORDER.DESC).optional(),
|
|
45
|
+
limit: zod_1.z.coerce.number().min(1),
|
|
46
|
+
offset: zod_1.z.coerce.number().min(0).default(0),
|
|
47
|
+
}));
|
|
48
|
+
FindPaymentsByCriteriaCommand.ResponseSchema = zod_1.z.object({
|
|
49
|
+
data: zod_1.z.array(models_1.PaymentWithUserDataSchema),
|
|
50
|
+
page: zod_1.z.number(),
|
|
51
|
+
totalPages: zod_1.z.number(),
|
|
52
|
+
});
|
|
53
|
+
})(FindPaymentsByCriteriaCommand || (exports.FindPaymentsByCriteriaCommand = FindPaymentsByCriteriaCommand = {}));
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./pay.command"), exports);
|
|
|
20
20
|
__exportStar(require("./receipt.command"), exports);
|
|
21
21
|
__exportStar(require("./recurrent.command"), exports);
|
|
22
22
|
__exportStar(require("./refund-payment.command"), exports);
|
|
23
|
+
__exportStar(require("./find-payments-by-criteria.command"), exports);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BuyProductCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
6
7
|
var BuyProductCommand;
|
|
7
8
|
(function (BuyProductCommand) {
|
|
8
9
|
BuyProductCommand.RequestParamSchema = models_1.ProductSchema.pick({
|
|
@@ -11,6 +12,8 @@ var BuyProductCommand;
|
|
|
11
12
|
BuyProductCommand.RequestSchema = zod_1.z.object({
|
|
12
13
|
useDiscount: zod_1.z.boolean(),
|
|
13
14
|
promocode: zod_1.z.string().optional(),
|
|
15
|
+
provider: zod_1.z.nativeEnum(constants_1.PAYMENT_PROVIDER).optional().default(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
16
|
+
teamAccountPurchase: zod_1.z.boolean().optional().default(false),
|
|
14
17
|
});
|
|
15
18
|
const IReceiptOrderSchema = zod_1.z.object({
|
|
16
19
|
items: zod_1.z.array(zod_1.z.object({
|
|
@@ -25,6 +28,7 @@ var BuyProductCommand;
|
|
|
25
28
|
amounts: zod_1.z.object({
|
|
26
29
|
electronic: zod_1.z.number(),
|
|
27
30
|
}),
|
|
31
|
+
taxationSystem: zod_1.z.number().optional(),
|
|
28
32
|
});
|
|
29
33
|
BuyProductCommand.RequestFastSchema = zod_1.z
|
|
30
34
|
.object({
|
|
@@ -42,6 +46,10 @@ var BuyProductCommand;
|
|
|
42
46
|
.transform((date) => new Date(date))
|
|
43
47
|
.optional(),
|
|
44
48
|
marketingConsent: zod_1.z.boolean().default(false),
|
|
49
|
+
provider: zod_1.z
|
|
50
|
+
.nativeEnum(constants_1.PAYMENT_PROVIDER)
|
|
51
|
+
.optional()
|
|
52
|
+
.default(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
45
53
|
})
|
|
46
54
|
.refine((data) => {
|
|
47
55
|
const hasAdmitadUid = !!data.admitadUid;
|
|
@@ -59,7 +67,7 @@ var BuyProductCommand;
|
|
|
59
67
|
message: 'admitadClickDate cannot be in the future',
|
|
60
68
|
path: ['admitadClickDate'],
|
|
61
69
|
});
|
|
62
|
-
BuyProductCommand.
|
|
70
|
+
BuyProductCommand.CloudPaymentsResponseSchema = zod_1.z.object({
|
|
63
71
|
publicId: zod_1.z.string(),
|
|
64
72
|
amount: zod_1.z.number(),
|
|
65
73
|
currency: zod_1.z.string(),
|
|
@@ -74,7 +82,23 @@ var BuyProductCommand;
|
|
|
74
82
|
CustomerReceipt: IReceiptOrderSchema,
|
|
75
83
|
}),
|
|
76
84
|
}),
|
|
85
|
+
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
77
86
|
});
|
|
87
|
+
BuyProductCommand.ZenpaymentsResponseSchema = zod_1.z.object({
|
|
88
|
+
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
89
|
+
checkoutUrl: zod_1.z.string(),
|
|
90
|
+
orderNumber: zod_1.z.string(),
|
|
91
|
+
orderIdClient: zod_1.z.string().nullable(),
|
|
92
|
+
paymentAmount: zod_1.z.number(),
|
|
93
|
+
currencyCode: zod_1.z.string(),
|
|
94
|
+
customerEmail: zod_1.z.string(),
|
|
95
|
+
isSubscription: zod_1.z.boolean(),
|
|
96
|
+
createdAt: zod_1.z.string(),
|
|
97
|
+
});
|
|
98
|
+
BuyProductCommand.ResponseSchema = zod_1.z.discriminatedUnion('provider', [
|
|
99
|
+
BuyProductCommand.CloudPaymentsResponseSchema,
|
|
100
|
+
BuyProductCommand.ZenpaymentsResponseSchema,
|
|
101
|
+
]);
|
|
78
102
|
BuyProductCommand.ResponseFastSchema = zod_1.z.object({
|
|
79
103
|
data: BuyProductCommand.ResponseSchema,
|
|
80
104
|
restoreToken: zod_1.z.string(),
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./delete-product.command"), exports);
|
|
|
20
20
|
__exportStar(require("./find-product.command"), exports);
|
|
21
21
|
__exportStar(require("./get-my-products.command"), exports);
|
|
22
22
|
__exportStar(require("./update-product.command"), exports);
|
|
23
|
+
__exportStar(require("./refund-product.command"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RefundProductCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RefundProductCommand;
|
|
6
|
+
(function (RefundProductCommand) {
|
|
7
|
+
RefundProductCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
RefundProductCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.object({
|
|
12
|
+
isSuccess: zod_1.z.boolean(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(RefundProductCommand || (exports.RefundProductCommand = RefundProductCommand = {}));
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BuySubscriptionCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
6
7
|
var BuySubscriptionCommand;
|
|
7
8
|
(function (BuySubscriptionCommand) {
|
|
8
9
|
BuySubscriptionCommand.RequestParamSchema = models_1.SubscriptionSchema.pick({
|
|
@@ -11,6 +12,8 @@ var BuySubscriptionCommand;
|
|
|
11
12
|
BuySubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
12
13
|
useDiscount: zod_1.z.boolean(),
|
|
13
14
|
promocode: zod_1.z.string().optional(),
|
|
15
|
+
provider: zod_1.z.nativeEnum(constants_1.PAYMENT_PROVIDER).optional().default(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
16
|
+
teamAccountPurchase: zod_1.z.boolean().optional().default(false),
|
|
14
17
|
});
|
|
15
18
|
BuySubscriptionCommand.RequestFastSchema = zod_1.z
|
|
16
19
|
.object({
|
|
@@ -28,6 +31,10 @@ var BuySubscriptionCommand;
|
|
|
28
31
|
.transform((date) => new Date(date))
|
|
29
32
|
.optional(),
|
|
30
33
|
marketingConsent: zod_1.z.boolean().default(false),
|
|
34
|
+
provider: zod_1.z
|
|
35
|
+
.nativeEnum(constants_1.PAYMENT_PROVIDER)
|
|
36
|
+
.optional()
|
|
37
|
+
.default(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
31
38
|
})
|
|
32
39
|
.refine((data) => {
|
|
33
40
|
const hasAdmitadUid = !!data.admitadUid;
|
|
@@ -59,7 +66,7 @@ var BuySubscriptionCommand;
|
|
|
59
66
|
electronic: zod_1.z.number(),
|
|
60
67
|
}),
|
|
61
68
|
});
|
|
62
|
-
BuySubscriptionCommand.
|
|
69
|
+
BuySubscriptionCommand.CloudPaymentsResponseSchema = zod_1.z.object({
|
|
63
70
|
publicId: zod_1.z.string(),
|
|
64
71
|
amount: zod_1.z.number(),
|
|
65
72
|
currency: zod_1.z.string(),
|
|
@@ -80,7 +87,23 @@ var BuySubscriptionCommand;
|
|
|
80
87
|
}),
|
|
81
88
|
}),
|
|
82
89
|
}),
|
|
90
|
+
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
83
91
|
});
|
|
92
|
+
BuySubscriptionCommand.ZenpaymentsResponseSchema = zod_1.z.object({
|
|
93
|
+
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
94
|
+
checkoutUrl: zod_1.z.string(),
|
|
95
|
+
orderNumber: zod_1.z.string(),
|
|
96
|
+
orderIdClient: zod_1.z.string().nullable(),
|
|
97
|
+
paymentAmount: zod_1.z.number(),
|
|
98
|
+
currencyCode: zod_1.z.string(),
|
|
99
|
+
customerEmail: zod_1.z.string(),
|
|
100
|
+
isSubscription: zod_1.z.boolean(),
|
|
101
|
+
createdAt: zod_1.z.string(),
|
|
102
|
+
});
|
|
103
|
+
BuySubscriptionCommand.ResponseSchema = zod_1.z.discriminatedUnion('provider', [
|
|
104
|
+
BuySubscriptionCommand.CloudPaymentsResponseSchema,
|
|
105
|
+
BuySubscriptionCommand.ZenpaymentsResponseSchema,
|
|
106
|
+
]);
|
|
84
107
|
BuySubscriptionCommand.ResponseFastSchema = zod_1.z.object({
|
|
85
108
|
data: BuySubscriptionCommand.ResponseSchema,
|
|
86
109
|
restoreToken: zod_1.z.string(),
|