@getcommunity/gc-validators 0.0.104 → 0.0.105

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.cts CHANGED
@@ -1311,13 +1311,15 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
1311
1311
  type SUtmLinkBuilderTableForm = v.InferOutput<typeof SUtmLinkBuilderTableForm>;
1312
1312
 
1313
1313
  declare const QuerySortUtmTrackingLinks: v.OptionalSchema<v.ObjectSchema<{
1314
- readonly key: v.PicklistSchema<["id", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1314
+ readonly key: v.PicklistSchema<["id", "creator", "client", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1315
1315
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1316
1316
  }, undefined>, undefined>;
1317
1317
  type QuerySortUtmTrackingLinks = v.InferOutput<typeof QuerySortUtmTrackingLinks>;
1318
1318
  declare const QueryStrapiSearchUtmTrackingLinks: v.ObjectSchema<{
1319
1319
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
1320
1320
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
1321
+ readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1322
+ readonly creator_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1321
1323
  readonly url_destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please remove any query parameters from the URL.">]>, undefined>;
1322
1324
  readonly utm_medium: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1323
1325
  readonly utm_source: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
@@ -1335,7 +1337,7 @@ declare const QueryStrapiSearchUtmTrackingLinks: v.ObjectSchema<{
1335
1337
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1336
1338
  readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, undefined>;
1337
1339
  readonly sort: v.OptionalSchema<v.ObjectSchema<{
1338
- readonly key: v.PicklistSchema<["id", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1340
+ readonly key: v.PicklistSchema<["id", "creator", "client", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1339
1341
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1340
1342
  }, undefined>, undefined>;
1341
1343
  }, undefined>;
package/dist/index.d.ts CHANGED
@@ -1311,13 +1311,15 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
1311
1311
  type SUtmLinkBuilderTableForm = v.InferOutput<typeof SUtmLinkBuilderTableForm>;
1312
1312
 
1313
1313
  declare const QuerySortUtmTrackingLinks: v.OptionalSchema<v.ObjectSchema<{
1314
- readonly key: v.PicklistSchema<["id", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1314
+ readonly key: v.PicklistSchema<["id", "creator", "client", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1315
1315
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1316
1316
  }, undefined>, undefined>;
1317
1317
  type QuerySortUtmTrackingLinks = v.InferOutput<typeof QuerySortUtmTrackingLinks>;
1318
1318
  declare const QueryStrapiSearchUtmTrackingLinks: v.ObjectSchema<{
1319
1319
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
1320
1320
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
1321
+ readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1322
+ readonly creator_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>, undefined>;
1321
1323
  readonly url_destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please remove any query parameters from the URL.">]>, undefined>;
1322
1324
  readonly utm_medium: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
1323
1325
  readonly utm_source: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
@@ -1335,7 +1337,7 @@ declare const QueryStrapiSearchUtmTrackingLinks: v.ObjectSchema<{
1335
1337
  readonly is_active: v.OptionalSchema<v.BooleanSchema<"this value must be a boolean">, undefined>;
1336
1338
  readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>, undefined>;
1337
1339
  readonly sort: v.OptionalSchema<v.ObjectSchema<{
1338
- readonly key: v.PicklistSchema<["id", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1340
+ readonly key: v.PicklistSchema<["id", "creator", "client", "url_destination", "utm_medium", "utm_source", "utm_campaign", "utm_content", "utm_creative_format", "utm_id", "campaign_phase", "campaign_product", "campaign_targeting", "campaign_key", "creative_format", "creative_format_variants", "url", "is_active", "createdAt", "updatedAt"], undefined>;
1339
1341
  readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
1340
1342
  }, undefined>, undefined>;
1341
1343
  }, undefined>;
package/dist/index.js CHANGED
@@ -1880,6 +1880,8 @@ var QuerySortUtmTrackingLinks = v6.optional(
1880
1880
  v6.object({
1881
1881
  key: v6.picklist([
1882
1882
  "id",
1883
+ "creator",
1884
+ "client",
1883
1885
  "url_destination",
1884
1886
  "utm_medium",
1885
1887
  "utm_source",
@@ -1910,6 +1912,8 @@ var QueryStrapiSearchUtmTrackingLinks = v6.object({
1910
1912
  v6.maxValue(LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE)
1911
1913
  )
1912
1914
  ),
1915
+ client_id: IsValidOrUndefinedReferenceDocumentId,
1916
+ creator_id: IsValidOrUndefinedReferenceDocumentId,
1913
1917
  url_destination: IsValidOrUndefinedDestinationUrl,
1914
1918
  utm_medium: IsValidOrUndefinedUrlUtmMedium,
1915
1919
  utm_source: IsValidOrUndefinedUrlUtmSource,