@getcommunity/gc-validators 0.0.86 → 0.0.87

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
@@ -774,6 +774,7 @@ var IsValidUrlUtmSource = v5__namespace.pipe(
774
774
  v5__namespace.regex(REGEX_UTM_VALUE, `utm_source ${ERROR_MESSAGE_REGEX_UTM_VALUE}`)
775
775
  );
776
776
  var IsValidOrUndefinedUrlUtmSource = v5__namespace.undefinedable(IsValidUrlUtmSource);
777
+ var IsValidOrNullUrlUtmSource = v5__namespace.nullable(IsValidUrlUtmSource);
777
778
  var IsValidUrlUtmMedium = v5__namespace.pipe(
778
779
  v5__namespace.string(),
779
780
  v5__namespace.trim(),
@@ -1109,16 +1110,19 @@ var QueryStrapiSearchMediaPlatforms = v5__namespace.object({
1109
1110
  v5__namespace.pipe(v5__namespace.number(), v5__namespace.minValue(1), v5__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE))
1110
1111
  ),
1111
1112
  title: v5__namespace.optional(IsValidShortString),
1112
- slug: v5__namespace.optional(IsValidShortString)
1113
+ slug: v5__namespace.optional(IsValidShortString),
1114
+ utm_source: v5__namespace.optional(IsValidUrlUtmSource)
1113
1115
  });
1114
1116
  var SCreateMediaPlatformDocument = v5__namespace.object({
1115
1117
  title: IsValidShortString,
1116
1118
  slug: IsValidSlug,
1119
+ utm_source: IsValidOrNullUrlUtmSource,
1117
1120
  description: IsValidLongStringOrUndefined
1118
1121
  });
1119
1122
  var SUpdateMediaPlatformDocument = v5__namespace.object({
1120
1123
  title: IsValidShortStringOrUndefined,
1121
1124
  slug: IsValidSlugOrUndefined,
1125
+ utm_source: IsValidOrNullUrlUtmSource,
1122
1126
  description: IsValidLongStringOrUndefined
1123
1127
  });
1124
1128
  var SUpdateMediaPlatformDocumentRequest = v5__namespace.object({
@@ -1797,6 +1801,7 @@ exports.IsValidMediaFile = IsValidMediaFile;
1797
1801
  exports.IsValidMediaFileList = IsValidMediaFileList;
1798
1802
  exports.IsValidName = IsValidName;
1799
1803
  exports.IsValidNumberOfEmployees = IsValidNumberOfEmployees;
1804
+ exports.IsValidOrNullUrlUtmSource = IsValidOrNullUrlUtmSource;
1800
1805
  exports.IsValidOrUndefinedBlocked = IsValidOrUndefinedBlocked;
1801
1806
  exports.IsValidOrUndefinedClientProjectPhase = IsValidOrUndefinedClientProjectPhase;
1802
1807
  exports.IsValidOrUndefinedClientProjectStatus = IsValidOrUndefinedClientProjectStatus;