@zyacreatives/shared 2.1.3 → 2.1.5
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/brand.d.ts +1 -1
- package/dist/schemas/brand.js +1 -1
- package/dist/schemas/creative.d.ts +1 -1
- package/dist/schemas/creative.js +1 -1
- package/dist/schemas/post.d.ts +3 -4
- package/dist/schemas/post.js +3 -9
- package/package.json +1 -1
- package/src/schemas/brand.ts +1 -1
- package/src/schemas/creative.ts +1 -1
- package/src/schemas/post.ts +3 -9
package/dist/schemas/brand.d.ts
CHANGED
package/dist/schemas/brand.js
CHANGED
|
@@ -183,5 +183,5 @@ exports.SearchBrandInputSchema = zod_openapi_1.z.object({
|
|
|
183
183
|
});
|
|
184
184
|
exports.SearchBrandOutputSchema = zod_openapi_1.z.object({
|
|
185
185
|
brands: zod_openapi_1.z.array(exports.BrandWithUserEntitySchema),
|
|
186
|
-
nextCursor: zod_openapi_1.z.string().optional(),
|
|
186
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
187
187
|
});
|
package/dist/schemas/creative.js
CHANGED
|
@@ -243,5 +243,5 @@ exports.SearchCreativeInputSchema = zod_openapi_1.z.object({
|
|
|
243
243
|
});
|
|
244
244
|
exports.SearchCreativeOutputSchema = zod_openapi_1.z.object({
|
|
245
245
|
creatives: zod_openapi_1.z.array(exports.CreativeWithUserEntitySchema),
|
|
246
|
-
nextCursor: zod_openapi_1.z.string().optional(),
|
|
246
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
247
247
|
});
|
package/dist/schemas/post.d.ts
CHANGED
|
@@ -438,11 +438,10 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
|
|
|
438
438
|
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
439
439
|
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
440
440
|
}, z.core.$strip>>;
|
|
441
|
-
nextCursor: z.ZodOptional<z.ZodString
|
|
441
|
+
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
442
442
|
}, z.core.$strip>;
|
|
443
443
|
export declare const SearchPostInputSchema: z.ZodObject<{
|
|
444
|
-
|
|
445
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
444
|
+
queryString: z.ZodString;
|
|
446
445
|
cursor: z.ZodOptional<z.ZodString>;
|
|
447
446
|
}, z.core.$strip>;
|
|
448
447
|
export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
@@ -513,5 +512,5 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
|
|
|
513
512
|
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
514
513
|
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
515
514
|
}, z.core.$strip>>;
|
|
516
|
-
nextCursor: z.ZodOptional<z.ZodString
|
|
515
|
+
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
517
516
|
}, z.core.$strip>;
|
package/dist/schemas/post.js
CHANGED
|
@@ -187,22 +187,16 @@ exports.GetFeedInputSchema = zod_openapi_1.z.object({
|
|
|
187
187
|
});
|
|
188
188
|
exports.GetFeedOutputSchema = zod_openapi_1.z.object({
|
|
189
189
|
feed: zod_openapi_1.z.array(exports.FeedPostEntitySchema),
|
|
190
|
-
nextCursor: zod_openapi_1.z.string().optional(),
|
|
190
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
191
191
|
});
|
|
192
192
|
exports.SearchPostInputSchema = zod_openapi_1.z.object({
|
|
193
|
-
|
|
193
|
+
queryString: zod_openapi_1.z
|
|
194
194
|
.string()
|
|
195
195
|
.min(1, { message: "Search string cannot be empty" })
|
|
196
196
|
.max(200, { message: "Search string cannot exceed 200 characters" }),
|
|
197
|
-
limit: zod_openapi_1.z.coerce
|
|
198
|
-
.number()
|
|
199
|
-
.int({ message: "Limit must be an integer" })
|
|
200
|
-
.min(1, { message: "Limit must be at least 1" })
|
|
201
|
-
.max(100, { message: "Limit cannot exceed 100" })
|
|
202
|
-
.default(20),
|
|
203
197
|
cursor: zod_openapi_1.z.string().optional(),
|
|
204
198
|
});
|
|
205
199
|
exports.SearchPostOutputSchema = zod_openapi_1.z.object({
|
|
206
200
|
posts: zod_openapi_1.z.array(exports.FeedPostEntitySchema),
|
|
207
|
-
nextCursor: zod_openapi_1.z.string().optional(),
|
|
201
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
208
202
|
});
|
package/package.json
CHANGED
package/src/schemas/brand.ts
CHANGED
package/src/schemas/creative.ts
CHANGED
|
@@ -283,5 +283,5 @@ export const SearchCreativeInputSchema = z.object({
|
|
|
283
283
|
|
|
284
284
|
export const SearchCreativeOutputSchema = z.object({
|
|
285
285
|
creatives: z.array(CreativeWithUserEntitySchema),
|
|
286
|
-
nextCursor: z.string().optional(),
|
|
286
|
+
nextCursor: z.string().optional().nullable(),
|
|
287
287
|
});
|
package/src/schemas/post.ts
CHANGED
|
@@ -213,24 +213,18 @@ export const GetFeedInputSchema = z.object({
|
|
|
213
213
|
|
|
214
214
|
export const GetFeedOutputSchema = z.object({
|
|
215
215
|
feed: z.array(FeedPostEntitySchema),
|
|
216
|
-
nextCursor: z.string().optional(),
|
|
216
|
+
nextCursor: z.string().optional().nullable(),
|
|
217
217
|
});
|
|
218
218
|
|
|
219
219
|
export const SearchPostInputSchema = z.object({
|
|
220
|
-
|
|
220
|
+
queryString: z
|
|
221
221
|
.string()
|
|
222
222
|
.min(1, { message: "Search string cannot be empty" })
|
|
223
223
|
.max(200, { message: "Search string cannot exceed 200 characters" }),
|
|
224
|
-
limit: z.coerce
|
|
225
|
-
.number()
|
|
226
|
-
.int({ message: "Limit must be an integer" })
|
|
227
|
-
.min(1, { message: "Limit must be at least 1" })
|
|
228
|
-
.max(100, { message: "Limit cannot exceed 100" })
|
|
229
|
-
.default(20),
|
|
230
224
|
cursor: z.string().optional(),
|
|
231
225
|
});
|
|
232
226
|
|
|
233
227
|
export const SearchPostOutputSchema = z.object({
|
|
234
228
|
posts: z.array(FeedPostEntitySchema),
|
|
235
|
-
nextCursor: z.string().optional(),
|
|
229
|
+
nextCursor: z.string().optional().nullable(),
|
|
236
230
|
});
|