@getcommunity/gc-validators 0.0.91 → 0.0.92

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
@@ -475,18 +475,34 @@ declare const QueryStrapiByDocumentId: v.ObjectSchema<{
475
475
  type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
476
476
  declare const QueryStrapiBySlug: v.ObjectSchema<{
477
477
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
478
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
479
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
480
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
481
+ }, undefined>, undefined>;
478
482
  }, undefined>;
479
483
  type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
480
484
  declare const QueryStrapiByEmail: v.ObjectSchema<{
481
485
  readonly email: v.SchemaWithPipe<readonly [v.StringSchema<"please provide an email">, v.TrimAction, v.MinLengthAction<string, 5, "your email is too short, it must be at least 5 characters">, v.MaxLengthAction<string, 255, "your email is too long, it must be 255 characters or less">, v.EmailAction<string, "please provide a valid email address">]>;
486
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
487
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
488
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
489
+ }, undefined>, undefined>;
482
490
  }, undefined>;
483
491
  type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
484
492
  declare const QueryStrapiByPhone: v.ObjectSchema<{
485
493
  readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your phone number.">, v.TrimAction, v.MinLengthAction<string, 7, "Please enter your phone number.">, v.MaxLengthAction<string, 24, "The phone you provided does not appear to be a valid phone number.">, v.RegexAction<string, "please provide a valid phone number">]>;
494
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
495
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
496
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
497
+ }, undefined>, undefined>;
486
498
  }, undefined>;
487
499
  type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
488
500
  declare const QueryStrapiByName: v.ObjectSchema<{
489
501
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
502
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
503
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
504
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
505
+ }, undefined>, undefined>;
490
506
  }, undefined>;
491
507
  type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
492
508
 
package/dist/index.d.ts CHANGED
@@ -475,18 +475,34 @@ declare const QueryStrapiByDocumentId: v.ObjectSchema<{
475
475
  type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
476
476
  declare const QueryStrapiBySlug: v.ObjectSchema<{
477
477
  readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
478
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
479
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
480
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
481
+ }, undefined>, undefined>;
478
482
  }, undefined>;
479
483
  type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
480
484
  declare const QueryStrapiByEmail: v.ObjectSchema<{
481
485
  readonly email: v.SchemaWithPipe<readonly [v.StringSchema<"please provide an email">, v.TrimAction, v.MinLengthAction<string, 5, "your email is too short, it must be at least 5 characters">, v.MaxLengthAction<string, 255, "your email is too long, it must be 255 characters or less">, v.EmailAction<string, "please provide a valid email address">]>;
486
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
487
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
488
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
489
+ }, undefined>, undefined>;
482
490
  }, undefined>;
483
491
  type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
484
492
  declare const QueryStrapiByPhone: v.ObjectSchema<{
485
493
  readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<"Please enter your phone number.">, v.TrimAction, v.MinLengthAction<string, 7, "Please enter your phone number.">, v.MaxLengthAction<string, 24, "The phone you provided does not appear to be a valid phone number.">, v.RegexAction<string, "please provide a valid phone number">]>;
494
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
495
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
496
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
497
+ }, undefined>, undefined>;
486
498
  }, undefined>;
487
499
  type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
488
500
  declare const QueryStrapiByName: v.ObjectSchema<{
489
501
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
502
+ readonly sort: v.OptionalSchema<v.ObjectSchema<{
503
+ readonly key: v.PicklistSchema<["id", "createdAt", "updatedAt"], undefined>;
504
+ readonly order: v.PicklistSchema<["ASC", "DESC"], undefined>;
505
+ }, undefined>, undefined>;
490
506
  }, undefined>;
491
507
  type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
492
508
 
package/dist/index.js CHANGED
@@ -1164,16 +1164,20 @@ var QueryStrapiByDocumentId = v6.object({
1164
1164
  documentId: IsValidReferenceDocumentId
1165
1165
  });
1166
1166
  var QueryStrapiBySlug = v6.object({
1167
- slug: IsValidShortString
1167
+ slug: IsValidShortString,
1168
+ sort: QuerySortEntities
1168
1169
  });
1169
1170
  var QueryStrapiByEmail = v6.object({
1170
- email: IsValidUserEmail
1171
+ email: IsValidUserEmail,
1172
+ sort: QuerySortEntities
1171
1173
  });
1172
1174
  var QueryStrapiByPhone = v6.object({
1173
- phone: IsValidUserPhoneRequired
1175
+ phone: IsValidUserPhoneRequired,
1176
+ sort: QuerySortEntities
1174
1177
  });
1175
1178
  var QueryStrapiByName = v6.object({
1176
- name: IsValidShortString
1179
+ name: IsValidShortString,
1180
+ sort: QuerySortEntities
1177
1181
  });
1178
1182
  var SCreateLead = v6.object({
1179
1183
  first_name: IsValidFirstName,