@ttt-productions/ttt-core 0.2.17 → 0.2.19
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/dist/schemas/admin.d.ts +225 -0
- package/dist/schemas/admin.d.ts.map +1 -1
- package/dist/schemas/admin.js +36 -0
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/chat.d.ts +2 -2
- package/dist/schemas/library.d.ts +12 -12
- package/dist/schemas/social.d.ts +33 -0
- package/dist/schemas/social.d.ts.map +1 -1
- package/dist/schemas/social.js +4 -0
- package/dist/schemas/social.js.map +1 -1
- package/dist/schemas/users.d.ts +2 -2
- package/package.json +1 -1
package/dist/schemas/admin.d.ts
CHANGED
|
@@ -41,4 +41,229 @@ export declare const ReviewContentAppealInputSchema: z.ZodObject<{
|
|
|
41
41
|
adminNotes: string;
|
|
42
42
|
}>;
|
|
43
43
|
export type ReviewContentAppealInput = z.infer<typeof ReviewContentAppealInputSchema>;
|
|
44
|
+
export declare const UpdateFuturePlansInputSchema: z.ZodObject<{
|
|
45
|
+
plans: z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
order: z.ZodNumber;
|
|
50
|
+
videoUrl: z.ZodOptional<z.ZodString>;
|
|
51
|
+
mediaType: z.ZodOptional<z.ZodEnum<["video", "image", "audio", "other"]>>;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
id: string;
|
|
54
|
+
title: string;
|
|
55
|
+
description: string;
|
|
56
|
+
order: number;
|
|
57
|
+
videoUrl?: string | undefined;
|
|
58
|
+
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
id: string;
|
|
61
|
+
title: string;
|
|
62
|
+
description: string;
|
|
63
|
+
order: number;
|
|
64
|
+
videoUrl?: string | undefined;
|
|
65
|
+
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
66
|
+
}>, "many">;
|
|
67
|
+
}, "strict", z.ZodTypeAny, {
|
|
68
|
+
plans: {
|
|
69
|
+
id: string;
|
|
70
|
+
title: string;
|
|
71
|
+
description: string;
|
|
72
|
+
order: number;
|
|
73
|
+
videoUrl?: string | undefined;
|
|
74
|
+
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
75
|
+
}[];
|
|
76
|
+
}, {
|
|
77
|
+
plans: {
|
|
78
|
+
id: string;
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
order: number;
|
|
82
|
+
videoUrl?: string | undefined;
|
|
83
|
+
mediaType?: "video" | "image" | "audio" | "other" | undefined;
|
|
84
|
+
}[];
|
|
85
|
+
}>;
|
|
86
|
+
export type UpdateFuturePlansInput = z.infer<typeof UpdateFuturePlansInputSchema>;
|
|
87
|
+
export declare const UpdateRulesAndAgreementsInputSchema: z.ZodEffects<z.ZodObject<{
|
|
88
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
title: z.ZodString;
|
|
91
|
+
description: z.ZodString;
|
|
92
|
+
videoUrl: z.ZodOptional<z.ZodString>;
|
|
93
|
+
group: z.ZodOptional<z.ZodEnum<["generic", "projectType", "libraryType", "universe", "merchandising"]>>;
|
|
94
|
+
subgroup: z.ZodOptional<z.ZodEnum<["Tales", "Tunes", "Television", "entertainment", "educational", "newsPolitical"]>>;
|
|
95
|
+
order: z.ZodNumber;
|
|
96
|
+
}, "strict", z.ZodTypeAny, {
|
|
97
|
+
id: string;
|
|
98
|
+
title: string;
|
|
99
|
+
description: string;
|
|
100
|
+
order: number;
|
|
101
|
+
videoUrl?: string | undefined;
|
|
102
|
+
group?: "generic" | "projectType" | "libraryType" | "universe" | "merchandising" | undefined;
|
|
103
|
+
subgroup?: "entertainment" | "educational" | "newsPolitical" | "Tales" | "Tunes" | "Television" | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
id: string;
|
|
106
|
+
title: string;
|
|
107
|
+
description: string;
|
|
108
|
+
order: number;
|
|
109
|
+
videoUrl?: string | undefined;
|
|
110
|
+
group?: "generic" | "projectType" | "libraryType" | "universe" | "merchandising" | undefined;
|
|
111
|
+
subgroup?: "entertainment" | "educational" | "newsPolitical" | "Tales" | "Tunes" | "Television" | undefined;
|
|
112
|
+
}>, "many">>;
|
|
113
|
+
agreements: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
tales: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
points: z.ZodArray<z.ZodString, "many">;
|
|
116
|
+
videoUrl: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, "strict", z.ZodTypeAny, {
|
|
118
|
+
points: string[];
|
|
119
|
+
videoUrl?: string | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
points: string[];
|
|
122
|
+
videoUrl?: string | undefined;
|
|
123
|
+
}>>;
|
|
124
|
+
tunes: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
points: z.ZodArray<z.ZodString, "many">;
|
|
126
|
+
videoUrl: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, "strict", z.ZodTypeAny, {
|
|
128
|
+
points: string[];
|
|
129
|
+
videoUrl?: string | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
points: string[];
|
|
132
|
+
videoUrl?: string | undefined;
|
|
133
|
+
}>>;
|
|
134
|
+
television: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
points: z.ZodArray<z.ZodString, "many">;
|
|
136
|
+
videoUrl: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, "strict", z.ZodTypeAny, {
|
|
138
|
+
points: string[];
|
|
139
|
+
videoUrl?: string | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
points: string[];
|
|
142
|
+
videoUrl?: string | undefined;
|
|
143
|
+
}>>;
|
|
144
|
+
}, "strict", z.ZodTypeAny, {
|
|
145
|
+
tales?: {
|
|
146
|
+
points: string[];
|
|
147
|
+
videoUrl?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
tunes?: {
|
|
150
|
+
points: string[];
|
|
151
|
+
videoUrl?: string | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
television?: {
|
|
154
|
+
points: string[];
|
|
155
|
+
videoUrl?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
tales?: {
|
|
159
|
+
points: string[];
|
|
160
|
+
videoUrl?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
tunes?: {
|
|
163
|
+
points: string[];
|
|
164
|
+
videoUrl?: string | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
television?: {
|
|
167
|
+
points: string[];
|
|
168
|
+
videoUrl?: string | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
}>>;
|
|
171
|
+
}, "strict", z.ZodTypeAny, {
|
|
172
|
+
rules?: {
|
|
173
|
+
id: string;
|
|
174
|
+
title: string;
|
|
175
|
+
description: string;
|
|
176
|
+
order: number;
|
|
177
|
+
videoUrl?: string | undefined;
|
|
178
|
+
group?: "generic" | "projectType" | "libraryType" | "universe" | "merchandising" | undefined;
|
|
179
|
+
subgroup?: "entertainment" | "educational" | "newsPolitical" | "Tales" | "Tunes" | "Television" | undefined;
|
|
180
|
+
}[] | undefined;
|
|
181
|
+
agreements?: {
|
|
182
|
+
tales?: {
|
|
183
|
+
points: string[];
|
|
184
|
+
videoUrl?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
tunes?: {
|
|
187
|
+
points: string[];
|
|
188
|
+
videoUrl?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
television?: {
|
|
191
|
+
points: string[];
|
|
192
|
+
videoUrl?: string | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
rules?: {
|
|
197
|
+
id: string;
|
|
198
|
+
title: string;
|
|
199
|
+
description: string;
|
|
200
|
+
order: number;
|
|
201
|
+
videoUrl?: string | undefined;
|
|
202
|
+
group?: "generic" | "projectType" | "libraryType" | "universe" | "merchandising" | undefined;
|
|
203
|
+
subgroup?: "entertainment" | "educational" | "newsPolitical" | "Tales" | "Tunes" | "Television" | undefined;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
agreements?: {
|
|
206
|
+
tales?: {
|
|
207
|
+
points: string[];
|
|
208
|
+
videoUrl?: string | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
tunes?: {
|
|
211
|
+
points: string[];
|
|
212
|
+
videoUrl?: string | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
television?: {
|
|
215
|
+
points: string[];
|
|
216
|
+
videoUrl?: string | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
}>, {
|
|
220
|
+
rules?: {
|
|
221
|
+
id: string;
|
|
222
|
+
title: string;
|
|
223
|
+
description: string;
|
|
224
|
+
order: number;
|
|
225
|
+
videoUrl?: string | undefined;
|
|
226
|
+
group?: "generic" | "projectType" | "libraryType" | "universe" | "merchandising" | undefined;
|
|
227
|
+
subgroup?: "entertainment" | "educational" | "newsPolitical" | "Tales" | "Tunes" | "Television" | undefined;
|
|
228
|
+
}[] | undefined;
|
|
229
|
+
agreements?: {
|
|
230
|
+
tales?: {
|
|
231
|
+
points: string[];
|
|
232
|
+
videoUrl?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
tunes?: {
|
|
235
|
+
points: string[];
|
|
236
|
+
videoUrl?: string | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
television?: {
|
|
239
|
+
points: string[];
|
|
240
|
+
videoUrl?: string | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
rules?: {
|
|
245
|
+
id: string;
|
|
246
|
+
title: string;
|
|
247
|
+
description: string;
|
|
248
|
+
order: number;
|
|
249
|
+
videoUrl?: string | undefined;
|
|
250
|
+
group?: "generic" | "projectType" | "libraryType" | "universe" | "merchandising" | undefined;
|
|
251
|
+
subgroup?: "entertainment" | "educational" | "newsPolitical" | "Tales" | "Tunes" | "Television" | undefined;
|
|
252
|
+
}[] | undefined;
|
|
253
|
+
agreements?: {
|
|
254
|
+
tales?: {
|
|
255
|
+
points: string[];
|
|
256
|
+
videoUrl?: string | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
tunes?: {
|
|
259
|
+
points: string[];
|
|
260
|
+
videoUrl?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
television?: {
|
|
263
|
+
points: string[];
|
|
264
|
+
videoUrl?: string | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
}>;
|
|
268
|
+
export type UpdateRulesAndAgreementsInput = z.infer<typeof UpdateRulesAndAgreementsInputSchema>;
|
|
44
269
|
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AASvD,eAAO,MAAM,oCAAoC,iDAAwB,CAAC;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,8BAA8B;;;;;;EAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAI1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;EAKhC,CAAC;AACZ,MAAM,MAAM,wBAAwB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AAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
package/dist/schemas/admin.js
CHANGED
|
@@ -21,4 +21,40 @@ export const ReviewContentAppealInputSchema = z.object({
|
|
|
21
21
|
decision: z.enum(['approved', 'denied']),
|
|
22
22
|
adminNotes: z.string().max(2000),
|
|
23
23
|
}).strict();
|
|
24
|
+
// --- System-doc admin updates ---
|
|
25
|
+
const FuturePlanItemSchema = z.object({
|
|
26
|
+
id: z.string().min(1).max(128),
|
|
27
|
+
title: z.string().min(1).max(200),
|
|
28
|
+
description: z.string().min(1).max(4000),
|
|
29
|
+
order: z.number().int().min(0),
|
|
30
|
+
videoUrl: z.string().url().max(2048).optional(),
|
|
31
|
+
mediaType: z.enum(['video', 'image', 'audio', 'other']).optional(),
|
|
32
|
+
}).strict();
|
|
33
|
+
export const UpdateFuturePlansInputSchema = z.object({
|
|
34
|
+
plans: z.array(FuturePlanItemSchema).max(200),
|
|
35
|
+
}).strict();
|
|
36
|
+
const RuleSchema = z.object({
|
|
37
|
+
id: z.string().min(1).max(128),
|
|
38
|
+
title: z.string().min(1).max(200),
|
|
39
|
+
description: z.string().min(1).max(4000),
|
|
40
|
+
videoUrl: z.string().url().max(2048).optional(),
|
|
41
|
+
group: z.enum(['generic', 'projectType', 'libraryType', 'universe', 'merchandising']).optional(),
|
|
42
|
+
subgroup: z.enum(['Tales', 'Tunes', 'Television', 'entertainment', 'educational', 'newsPolitical']).optional(),
|
|
43
|
+
order: z.number().int().min(0),
|
|
44
|
+
}).strict();
|
|
45
|
+
const AgreementCategorySchema = z.object({
|
|
46
|
+
points: z.array(z.string().min(1).max(2000)).max(200),
|
|
47
|
+
videoUrl: z.string().url().max(2048).optional(),
|
|
48
|
+
}).strict();
|
|
49
|
+
const AgreementsSchema = z.object({
|
|
50
|
+
tales: AgreementCategorySchema.optional(),
|
|
51
|
+
tunes: AgreementCategorySchema.optional(),
|
|
52
|
+
television: AgreementCategorySchema.optional(),
|
|
53
|
+
}).strict();
|
|
54
|
+
// Partial update — admin UI may send only `rules` or only `agreements`.
|
|
55
|
+
// Server merges. At least one field must be present.
|
|
56
|
+
export const UpdateRulesAndAgreementsInputSchema = z.object({
|
|
57
|
+
rules: z.array(RuleSchema).max(500).optional(),
|
|
58
|
+
agreements: AgreementsSchema.optional(),
|
|
59
|
+
}).strict().refine((data) => data.rules !== undefined || data.agreements !== undefined, { message: 'At least one of `rules` or `agreements` must be provided.' });
|
|
24
60
|
//# sourceMappingURL=admin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG7D,MAAM,gBAAgB,GAAwC;IAC5D,eAAe;IACf,eAAe;IACf,YAAY;IACZ,gBAAgB;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAG1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,WAAW,EAAE,iBAAiB;CAC/B,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;CACrD,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD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AAuB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,wEAAwE;AACxE,qDAAqD;AACrD,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC9C,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAChB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EACnE,EAAE,OAAO,EAAE,2DAA2D,EAAE,CACzE,CAAC"}
|
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -278,15 +278,15 @@ export declare const UpdateChatChannelInputSchema: z.ZodObject<{
|
|
|
278
278
|
}, "strict", z.ZodTypeAny, {
|
|
279
279
|
projectId: string;
|
|
280
280
|
channelId: string;
|
|
281
|
-
channelName?: string | undefined;
|
|
282
281
|
description?: string | undefined;
|
|
282
|
+
channelName?: string | undefined;
|
|
283
283
|
requiredRoles?: string[] | undefined;
|
|
284
284
|
allowedUserIds?: string[] | undefined;
|
|
285
285
|
}, {
|
|
286
286
|
projectId: string;
|
|
287
287
|
channelId: string;
|
|
288
|
-
channelName?: string | undefined;
|
|
289
288
|
description?: string | undefined;
|
|
289
|
+
channelName?: string | undefined;
|
|
290
290
|
requiredRoles?: string[] | undefined;
|
|
291
291
|
allowedUserIds?: string[] | undefined;
|
|
292
292
|
}>;
|
|
@@ -5,12 +5,12 @@ export declare const CreateChapterInputSchema: z.ZodObject<{
|
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
}, "strict", z.ZodTypeAny, {
|
|
7
7
|
projectId: string;
|
|
8
|
-
taleId: string;
|
|
9
8
|
title: string;
|
|
9
|
+
taleId: string;
|
|
10
10
|
}, {
|
|
11
11
|
projectId: string;
|
|
12
|
-
taleId: string;
|
|
13
12
|
title: string;
|
|
13
|
+
taleId: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type CreateChapterInput = z.infer<typeof CreateChapterInputSchema>;
|
|
16
16
|
export declare const CreateShowInputSchema: z.ZodObject<{
|
|
@@ -105,14 +105,14 @@ export declare const UpdateShowDetailsInputSchema: z.ZodObject<{
|
|
|
105
105
|
projectId: string;
|
|
106
106
|
televisionId: string;
|
|
107
107
|
showId: string;
|
|
108
|
-
description?: string | undefined;
|
|
109
108
|
title?: string | undefined;
|
|
109
|
+
description?: string | undefined;
|
|
110
110
|
}, {
|
|
111
111
|
projectId: string;
|
|
112
112
|
televisionId: string;
|
|
113
113
|
showId: string;
|
|
114
|
-
description?: string | undefined;
|
|
115
114
|
title?: string | undefined;
|
|
115
|
+
description?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
export type UpdateShowDetailsInput = z.infer<typeof UpdateShowDetailsInputSchema>;
|
|
118
118
|
export declare const UpdateSongDetailsInputSchema: z.ZodObject<{
|
|
@@ -125,14 +125,14 @@ export declare const UpdateSongDetailsInputSchema: z.ZodObject<{
|
|
|
125
125
|
projectId: string;
|
|
126
126
|
tuneId: string;
|
|
127
127
|
songId: string;
|
|
128
|
-
description?: string | undefined;
|
|
129
128
|
title?: string | undefined;
|
|
129
|
+
description?: string | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
projectId: string;
|
|
132
132
|
tuneId: string;
|
|
133
133
|
songId: string;
|
|
134
|
-
description?: string | undefined;
|
|
135
134
|
title?: string | undefined;
|
|
135
|
+
description?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
export type UpdateSongDetailsInput = z.infer<typeof UpdateSongDetailsInputSchema>;
|
|
138
138
|
export declare const UpdateTaleCategoriesInputSchema: z.ZodObject<{
|
|
@@ -160,13 +160,13 @@ export declare const UpdateTaleDetailsInputSchema: z.ZodObject<{
|
|
|
160
160
|
}, "strict", z.ZodTypeAny, {
|
|
161
161
|
projectId: string;
|
|
162
162
|
taleId: string;
|
|
163
|
-
description?: string | undefined;
|
|
164
163
|
title?: string | undefined;
|
|
164
|
+
description?: string | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
projectId: string;
|
|
167
167
|
taleId: string;
|
|
168
|
-
description?: string | undefined;
|
|
169
168
|
title?: string | undefined;
|
|
169
|
+
description?: string | undefined;
|
|
170
170
|
}>;
|
|
171
171
|
export type UpdateTaleDetailsInput = z.infer<typeof UpdateTaleDetailsInputSchema>;
|
|
172
172
|
export declare const UpdateTelevisionCategoriesInputSchema: z.ZodObject<{
|
|
@@ -194,13 +194,13 @@ export declare const UpdateTelevisionDetailsInputSchema: z.ZodObject<{
|
|
|
194
194
|
}, "strict", z.ZodTypeAny, {
|
|
195
195
|
projectId: string;
|
|
196
196
|
televisionId: string;
|
|
197
|
-
description?: string | undefined;
|
|
198
197
|
title?: string | undefined;
|
|
198
|
+
description?: string | undefined;
|
|
199
199
|
}, {
|
|
200
200
|
projectId: string;
|
|
201
201
|
televisionId: string;
|
|
202
|
-
description?: string | undefined;
|
|
203
202
|
title?: string | undefined;
|
|
203
|
+
description?: string | undefined;
|
|
204
204
|
}>;
|
|
205
205
|
export type UpdateTelevisionDetailsInput = z.infer<typeof UpdateTelevisionDetailsInputSchema>;
|
|
206
206
|
export declare const UpdateTuneCategoriesInputSchema: z.ZodObject<{
|
|
@@ -228,13 +228,13 @@ export declare const UpdateTuneDetailsInputSchema: z.ZodObject<{
|
|
|
228
228
|
}, "strict", z.ZodTypeAny, {
|
|
229
229
|
projectId: string;
|
|
230
230
|
tuneId: string;
|
|
231
|
-
description?: string | undefined;
|
|
232
231
|
title?: string | undefined;
|
|
232
|
+
description?: string | undefined;
|
|
233
233
|
}, {
|
|
234
234
|
projectId: string;
|
|
235
235
|
tuneId: string;
|
|
236
|
-
description?: string | undefined;
|
|
237
236
|
title?: string | undefined;
|
|
237
|
+
description?: string | undefined;
|
|
238
238
|
}>;
|
|
239
239
|
export type UpdateTuneDetailsInput = z.infer<typeof UpdateTuneDetailsInputSchema>;
|
|
240
240
|
//# sourceMappingURL=library.d.ts.map
|
package/dist/schemas/social.d.ts
CHANGED
|
@@ -31,4 +31,37 @@ export declare const UnfollowUserInputSchema: z.ZodObject<{
|
|
|
31
31
|
targetUid: string;
|
|
32
32
|
}>;
|
|
33
33
|
export type UnfollowUserInput = z.infer<typeof UnfollowUserInputSchema>;
|
|
34
|
+
export declare const AddToMentionHistoryInputSchema: z.ZodObject<{
|
|
35
|
+
mention: z.ZodObject<{
|
|
36
|
+
placeholder: z.ZodString;
|
|
37
|
+
type: z.ZodEnum<["user", "project", "job", "opportunity"]>;
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
text: z.ZodString;
|
|
40
|
+
}, "strict", z.ZodTypeAny, {
|
|
41
|
+
type: "user" | "project" | "job" | "opportunity";
|
|
42
|
+
placeholder: string;
|
|
43
|
+
id: string;
|
|
44
|
+
text: string;
|
|
45
|
+
}, {
|
|
46
|
+
type: "user" | "project" | "job" | "opportunity";
|
|
47
|
+
placeholder: string;
|
|
48
|
+
id: string;
|
|
49
|
+
text: string;
|
|
50
|
+
}>;
|
|
51
|
+
}, "strict", z.ZodTypeAny, {
|
|
52
|
+
mention: {
|
|
53
|
+
type: "user" | "project" | "job" | "opportunity";
|
|
54
|
+
placeholder: string;
|
|
55
|
+
id: string;
|
|
56
|
+
text: string;
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
mention: {
|
|
60
|
+
type: "user" | "project" | "job" | "opportunity";
|
|
61
|
+
placeholder: string;
|
|
62
|
+
id: string;
|
|
63
|
+
text: string;
|
|
64
|
+
};
|
|
65
|
+
}>;
|
|
66
|
+
export type AddToMentionHistoryInput = z.infer<typeof AddToMentionHistoryInputSchema>;
|
|
34
67
|
//# sourceMappingURL=social.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/schemas/social.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/schemas/social.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;EAE5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B;;;;;;EAE9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,qBAAqB;;;;;;EAEvB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,uBAAuB;;;;;;EAEzB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
package/dist/schemas/social.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { MentionSchema } from '@ttt-productions/media-contracts';
|
|
2
3
|
import { userIdSchema } from './atoms.js';
|
|
3
4
|
export const LikeStreetzPostInputSchema = z.object({
|
|
4
5
|
postId: z.string().min(1),
|
|
@@ -12,4 +13,7 @@ export const FollowUserInputSchema = z.object({
|
|
|
12
13
|
export const UnfollowUserInputSchema = z.object({
|
|
13
14
|
targetUid: userIdSchema,
|
|
14
15
|
}).strict();
|
|
16
|
+
export const AddToMentionHistoryInputSchema = z.object({
|
|
17
|
+
mention: MentionSchema,
|
|
18
|
+
}).strict();
|
|
15
19
|
//# sourceMappingURL=social.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/schemas/social.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/schemas/social.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,aAAa;CACvB,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
package/dist/schemas/users.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export declare const RegisterUserInputSchema: z.ZodObject<{
|
|
|
27
27
|
terms: true;
|
|
28
28
|
}>;
|
|
29
29
|
}, "strict", z.ZodTypeAny, {
|
|
30
|
-
displayName: string;
|
|
31
30
|
agreements: {
|
|
32
31
|
age: true;
|
|
33
32
|
nudity: true;
|
|
@@ -35,8 +34,8 @@ export declare const RegisterUserInputSchema: z.ZodObject<{
|
|
|
35
34
|
cookies: true;
|
|
36
35
|
terms: true;
|
|
37
36
|
};
|
|
38
|
-
}, {
|
|
39
37
|
displayName: string;
|
|
38
|
+
}, {
|
|
40
39
|
agreements: {
|
|
41
40
|
age: true;
|
|
42
41
|
nudity: true;
|
|
@@ -44,6 +43,7 @@ export declare const RegisterUserInputSchema: z.ZodObject<{
|
|
|
44
43
|
cookies: true;
|
|
45
44
|
terms: true;
|
|
46
45
|
};
|
|
46
|
+
displayName: string;
|
|
47
47
|
}>;
|
|
48
48
|
export type RegisterUserInput = z.infer<typeof RegisterUserInputSchema>;
|
|
49
49
|
export declare const SetUserStatusInputSchema: z.ZodObject<{
|