@ai-grator/api 0.3.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.
Files changed (192) hide show
  1. package/admin/endpoints/admin.ts +16 -0
  2. package/admin/endpoints/commands/create-admin-trend-category.command.ts +29 -0
  3. package/admin/endpoints/commands/create-admin-trend.command.ts +30 -0
  4. package/admin/endpoints/commands/delete-admin-trend-category.command.ts +28 -0
  5. package/admin/endpoints/commands/delete-admin-trend.command.ts +28 -0
  6. package/admin/endpoints/commands/index.ts +9 -0
  7. package/admin/endpoints/commands/probe-admin-trend-reference-video.command.ts +37 -0
  8. package/admin/endpoints/commands/reorder-admin-trends.command.ts +31 -0
  9. package/admin/endpoints/commands/update-admin-trend-category.command.ts +36 -0
  10. package/admin/endpoints/commands/update-admin-trend-status.command.ts +37 -0
  11. package/admin/endpoints/commands/update-admin-trend.command.ts +36 -0
  12. package/admin/endpoints/queries/get-admin-trend-categories.query.ts +22 -0
  13. package/admin/endpoints/queries/get-admin-trend.query.ts +29 -0
  14. package/admin/endpoints/queries/get-admin-trends.query.ts +36 -0
  15. package/admin/endpoints/queries/index.ts +3 -0
  16. package/admin/models/admin-trend-category-response.schema.ts +11 -0
  17. package/admin/models/admin-trend-response.schema.ts +61 -0
  18. package/admin/models/index.ts +2 -0
  19. package/build/admin/endpoints/admin.d.ts +12 -0
  20. package/build/admin/endpoints/admin.d.ts.map +1 -1
  21. package/build/admin/endpoints/admin.js +14 -0
  22. package/build/admin/endpoints/commands/create-admin-trend-category.command.d.ts +41 -0
  23. package/build/admin/endpoints/commands/create-admin-trend-category.command.d.ts.map +1 -0
  24. package/build/admin/endpoints/commands/create-admin-trend-category.command.js +25 -0
  25. package/build/admin/endpoints/commands/create-admin-trend.command.d.ts +144 -0
  26. package/build/admin/endpoints/commands/create-admin-trend.command.d.ts.map +1 -0
  27. package/build/admin/endpoints/commands/create-admin-trend.command.js +26 -0
  28. package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts +26 -0
  29. package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts.map +1 -0
  30. package/build/admin/endpoints/commands/delete-admin-trend-category.command.js +25 -0
  31. package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts +26 -0
  32. package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts.map +1 -0
  33. package/build/admin/endpoints/commands/delete-admin-trend.command.js +25 -0
  34. package/build/admin/endpoints/commands/index.d.ts +9 -0
  35. package/build/admin/endpoints/commands/index.d.ts.map +1 -1
  36. package/build/admin/endpoints/commands/index.js +9 -0
  37. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts +37 -0
  38. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts.map +1 -0
  39. package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.js +32 -0
  40. package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts +26 -0
  41. package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts.map +1 -0
  42. package/build/admin/endpoints/commands/reorder-admin-trends.command.js +28 -0
  43. package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts +49 -0
  44. package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts.map +1 -0
  45. package/build/admin/endpoints/commands/update-admin-trend-category.command.js +31 -0
  46. package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts +118 -0
  47. package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts.map +1 -0
  48. package/build/admin/endpoints/commands/update-admin-trend-status.command.js +32 -0
  49. package/build/admin/endpoints/commands/update-admin-trend.command.d.ts +151 -0
  50. package/build/admin/endpoints/commands/update-admin-trend.command.d.ts.map +1 -0
  51. package/build/admin/endpoints/commands/update-admin-trend.command.js +31 -0
  52. package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts +32 -0
  53. package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts.map +1 -0
  54. package/build/admin/endpoints/queries/get-admin-trend-categories.query.js +21 -0
  55. package/build/admin/endpoints/queries/get-admin-trend.query.d.ts +110 -0
  56. package/build/admin/endpoints/queries/get-admin-trend.query.d.ts.map +1 -0
  57. package/build/admin/endpoints/queries/get-admin-trend.query.js +26 -0
  58. package/build/admin/endpoints/queries/get-admin-trends.query.d.ts +63 -0
  59. package/build/admin/endpoints/queries/get-admin-trends.query.d.ts.map +1 -0
  60. package/build/admin/endpoints/queries/get-admin-trends.query.js +33 -0
  61. package/build/admin/endpoints/queries/index.d.ts +3 -0
  62. package/build/admin/endpoints/queries/index.d.ts.map +1 -1
  63. package/build/admin/endpoints/queries/index.js +3 -0
  64. package/build/admin/models/admin-trend-category-response.schema.d.ts +10 -0
  65. package/build/admin/models/admin-trend-category-response.schema.d.ts.map +1 -0
  66. package/build/admin/models/admin-trend-category-response.schema.js +11 -0
  67. package/build/admin/models/admin-trend-response.schema.d.ts +79 -0
  68. package/build/admin/models/admin-trend-response.schema.d.ts.map +1 -0
  69. package/build/admin/models/admin-trend-response.schema.js +53 -0
  70. package/build/admin/models/index.d.ts +2 -0
  71. package/build/admin/models/index.d.ts.map +1 -1
  72. package/build/admin/models/index.js +2 -0
  73. package/build/errors/errors.d.ts +142 -0
  74. package/build/errors/errors.d.ts.map +1 -1
  75. package/build/errors/errors.js +142 -0
  76. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +2 -0
  77. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
  78. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +2 -0
  79. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
  80. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +2 -0
  81. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
  82. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +2 -0
  83. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
  84. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +1 -0
  85. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
  86. package/build/generation-job-chat/models/generation-job-chat-response.schema.js +1 -0
  87. package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +2 -0
  88. package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -1
  89. package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +2 -0
  90. package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -1
  91. package/build/generation-model/models/generation-model-response.schema.d.ts +3 -0
  92. package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -1
  93. package/build/generation-model/models/generation-model-response.schema.js +1 -0
  94. package/build/index.d.ts +1 -0
  95. package/build/index.d.ts.map +1 -1
  96. package/build/index.js +1 -0
  97. package/build/trend/endpoints/commands/generate-trend.command.d.ts +142 -0
  98. package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -0
  99. package/build/trend/endpoints/commands/generate-trend.command.js +54 -0
  100. package/build/trend/endpoints/commands/index.d.ts +2 -0
  101. package/build/trend/endpoints/commands/index.d.ts.map +1 -0
  102. package/build/trend/endpoints/commands/index.js +17 -0
  103. package/build/trend/endpoints/index.d.ts +4 -0
  104. package/build/trend/endpoints/index.d.ts.map +1 -0
  105. package/build/trend/endpoints/index.js +19 -0
  106. package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts +92 -0
  107. package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts.map +1 -0
  108. package/build/trend/endpoints/queries/get-public-trend-by-slug.query.js +24 -0
  109. package/build/trend/endpoints/queries/index.d.ts +4 -0
  110. package/build/trend/endpoints/queries/index.d.ts.map +1 -0
  111. package/build/trend/endpoints/queries/index.js +19 -0
  112. package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts +26 -0
  113. package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts.map +1 -0
  114. package/build/trend/endpoints/queries/list-public-trend-categories.query.js +19 -0
  115. package/build/trend/endpoints/queries/list-public-trends.query.d.ts +69 -0
  116. package/build/trend/endpoints/queries/list-public-trends.query.d.ts.map +1 -0
  117. package/build/trend/endpoints/queries/list-public-trends.query.js +28 -0
  118. package/build/trend/endpoints/trend.d.ts +11 -0
  119. package/build/trend/endpoints/trend.d.ts.map +1 -0
  120. package/build/trend/endpoints/trend.js +13 -0
  121. package/build/trend/enums/index.d.ts +6 -0
  122. package/build/trend/enums/index.d.ts.map +1 -0
  123. package/build/trend/enums/index.js +21 -0
  124. package/build/trend/enums/trend-aspect-ratio.enum.d.ts +9 -0
  125. package/build/trend/enums/trend-aspect-ratio.enum.d.ts.map +1 -0
  126. package/build/trend/enums/trend-aspect-ratio.enum.js +12 -0
  127. package/build/trend/enums/trend-field-type.enum.d.ts +5 -0
  128. package/build/trend/enums/trend-field-type.enum.d.ts.map +1 -0
  129. package/build/trend/enums/trend-field-type.enum.js +8 -0
  130. package/build/trend/enums/trend-limits.d.ts +11 -0
  131. package/build/trend/enums/trend-limits.d.ts.map +1 -0
  132. package/build/trend/enums/trend-limits.js +13 -0
  133. package/build/trend/enums/trend-quality.enum.d.ts +7 -0
  134. package/build/trend/enums/trend-quality.enum.d.ts.map +1 -0
  135. package/build/trend/enums/trend-quality.enum.js +10 -0
  136. package/build/trend/enums/trend-status.enum.d.ts +5 -0
  137. package/build/trend/enums/trend-status.enum.d.ts.map +1 -0
  138. package/build/trend/enums/trend-status.enum.js +8 -0
  139. package/build/trend/helpers/index.d.ts +2 -0
  140. package/build/trend/helpers/index.d.ts.map +1 -0
  141. package/build/trend/helpers/index.js +17 -0
  142. package/build/trend/helpers/trend-field-reference.helper.d.ts +4 -0
  143. package/build/trend/helpers/trend-field-reference.helper.d.ts.map +1 -0
  144. package/build/trend/helpers/trend-field-reference.helper.js +12 -0
  145. package/build/trend/index.d.ts +5 -0
  146. package/build/trend/index.d.ts.map +1 -0
  147. package/build/trend/index.js +20 -0
  148. package/build/trend/models/index.d.ts +5 -0
  149. package/build/trend/models/index.d.ts.map +1 -0
  150. package/build/trend/models/index.js +20 -0
  151. package/build/trend/models/public-trend.schema.d.ts +88 -0
  152. package/build/trend/models/public-trend.schema.d.ts.map +1 -0
  153. package/build/trend/models/public-trend.schema.js +44 -0
  154. package/build/trend/models/trend-category-input.schema.d.ts +7 -0
  155. package/build/trend/models/trend-category-input.schema.d.ts.map +1 -0
  156. package/build/trend/models/trend-category-input.schema.js +10 -0
  157. package/build/trend/models/trend-common.schema.d.ts +10 -0
  158. package/build/trend/models/trend-common.schema.d.ts.map +1 -0
  159. package/build/trend/models/trend-common.schema.js +17 -0
  160. package/build/trend/models/trend-input.schema.d.ts +33 -0
  161. package/build/trend/models/trend-input.schema.d.ts.map +1 -0
  162. package/build/trend/models/trend-input.schema.js +54 -0
  163. package/build/tsconfig.tsbuildinfo +1 -1
  164. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts +2 -0
  165. package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts.map +1 -1
  166. package/errors/errors.ts +142 -0
  167. package/generation-job-chat/models/generation-job-chat-response.schema.ts +1 -0
  168. package/generation-model/models/generation-model-response.schema.ts +1 -0
  169. package/index.ts +1 -0
  170. package/package.json +1 -1
  171. package/trend/endpoints/commands/generate-trend.command.ts +63 -0
  172. package/trend/endpoints/commands/index.ts +1 -0
  173. package/trend/endpoints/index.ts +3 -0
  174. package/trend/endpoints/queries/get-public-trend-by-slug.query.ts +27 -0
  175. package/trend/endpoints/queries/index.ts +3 -0
  176. package/trend/endpoints/queries/list-public-trend-categories.query.ts +20 -0
  177. package/trend/endpoints/queries/list-public-trends.query.ts +31 -0
  178. package/trend/endpoints/trend.ts +13 -0
  179. package/trend/enums/index.ts +5 -0
  180. package/trend/enums/trend-aspect-ratio.enum.ts +8 -0
  181. package/trend/enums/trend-field-type.enum.ts +4 -0
  182. package/trend/enums/trend-limits.ts +10 -0
  183. package/trend/enums/trend-quality.enum.ts +7 -0
  184. package/trend/enums/trend-status.enum.ts +4 -0
  185. package/trend/helpers/index.ts +1 -0
  186. package/trend/helpers/trend-field-reference.helper.ts +9 -0
  187. package/trend/index.ts +4 -0
  188. package/trend/models/index.ts +4 -0
  189. package/trend/models/public-trend.schema.ts +58 -0
  190. package/trend/models/trend-category-input.schema.ts +10 -0
  191. package/trend/models/trend-common.schema.ts +26 -0
  192. package/trend/models/trend-input.schema.ts +69 -0
@@ -0,0 +1,118 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const UpdateAdminTrendStatusCommandParams: z.ZodObject<{
4
+ trendId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const UpdateAdminTrendStatusCommandBody: z.ZodObject<{
7
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
8
+ }, z.core.$strip>;
9
+ export declare const UpdateAdminTrendStatusCommandResponse: z.ZodObject<{
10
+ uuid: z.ZodUUID;
11
+ slug: z.ZodString;
12
+ title: z.ZodString;
13
+ prompt: z.ZodString;
14
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
15
+ order: z.ZodInt;
16
+ referenceVideo: z.ZodObject<{
17
+ uuid: z.ZodUUID;
18
+ url: z.ZodURL;
19
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
20
+ }, z.core.$strip>;
21
+ preview: z.ZodObject<{
22
+ uuid: z.ZodUUID;
23
+ url: z.ZodURL;
24
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
25
+ }, z.core.$strip>;
26
+ aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
27
+ durationSec: z.ZodInt;
28
+ categories: z.ZodArray<z.ZodObject<{
29
+ uuid: z.ZodUUID;
30
+ slug: z.ZodString;
31
+ name: z.ZodString;
32
+ createdAt: z.ZodISODateTime;
33
+ updatedAt: z.ZodISODateTime;
34
+ }, z.core.$strip>>;
35
+ fields: z.ZodArray<z.ZodObject<{
36
+ uuid: z.ZodUUID;
37
+ type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
38
+ name: z.ZodString;
39
+ order: z.ZodInt;
40
+ }, z.core.$strip>>;
41
+ models: z.ZodArray<z.ZodObject<{
42
+ modelId: z.ZodUUID;
43
+ titleModel: z.ZodString;
44
+ order: z.ZodInt;
45
+ isDefault: z.ZodBoolean;
46
+ isAvailable: z.ZodBoolean;
47
+ }, z.core.$strip>>;
48
+ generationsCount: z.ZodInt;
49
+ createdAt: z.ZodISODateTime;
50
+ updatedAt: z.ZodISODateTime;
51
+ }, z.core.$strip>;
52
+ export declare const UpdateAdminTrendStatusCommand: {
53
+ method: HTTP_METHODS.PATCH;
54
+ path: string;
55
+ summary: string;
56
+ request: {
57
+ params: z.ZodObject<{
58
+ trendId: z.ZodUUID;
59
+ }, z.core.$strip>;
60
+ body: z.ZodObject<{
61
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
62
+ }, z.core.$strip>;
63
+ };
64
+ responses: {
65
+ 200: z.ZodObject<{
66
+ uuid: z.ZodUUID;
67
+ slug: z.ZodString;
68
+ title: z.ZodString;
69
+ prompt: z.ZodString;
70
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
71
+ order: z.ZodInt;
72
+ referenceVideo: z.ZodObject<{
73
+ uuid: z.ZodUUID;
74
+ url: z.ZodURL;
75
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
76
+ }, z.core.$strip>;
77
+ preview: z.ZodObject<{
78
+ uuid: z.ZodUUID;
79
+ url: z.ZodURL;
80
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
81
+ }, z.core.$strip>;
82
+ aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
83
+ durationSec: z.ZodInt;
84
+ categories: z.ZodArray<z.ZodObject<{
85
+ uuid: z.ZodUUID;
86
+ slug: z.ZodString;
87
+ name: z.ZodString;
88
+ createdAt: z.ZodISODateTime;
89
+ updatedAt: z.ZodISODateTime;
90
+ }, z.core.$strip>>;
91
+ fields: z.ZodArray<z.ZodObject<{
92
+ uuid: z.ZodUUID;
93
+ type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
94
+ name: z.ZodString;
95
+ order: z.ZodInt;
96
+ }, z.core.$strip>>;
97
+ models: z.ZodArray<z.ZodObject<{
98
+ modelId: z.ZodUUID;
99
+ titleModel: z.ZodString;
100
+ order: z.ZodInt;
101
+ isDefault: z.ZodBoolean;
102
+ isAvailable: z.ZodBoolean;
103
+ }, z.core.$strip>>;
104
+ generationsCount: z.ZodInt;
105
+ createdAt: z.ZodISODateTime;
106
+ updatedAt: z.ZodISODateTime;
107
+ }, z.core.$strip>;
108
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
109
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
110
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
111
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
112
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
113
+ };
114
+ };
115
+ export type UpdateAdminTrendStatusCommandParamsType = z.infer<typeof UpdateAdminTrendStatusCommandParams>;
116
+ export type UpdateAdminTrendStatusCommandBodyType = z.infer<typeof UpdateAdminTrendStatusCommandBody>;
117
+ export type UpdateAdminTrendStatusCommandResponseType = z.infer<typeof UpdateAdminTrendStatusCommandResponse>;
118
+ //# sourceMappingURL=update-admin-trend-status.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-admin-trend-status.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-trend-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAE9E,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxC,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC1G,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAdminTrendStatusCommand = exports.UpdateAdminTrendStatusCommandResponse = exports.UpdateAdminTrendStatusCommandBody = exports.UpdateAdminTrendStatusCommandParams = 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.UpdateAdminTrendStatusCommandParams = zod_1.z.object({
10
+ trendId: zod_1.z.uuid(),
11
+ });
12
+ exports.UpdateAdminTrendStatusCommandBody = zod_1.z.object({
13
+ status: trend_1.TrendStatusSchema,
14
+ });
15
+ exports.UpdateAdminTrendStatusCommandResponse = models_1.AdminTrendResponseSchema;
16
+ exports.UpdateAdminTrendStatusCommand = (0, _common_1.defineContract)({
17
+ method: _common_1.HTTP_METHODS.PATCH,
18
+ path: admin_1.ADMIN_ROUTES.UPDATE_TREND_STATUS(':trendId'),
19
+ summary: 'Publish or unpublish trend',
20
+ request: {
21
+ params: exports.UpdateAdminTrendStatusCommandParams,
22
+ body: exports.UpdateAdminTrendStatusCommandBody,
23
+ },
24
+ responses: {
25
+ 200: exports.UpdateAdminTrendStatusCommandResponse,
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,151 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const UpdateAdminTrendCommandParams: z.ZodObject<{
4
+ trendId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const UpdateAdminTrendCommandBody: z.ZodObject<{
7
+ slug: z.ZodString;
8
+ title: z.ZodString;
9
+ prompt: z.ZodString;
10
+ referenceVideoFileId: z.ZodUUID;
11
+ previewFileId: z.ZodUUID;
12
+ aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
13
+ durationSec: z.ZodInt;
14
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodUUID>>;
15
+ fields: z.ZodArray<z.ZodObject<{
16
+ uuid: z.ZodOptional<z.ZodUUID>;
17
+ type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
18
+ name: z.ZodString;
19
+ }, z.core.$strip>>;
20
+ models: z.ZodArray<z.ZodObject<{
21
+ modelId: z.ZodUUID;
22
+ isDefault: z.ZodDefault<z.ZodBoolean>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
25
+ export declare const UpdateAdminTrendCommandResponse: z.ZodObject<{
26
+ uuid: z.ZodUUID;
27
+ slug: z.ZodString;
28
+ title: z.ZodString;
29
+ prompt: z.ZodString;
30
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
31
+ order: z.ZodInt;
32
+ referenceVideo: z.ZodObject<{
33
+ uuid: z.ZodUUID;
34
+ url: z.ZodURL;
35
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
36
+ }, z.core.$strip>;
37
+ preview: z.ZodObject<{
38
+ uuid: z.ZodUUID;
39
+ url: z.ZodURL;
40
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
41
+ }, z.core.$strip>;
42
+ aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
43
+ durationSec: z.ZodInt;
44
+ categories: z.ZodArray<z.ZodObject<{
45
+ uuid: z.ZodUUID;
46
+ slug: z.ZodString;
47
+ name: z.ZodString;
48
+ createdAt: z.ZodISODateTime;
49
+ updatedAt: z.ZodISODateTime;
50
+ }, z.core.$strip>>;
51
+ fields: z.ZodArray<z.ZodObject<{
52
+ uuid: z.ZodUUID;
53
+ type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
54
+ name: z.ZodString;
55
+ order: z.ZodInt;
56
+ }, z.core.$strip>>;
57
+ models: z.ZodArray<z.ZodObject<{
58
+ modelId: z.ZodUUID;
59
+ titleModel: z.ZodString;
60
+ order: z.ZodInt;
61
+ isDefault: z.ZodBoolean;
62
+ isAvailable: z.ZodBoolean;
63
+ }, z.core.$strip>>;
64
+ generationsCount: z.ZodInt;
65
+ createdAt: z.ZodISODateTime;
66
+ updatedAt: z.ZodISODateTime;
67
+ }, z.core.$strip>;
68
+ export declare const UpdateAdminTrendCommand: {
69
+ method: HTTP_METHODS.PUT;
70
+ path: string;
71
+ summary: string;
72
+ request: {
73
+ params: z.ZodObject<{
74
+ trendId: z.ZodUUID;
75
+ }, z.core.$strip>;
76
+ body: z.ZodObject<{
77
+ slug: z.ZodString;
78
+ title: z.ZodString;
79
+ prompt: z.ZodString;
80
+ referenceVideoFileId: z.ZodUUID;
81
+ previewFileId: z.ZodUUID;
82
+ aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
83
+ durationSec: z.ZodInt;
84
+ categoryIds: z.ZodDefault<z.ZodArray<z.ZodUUID>>;
85
+ fields: z.ZodArray<z.ZodObject<{
86
+ uuid: z.ZodOptional<z.ZodUUID>;
87
+ type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
88
+ name: z.ZodString;
89
+ }, z.core.$strip>>;
90
+ models: z.ZodArray<z.ZodObject<{
91
+ modelId: z.ZodUUID;
92
+ isDefault: z.ZodDefault<z.ZodBoolean>;
93
+ }, z.core.$strip>>;
94
+ }, z.core.$strip>;
95
+ };
96
+ responses: {
97
+ 200: z.ZodObject<{
98
+ uuid: z.ZodUUID;
99
+ slug: z.ZodString;
100
+ title: z.ZodString;
101
+ prompt: z.ZodString;
102
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
103
+ order: z.ZodInt;
104
+ referenceVideo: z.ZodObject<{
105
+ uuid: z.ZodUUID;
106
+ url: z.ZodURL;
107
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
108
+ }, z.core.$strip>;
109
+ preview: z.ZodObject<{
110
+ uuid: z.ZodUUID;
111
+ url: z.ZodURL;
112
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
113
+ }, z.core.$strip>;
114
+ aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
115
+ durationSec: z.ZodInt;
116
+ categories: z.ZodArray<z.ZodObject<{
117
+ uuid: z.ZodUUID;
118
+ slug: z.ZodString;
119
+ name: z.ZodString;
120
+ createdAt: z.ZodISODateTime;
121
+ updatedAt: z.ZodISODateTime;
122
+ }, z.core.$strip>>;
123
+ fields: z.ZodArray<z.ZodObject<{
124
+ uuid: z.ZodUUID;
125
+ type: z.ZodEnum<typeof import("../../../trend").TREND_FIELD_TYPE>;
126
+ name: z.ZodString;
127
+ order: z.ZodInt;
128
+ }, z.core.$strip>>;
129
+ models: z.ZodArray<z.ZodObject<{
130
+ modelId: z.ZodUUID;
131
+ titleModel: z.ZodString;
132
+ order: z.ZodInt;
133
+ isDefault: z.ZodBoolean;
134
+ isAvailable: z.ZodBoolean;
135
+ }, z.core.$strip>>;
136
+ generationsCount: z.ZodInt;
137
+ createdAt: z.ZodISODateTime;
138
+ updatedAt: z.ZodISODateTime;
139
+ }, z.core.$strip>;
140
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
141
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
142
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
143
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
144
+ 409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
145
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
146
+ };
147
+ };
148
+ export type UpdateAdminTrendCommandParamsType = z.infer<typeof UpdateAdminTrendCommandParams>;
149
+ export type UpdateAdminTrendCommandBodyType = z.infer<typeof UpdateAdminTrendCommandBody>;
150
+ export type UpdateAdminTrendCommandResponseType = z.infer<typeof UpdateAdminTrendCommandResponse>;
151
+ //# sourceMappingURL=update-admin-trend.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-admin-trend.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-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,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;iBAAmB,CAAC;AAE5D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBlC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC9F,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,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAdminTrendCommand = exports.UpdateAdminTrendCommandResponse = exports.UpdateAdminTrendCommandBody = exports.UpdateAdminTrendCommandParams = 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.UpdateAdminTrendCommandParams = zod_1.z.object({
10
+ trendId: zod_1.z.uuid(),
11
+ });
12
+ exports.UpdateAdminTrendCommandBody = trend_1.TrendInputSchema;
13
+ exports.UpdateAdminTrendCommandResponse = models_1.AdminTrendResponseSchema;
14
+ exports.UpdateAdminTrendCommand = (0, _common_1.defineContract)({
15
+ method: _common_1.HTTP_METHODS.PUT,
16
+ path: admin_1.ADMIN_ROUTES.UPDATE_TREND(':trendId'),
17
+ summary: 'Replace trend settings; renamed fields are rewritten in prompts',
18
+ request: {
19
+ params: exports.UpdateAdminTrendCommandParams,
20
+ body: exports.UpdateAdminTrendCommandBody,
21
+ },
22
+ responses: {
23
+ 200: exports.UpdateAdminTrendCommandResponse,
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
+ });
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminTrendCategoriesQueryResponse: z.ZodObject<{
4
+ categories: z.ZodArray<z.ZodObject<{
5
+ uuid: z.ZodUUID;
6
+ slug: z.ZodString;
7
+ name: z.ZodString;
8
+ createdAt: z.ZodISODateTime;
9
+ updatedAt: z.ZodISODateTime;
10
+ }, z.core.$strip>>;
11
+ }, z.core.$strip>;
12
+ export declare const GetAdminTrendCategoriesQuery: {
13
+ method: HTTP_METHODS.GET;
14
+ path: "trend-categories";
15
+ summary: string;
16
+ responses: {
17
+ 200: z.ZodObject<{
18
+ categories: z.ZodArray<z.ZodObject<{
19
+ uuid: z.ZodUUID;
20
+ slug: z.ZodString;
21
+ name: z.ZodString;
22
+ createdAt: z.ZodISODateTime;
23
+ updatedAt: z.ZodISODateTime;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
27
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
28
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
29
+ };
30
+ };
31
+ export type GetAdminTrendCategoriesQueryResponseType = z.infer<typeof GetAdminTrendCategoriesQueryResponse>;
32
+ //# sourceMappingURL=get-admin-trend-categories.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-trend-categories.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-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,oCAAoC;;;;;;;;iBAE/C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;CAUvC,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminTrendCategoriesQuery = exports.GetAdminTrendCategoriesQueryResponse = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.GetAdminTrendCategoriesQueryResponse = zod_1.z.object({
9
+ categories: zod_1.z.array(models_1.AdminTrendCategoryResponseSchema),
10
+ });
11
+ exports.GetAdminTrendCategoriesQuery = (0, _common_1.defineContract)({
12
+ method: _common_1.HTTP_METHODS.GET,
13
+ path: admin_1.ADMIN_ROUTES.GET_TREND_CATEGORIES,
14
+ summary: 'Get all trend categories',
15
+ responses: {
16
+ 200: exports.GetAdminTrendCategoriesQueryResponse,
17
+ 401: _common_1.HttpErrorResponseSchema,
18
+ 403: _common_1.HttpErrorResponseSchema,
19
+ 500: _common_1.HttpErrorResponseSchema,
20
+ },
21
+ });
@@ -0,0 +1,110 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminTrendQueryParams: z.ZodObject<{
4
+ trendId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const GetAdminTrendQueryResponse: z.ZodObject<{
7
+ uuid: z.ZodUUID;
8
+ slug: z.ZodString;
9
+ title: z.ZodString;
10
+ prompt: z.ZodString;
11
+ status: z.ZodEnum<typeof import("../../..").TREND_STATUS>;
12
+ order: z.ZodInt;
13
+ referenceVideo: z.ZodObject<{
14
+ uuid: z.ZodUUID;
15
+ url: z.ZodURL;
16
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
17
+ }, z.core.$strip>;
18
+ preview: z.ZodObject<{
19
+ uuid: z.ZodUUID;
20
+ url: z.ZodURL;
21
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
22
+ }, z.core.$strip>;
23
+ aspectRatio: z.ZodEnum<typeof import("../../..").TREND_ASPECT_RATIO>;
24
+ durationSec: z.ZodInt;
25
+ categories: z.ZodArray<z.ZodObject<{
26
+ uuid: z.ZodUUID;
27
+ slug: z.ZodString;
28
+ name: z.ZodString;
29
+ createdAt: z.ZodISODateTime;
30
+ updatedAt: z.ZodISODateTime;
31
+ }, z.core.$strip>>;
32
+ fields: z.ZodArray<z.ZodObject<{
33
+ uuid: z.ZodUUID;
34
+ type: z.ZodEnum<typeof import("../../..").TREND_FIELD_TYPE>;
35
+ name: z.ZodString;
36
+ order: z.ZodInt;
37
+ }, z.core.$strip>>;
38
+ models: z.ZodArray<z.ZodObject<{
39
+ modelId: z.ZodUUID;
40
+ titleModel: z.ZodString;
41
+ order: z.ZodInt;
42
+ isDefault: z.ZodBoolean;
43
+ isAvailable: z.ZodBoolean;
44
+ }, z.core.$strip>>;
45
+ generationsCount: z.ZodInt;
46
+ createdAt: z.ZodISODateTime;
47
+ updatedAt: z.ZodISODateTime;
48
+ }, z.core.$strip>;
49
+ export declare const GetAdminTrendQuery: {
50
+ method: HTTP_METHODS.GET;
51
+ path: string;
52
+ summary: string;
53
+ request: {
54
+ params: z.ZodObject<{
55
+ trendId: z.ZodUUID;
56
+ }, z.core.$strip>;
57
+ };
58
+ responses: {
59
+ 200: z.ZodObject<{
60
+ uuid: z.ZodUUID;
61
+ slug: z.ZodString;
62
+ title: z.ZodString;
63
+ prompt: z.ZodString;
64
+ status: z.ZodEnum<typeof import("../../..").TREND_STATUS>;
65
+ order: z.ZodInt;
66
+ referenceVideo: z.ZodObject<{
67
+ uuid: z.ZodUUID;
68
+ url: z.ZodURL;
69
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
70
+ }, z.core.$strip>;
71
+ preview: z.ZodObject<{
72
+ uuid: z.ZodUUID;
73
+ url: z.ZodURL;
74
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
75
+ }, z.core.$strip>;
76
+ aspectRatio: z.ZodEnum<typeof import("../../..").TREND_ASPECT_RATIO>;
77
+ durationSec: z.ZodInt;
78
+ categories: z.ZodArray<z.ZodObject<{
79
+ uuid: z.ZodUUID;
80
+ slug: z.ZodString;
81
+ name: z.ZodString;
82
+ createdAt: z.ZodISODateTime;
83
+ updatedAt: z.ZodISODateTime;
84
+ }, z.core.$strip>>;
85
+ fields: z.ZodArray<z.ZodObject<{
86
+ uuid: z.ZodUUID;
87
+ type: z.ZodEnum<typeof import("../../..").TREND_FIELD_TYPE>;
88
+ name: z.ZodString;
89
+ order: z.ZodInt;
90
+ }, z.core.$strip>>;
91
+ models: z.ZodArray<z.ZodObject<{
92
+ modelId: z.ZodUUID;
93
+ titleModel: z.ZodString;
94
+ order: z.ZodInt;
95
+ isDefault: z.ZodBoolean;
96
+ isAvailable: z.ZodBoolean;
97
+ }, z.core.$strip>>;
98
+ generationsCount: z.ZodInt;
99
+ createdAt: z.ZodISODateTime;
100
+ updatedAt: z.ZodISODateTime;
101
+ }, z.core.$strip>;
102
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
103
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
104
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
105
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
106
+ };
107
+ };
108
+ export type GetAdminTrendQueryParamsType = z.infer<typeof GetAdminTrendQueryParams>;
109
+ export type GetAdminTrendQueryResponseType = z.infer<typeof GetAdminTrendQueryResponse>;
110
+ //# sourceMappingURL=get-admin-trend.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-trend.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-trend.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2B,CAAC;AAEnE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc7B,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminTrendQuery = exports.GetAdminTrendQueryResponse = exports.GetAdminTrendQueryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.GetAdminTrendQueryParams = zod_1.z.object({
9
+ trendId: zod_1.z.uuid(),
10
+ });
11
+ exports.GetAdminTrendQueryResponse = models_1.AdminTrendResponseSchema;
12
+ exports.GetAdminTrendQuery = (0, _common_1.defineContract)({
13
+ method: _common_1.HTTP_METHODS.GET,
14
+ path: admin_1.ADMIN_ROUTES.GET_TREND(':trendId'),
15
+ summary: 'Get trend with all settings and generations count',
16
+ request: {
17
+ params: exports.GetAdminTrendQueryParams,
18
+ },
19
+ responses: {
20
+ 200: exports.GetAdminTrendQueryResponse,
21
+ 401: _common_1.HttpErrorResponseSchema,
22
+ 403: _common_1.HttpErrorResponseSchema,
23
+ 404: _common_1.HttpErrorResponseSchema,
24
+ 500: _common_1.HttpErrorResponseSchema,
25
+ },
26
+ });
@@ -0,0 +1,63 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminTrendsQueryQuery: z.ZodObject<{
4
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
6
+ search: z.ZodOptional<z.ZodString>;
7
+ status: z.ZodOptional<z.ZodEnum<typeof import("../../../trend").TREND_STATUS>>;
8
+ categoryId: z.ZodOptional<z.ZodUUID>;
9
+ }, z.core.$strip>;
10
+ export declare const GetAdminTrendsQueryResponse: z.ZodObject<{
11
+ trends: z.ZodArray<z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ slug: z.ZodString;
14
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
15
+ order: z.ZodInt;
16
+ title: z.ZodString;
17
+ previewUrl: z.ZodURL;
18
+ generationsCount: z.ZodInt;
19
+ createdAt: z.ZodISODateTime;
20
+ updatedAt: z.ZodISODateTime;
21
+ }, z.core.$strip>>;
22
+ total: z.ZodNumber;
23
+ page: z.ZodNumber;
24
+ limit: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ export declare const GetAdminTrendsQuery: {
27
+ method: HTTP_METHODS.GET;
28
+ path: "trends";
29
+ summary: string;
30
+ request: {
31
+ query: z.ZodObject<{
32
+ page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
33
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
34
+ search: z.ZodOptional<z.ZodString>;
35
+ status: z.ZodOptional<z.ZodEnum<typeof import("../../../trend").TREND_STATUS>>;
36
+ categoryId: z.ZodOptional<z.ZodUUID>;
37
+ }, z.core.$strip>;
38
+ };
39
+ responses: {
40
+ 200: z.ZodObject<{
41
+ trends: z.ZodArray<z.ZodObject<{
42
+ uuid: z.ZodUUID;
43
+ slug: z.ZodString;
44
+ status: z.ZodEnum<typeof import("../../../trend").TREND_STATUS>;
45
+ order: z.ZodInt;
46
+ title: z.ZodString;
47
+ previewUrl: z.ZodURL;
48
+ generationsCount: z.ZodInt;
49
+ createdAt: z.ZodISODateTime;
50
+ updatedAt: z.ZodISODateTime;
51
+ }, z.core.$strip>>;
52
+ total: z.ZodNumber;
53
+ page: z.ZodNumber;
54
+ limit: z.ZodNumber;
55
+ }, z.core.$strip>;
56
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
57
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
58
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
59
+ };
60
+ };
61
+ export type GetAdminTrendsQueryQueryType = z.infer<typeof GetAdminTrendsQueryQuery>;
62
+ export type GetAdminTrendsQueryResponseType = z.infer<typeof GetAdminTrendsQueryResponse>;
63
+ //# sourceMappingURL=get-admin-trends.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-trends.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-trends.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKtH,eAAO,MAAM,wBAAwB;;;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;iBAKtC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa9B,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminTrendsQuery = exports.GetAdminTrendsQueryResponse = exports.GetAdminTrendsQueryQuery = 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.GetAdminTrendsQueryQuery = (0, _common_1.defineOffsetPaginationQuery)().extend({
10
+ search: zod_1.z.string().trim().max(255).optional(),
11
+ status: trend_1.TrendStatusSchema.optional(),
12
+ categoryId: zod_1.z.uuid().optional(),
13
+ });
14
+ exports.GetAdminTrendsQueryResponse = zod_1.z.object({
15
+ trends: zod_1.z.array(models_1.AdminTrendListItemSchema),
16
+ total: zod_1.z.number().int().nonnegative(),
17
+ page: zod_1.z.number().int().positive(),
18
+ limit: zod_1.z.number().int().positive(),
19
+ });
20
+ exports.GetAdminTrendsQuery = (0, _common_1.defineContract)({
21
+ method: _common_1.HTTP_METHODS.GET,
22
+ path: admin_1.ADMIN_ROUTES.GET_TRENDS,
23
+ summary: 'Get trends list ordered by catalog order',
24
+ request: {
25
+ query: exports.GetAdminTrendsQueryQuery,
26
+ },
27
+ responses: {
28
+ 200: exports.GetAdminTrendsQueryResponse,
29
+ 401: _common_1.HttpErrorResponseSchema,
30
+ 403: _common_1.HttpErrorResponseSchema,
31
+ 500: _common_1.HttpErrorResponseSchema,
32
+ },
33
+ });
@@ -22,4 +22,7 @@ export * from './get-admin-partner-referral-deposits.query';
22
22
  export * from './get-admin-dashboard.query';
23
23
  export * from './export-admin-dashboard.query';
24
24
  export * from './get-admin-linked-account-clusters.query';
25
+ export * from './get-admin-trends.query';
26
+ export * from './get-admin-trend.query';
27
+ export * from './get-admin-trend-categories.query';
25
28
  //# sourceMappingURL=index.d.ts.map