@getcommunity/gc-validators 0.0.77 → 0.0.79

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
@@ -86,7 +86,7 @@ declare const LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE = 1000;
86
86
  * > const invalidScope: ClientEntityScope = "blog-post:import"; // ❌ Type error!
87
87
  */
88
88
  declare const CLIENT_ENTITY_PERMISSIONS: {
89
- readonly "client-project": readonly ["list", "create", "read", "update", "delete"];
89
+ readonly "client-project": readonly ["list", "create", "read", "update", "delete", "assign"];
90
90
  readonly "client-media-platform": readonly ["list", "create", "read", "update", "delete"];
91
91
  readonly "client-content-pillar": readonly ["list", "create", "read", "update", "delete"];
92
92
  readonly "client-report": readonly ["list", "create", "read", "update", "delete"];
@@ -113,11 +113,11 @@ declare const ERROR_MESSAGE_REGEX_URL_SLUG = "can only contain letters, numbers,
113
113
  declare const REGEX_URL_SLUG: RegExp;
114
114
 
115
115
  declare const QueryStrapiSearchBlogPosts: v.ObjectSchema<{
116
- readonly page: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, 1>, 1>;
117
- readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, 6>, 6>;
118
- readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, "">;
119
- readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, "">;
120
- readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, readonly []>;
116
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
117
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
118
+ readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
119
+ readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
120
+ readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
121
121
  readonly status: v.OptionalSchema<v.PicklistSchema<["draft", "published"], undefined>, undefined>;
122
122
  }, undefined>;
123
123
  type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPosts>;
package/dist/index.d.ts CHANGED
@@ -86,7 +86,7 @@ declare const LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE = 1000;
86
86
  * > const invalidScope: ClientEntityScope = "blog-post:import"; // ❌ Type error!
87
87
  */
88
88
  declare const CLIENT_ENTITY_PERMISSIONS: {
89
- readonly "client-project": readonly ["list", "create", "read", "update", "delete"];
89
+ readonly "client-project": readonly ["list", "create", "read", "update", "delete", "assign"];
90
90
  readonly "client-media-platform": readonly ["list", "create", "read", "update", "delete"];
91
91
  readonly "client-content-pillar": readonly ["list", "create", "read", "update", "delete"];
92
92
  readonly "client-report": readonly ["list", "create", "read", "update", "delete"];
@@ -113,11 +113,11 @@ declare const ERROR_MESSAGE_REGEX_URL_SLUG = "can only contain letters, numbers,
113
113
  declare const REGEX_URL_SLUG: RegExp;
114
114
 
115
115
  declare const QueryStrapiSearchBlogPosts: v.ObjectSchema<{
116
- readonly page: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, 1>, 1>;
117
- readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, 6>, 6>;
118
- readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, "">;
119
- readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, "">;
120
- readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, readonly []>;
116
+ readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
117
+ readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
118
+ readonly search: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
119
+ readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
120
+ readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
121
121
  readonly status: v.OptionalSchema<v.PicklistSchema<["draft", "published"], undefined>, undefined>;
122
122
  }, undefined>;
123
123
  type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPosts>;
package/dist/index.js CHANGED
@@ -76,7 +76,7 @@ var LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE = 1e3;
76
76
 
77
77
  // src/constants/permission.constants.ts
78
78
  var CLIENT_ENTITY_PERMISSIONS = {
79
- "client-project": ["list", "create", "read", "update", "delete"],
79
+ "client-project": ["list", "create", "read", "update", "delete", "assign"],
80
80
  "client-media-platform": ["list", "create", "read", "update", "delete"],
81
81
  "client-content-pillar": ["list", "create", "read", "update", "delete"],
82
82
  "client-report": ["list", "create", "read", "update", "delete"],
@@ -103,21 +103,13 @@ var REGEX_NANP_PHONE = /^(?:\+?1[\s.-]?)?(?:\(?([2-9]\d{2})\)?[\s.-]?)(?:([2-9](
103
103
  var ERROR_MESSAGE_REGEX_URL_SLUG = `can only contain letters, numbers, and the special characters: - _ .`;
104
104
  var REGEX_URL_SLUG = /^([a-zA-Z0-9._-]+)?$/;
105
105
  var QueryStrapiSearchBlogPosts = v5.object({
106
- page: v5.fallback(v5.optional(v5.pipe(v5.number(), v5.minValue(1)), 1), 1),
107
- size: v5.fallback(
108
- v5.optional(
109
- v5.pipe(
110
- v5.number(),
111
- v5.minValue(1),
112
- v5.maxValue(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE)
113
- ),
114
- LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE
115
- ),
116
- LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE
106
+ page: v5.optional(v5.pipe(v5.number(), v5.minValue(1))),
107
+ size: v5.optional(
108
+ v5.pipe(v5.number(), v5.minValue(1), v5.maxValue(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE))
117
109
  ),
118
- search: v5.optional(v5.pipe(v5.string(), v5.maxLength(255)), ""),
119
- category: v5.optional(v5.pipe(v5.string(), v5.maxLength(100)), ""),
120
- tags: v5.optional(v5.array(v5.pipe(v5.string(), v5.maxLength(100))), []),
110
+ search: v5.optional(v5.pipe(v5.string(), v5.maxLength(255))),
111
+ category: v5.optional(v5.pipe(v5.string(), v5.maxLength(100))),
112
+ tags: v5.optional(v5.array(v5.pipe(v5.string(), v5.maxLength(100)))),
121
113
  status: v5.optional(v5.picklist(["draft", "published"]))
122
114
  });
123
115
  var QueryStrapiSearchBlogPostsBySlug = v5.object({