@supernova-studio/model 1.4.18 → 1.4.20

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/index.d.mts CHANGED
@@ -143116,8 +143116,8 @@ declare const PublishedDocPageVisitsEntry: z.ZodObject<{
143116
143116
  locale: z.ZodOptional<z.ZodString>;
143117
143117
  timestamp: z.ZodDate;
143118
143118
  visits: z.ZodNumber;
143119
- userId: z.ZodOptional<z.ZodString>;
143120
- anonymousId: z.ZodOptional<z.ZodString>;
143119
+ userId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
143120
+ anonymousId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
143121
143121
  }, "strip", z.ZodTypeAny, {
143122
143122
  id: string;
143123
143123
  pagePersistentId: string;
@@ -143133,9 +143133,9 @@ declare const PublishedDocPageVisitsEntry: z.ZodObject<{
143133
143133
  versionId: string;
143134
143134
  timestamp: Date;
143135
143135
  visits: number;
143136
- userId?: string | undefined;
143136
+ userId?: string | null | undefined;
143137
143137
  locale?: string | undefined;
143138
- anonymousId?: string | undefined;
143138
+ anonymousId?: string | null | undefined;
143139
143139
  }>;
143140
143140
  type PublishedDocPageVisitsEntry = z.infer<typeof PublishedDocPageVisitsEntry>;
143141
143141
  type CreatePublishedDocPageVisitsEntry = DbCreateInputOmit<PublishedDocPageVisitsEntry>;
package/dist/index.d.ts CHANGED
@@ -143116,8 +143116,8 @@ declare const PublishedDocPageVisitsEntry: z.ZodObject<{
143116
143116
  locale: z.ZodOptional<z.ZodString>;
143117
143117
  timestamp: z.ZodDate;
143118
143118
  visits: z.ZodNumber;
143119
- userId: z.ZodOptional<z.ZodString>;
143120
- anonymousId: z.ZodOptional<z.ZodString>;
143119
+ userId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
143120
+ anonymousId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
143121
143121
  }, "strip", z.ZodTypeAny, {
143122
143122
  id: string;
143123
143123
  pagePersistentId: string;
@@ -143133,9 +143133,9 @@ declare const PublishedDocPageVisitsEntry: z.ZodObject<{
143133
143133
  versionId: string;
143134
143134
  timestamp: Date;
143135
143135
  visits: number;
143136
- userId?: string | undefined;
143136
+ userId?: string | null | undefined;
143137
143137
  locale?: string | undefined;
143138
- anonymousId?: string | undefined;
143138
+ anonymousId?: string | null | undefined;
143139
143139
  }>;
143140
143140
  type PublishedDocPageVisitsEntry = z.infer<typeof PublishedDocPageVisitsEntry>;
143141
143141
  type CreatePublishedDocPageVisitsEntry = DbCreateInputOmit<PublishedDocPageVisitsEntry>;
package/dist/index.js CHANGED
@@ -4918,8 +4918,8 @@ var PublishedDocPageVisitsEntry = _zod.z.object({
4918
4918
  locale: _zod.z.string().optional(),
4919
4919
  timestamp: _zod.z.coerce.date(),
4920
4920
  visits: _zod.z.number(),
4921
- userId: _zod.z.string().optional(),
4922
- anonymousId: _zod.z.string().optional()
4921
+ userId: nullishToOptional(_zod.z.string()),
4922
+ anonymousId: nullishToOptional(_zod.z.string())
4923
4923
  });
4924
4924
 
4925
4925
  // src/dsm/published-doc-page.ts