@carrot-foundation/schemas 0.3.2 → 0.4.0

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.cjs CHANGED
@@ -29335,7 +29335,7 @@ var CoordinatesSchema = zod.z.strictObject({
29335
29335
  longitude: LongitudeSchema
29336
29336
  }).meta({
29337
29337
  title: "Coordinates",
29338
- description: "Approximate GPS coordinates of the site (city-level precision for privacy)"
29338
+ description: "Approximate GPS coordinates of the site (city-level precision for privacy). Optional because some records (e.g., MassIDs) may not have geolocation data available."
29339
29339
  });
29340
29340
  var LocationSchema = zod.z.strictObject({
29341
29341
  id_hash: Sha256HashSchema.meta({
@@ -29349,7 +29349,7 @@ var LocationSchema = zod.z.strictObject({
29349
29349
  title: "Responsible Participant ID Hash",
29350
29350
  description: "SHA-256 hash identifying the participant responsible for operations at this location"
29351
29351
  }),
29352
- coordinates: CoordinatesSchema
29352
+ coordinates: CoordinatesSchema.optional()
29353
29353
  }).superRefine((record, ctx) => {
29354
29354
  validateLocationBrazilData(record, ctx);
29355
29355
  }).meta({
@@ -29481,7 +29481,7 @@ function buildSchemaUrl(schemaPath) {
29481
29481
  return `${getSchemaBaseUrl()}/${cleanPath}`;
29482
29482
  }
29483
29483
  function getSchemaVersionOrDefault() {
29484
- return "0.3.2";
29484
+ return "0.4.0";
29485
29485
  }
29486
29486
 
29487
29487
  // src/shared/schema-validation.ts