@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
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const CreateAdminTrendCommandBody: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
prompt: z.ZodString;
|
|
7
|
+
referenceVideoFileId: z.ZodUUID;
|
|
8
|
+
previewFileId: z.ZodUUID;
|
|
9
|
+
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
10
|
+
durationSec: z.ZodInt;
|
|
11
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodUUID>>;
|
|
12
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
13
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
14
|
+
type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
models: z.ZodArray<z.ZodObject<{
|
|
18
|
+
modelId: z.ZodUUID;
|
|
19
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const CreateAdminTrendCommandResponse: z.ZodObject<{
|
|
23
|
+
uuid: z.ZodUUID;
|
|
24
|
+
slug: z.ZodString;
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
prompt: z.ZodString;
|
|
27
|
+
status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
|
|
28
|
+
order: z.ZodInt;
|
|
29
|
+
referenceVideo: z.ZodObject<{
|
|
30
|
+
uuid: z.ZodUUID;
|
|
31
|
+
url: z.ZodURL;
|
|
32
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
preview: z.ZodObject<{
|
|
35
|
+
uuid: z.ZodUUID;
|
|
36
|
+
url: z.ZodURL;
|
|
37
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
40
|
+
durationSec: z.ZodInt;
|
|
41
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
42
|
+
uuid: z.ZodUUID;
|
|
43
|
+
slug: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
createdAt: z.ZodISODateTime;
|
|
46
|
+
updatedAt: z.ZodISODateTime;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodUUID;
|
|
50
|
+
type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
order: z.ZodInt;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
models: z.ZodArray<z.ZodObject<{
|
|
55
|
+
modelId: z.ZodUUID;
|
|
56
|
+
titleModel: z.ZodString;
|
|
57
|
+
order: z.ZodInt;
|
|
58
|
+
isDefault: z.ZodBoolean;
|
|
59
|
+
isAvailable: z.ZodBoolean;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
generationsCount: z.ZodInt;
|
|
62
|
+
createdAt: z.ZodISODateTime;
|
|
63
|
+
updatedAt: z.ZodISODateTime;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export declare const CreateAdminTrendCommand: {
|
|
66
|
+
method: HTTP_METHODS.POST;
|
|
67
|
+
path: "trends";
|
|
68
|
+
summary: string;
|
|
69
|
+
request: {
|
|
70
|
+
body: z.ZodObject<{
|
|
71
|
+
slug: z.ZodString;
|
|
72
|
+
title: z.ZodString;
|
|
73
|
+
prompt: z.ZodString;
|
|
74
|
+
referenceVideoFileId: z.ZodUUID;
|
|
75
|
+
previewFileId: z.ZodUUID;
|
|
76
|
+
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
77
|
+
durationSec: z.ZodInt;
|
|
78
|
+
categoryIds: z.ZodDefault<z.ZodArray<z.ZodUUID>>;
|
|
79
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
80
|
+
uuid: z.ZodOptional<z.ZodUUID>;
|
|
81
|
+
type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
models: z.ZodArray<z.ZodObject<{
|
|
85
|
+
modelId: z.ZodUUID;
|
|
86
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
};
|
|
90
|
+
responses: {
|
|
91
|
+
201: z.ZodObject<{
|
|
92
|
+
uuid: z.ZodUUID;
|
|
93
|
+
slug: z.ZodString;
|
|
94
|
+
title: z.ZodString;
|
|
95
|
+
prompt: z.ZodString;
|
|
96
|
+
status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
|
|
97
|
+
order: z.ZodInt;
|
|
98
|
+
referenceVideo: z.ZodObject<{
|
|
99
|
+
uuid: z.ZodUUID;
|
|
100
|
+
url: z.ZodURL;
|
|
101
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
preview: z.ZodObject<{
|
|
104
|
+
uuid: z.ZodUUID;
|
|
105
|
+
url: z.ZodURL;
|
|
106
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
109
|
+
durationSec: z.ZodInt;
|
|
110
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
111
|
+
uuid: z.ZodUUID;
|
|
112
|
+
slug: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
createdAt: z.ZodISODateTime;
|
|
115
|
+
updatedAt: z.ZodISODateTime;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
118
|
+
uuid: z.ZodUUID;
|
|
119
|
+
type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
order: z.ZodInt;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
models: z.ZodArray<z.ZodObject<{
|
|
124
|
+
modelId: z.ZodUUID;
|
|
125
|
+
titleModel: z.ZodString;
|
|
126
|
+
order: z.ZodInt;
|
|
127
|
+
isDefault: z.ZodBoolean;
|
|
128
|
+
isAvailable: z.ZodBoolean;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
generationsCount: z.ZodInt;
|
|
131
|
+
createdAt: z.ZodISODateTime;
|
|
132
|
+
updatedAt: z.ZodISODateTime;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
135
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
136
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
137
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
138
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
139
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export type CreateAdminTrendCommandBodyType = z.infer<typeof CreateAdminTrendCommandBody>;
|
|
143
|
+
export type CreateAdminTrendCommandResponseType = z.infer<typeof CreateAdminTrendCommandResponse>;
|
|
144
|
+
//# sourceMappingURL=create-admin-trend.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-admin-trend.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/create-admin-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;iBAAmB,CAAC;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBlC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateAdminTrendCommand = exports.CreateAdminTrendCommandResponse = exports.CreateAdminTrendCommandBody = void 0;
|
|
4
|
+
const _common_1 = require("../../../_common");
|
|
5
|
+
const trend_1 = require("../../../trend");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.CreateAdminTrendCommandBody = trend_1.TrendInputSchema;
|
|
9
|
+
exports.CreateAdminTrendCommandResponse = models_1.AdminTrendResponseSchema;
|
|
10
|
+
exports.CreateAdminTrendCommand = (0, _common_1.defineContract)({
|
|
11
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
12
|
+
path: admin_1.ADMIN_ROUTES.CREATE_TREND,
|
|
13
|
+
summary: 'Create trend as draft',
|
|
14
|
+
request: {
|
|
15
|
+
body: exports.CreateAdminTrendCommandBody,
|
|
16
|
+
},
|
|
17
|
+
responses: {
|
|
18
|
+
201: exports.CreateAdminTrendCommandResponse,
|
|
19
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const DeleteAdminTrendCategoryCommandParams: z.ZodObject<{
|
|
4
|
+
categoryId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const DeleteAdminTrendCategoryCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
7
|
+
export declare const DeleteAdminTrendCategoryCommand: {
|
|
8
|
+
method: HTTP_METHODS.DELETE;
|
|
9
|
+
path: string;
|
|
10
|
+
summary: string;
|
|
11
|
+
request: {
|
|
12
|
+
params: z.ZodObject<{
|
|
13
|
+
categoryId: z.ZodUUID;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
responses: {
|
|
17
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
18
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
19
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
20
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type DeleteAdminTrendCategoryCommandParamsType = z.infer<typeof DeleteAdminTrendCategoryCommandParams>;
|
|
25
|
+
export type DeleteAdminTrendCategoryCommandResponseType = z.infer<typeof DeleteAdminTrendCategoryCommandResponse>;
|
|
26
|
+
//# sourceMappingURL=delete-admin-trend-category.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-admin-trend-category.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/delete-admin-trend-category.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAGpH,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AAEH,eAAO,MAAM,uCAAuC,uJAA4B,CAAC;AAEjF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;CAc1C,CAAC;AAEH,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC9G,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAdminTrendCategoryCommand = exports.DeleteAdminTrendCategoryCommandResponse = exports.DeleteAdminTrendCategoryCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.DeleteAdminTrendCategoryCommandParams = zod_1.z.object({
|
|
8
|
+
categoryId: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
exports.DeleteAdminTrendCategoryCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
11
|
+
exports.DeleteAdminTrendCategoryCommand = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.DELETE,
|
|
13
|
+
path: admin_1.ADMIN_ROUTES.DELETE_TREND_CATEGORY(':categoryId'),
|
|
14
|
+
summary: 'Delete trend category and detach it from trends',
|
|
15
|
+
request: {
|
|
16
|
+
params: exports.DeleteAdminTrendCategoryCommandParams,
|
|
17
|
+
},
|
|
18
|
+
responses: {
|
|
19
|
+
200: exports.DeleteAdminTrendCategoryCommandResponse,
|
|
20
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const DeleteAdminTrendCommandParams: z.ZodObject<{
|
|
4
|
+
trendId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const DeleteAdminTrendCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
7
|
+
export declare const DeleteAdminTrendCommand: {
|
|
8
|
+
method: HTTP_METHODS.DELETE;
|
|
9
|
+
path: string;
|
|
10
|
+
summary: string;
|
|
11
|
+
request: {
|
|
12
|
+
params: z.ZodObject<{
|
|
13
|
+
trendId: z.ZodUUID;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
responses: {
|
|
17
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
18
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
19
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
20
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type DeleteAdminTrendCommandParamsType = z.infer<typeof DeleteAdminTrendCommandParams>;
|
|
25
|
+
export type DeleteAdminTrendCommandResponseType = z.infer<typeof DeleteAdminTrendCommandResponse>;
|
|
26
|
+
//# sourceMappingURL=delete-admin-trend.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-admin-trend.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/delete-admin-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAGpH,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,+BAA+B,uJAA4B,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;CAclC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC9F,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAdminTrendCommand = exports.DeleteAdminTrendCommandResponse = exports.DeleteAdminTrendCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.DeleteAdminTrendCommandParams = zod_1.z.object({
|
|
8
|
+
trendId: zod_1.z.uuid(),
|
|
9
|
+
});
|
|
10
|
+
exports.DeleteAdminTrendCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
11
|
+
exports.DeleteAdminTrendCommand = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.DELETE,
|
|
13
|
+
path: admin_1.ADMIN_ROUTES.DELETE_TREND(':trendId'),
|
|
14
|
+
summary: 'Delete trend; generated chats keep working',
|
|
15
|
+
request: {
|
|
16
|
+
params: exports.DeleteAdminTrendCommandParams,
|
|
17
|
+
},
|
|
18
|
+
responses: {
|
|
19
|
+
200: exports.DeleteAdminTrendCommandResponse,
|
|
20
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
@@ -13,4 +13,13 @@ export * from './update-admin-model-family.command';
|
|
|
13
13
|
export * from './delete-admin-model-family.command';
|
|
14
14
|
export * from './update-admin-organization.command';
|
|
15
15
|
export * from './ban-admin-users.command';
|
|
16
|
+
export * from './create-admin-trend.command';
|
|
17
|
+
export * from './update-admin-trend.command';
|
|
18
|
+
export * from './update-admin-trend-status.command';
|
|
19
|
+
export * from './delete-admin-trend.command';
|
|
20
|
+
export * from './reorder-admin-trends.command';
|
|
21
|
+
export * from './probe-admin-trend-reference-video.command';
|
|
22
|
+
export * from './create-admin-trend-category.command';
|
|
23
|
+
export * from './update-admin-trend-category.command';
|
|
24
|
+
export * from './delete-admin-trend-category.command';
|
|
16
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC"}
|
|
@@ -29,3 +29,12 @@ __exportStar(require("./update-admin-model-family.command"), exports);
|
|
|
29
29
|
__exportStar(require("./delete-admin-model-family.command"), exports);
|
|
30
30
|
__exportStar(require("./update-admin-organization.command"), exports);
|
|
31
31
|
__exportStar(require("./ban-admin-users.command"), exports);
|
|
32
|
+
__exportStar(require("./create-admin-trend.command"), exports);
|
|
33
|
+
__exportStar(require("./update-admin-trend.command"), exports);
|
|
34
|
+
__exportStar(require("./update-admin-trend-status.command"), exports);
|
|
35
|
+
__exportStar(require("./delete-admin-trend.command"), exports);
|
|
36
|
+
__exportStar(require("./reorder-admin-trends.command"), exports);
|
|
37
|
+
__exportStar(require("./probe-admin-trend-reference-video.command"), exports);
|
|
38
|
+
__exportStar(require("./create-admin-trend-category.command"), exports);
|
|
39
|
+
__exportStar(require("./update-admin-trend-category.command"), exports);
|
|
40
|
+
__exportStar(require("./delete-admin-trend-category.command"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ProbeAdminTrendReferenceVideoCommandBody: z.ZodObject<{
|
|
4
|
+
fileId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const ProbeAdminTrendReferenceVideoCommandResponse: z.ZodObject<{
|
|
7
|
+
durationSec: z.ZodInt;
|
|
8
|
+
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
9
|
+
width: z.ZodInt;
|
|
10
|
+
height: z.ZodInt;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const ProbeAdminTrendReferenceVideoCommand: {
|
|
13
|
+
method: HTTP_METHODS.POST;
|
|
14
|
+
path: "trends/reference-video/probe";
|
|
15
|
+
summary: string;
|
|
16
|
+
request: {
|
|
17
|
+
body: z.ZodObject<{
|
|
18
|
+
fileId: z.ZodUUID;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
};
|
|
21
|
+
responses: {
|
|
22
|
+
200: z.ZodObject<{
|
|
23
|
+
durationSec: z.ZodInt;
|
|
24
|
+
aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
|
|
25
|
+
width: z.ZodInt;
|
|
26
|
+
height: z.ZodInt;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
29
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
30
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
31
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
32
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export type ProbeAdminTrendReferenceVideoCommandBodyType = z.infer<typeof ProbeAdminTrendReferenceVideoCommandBody>;
|
|
36
|
+
export type ProbeAdminTrendReferenceVideoCommandResponseType = z.infer<typeof ProbeAdminTrendReferenceVideoCommandResponse>;
|
|
37
|
+
//# sourceMappingURL=probe-admin-trend-reference-video.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-admin-trend-reference-video.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/probe-admin-trend-reference-video.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;iBAKvD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;CAe/C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,4CAA4C,CACtD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProbeAdminTrendReferenceVideoCommand = exports.ProbeAdminTrendReferenceVideoCommandResponse = exports.ProbeAdminTrendReferenceVideoCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const trend_1 = require("../../../trend");
|
|
7
|
+
const admin_1 = require("../admin");
|
|
8
|
+
exports.ProbeAdminTrendReferenceVideoCommandBody = zod_1.z.object({
|
|
9
|
+
fileId: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.ProbeAdminTrendReferenceVideoCommandResponse = zod_1.z.object({
|
|
12
|
+
durationSec: trend_1.TrendDurationSecSchema,
|
|
13
|
+
aspectRatio: trend_1.TrendAspectRatioSchema,
|
|
14
|
+
width: zod_1.z.int().positive(),
|
|
15
|
+
height: zod_1.z.int().positive(),
|
|
16
|
+
});
|
|
17
|
+
exports.ProbeAdminTrendReferenceVideoCommand = (0, _common_1.defineContract)({
|
|
18
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
19
|
+
path: admin_1.ADMIN_ROUTES.PROBE_TREND_REFERENCE_VIDEO,
|
|
20
|
+
summary: 'Detect duration and nearest supported aspect ratio of an uploaded reference video',
|
|
21
|
+
request: {
|
|
22
|
+
body: exports.ProbeAdminTrendReferenceVideoCommandBody,
|
|
23
|
+
},
|
|
24
|
+
responses: {
|
|
25
|
+
200: exports.ProbeAdminTrendReferenceVideoCommandResponse,
|
|
26
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ReorderAdminTrendsCommandBody: z.ZodObject<{
|
|
4
|
+
trendIds: z.ZodArray<z.ZodUUID>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const ReorderAdminTrendsCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
7
|
+
export declare const ReorderAdminTrendsCommand: {
|
|
8
|
+
method: HTTP_METHODS.POST;
|
|
9
|
+
path: "trends/reorder";
|
|
10
|
+
summary: string;
|
|
11
|
+
request: {
|
|
12
|
+
body: z.ZodObject<{
|
|
13
|
+
trendIds: z.ZodArray<z.ZodUUID>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
responses: {
|
|
17
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
18
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
19
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
20
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type ReorderAdminTrendsCommandBodyType = z.infer<typeof ReorderAdminTrendsCommandBody>;
|
|
25
|
+
export type ReorderAdminTrendsCommandResponseType = z.infer<typeof ReorderAdminTrendsCommandResponse>;
|
|
26
|
+
//# sourceMappingURL=reorder-admin-trends.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder-admin-trends.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/reorder-admin-trends.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAGpH,eAAO,MAAM,6BAA6B;;iBAKxC,CAAC;AAEH,eAAO,MAAM,iCAAiC,uJAA4B,CAAC;AAE3E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAcpC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC9F,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReorderAdminTrendsCommand = exports.ReorderAdminTrendsCommandResponse = exports.ReorderAdminTrendsCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const admin_1 = require("../admin");
|
|
7
|
+
exports.ReorderAdminTrendsCommandBody = zod_1.z.object({
|
|
8
|
+
trendIds: zod_1.z
|
|
9
|
+
.array(zod_1.z.uuid())
|
|
10
|
+
.min(1)
|
|
11
|
+
.refine((ids) => new Set(ids).size === ids.length, { message: 'Trend ids must be unique' }),
|
|
12
|
+
});
|
|
13
|
+
exports.ReorderAdminTrendsCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
14
|
+
exports.ReorderAdminTrendsCommand = (0, _common_1.defineContract)({
|
|
15
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
16
|
+
path: admin_1.ADMIN_ROUTES.REORDER_TRENDS,
|
|
17
|
+
summary: 'Set catalog order of all trends; position in the array is the order',
|
|
18
|
+
request: {
|
|
19
|
+
body: exports.ReorderAdminTrendsCommandBody,
|
|
20
|
+
},
|
|
21
|
+
responses: {
|
|
22
|
+
200: exports.ReorderAdminTrendsCommandResponse,
|
|
23
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const UpdateAdminTrendCategoryCommandParams: z.ZodObject<{
|
|
4
|
+
categoryId: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const UpdateAdminTrendCategoryCommandBody: z.ZodObject<{
|
|
7
|
+
slug: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const UpdateAdminTrendCategoryCommandResponse: z.ZodObject<{
|
|
11
|
+
uuid: z.ZodUUID;
|
|
12
|
+
slug: z.ZodString;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
createdAt: z.ZodISODateTime;
|
|
15
|
+
updatedAt: z.ZodISODateTime;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const UpdateAdminTrendCategoryCommand: {
|
|
18
|
+
method: HTTP_METHODS.PUT;
|
|
19
|
+
path: string;
|
|
20
|
+
summary: string;
|
|
21
|
+
request: {
|
|
22
|
+
params: z.ZodObject<{
|
|
23
|
+
categoryId: z.ZodUUID;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
body: z.ZodObject<{
|
|
26
|
+
slug: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
};
|
|
30
|
+
responses: {
|
|
31
|
+
200: z.ZodObject<{
|
|
32
|
+
uuid: z.ZodUUID;
|
|
33
|
+
slug: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
createdAt: z.ZodISODateTime;
|
|
36
|
+
updatedAt: z.ZodISODateTime;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
39
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
40
|
+
403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
41
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
42
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
43
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export type UpdateAdminTrendCategoryCommandParamsType = z.infer<typeof UpdateAdminTrendCategoryCommandParams>;
|
|
47
|
+
export type UpdateAdminTrendCategoryCommandBodyType = z.infer<typeof UpdateAdminTrendCategoryCommandBody>;
|
|
48
|
+
export type UpdateAdminTrendCategoryCommandResponseType = z.infer<typeof UpdateAdminTrendCategoryCommandResponse>;
|
|
49
|
+
//# sourceMappingURL=update-admin-trend-category.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-admin-trend-category.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-trend-category.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;iBAA2B,CAAC;AAE5E,eAAO,MAAM,uCAAuC;;;;;;iBAAmC,CAAC;AAExF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEH,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC9G,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC1G,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAdminTrendCategoryCommand = exports.UpdateAdminTrendCategoryCommandResponse = exports.UpdateAdminTrendCategoryCommandBody = exports.UpdateAdminTrendCategoryCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const trend_1 = require("../../../trend");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const admin_1 = require("../admin");
|
|
9
|
+
exports.UpdateAdminTrendCategoryCommandParams = zod_1.z.object({
|
|
10
|
+
categoryId: zod_1.z.uuid(),
|
|
11
|
+
});
|
|
12
|
+
exports.UpdateAdminTrendCategoryCommandBody = trend_1.TrendCategoryInputSchema;
|
|
13
|
+
exports.UpdateAdminTrendCategoryCommandResponse = models_1.AdminTrendCategoryResponseSchema;
|
|
14
|
+
exports.UpdateAdminTrendCategoryCommand = (0, _common_1.defineContract)({
|
|
15
|
+
method: _common_1.HTTP_METHODS.PUT,
|
|
16
|
+
path: admin_1.ADMIN_ROUTES.UPDATE_TREND_CATEGORY(':categoryId'),
|
|
17
|
+
summary: 'Replace trend category slug and name',
|
|
18
|
+
request: {
|
|
19
|
+
params: exports.UpdateAdminTrendCategoryCommandParams,
|
|
20
|
+
body: exports.UpdateAdminTrendCategoryCommandBody,
|
|
21
|
+
},
|
|
22
|
+
responses: {
|
|
23
|
+
200: exports.UpdateAdminTrendCategoryCommandResponse,
|
|
24
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
403: _common_1.HttpErrorResponseSchema,
|
|
27
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
28
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
29
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
},
|
|
31
|
+
});
|