@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
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./buy-subscription.command"), exports);
|
|
18
18
|
__exportStar(require("./cancel-subscription.command"), exports);
|
|
19
|
-
__exportStar(require("./create-custom-subscription-plan.command"), exports);
|
|
20
19
|
__exportStar(require("./create-subscription.command"), exports);
|
|
21
20
|
__exportStar(require("./delete-subscription.command"), exports);
|
|
22
21
|
__exportStar(require("./find-subscription.command"), exports);
|
|
@@ -28,3 +27,4 @@ __exportStar(require("./recover-subscription.command"), exports);
|
|
|
28
27
|
__exportStar(require("./update-subscription.command"), exports);
|
|
29
28
|
__exportStar(require("./upgrade-subscription.command"), exports);
|
|
30
29
|
__exportStar(require("./downgrade-subscription.command"), exports);
|
|
30
|
+
__exportStar(require("./refund-subscription.command"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RefundSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RefundSubscriptionCommand;
|
|
6
|
+
(function (RefundSubscriptionCommand) {
|
|
7
|
+
RefundSubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
uuid: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
RefundSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.object({
|
|
12
|
+
isSuccess: zod_1.z.boolean(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(RefundSubscriptionCommand || (exports.RefundSubscriptionCommand = RefundSubscriptionCommand = {}));
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UpgradeSubscriptionCommand = 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 UpgradeSubscriptionCommand;
|
|
7
8
|
(function (UpgradeSubscriptionCommand) {
|
|
8
9
|
UpgradeSubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
9
10
|
upgradeSubscriptionId: zod_1.z.string().uuid(),
|
|
10
11
|
promocode: zod_1.z.string().optional(),
|
|
12
|
+
provider: zod_1.z.nativeEnum(constants_1.PAYMENT_PROVIDER).optional().default(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
11
13
|
});
|
|
12
14
|
UpgradeSubscriptionCommand.RequestParamSchema = models_1.UserToSubscriptionSchema.pick({
|
|
13
15
|
uuid: true,
|
|
@@ -26,7 +28,7 @@ var UpgradeSubscriptionCommand;
|
|
|
26
28
|
electronic: zod_1.z.number(),
|
|
27
29
|
}),
|
|
28
30
|
});
|
|
29
|
-
UpgradeSubscriptionCommand.
|
|
31
|
+
UpgradeSubscriptionCommand.CloudPaymentsResponseSchema = zod_1.z.object({
|
|
30
32
|
publicId: zod_1.z.string(),
|
|
31
33
|
amount: zod_1.z.number(),
|
|
32
34
|
currency: zod_1.z.string(),
|
|
@@ -39,7 +41,29 @@ var UpgradeSubscriptionCommand;
|
|
|
39
41
|
data: zod_1.z.object({
|
|
40
42
|
CloudPayments: zod_1.z.object({
|
|
41
43
|
CustomerReceipt: IReceiptOrderSchema,
|
|
44
|
+
recurrent: zod_1.z.object({
|
|
45
|
+
period: zod_1.z.number(),
|
|
46
|
+
interval: zod_1.z.string(),
|
|
47
|
+
amount: zod_1.z.number(),
|
|
48
|
+
customerReceipt: IReceiptOrderSchema,
|
|
49
|
+
}),
|
|
42
50
|
}),
|
|
43
51
|
}),
|
|
52
|
+
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
44
53
|
});
|
|
54
|
+
UpgradeSubscriptionCommand.ZenpaymentsResponseSchema = zod_1.z.object({
|
|
55
|
+
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
56
|
+
checkoutUrl: zod_1.z.string(),
|
|
57
|
+
orderNumber: zod_1.z.string(),
|
|
58
|
+
orderIdClient: zod_1.z.string().nullable(),
|
|
59
|
+
paymentAmount: zod_1.z.number(),
|
|
60
|
+
currencyCode: zod_1.z.string(),
|
|
61
|
+
customerEmail: zod_1.z.string(),
|
|
62
|
+
isSubscription: zod_1.z.boolean(),
|
|
63
|
+
createdAt: zod_1.z.string(),
|
|
64
|
+
});
|
|
65
|
+
UpgradeSubscriptionCommand.ResponseSchema = zod_1.z.discriminatedUnion('provider', [
|
|
66
|
+
UpgradeSubscriptionCommand.CloudPaymentsResponseSchema,
|
|
67
|
+
UpgradeSubscriptionCommand.ZenpaymentsResponseSchema,
|
|
68
|
+
]);
|
|
45
69
|
})(UpgradeSubscriptionCommand || (exports.UpgradeSubscriptionCommand = UpgradeSubscriptionCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AcceptTeamAccountInviteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var AcceptTeamAccountInviteCommand;
|
|
7
|
+
(function (AcceptTeamAccountInviteCommand) {
|
|
8
|
+
AcceptTeamAccountInviteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
token: zod_1.z.string().min(1),
|
|
10
|
+
});
|
|
11
|
+
AcceptTeamAccountInviteCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.TeamAccountMemberSchema,
|
|
13
|
+
});
|
|
14
|
+
})(AcceptTeamAccountInviteCommand || (exports.AcceptTeamAccountInviteCommand = AcceptTeamAccountInviteCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateManualTeamProductCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateManualTeamProductCommand;
|
|
7
|
+
(function (CreateManualTeamProductCommand) {
|
|
8
|
+
CreateManualTeamProductCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
teamAccountId: zod_1.z.string().uuid(),
|
|
10
|
+
productId: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
CreateManualTeamProductCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: models_1.TeamToProductSchema,
|
|
14
|
+
});
|
|
15
|
+
})(CreateManualTeamProductCommand || (exports.CreateManualTeamProductCommand = CreateManualTeamProductCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateManualTeamSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateManualTeamSubscriptionCommand;
|
|
7
|
+
(function (CreateManualTeamSubscriptionCommand) {
|
|
8
|
+
CreateManualTeamSubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
teamAccountId: zod_1.z.string().uuid(),
|
|
10
|
+
subscriptionId: zod_1.z.string().uuid(),
|
|
11
|
+
durationMonths: zod_1.z.number().int().min(1).max(36).optional(),
|
|
12
|
+
});
|
|
13
|
+
CreateManualTeamSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.TeamToSubscriptionSchema,
|
|
15
|
+
});
|
|
16
|
+
})(CreateManualTeamSubscriptionCommand || (exports.CreateManualTeamSubscriptionCommand = CreateManualTeamSubscriptionCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateTeamAccountCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateTeamAccountCommand;
|
|
7
|
+
(function (CreateTeamAccountCommand) {
|
|
8
|
+
CreateTeamAccountCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
name: zod_1.z.string().trim().min(1).max(255),
|
|
10
|
+
email: zod_1.z.string().email().optional(),
|
|
11
|
+
logoUUID: zod_1.z.string().uuid().optional(),
|
|
12
|
+
});
|
|
13
|
+
CreateTeamAccountCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.TeamAccountSchema,
|
|
15
|
+
});
|
|
16
|
+
})(CreateTeamAccountCommand || (exports.CreateTeamAccountCommand = CreateTeamAccountCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindCurrentTeamAccountProductsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindCurrentTeamAccountProductsCommand;
|
|
7
|
+
(function (FindCurrentTeamAccountProductsCommand) {
|
|
8
|
+
FindCurrentTeamAccountProductsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.array(models_1.TeamToProductWithProductSchema),
|
|
10
|
+
});
|
|
11
|
+
})(FindCurrentTeamAccountProductsCommand || (exports.FindCurrentTeamAccountProductsCommand = FindCurrentTeamAccountProductsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindCurrentTeamAccountSubscriptionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindCurrentTeamAccountSubscriptionsCommand;
|
|
7
|
+
(function (FindCurrentTeamAccountSubscriptionsCommand) {
|
|
8
|
+
FindCurrentTeamAccountSubscriptionsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.array(models_1.TeamToSubscriptionWithSubscriptionSchema),
|
|
10
|
+
});
|
|
11
|
+
})(FindCurrentTeamAccountSubscriptionsCommand || (exports.FindCurrentTeamAccountSubscriptionsCommand = FindCurrentTeamAccountSubscriptionsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindTeamAccountMembersCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindTeamAccountMembersCommand;
|
|
7
|
+
(function (FindTeamAccountMembersCommand) {
|
|
8
|
+
FindTeamAccountMembersCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.array(models_1.TeamAccountMemberSchema),
|
|
10
|
+
});
|
|
11
|
+
})(FindTeamAccountMembersCommand || (exports.FindTeamAccountMembersCommand = FindTeamAccountMembersCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindTeamAccountOperationsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindTeamAccountOperationsCommand;
|
|
7
|
+
(function (FindTeamAccountOperationsCommand) {
|
|
8
|
+
FindTeamAccountOperationsCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
limit: zod_1.z.number().int().min(1).max(200).optional(),
|
|
10
|
+
offset: zod_1.z.number().int().min(0).optional(),
|
|
11
|
+
});
|
|
12
|
+
FindTeamAccountOperationsCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: zod_1.z.array(models_1.TeamAccountOperationSchema),
|
|
14
|
+
});
|
|
15
|
+
})(FindTeamAccountOperationsCommand || (exports.FindTeamAccountOperationsCommand = FindTeamAccountOperationsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindTeamAccountProductsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindTeamAccountProductsCommand;
|
|
7
|
+
(function (FindTeamAccountProductsCommand) {
|
|
8
|
+
FindTeamAccountProductsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.array(models_1.ProductSchema),
|
|
10
|
+
});
|
|
11
|
+
})(FindTeamAccountProductsCommand || (exports.FindTeamAccountProductsCommand = FindTeamAccountProductsCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindTeamAccountSubscriptionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindTeamAccountSubscriptionsCommand;
|
|
7
|
+
(function (FindTeamAccountSubscriptionsCommand) {
|
|
8
|
+
FindTeamAccountSubscriptionsCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: zod_1.z.array(models_1.SubscriptionWithSubTypesSchema),
|
|
10
|
+
});
|
|
11
|
+
})(FindTeamAccountSubscriptionsCommand || (exports.FindTeamAccountSubscriptionsCommand = FindTeamAccountSubscriptionsCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindTeamAccountsByNameCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var FindTeamAccountsByNameCommand;
|
|
7
|
+
(function (FindTeamAccountsByNameCommand) {
|
|
8
|
+
FindTeamAccountsByNameCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
name: zod_1.z.string().trim().min(1).optional(),
|
|
10
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).default(20).optional(),
|
|
11
|
+
offset: zod_1.z.coerce.number().int().min(0).default(0).optional(),
|
|
12
|
+
});
|
|
13
|
+
FindTeamAccountsByNameCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: zod_1.z.array(models_1.TeamAccountSchema),
|
|
15
|
+
page: zod_1.z.number(),
|
|
16
|
+
totalPages: zod_1.z.number(),
|
|
17
|
+
});
|
|
18
|
+
})(FindTeamAccountsByNameCommand || (exports.FindTeamAccountsByNameCommand = FindTeamAccountsByNameCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMyTeamAccountCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetMyTeamAccountCommand;
|
|
7
|
+
(function (GetMyTeamAccountCommand) {
|
|
8
|
+
GetMyTeamAccountCommand.ResponseSchema = zod_1.z.object({
|
|
9
|
+
data: models_1.TeamAccountSchema.nullable(),
|
|
10
|
+
});
|
|
11
|
+
})(GetMyTeamAccountCommand || (exports.GetMyTeamAccountCommand = GetMyTeamAccountCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTeamAccountBalanceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var GetTeamAccountBalanceCommand;
|
|
6
|
+
(function (GetTeamAccountBalanceCommand) {
|
|
7
|
+
GetTeamAccountBalanceCommand.ResponseSchema = zod_1.z.object({
|
|
8
|
+
data: zod_1.z.object({
|
|
9
|
+
totalTokenBalance: zod_1.z.number(),
|
|
10
|
+
subscriptionBalance: zod_1.z.number(),
|
|
11
|
+
productBalance: zod_1.z.number(),
|
|
12
|
+
carriedOverBalance: zod_1.z.number(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(GetTeamAccountBalanceCommand || (exports.GetTeamAccountBalanceCommand = GetTeamAccountBalanceCommand = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-team-account.command"), exports);
|
|
18
|
+
__exportStar(require("./update-team-account.command"), exports);
|
|
19
|
+
__exportStar(require("./invite-team-account-member.command"), exports);
|
|
20
|
+
__exportStar(require("./accept-team-account-invite.command"), exports);
|
|
21
|
+
__exportStar(require("./remove-team-account-member.command"), exports);
|
|
22
|
+
__exportStar(require("./update-team-account-member.command"), exports);
|
|
23
|
+
__exportStar(require("./get-my-team-account.command"), exports);
|
|
24
|
+
__exportStar(require("./find-team-account-members.command"), exports);
|
|
25
|
+
__exportStar(require("./find-team-account-operations.command"), exports);
|
|
26
|
+
__exportStar(require("./find-team-account-products.command"), exports);
|
|
27
|
+
__exportStar(require("./find-team-account-subscriptions.command"), exports);
|
|
28
|
+
__exportStar(require("./find-current-team-account-products.command"), exports);
|
|
29
|
+
__exportStar(require("./find-current-team-account-subscriptions.command"), exports);
|
|
30
|
+
__exportStar(require("./get-team-account-balance.command"), exports);
|
|
31
|
+
__exportStar(require("./create-manual-team-subscription.command"), exports);
|
|
32
|
+
__exportStar(require("./create-manual-team-product.command"), exports);
|
|
33
|
+
__exportStar(require("./find-team-accounts-by-name.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InviteTeamAccountMemberCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var InviteTeamAccountMemberCommand;
|
|
8
|
+
(function (InviteTeamAccountMemberCommand) {
|
|
9
|
+
InviteTeamAccountMemberCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
email: zod_1.z.string().email(),
|
|
11
|
+
role: zod_1.z.enum([constants_1.TEAM_ACCOUNT_MEMBER_ROLE.ADMIN, constants_1.TEAM_ACCOUNT_MEMBER_ROLE.MEMBER]).optional(),
|
|
12
|
+
tokenLimit: zod_1.z.number().int().positive().optional(),
|
|
13
|
+
});
|
|
14
|
+
InviteTeamAccountMemberCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.TeamAccountInviteSchema,
|
|
16
|
+
});
|
|
17
|
+
})(InviteTeamAccountMemberCommand || (exports.InviteTeamAccountMemberCommand = InviteTeamAccountMemberCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RefundTeamAccountBalanceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var RefundTeamAccountBalanceCommand;
|
|
7
|
+
(function (RefundTeamAccountBalanceCommand) {
|
|
8
|
+
RefundTeamAccountBalanceCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
amount: zod_1.z.number().int().positive(),
|
|
10
|
+
});
|
|
11
|
+
RefundTeamAccountBalanceCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.TeamAccountSchema,
|
|
13
|
+
});
|
|
14
|
+
})(RefundTeamAccountBalanceCommand || (exports.RefundTeamAccountBalanceCommand = RefundTeamAccountBalanceCommand = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemoveTeamAccountMemberCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RemoveTeamAccountMemberCommand;
|
|
6
|
+
(function (RemoveTeamAccountMemberCommand) {
|
|
7
|
+
RemoveTeamAccountMemberCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
memberUserId: zod_1.z.string().uuid(),
|
|
9
|
+
});
|
|
10
|
+
RemoveTeamAccountMemberCommand.ResponseSchema = zod_1.z.object({
|
|
11
|
+
data: zod_1.z.object({
|
|
12
|
+
removed: zod_1.z.boolean(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(RemoveTeamAccountMemberCommand || (exports.RemoveTeamAccountMemberCommand = RemoveTeamAccountMemberCommand = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTeamAccountMemberCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var UpdateTeamAccountMemberCommand;
|
|
8
|
+
(function (UpdateTeamAccountMemberCommand) {
|
|
9
|
+
UpdateTeamAccountMemberCommand.RequestSchema = zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
memberUserId: zod_1.z.string().uuid(),
|
|
12
|
+
role: zod_1.z
|
|
13
|
+
.enum([constants_1.TEAM_ACCOUNT_MEMBER_ROLE.ADMIN, constants_1.TEAM_ACCOUNT_MEMBER_ROLE.MEMBER])
|
|
14
|
+
.optional(),
|
|
15
|
+
tokenLimit: zod_1.z.number().int().positive().nullable().optional(),
|
|
16
|
+
})
|
|
17
|
+
.refine((data) => data.role !== undefined || data.tokenLimit !== undefined, {
|
|
18
|
+
message: 'At least one field must be provided',
|
|
19
|
+
});
|
|
20
|
+
UpdateTeamAccountMemberCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.TeamAccountMemberSchema,
|
|
22
|
+
});
|
|
23
|
+
})(UpdateTeamAccountMemberCommand || (exports.UpdateTeamAccountMemberCommand = UpdateTeamAccountMemberCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTeamAccountCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateTeamAccountCommand;
|
|
7
|
+
(function (UpdateTeamAccountCommand) {
|
|
8
|
+
UpdateTeamAccountCommand.RequestSchema = zod_1.z
|
|
9
|
+
.object({
|
|
10
|
+
name: zod_1.z.string().trim().min(1).max(255).optional(),
|
|
11
|
+
email: zod_1.z.string().email().optional(),
|
|
12
|
+
logoUUID: zod_1.z.string().uuid().optional(),
|
|
13
|
+
})
|
|
14
|
+
.refine((data) => data.name !== undefined || data.email !== undefined || data.logoUUID !== undefined, { message: 'At least one field must be provided' });
|
|
15
|
+
UpdateTeamAccountCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.TeamAccountSchema,
|
|
17
|
+
});
|
|
18
|
+
})(UpdateTeamAccountCommand || (exports.UpdateTeamAccountCommand = UpdateTeamAccountCommand = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddTeamToProductCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var AddTeamToProductCommand;
|
|
7
|
+
(function (AddTeamToProductCommand) {
|
|
8
|
+
AddTeamToProductCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
teamAccountId: zod_1.z.string().uuid(),
|
|
10
|
+
productId: zod_1.z.string().uuid(),
|
|
11
|
+
orderId: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
AddTeamToProductCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
data: models_1.TeamToProductSchema,
|
|
15
|
+
});
|
|
16
|
+
})(AddTeamToProductCommand || (exports.AddTeamToProductCommand = AddTeamToProductCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTeamToProductByUuidCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetTeamToProductByUuidCommand;
|
|
7
|
+
(function (GetTeamToProductByUuidCommand) {
|
|
8
|
+
GetTeamToProductByUuidCommand.RequestSchema = models_1.TeamToProductSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
GetTeamToProductByUuidCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.TeamToProductSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetTeamToProductByUuidCommand || (exports.GetTeamToProductByUuidCommand = GetTeamToProductByUuidCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTeamToProductsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetTeamToProductsCommand;
|
|
7
|
+
(function (GetTeamToProductsCommand) {
|
|
8
|
+
GetTeamToProductsCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
teamAccountId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetTeamToProductsCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(models_1.TeamToProductWithProductSchema),
|
|
13
|
+
});
|
|
14
|
+
})(GetTeamToProductsCommand || (exports.GetTeamToProductsCommand = GetTeamToProductsCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./add-team-to-product.command"), exports);
|
|
18
|
+
__exportStar(require("./update-team-to-product.command"), exports);
|
|
19
|
+
__exportStar(require("./get-team-to-product-by-uuid.command"), exports);
|
|
20
|
+
__exportStar(require("./get-team-to-products.command"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTeamToProductCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateTeamToProductCommand;
|
|
7
|
+
(function (UpdateTeamToProductCommand) {
|
|
8
|
+
UpdateTeamToProductCommand.RequestParamSchema = models_1.TeamToProductSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
UpdateTeamToProductCommand.RequestSchema = models_1.TeamToProductSchema.pick({
|
|
12
|
+
initTokenBalance: true,
|
|
13
|
+
tokenBalance: true,
|
|
14
|
+
status: true,
|
|
15
|
+
expiresAt: true,
|
|
16
|
+
orderId: true,
|
|
17
|
+
}).partial();
|
|
18
|
+
UpdateTeamToProductCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: models_1.TeamToProductSchema,
|
|
20
|
+
});
|
|
21
|
+
})(UpdateTeamToProductCommand || (exports.UpdateTeamToProductCommand = UpdateTeamToProductCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddTeamToSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var AddTeamToSubscriptionCommand;
|
|
7
|
+
(function (AddTeamToSubscriptionCommand) {
|
|
8
|
+
AddTeamToSubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
teamAccountId: zod_1.z.string().uuid(),
|
|
10
|
+
subscriptionId: zod_1.z.string().uuid(),
|
|
11
|
+
cloudPaymentsSubscriptionId: zod_1.z.string().optional(),
|
|
12
|
+
zenpaymentsInvoiceNumber: zod_1.z.string().optional(),
|
|
13
|
+
startDate: zod_1.z.coerce.date().optional(),
|
|
14
|
+
downgradedFromTeamSubscriptionId: zod_1.z.string().uuid().nullable().optional(),
|
|
15
|
+
orderId: zod_1.z.string().uuid(),
|
|
16
|
+
});
|
|
17
|
+
AddTeamToSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: models_1.TeamToSubscriptionSchema,
|
|
19
|
+
});
|
|
20
|
+
})(AddTeamToSubscriptionCommand || (exports.AddTeamToSubscriptionCommand = AddTeamToSubscriptionCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTeamToSubscriptionByUuidCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetTeamToSubscriptionByUuidCommand;
|
|
7
|
+
(function (GetTeamToSubscriptionByUuidCommand) {
|
|
8
|
+
GetTeamToSubscriptionByUuidCommand.RequestSchema = models_1.TeamToSubscriptionSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
GetTeamToSubscriptionByUuidCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: models_1.TeamToSubscriptionSchema,
|
|
13
|
+
});
|
|
14
|
+
})(GetTeamToSubscriptionByUuidCommand || (exports.GetTeamToSubscriptionByUuidCommand = GetTeamToSubscriptionByUuidCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTeamToSubscriptionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetTeamToSubscriptionsCommand;
|
|
7
|
+
(function (GetTeamToSubscriptionsCommand) {
|
|
8
|
+
GetTeamToSubscriptionsCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
teamAccountId: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetTeamToSubscriptionsCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(models_1.TeamToSubscriptionWithSubscriptionSchema),
|
|
13
|
+
});
|
|
14
|
+
})(GetTeamToSubscriptionsCommand || (exports.GetTeamToSubscriptionsCommand = GetTeamToSubscriptionsCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./add-team-to-subscription.command"), exports);
|
|
18
|
+
__exportStar(require("./update-team-to-subscription.command"), exports);
|
|
19
|
+
__exportStar(require("./get-team-to-subscription-by-uuid.command"), exports);
|
|
20
|
+
__exportStar(require("./get-team-to-subscriptions.command"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTeamToSubscriptionCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateTeamToSubscriptionCommand;
|
|
7
|
+
(function (UpdateTeamToSubscriptionCommand) {
|
|
8
|
+
UpdateTeamToSubscriptionCommand.RequestParamSchema = models_1.TeamToSubscriptionSchema.pick({
|
|
9
|
+
uuid: true,
|
|
10
|
+
});
|
|
11
|
+
UpdateTeamToSubscriptionCommand.RequestSchema = models_1.TeamToSubscriptionSchema.pick({
|
|
12
|
+
cloudPaymentsSubscriptionId: true,
|
|
13
|
+
zenpaymentsInvoiceNumber: true,
|
|
14
|
+
initTokenBalance: true,
|
|
15
|
+
tokenBalance: true,
|
|
16
|
+
initCarriedOverTokenBalance: true,
|
|
17
|
+
carriedOverTokenBalance: true,
|
|
18
|
+
startDate: true,
|
|
19
|
+
endDate: true,
|
|
20
|
+
status: true,
|
|
21
|
+
active: true,
|
|
22
|
+
type: true,
|
|
23
|
+
intervalEndDate: true,
|
|
24
|
+
marks: true,
|
|
25
|
+
downgradedFromTeamSubscriptionId: true,
|
|
26
|
+
orderId: true,
|
|
27
|
+
}).partial();
|
|
28
|
+
UpdateTeamToSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
29
|
+
data: models_1.TeamToSubscriptionSchema,
|
|
30
|
+
});
|
|
31
|
+
})(UpdateTeamToSubscriptionCommand || (exports.UpdateTeamToSubscriptionCommand = UpdateTeamToSubscriptionCommand = {}));
|
|
@@ -25,3 +25,6 @@ __exportStar(require("./image-editor"), exports);
|
|
|
25
25
|
__exportStar(require("./video-editor"), exports);
|
|
26
26
|
__exportStar(require("./music"), exports);
|
|
27
27
|
__exportStar(require("./image-generation"), exports);
|
|
28
|
+
__exportStar(require("./marketplace-card"), exports);
|
|
29
|
+
__exportStar(require("./interior-design"), exports);
|
|
30
|
+
__exportStar(require("./solving-edu-task"), exports);
|