@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.
@@ -223,5 +223,5 @@ export declare const SearchBrandOutputSchema: z.ZodObject<{
223
223
  }>;
224
224
  }, z.core.$strip>;
225
225
  }, z.core.$strip>>;
226
- nextCursor: z.ZodOptional<z.ZodString>;
226
+ nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
227
227
  }, z.core.$strip>;
@@ -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
  });
@@ -321,5 +321,5 @@ export declare const SearchCreativeOutputSchema: z.ZodObject<{
321
321
  }>;
322
322
  }, z.core.$strip>;
323
323
  }, z.core.$strip>>;
324
- nextCursor: z.ZodOptional<z.ZodString>;
324
+ nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
325
325
  }, z.core.$strip>;
@@ -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
  });
@@ -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
- string: z.ZodString;
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>;
@@ -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
- string: zod_openapi_1.z
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -202,5 +202,5 @@ export const SearchBrandInputSchema = z.object({
202
202
 
203
203
  export const SearchBrandOutputSchema = z.object({
204
204
  brands: z.array(BrandWithUserEntitySchema),
205
- nextCursor: z.string().optional(),
205
+ nextCursor: z.string().optional().nullable(),
206
206
  });
@@ -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
  });
@@ -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
- string: z
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
  });