@ai-grator/api 0.2.66 → 0.3.67
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/admin/endpoints/admin.ts +16 -0
- package/admin/endpoints/commands/create-admin-trend-category.command.ts +29 -0
- package/admin/endpoints/commands/create-admin-trend.command.ts +30 -0
- package/admin/endpoints/commands/delete-admin-trend-category.command.ts +28 -0
- package/admin/endpoints/commands/delete-admin-trend.command.ts +28 -0
- package/admin/endpoints/commands/index.ts +9 -0
- package/admin/endpoints/commands/probe-admin-trend-reference-video.command.ts +37 -0
- package/admin/endpoints/commands/reorder-admin-trends.command.ts +31 -0
- package/admin/endpoints/commands/update-admin-trend-category.command.ts +36 -0
- package/admin/endpoints/commands/update-admin-trend-status.command.ts +37 -0
- package/admin/endpoints/commands/update-admin-trend.command.ts +36 -0
- package/admin/endpoints/queries/get-admin-trend-categories.query.ts +22 -0
- package/admin/endpoints/queries/get-admin-trend.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-trends.query.ts +36 -0
- package/admin/endpoints/queries/index.ts +3 -0
- package/admin/models/admin-trend-category-response.schema.ts +11 -0
- package/admin/models/admin-trend-response.schema.ts +61 -0
- package/admin/models/index.ts +2 -0
- package/build/admin/endpoints/admin.d.ts +12 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +14 -0
- package/build/admin/endpoints/commands/create-admin-trend-category.command.d.ts +41 -0
- package/build/admin/endpoints/commands/create-admin-trend-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-trend-category.command.js +25 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.d.ts +144 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.js +26 -0
- package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-trend-category.command.js +25 -0
- package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-trend.command.js +25 -0
- package/build/admin/endpoints/commands/index.d.ts +9 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +9 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts +37 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.js +32 -0
- package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts +26 -0
- package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/reorder-admin-trends.command.js +28 -0
- package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts +49 -0
- package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-trend-category.command.js +31 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts +118 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.js +32 -0
- package/build/admin/endpoints/commands/update-admin-trend.command.d.ts +151 -0
- package/build/admin/endpoints/commands/update-admin-trend.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-trend.command.js +31 -0
- package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts +32 -0
- package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-trend-categories.query.js +21 -0
- package/build/admin/endpoints/queries/get-admin-trend.query.d.ts +110 -0
- package/build/admin/endpoints/queries/get-admin-trend.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-trend.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-trends.query.d.ts +63 -0
- package/build/admin/endpoints/queries/get-admin-trends.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-trends.query.js +33 -0
- package/build/admin/endpoints/queries/index.d.ts +3 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +3 -0
- package/build/admin/models/admin-trend-category-response.schema.d.ts +10 -0
- package/build/admin/models/admin-trend-category-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-trend-category-response.schema.js +11 -0
- package/build/admin/models/admin-trend-response.schema.d.ts +79 -0
- package/build/admin/models/admin-trend-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-trend-response.schema.js +53 -0
- package/build/admin/models/index.d.ts +2 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +2 -0
- package/build/errors/errors.d.ts +216 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +216 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +2 -2
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +2 -2
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +2 -2
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +3 -3
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +2 -2
- package/build/generation-job/models/generation-job-response.schema.d.ts +1 -1
- package/build/generation-job/models/generation-job-response.schema.js +1 -1
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +2 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +2 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +2 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +2 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +1 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
- package/build/generation-job-chat/models/generation-job-chat-response.schema.js +1 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +2 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -1
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +2 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -1
- package/build/generation-model/models/generation-model-response.schema.d.ts +3 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -1
- package/build/generation-model/models/generation-model-response.schema.js +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -0
- package/build/referral/endpoints/referral.d.ts +3 -0
- package/build/referral/endpoints/referral.d.ts.map +1 -1
- package/build/referral/endpoints/referral.js +3 -0
- package/build/referral/models/index.d.ts +1 -0
- package/build/referral/models/index.d.ts.map +1 -1
- package/build/referral/models/index.js +1 -0
- package/build/referral/models/referral-advertising-stats.schema.d.ts +101 -0
- package/build/referral/models/referral-advertising-stats.schema.d.ts.map +1 -0
- package/build/referral/models/referral-advertising-stats.schema.js +62 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts +142 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -0
- package/build/trend/endpoints/commands/generate-trend.command.js +54 -0
- package/build/trend/endpoints/commands/index.d.ts +2 -0
- package/build/trend/endpoints/commands/index.d.ts.map +1 -0
- package/build/trend/endpoints/commands/index.js +17 -0
- package/build/trend/endpoints/index.d.ts +4 -0
- package/build/trend/endpoints/index.d.ts.map +1 -0
- package/build/trend/endpoints/index.js +19 -0
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts +92 -0
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts.map +1 -0
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.js +24 -0
- package/build/trend/endpoints/queries/index.d.ts +4 -0
- package/build/trend/endpoints/queries/index.d.ts.map +1 -0
- package/build/trend/endpoints/queries/index.js +19 -0
- package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts +26 -0
- package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts.map +1 -0
- package/build/trend/endpoints/queries/list-public-trend-categories.query.js +19 -0
- package/build/trend/endpoints/queries/list-public-trends.query.d.ts +69 -0
- package/build/trend/endpoints/queries/list-public-trends.query.d.ts.map +1 -0
- package/build/trend/endpoints/queries/list-public-trends.query.js +28 -0
- package/build/trend/endpoints/trend.d.ts +11 -0
- package/build/trend/endpoints/trend.d.ts.map +1 -0
- package/build/trend/endpoints/trend.js +13 -0
- package/build/trend/enums/index.d.ts +6 -0
- package/build/trend/enums/index.d.ts.map +1 -0
- package/build/trend/enums/index.js +21 -0
- package/build/trend/enums/trend-aspect-ratio.enum.d.ts +9 -0
- package/build/trend/enums/trend-aspect-ratio.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-aspect-ratio.enum.js +12 -0
- package/build/trend/enums/trend-field-type.enum.d.ts +5 -0
- package/build/trend/enums/trend-field-type.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-field-type.enum.js +8 -0
- package/build/trend/enums/trend-limits.d.ts +11 -0
- package/build/trend/enums/trend-limits.d.ts.map +1 -0
- package/build/trend/enums/trend-limits.js +13 -0
- package/build/trend/enums/trend-quality.enum.d.ts +7 -0
- package/build/trend/enums/trend-quality.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-quality.enum.js +10 -0
- package/build/trend/enums/trend-status.enum.d.ts +5 -0
- package/build/trend/enums/trend-status.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-status.enum.js +8 -0
- package/build/trend/helpers/index.d.ts +2 -0
- package/build/trend/helpers/index.d.ts.map +1 -0
- package/build/trend/helpers/index.js +17 -0
- package/build/trend/helpers/trend-field-reference.helper.d.ts +4 -0
- package/build/trend/helpers/trend-field-reference.helper.d.ts.map +1 -0
- package/build/trend/helpers/trend-field-reference.helper.js +12 -0
- package/build/trend/index.d.ts +5 -0
- package/build/trend/index.d.ts.map +1 -0
- package/build/trend/index.js +20 -0
- package/build/trend/models/index.d.ts +5 -0
- package/build/trend/models/index.d.ts.map +1 -0
- package/build/trend/models/index.js +20 -0
- package/build/trend/models/public-trend.schema.d.ts +88 -0
- package/build/trend/models/public-trend.schema.d.ts.map +1 -0
- package/build/trend/models/public-trend.schema.js +44 -0
- package/build/trend/models/trend-category-input.schema.d.ts +7 -0
- package/build/trend/models/trend-category-input.schema.d.ts.map +1 -0
- package/build/trend/models/trend-category-input.schema.js +10 -0
- package/build/trend/models/trend-common.schema.d.ts +10 -0
- package/build/trend/models/trend-common.schema.d.ts.map +1 -0
- package/build/trend/models/trend-common.schema.js +17 -0
- package/build/trend/models/trend-input.schema.d.ts +33 -0
- package/build/trend/models/trend-input.schema.d.ts.map +1 -0
- package/build/trend/models/trend-input.schema.js +54 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.d.ts +112 -0
- package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.js +26 -0
- package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.d.ts +120 -0
- package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.js +52 -0
- package/build/video-generation-chain/endpoints/commands/index.d.ts +6 -0
- package/build/video-generation-chain/endpoints/commands/index.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/index.js +21 -0
- package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.d.ts +114 -0
- package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.js +25 -0
- package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.d.ts +113 -0
- package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.js +27 -0
- package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.d.ts +127 -0
- package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.js +43 -0
- package/build/video-generation-chain/endpoints/index.d.ts +4 -0
- package/build/video-generation-chain/endpoints/index.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/index.js +19 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.d.ts +111 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.js +25 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts +109 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.js +22 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.d.ts +54 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.js +26 -0
- package/build/video-generation-chain/endpoints/queries/index.d.ts +4 -0
- package/build/video-generation-chain/endpoints/queries/index.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/index.js +19 -0
- package/build/video-generation-chain/endpoints/video-generation-chain.d.ts +12 -0
- package/build/video-generation-chain/endpoints/video-generation-chain.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/video-generation-chain.js +14 -0
- package/build/video-generation-chain/enums/index.d.ts +5 -0
- package/build/video-generation-chain/enums/index.d.ts.map +1 -0
- package/build/video-generation-chain/enums/index.js +20 -0
- package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.d.ts +6 -0
- package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.js +13 -0
- package/build/video-generation-chain/enums/video-generation-chain-limits.d.ts +3 -0
- package/build/video-generation-chain/enums/video-generation-chain-limits.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-limits.js +5 -0
- package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.d.ts +7 -0
- package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.js +10 -0
- package/build/video-generation-chain/enums/video-generation-chain-status.enum.d.ts +9 -0
- package/build/video-generation-chain/enums/video-generation-chain-status.enum.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-status.enum.js +12 -0
- package/build/video-generation-chain/index.d.ts +4 -0
- package/build/video-generation-chain/index.d.ts.map +1 -0
- package/build/video-generation-chain/index.js +19 -0
- package/build/video-generation-chain/models/index.d.ts +4 -0
- package/build/video-generation-chain/models/index.d.ts.map +1 -0
- package/build/video-generation-chain/models/index.js +19 -0
- package/build/video-generation-chain/models/video-generation-chain-response.schema.d.ts +73 -0
- package/build/video-generation-chain/models/video-generation-chain-response.schema.d.ts.map +1 -0
- package/build/video-generation-chain/models/video-generation-chain-response.schema.js +24 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.d.ts +9 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.d.ts.map +1 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.js +15 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.d.ts +44 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.d.ts.map +1 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.js +24 -0
- package/errors/errors.ts +216 -0
- package/generation-job/models/generation-job-response.schema.ts +1 -1
- package/generation-job-chat/models/generation-job-chat-response.schema.ts +1 -0
- package/generation-model/models/generation-model-response.schema.ts +1 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/referral/endpoints/referral.ts +3 -0
- package/referral/models/index.ts +1 -0
- package/referral/models/referral-advertising-stats.schema.ts +79 -0
- package/trend/endpoints/commands/generate-trend.command.ts +63 -0
- package/trend/endpoints/commands/index.ts +1 -0
- package/trend/endpoints/index.ts +3 -0
- package/trend/endpoints/queries/get-public-trend-by-slug.query.ts +27 -0
- package/trend/endpoints/queries/index.ts +3 -0
- package/trend/endpoints/queries/list-public-trend-categories.query.ts +20 -0
- package/trend/endpoints/queries/list-public-trends.query.ts +31 -0
- package/trend/endpoints/trend.ts +13 -0
- package/trend/enums/index.ts +5 -0
- package/trend/enums/trend-aspect-ratio.enum.ts +8 -0
- package/trend/enums/trend-field-type.enum.ts +4 -0
- package/trend/enums/trend-limits.ts +10 -0
- package/trend/enums/trend-quality.enum.ts +7 -0
- package/trend/enums/trend-status.enum.ts +4 -0
- package/trend/helpers/index.ts +1 -0
- package/trend/helpers/trend-field-reference.helper.ts +9 -0
- package/trend/index.ts +4 -0
- package/trend/models/index.ts +4 -0
- package/trend/models/public-trend.schema.ts +58 -0
- package/trend/models/trend-category-input.schema.ts +10 -0
- package/trend/models/trend-common.schema.ts +26 -0
- package/trend/models/trend-input.schema.ts +69 -0
- package/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.ts +26 -0
- package/video-generation-chain/endpoints/commands/create-video-generation-chain.command.ts +59 -0
- package/video-generation-chain/endpoints/commands/index.ts +5 -0
- package/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.ts +25 -0
- package/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.ts +27 -0
- package/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.ts +49 -0
- package/video-generation-chain/endpoints/index.ts +3 -0
- package/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.ts +25 -0
- package/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.ts +23 -0
- package/video-generation-chain/endpoints/queries/get-video-generation-chains.query.ts +26 -0
- package/video-generation-chain/endpoints/queries/index.ts +3 -0
- package/video-generation-chain/endpoints/video-generation-chain.ts +12 -0
- package/video-generation-chain/enums/index.ts +4 -0
- package/video-generation-chain/enums/video-generation-chain-frame-slot.enum.ts +10 -0
- package/video-generation-chain/enums/video-generation-chain-limits.ts +2 -0
- package/video-generation-chain/enums/video-generation-chain-scene-status.enum.ts +6 -0
- package/video-generation-chain/enums/video-generation-chain-status.enum.ts +8 -0
- package/video-generation-chain/index.ts +3 -0
- package/video-generation-chain/models/index.ts +3 -0
- package/video-generation-chain/models/video-generation-chain-response.schema.ts +28 -0
- package/video-generation-chain/models/video-generation-chain-scene-input.schema.ts +17 -0
- package/video-generation-chain/models/video-generation-chain-scene-response.schema.ts +26 -0
|
@@ -22,3 +22,4 @@ __exportStar(require("./referral-link-response.schema"), exports);
|
|
|
22
22
|
__exportStar(require("./referral-stats-period.schema"), exports);
|
|
23
23
|
__exportStar(require("./referral-link-stats-response.schema"), exports);
|
|
24
24
|
__exportStar(require("./referral-deposits-stats-response.schema"), exports);
|
|
25
|
+
__exportStar(require("./referral-advertising-stats.schema"), exports);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const REFERRAL_STATS_UTC_OFFSET_HOURS = 3;
|
|
3
|
+
/** Both boundaries are required; to is exclusive. */
|
|
4
|
+
export declare const GetReferralAdvertisingStatsQuerySchema: z.ZodObject<{
|
|
5
|
+
from: z.ZodNonOptional<z.ZodOptional<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>>;
|
|
6
|
+
to: z.ZodNonOptional<z.ZodOptional<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>>;
|
|
7
|
+
groupBy: z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
month: "month";
|
|
9
|
+
day: "day";
|
|
10
|
+
}>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type GetReferralAdvertisingStatsQuerySchemaType = z.infer<typeof GetReferralAdvertisingStatsQuerySchema>;
|
|
13
|
+
export declare const ReferralAdvertisingMetricsSchema: z.ZodObject<{
|
|
14
|
+
clicks: z.ZodNumber;
|
|
15
|
+
registrations: z.ZodNumber;
|
|
16
|
+
purchases: z.ZodNumber;
|
|
17
|
+
conversionRate: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type ReferralAdvertisingMetricsSchemaType = z.infer<typeof ReferralAdvertisingMetricsSchema>;
|
|
20
|
+
export declare const ReferralAdvertisingPeriodStatsSchema: z.ZodObject<{
|
|
21
|
+
periodStart: z.ZodISODateTime;
|
|
22
|
+
periodEnd: z.ZodISODateTime;
|
|
23
|
+
metrics: z.ZodObject<{
|
|
24
|
+
clicks: z.ZodNumber;
|
|
25
|
+
registrations: z.ZodNumber;
|
|
26
|
+
purchases: z.ZodNumber;
|
|
27
|
+
conversionRate: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type ReferralAdvertisingPeriodStatsSchemaType = z.infer<typeof ReferralAdvertisingPeriodStatsSchema>;
|
|
31
|
+
export declare const GetReferralAdvertisingStatsResponseSchema: z.ZodObject<{
|
|
32
|
+
periods: z.ZodArray<z.ZodObject<{
|
|
33
|
+
periodStart: z.ZodISODateTime;
|
|
34
|
+
periodEnd: z.ZodISODateTime;
|
|
35
|
+
metrics: z.ZodObject<{
|
|
36
|
+
clicks: z.ZodNumber;
|
|
37
|
+
registrations: z.ZodNumber;
|
|
38
|
+
purchases: z.ZodNumber;
|
|
39
|
+
conversionRate: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type GetReferralAdvertisingStatsResponseSchemaType = z.infer<typeof GetReferralAdvertisingStatsResponseSchema>;
|
|
44
|
+
export declare const ReferralAdvertisingLinkStatsSchema: z.ZodObject<{
|
|
45
|
+
code: z.ZodString;
|
|
46
|
+
link: z.ZodURL;
|
|
47
|
+
description: z.ZodNullable<z.ZodString>;
|
|
48
|
+
createdAt: z.ZodISODateTime;
|
|
49
|
+
tool: z.ZodNullable<z.ZodEnum<typeof import("..").TOOL>>;
|
|
50
|
+
source: z.ZodNullable<z.ZodString>;
|
|
51
|
+
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
52
|
+
metrics: z.ZodObject<{
|
|
53
|
+
clicks: z.ZodNumber;
|
|
54
|
+
registrations: z.ZodNumber;
|
|
55
|
+
purchases: z.ZodNumber;
|
|
56
|
+
conversionRate: z.ZodNumber;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type ReferralAdvertisingLinkStatsSchemaType = z.infer<typeof ReferralAdvertisingLinkStatsSchema>;
|
|
60
|
+
export declare const GetReferralAdvertisingLinksResponseSchema: z.ZodObject<{
|
|
61
|
+
links: z.ZodArray<z.ZodObject<{
|
|
62
|
+
code: z.ZodString;
|
|
63
|
+
link: z.ZodURL;
|
|
64
|
+
description: z.ZodNullable<z.ZodString>;
|
|
65
|
+
createdAt: z.ZodISODateTime;
|
|
66
|
+
tool: z.ZodNullable<z.ZodEnum<typeof import("..").TOOL>>;
|
|
67
|
+
source: z.ZodNullable<z.ZodString>;
|
|
68
|
+
modelUuid: z.ZodNullable<z.ZodUUID>;
|
|
69
|
+
metrics: z.ZodObject<{
|
|
70
|
+
clicks: z.ZodNumber;
|
|
71
|
+
registrations: z.ZodNumber;
|
|
72
|
+
purchases: z.ZodNumber;
|
|
73
|
+
conversionRate: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type GetReferralAdvertisingLinksResponseSchemaType = z.infer<typeof GetReferralAdvertisingLinksResponseSchema>;
|
|
78
|
+
export declare const GetReferralAdvertisingLinkStatsParamsSchema: z.ZodObject<{
|
|
79
|
+
code: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const GetReferralAdvertisingLinkStatsQuerySchema: z.ZodObject<{
|
|
82
|
+
from: z.ZodNonOptional<z.ZodOptional<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>>;
|
|
83
|
+
to: z.ZodNonOptional<z.ZodOptional<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>>;
|
|
84
|
+
groupBy: z.ZodDefault<z.ZodEnum<{
|
|
85
|
+
month: "month";
|
|
86
|
+
day: "day";
|
|
87
|
+
}>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export declare const GetReferralAdvertisingLinkStatsResponseSchema: z.ZodObject<{
|
|
90
|
+
periods: z.ZodArray<z.ZodObject<{
|
|
91
|
+
periodStart: z.ZodISODateTime;
|
|
92
|
+
periodEnd: z.ZodISODateTime;
|
|
93
|
+
metrics: z.ZodObject<{
|
|
94
|
+
clicks: z.ZodNumber;
|
|
95
|
+
registrations: z.ZodNumber;
|
|
96
|
+
purchases: z.ZodNumber;
|
|
97
|
+
conversionRate: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
//# sourceMappingURL=referral-advertising-stats.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referral-advertising-stats.schema.d.ts","sourceRoot":"","sources":["../../../referral/models/referral-advertising-stats.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAMjD,qDAAqD;AACrD,eAAO,MAAM,sCAAsC;;;;;;;iBA8B7C,CAAC;AAEP,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEhH,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AACH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAEpG,eAAO,MAAM,oCAAoC;;;;;;;;;iBAK/C,CAAC;AACH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAE5G,eAAO,MAAM,yCAAyC;;;;;;;;;;;iBAEpD,CAAC;AACH,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAEtH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;iBAE7C,CAAC;AACH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAExG,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;iBAEpD,CAAC;AACH,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAEtH,eAAO,MAAM,2CAA2C;;iBAAkC,CAAC;AAC3F,eAAO,MAAM,0CAA0C;;;;;;;iBAAyC,CAAC;AACjG,eAAO,MAAM,6CAA6C;;;;;;;;;;;iBAA4C,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetReferralAdvertisingLinkStatsResponseSchema = exports.GetReferralAdvertisingLinkStatsQuerySchema = exports.GetReferralAdvertisingLinkStatsParamsSchema = exports.GetReferralAdvertisingLinksResponseSchema = exports.ReferralAdvertisingLinkStatsSchema = exports.GetReferralAdvertisingStatsResponseSchema = exports.ReferralAdvertisingPeriodStatsSchema = exports.ReferralAdvertisingMetricsSchema = exports.GetReferralAdvertisingStatsQuerySchema = exports.REFERRAL_STATS_UTC_OFFSET_HOURS = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const referral_link_response_schema_1 = require("./referral-link-response.schema");
|
|
6
|
+
const referral_stats_period_schema_1 = require("./referral-stats-period.schema");
|
|
7
|
+
exports.REFERRAL_STATS_UTC_OFFSET_HOURS = 3;
|
|
8
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
9
|
+
const MOSCOW_UTC_OFFSET_MS = exports.REFERRAL_STATS_UTC_OFFSET_HOURS * 60 * 60 * 1000;
|
|
10
|
+
const MAX_CALENDAR_PERIODS = { day: 31, month: 100 };
|
|
11
|
+
/** Both boundaries are required; to is exclusive. */
|
|
12
|
+
exports.GetReferralAdvertisingStatsQuerySchema = referral_stats_period_schema_1.ReferralStatsPeriodQuerySchema.required()
|
|
13
|
+
.extend({
|
|
14
|
+
groupBy: zod_1.z.enum(['month', 'day']).default('month'),
|
|
15
|
+
})
|
|
16
|
+
.superRefine(({ from, to, groupBy }, ctx) => {
|
|
17
|
+
// Format checks may fail before the date transforms run.
|
|
18
|
+
if (!(from instanceof Date) || !(to instanceof Date)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (from >= to) {
|
|
22
|
+
ctx.addIssue({ code: 'custom', path: ['to'], message: 'to must be later than from' });
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
// Count Moscow calendar buckets, excluding the upper boundary as in the SQL query.
|
|
26
|
+
const start = new Date(from.getTime() + MOSCOW_UTC_OFFSET_MS);
|
|
27
|
+
const end = new Date(to.getTime() - 1 + MOSCOW_UTC_OFFSET_MS);
|
|
28
|
+
const periodCount = groupBy === 'day'
|
|
29
|
+
? Math.floor(end.getTime() / DAY_MS) - Math.floor(start.getTime() / DAY_MS) + 1
|
|
30
|
+
: (end.getUTCFullYear() - start.getUTCFullYear()) * 12 + end.getUTCMonth() - start.getUTCMonth() + 1;
|
|
31
|
+
if (periodCount > MAX_CALENDAR_PERIODS[groupBy]) {
|
|
32
|
+
ctx.addIssue({
|
|
33
|
+
code: 'custom',
|
|
34
|
+
path: ['to'],
|
|
35
|
+
message: `Period must not exceed ${MAX_CALENDAR_PERIODS[groupBy]} calendar ${groupBy}s per request`,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
exports.ReferralAdvertisingMetricsSchema = zod_1.z.object({
|
|
40
|
+
clicks: zod_1.z.number().int().nonnegative(),
|
|
41
|
+
registrations: zod_1.z.number().int().nonnegative(),
|
|
42
|
+
purchases: zod_1.z.number().int().nonnegative(),
|
|
43
|
+
conversionRate: zod_1.z.number().nonnegative(),
|
|
44
|
+
});
|
|
45
|
+
exports.ReferralAdvertisingPeriodStatsSchema = zod_1.z.object({
|
|
46
|
+
periodStart: zod_1.z.iso.datetime(),
|
|
47
|
+
/** Exclusive upper boundary. */
|
|
48
|
+
periodEnd: zod_1.z.iso.datetime(),
|
|
49
|
+
metrics: exports.ReferralAdvertisingMetricsSchema,
|
|
50
|
+
});
|
|
51
|
+
exports.GetReferralAdvertisingStatsResponseSchema = zod_1.z.object({
|
|
52
|
+
periods: zod_1.z.array(exports.ReferralAdvertisingPeriodStatsSchema),
|
|
53
|
+
});
|
|
54
|
+
exports.ReferralAdvertisingLinkStatsSchema = referral_link_response_schema_1.ReferralLinkListItemSchema.omit({ referralsCount: true }).extend({
|
|
55
|
+
metrics: exports.ReferralAdvertisingMetricsSchema,
|
|
56
|
+
});
|
|
57
|
+
exports.GetReferralAdvertisingLinksResponseSchema = zod_1.z.object({
|
|
58
|
+
links: zod_1.z.array(exports.ReferralAdvertisingLinkStatsSchema),
|
|
59
|
+
});
|
|
60
|
+
exports.GetReferralAdvertisingLinkStatsParamsSchema = referral_link_response_schema_1.ResolveReferralLinkParamsSchema;
|
|
61
|
+
exports.GetReferralAdvertisingLinkStatsQuerySchema = exports.GetReferralAdvertisingStatsQuerySchema;
|
|
62
|
+
exports.GetReferralAdvertisingLinkStatsResponseSchema = exports.GetReferralAdvertisingStatsResponseSchema;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { TREND_FIELD_TYPE } from '../../enums';
|
|
4
|
+
export declare const GenerateTrendCommandParams: z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const TrendFileFieldValueSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
9
|
+
fieldId: z.ZodUUID;
|
|
10
|
+
fileId: z.ZodUUID;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const TrendTextFieldValueSchema: z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
14
|
+
fieldId: z.ZodUUID;
|
|
15
|
+
text: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const TrendFieldValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
19
|
+
fieldId: z.ZodUUID;
|
|
20
|
+
fileId: z.ZodUUID;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
23
|
+
fieldId: z.ZodUUID;
|
|
24
|
+
text: z.ZodString;
|
|
25
|
+
}, z.core.$strip>], "type">;
|
|
26
|
+
export declare const GenerateTrendCommandBody: z.ZodObject<{
|
|
27
|
+
modelId: z.ZodUUID;
|
|
28
|
+
quality: z.ZodEnum<typeof import("../../enums").TREND_QUALITY>;
|
|
29
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
31
|
+
fieldId: z.ZodUUID;
|
|
32
|
+
fileId: z.ZodUUID;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
35
|
+
fieldId: z.ZodUUID;
|
|
36
|
+
text: z.ZodString;
|
|
37
|
+
}, z.core.$strip>], "type">>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const GenerateTrendCommandResponse: z.ZodObject<{
|
|
40
|
+
uuid: z.ZodUUID;
|
|
41
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
42
|
+
modelId: z.ZodUUID;
|
|
43
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
44
|
+
status: z.ZodEnum<typeof import("../../../generation-job").GENERATION_JOB_STATUS>;
|
|
45
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
47
|
+
uuid: z.ZodUUID;
|
|
48
|
+
url: z.ZodURL;
|
|
49
|
+
title: z.ZodOptional<z.ZodString>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
51
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodString;
|
|
56
|
+
url: z.ZodString;
|
|
57
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
58
|
+
fileType: z.ZodString;
|
|
59
|
+
mimeType: z.ZodString;
|
|
60
|
+
fileName: z.ZodString;
|
|
61
|
+
size: z.ZodNumber;
|
|
62
|
+
source: z.ZodEnum<{
|
|
63
|
+
context: "context";
|
|
64
|
+
user: "user";
|
|
65
|
+
}>;
|
|
66
|
+
}, z.core.$strip>>>>;
|
|
67
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
68
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
69
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
70
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
71
|
+
createdAt: z.ZodISODateTime;
|
|
72
|
+
updatedAt: z.ZodISODateTime;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const GenerateTrendCommand: {
|
|
75
|
+
method: HTTP_METHODS.POST;
|
|
76
|
+
path: string;
|
|
77
|
+
summary: string;
|
|
78
|
+
request: {
|
|
79
|
+
params: z.ZodObject<{
|
|
80
|
+
slug: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
body: z.ZodObject<{
|
|
83
|
+
modelId: z.ZodUUID;
|
|
84
|
+
quality: z.ZodEnum<typeof import("../../enums").TREND_QUALITY>;
|
|
85
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
87
|
+
fieldId: z.ZodUUID;
|
|
88
|
+
fileId: z.ZodUUID;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
91
|
+
fieldId: z.ZodUUID;
|
|
92
|
+
text: z.ZodString;
|
|
93
|
+
}, z.core.$strip>], "type">>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
};
|
|
96
|
+
responses: {
|
|
97
|
+
201: z.ZodObject<{
|
|
98
|
+
uuid: z.ZodUUID;
|
|
99
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
100
|
+
modelId: z.ZodUUID;
|
|
101
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
102
|
+
status: z.ZodEnum<typeof import("../../../generation-job").GENERATION_JOB_STATUS>;
|
|
103
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
104
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
105
|
+
uuid: z.ZodUUID;
|
|
106
|
+
url: z.ZodURL;
|
|
107
|
+
title: z.ZodOptional<z.ZodString>;
|
|
108
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
109
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
113
|
+
uuid: z.ZodString;
|
|
114
|
+
url: z.ZodString;
|
|
115
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
116
|
+
fileType: z.ZodString;
|
|
117
|
+
mimeType: z.ZodString;
|
|
118
|
+
fileName: z.ZodString;
|
|
119
|
+
size: z.ZodNumber;
|
|
120
|
+
source: z.ZodEnum<{
|
|
121
|
+
context: "context";
|
|
122
|
+
user: "user";
|
|
123
|
+
}>;
|
|
124
|
+
}, z.core.$strip>>>>;
|
|
125
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
126
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
127
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
128
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
129
|
+
createdAt: z.ZodISODateTime;
|
|
130
|
+
updatedAt: z.ZodISODateTime;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
133
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
134
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
135
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export type TrendFieldValueSchemaType = z.infer<typeof TrendFieldValueSchema>;
|
|
139
|
+
export type GenerateTrendCommandParamsType = z.infer<typeof GenerateTrendCommandParams>;
|
|
140
|
+
export type GenerateTrendCommandBodyType = z.infer<typeof GenerateTrendCommandBody>;
|
|
141
|
+
export type GenerateTrendCommandResponseType = z.infer<typeof GenerateTrendCommandResponse>;
|
|
142
|
+
//# sourceMappingURL=generate-trend.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-trend.command.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/commands/generate-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAiD,MAAM,aAAa,CAAC;AAI9F,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;2BAGhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAUnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe/B,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC9E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateTrendCommand = exports.GenerateTrendCommandResponse = exports.GenerateTrendCommandBody = exports.TrendFieldValueSchema = exports.TrendTextFieldValueSchema = exports.TrendFileFieldValueSchema = exports.GenerateTrendCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const generation_job_1 = require("../../../generation-job");
|
|
7
|
+
const enums_1 = require("../../enums");
|
|
8
|
+
const models_1 = require("../../models");
|
|
9
|
+
const trend_1 = require("../trend");
|
|
10
|
+
exports.GenerateTrendCommandParams = zod_1.z.object({
|
|
11
|
+
slug: models_1.TrendSlugSchema,
|
|
12
|
+
});
|
|
13
|
+
exports.TrendFileFieldValueSchema = zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal(enums_1.TREND_FIELD_TYPE.FILE),
|
|
15
|
+
fieldId: zod_1.z.uuid(),
|
|
16
|
+
fileId: zod_1.z.uuid(),
|
|
17
|
+
});
|
|
18
|
+
exports.TrendTextFieldValueSchema = zod_1.z.object({
|
|
19
|
+
type: zod_1.z.literal(enums_1.TREND_FIELD_TYPE.TEXT),
|
|
20
|
+
fieldId: zod_1.z.uuid(),
|
|
21
|
+
text: zod_1.z.string().trim().min(1).max(enums_1.TREND_TEXT_VALUE_MAX_LENGTH),
|
|
22
|
+
});
|
|
23
|
+
exports.TrendFieldValueSchema = zod_1.z.discriminatedUnion('type', [
|
|
24
|
+
exports.TrendFileFieldValueSchema,
|
|
25
|
+
exports.TrendTextFieldValueSchema,
|
|
26
|
+
]);
|
|
27
|
+
exports.GenerateTrendCommandBody = zod_1.z.object({
|
|
28
|
+
modelId: zod_1.z.uuid(),
|
|
29
|
+
quality: models_1.TrendQualitySchema,
|
|
30
|
+
values: zod_1.z
|
|
31
|
+
.array(exports.TrendFieldValueSchema)
|
|
32
|
+
.min(1)
|
|
33
|
+
.max(enums_1.TREND_MAX_FIELDS)
|
|
34
|
+
.refine((values) => new Set(values.map(({ fieldId }) => fieldId)).size === values.length, {
|
|
35
|
+
message: 'Each field can have only one value',
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
exports.GenerateTrendCommandResponse = generation_job_1.GenerationJobResponseSchema;
|
|
39
|
+
exports.GenerateTrendCommand = (0, _common_1.defineContract)({
|
|
40
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
41
|
+
path: trend_1.TREND_ROUTES.GENERATE(':slug'),
|
|
42
|
+
summary: 'Create a video generation chat from a trend and start generation',
|
|
43
|
+
request: {
|
|
44
|
+
params: exports.GenerateTrendCommandParams,
|
|
45
|
+
body: exports.GenerateTrendCommandBody,
|
|
46
|
+
},
|
|
47
|
+
responses: {
|
|
48
|
+
201: exports.GenerateTrendCommandResponse,
|
|
49
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
50
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
51
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
52
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./generate-trend.command"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../trend/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./trend"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
19
|
+
__exportStar(require("./queries"), exports);
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetPublicTrendBySlugQueryParams: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const GetPublicTrendBySlugQueryResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
slug: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
previewUrl: z.ZodURL;
|
|
11
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodUUID;
|
|
13
|
+
type: z.ZodEnum<typeof import("../..").TREND_FIELD_TYPE>;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
order: z.ZodInt;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
18
|
+
uuid: z.ZodUUID;
|
|
19
|
+
slug: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
prompt: z.ZodString;
|
|
23
|
+
referenceVideoUrl: z.ZodURL;
|
|
24
|
+
aspectRatio: z.ZodEnum<typeof import("../..").TREND_ASPECT_RATIO>;
|
|
25
|
+
durationSec: z.ZodInt;
|
|
26
|
+
models: z.ZodArray<z.ZodObject<{
|
|
27
|
+
uuid: z.ZodUUID;
|
|
28
|
+
titleModel: z.ZodString;
|
|
29
|
+
icons: z.ZodObject<{
|
|
30
|
+
light: z.ZodString;
|
|
31
|
+
dark: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
isDefault: z.ZodBoolean;
|
|
34
|
+
defaultQuality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
35
|
+
qualities: z.ZodArray<z.ZodObject<{
|
|
36
|
+
quality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
37
|
+
price: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const GetPublicTrendBySlugQuery: {
|
|
42
|
+
method: HTTP_METHODS.GET;
|
|
43
|
+
path: string;
|
|
44
|
+
summary: string;
|
|
45
|
+
request: {
|
|
46
|
+
params: z.ZodObject<{
|
|
47
|
+
slug: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
};
|
|
50
|
+
responses: {
|
|
51
|
+
200: z.ZodObject<{
|
|
52
|
+
uuid: z.ZodUUID;
|
|
53
|
+
slug: z.ZodString;
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
previewUrl: z.ZodURL;
|
|
56
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
57
|
+
uuid: z.ZodUUID;
|
|
58
|
+
type: z.ZodEnum<typeof import("../..").TREND_FIELD_TYPE>;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
order: z.ZodInt;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
63
|
+
uuid: z.ZodUUID;
|
|
64
|
+
slug: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
prompt: z.ZodString;
|
|
68
|
+
referenceVideoUrl: z.ZodURL;
|
|
69
|
+
aspectRatio: z.ZodEnum<typeof import("../..").TREND_ASPECT_RATIO>;
|
|
70
|
+
durationSec: z.ZodInt;
|
|
71
|
+
models: z.ZodArray<z.ZodObject<{
|
|
72
|
+
uuid: z.ZodUUID;
|
|
73
|
+
titleModel: z.ZodString;
|
|
74
|
+
icons: z.ZodObject<{
|
|
75
|
+
light: z.ZodString;
|
|
76
|
+
dark: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
isDefault: z.ZodBoolean;
|
|
79
|
+
defaultQuality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
80
|
+
qualities: z.ZodArray<z.ZodObject<{
|
|
81
|
+
quality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
82
|
+
price: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
87
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type GetPublicTrendBySlugQueryParamsType = z.infer<typeof GetPublicTrendBySlugQueryParams>;
|
|
91
|
+
export type GetPublicTrendBySlugQueryResponseType = z.infer<typeof GetPublicTrendBySlugQueryResponse>;
|
|
92
|
+
//# sourceMappingURL=get-public-trend-by-slug.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-public-trend-by-slug.query.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/queries/get-public-trend-by-slug.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAoB,CAAC;AAEnE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYpC,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAClG,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPublicTrendBySlugQuery = exports.GetPublicTrendBySlugQueryResponse = exports.GetPublicTrendBySlugQueryParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const trend_1 = require("../trend");
|
|
8
|
+
exports.GetPublicTrendBySlugQueryParams = zod_1.z.object({
|
|
9
|
+
slug: models_1.TrendSlugSchema,
|
|
10
|
+
});
|
|
11
|
+
exports.GetPublicTrendBySlugQueryResponse = models_1.PublicTrendSchema;
|
|
12
|
+
exports.GetPublicTrendBySlugQuery = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
14
|
+
path: trend_1.TREND_ROUTES.GET_BY_SLUG(':slug'),
|
|
15
|
+
summary: 'Get published trend with models, qualities and prices',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.GetPublicTrendBySlugQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.GetPublicTrendBySlugQueryResponse,
|
|
21
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./list-public-trends.query"), exports);
|
|
18
|
+
__exportStar(require("./get-public-trend-by-slug.query"), exports);
|
|
19
|
+
__exportStar(require("./list-public-trend-categories.query"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ListPublicTrendCategoriesQueryResponse: z.ZodObject<{
|
|
4
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
5
|
+
uuid: z.ZodUUID;
|
|
6
|
+
slug: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const ListPublicTrendCategoriesQuery: {
|
|
11
|
+
method: HTTP_METHODS.GET;
|
|
12
|
+
path: "";
|
|
13
|
+
summary: string;
|
|
14
|
+
responses: {
|
|
15
|
+
200: z.ZodObject<{
|
|
16
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
17
|
+
uuid: z.ZodUUID;
|
|
18
|
+
slug: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type ListPublicTrendCategoriesQueryResponseType = z.infer<typeof ListPublicTrendCategoriesQueryResponse>;
|
|
26
|
+
//# sourceMappingURL=list-public-trend-categories.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-public-trend-categories.query.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/queries/list-public-trend-categories.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,sCAAsC;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;CAQzC,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPublicTrendCategoriesQuery = exports.ListPublicTrendCategoriesQueryResponse = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const trend_1 = require("../trend");
|
|
8
|
+
exports.ListPublicTrendCategoriesQueryResponse = zod_1.z.object({
|
|
9
|
+
categories: zod_1.z.array(models_1.PublicTrendCategorySchema),
|
|
10
|
+
});
|
|
11
|
+
exports.ListPublicTrendCategoriesQuery = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
13
|
+
path: trend_1.TREND_CATEGORY_ROUTES.LIST,
|
|
14
|
+
summary: 'List trend categories that contain published trends',
|
|
15
|
+
responses: {
|
|
16
|
+
200: exports.ListPublicTrendCategoriesQueryResponse,
|
|
17
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
18
|
+
},
|
|
19
|
+
});
|