@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.cjs +7 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ var LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE = 1e3;
|
|
|
98
98
|
|
|
99
99
|
// src/constants/permission.constants.ts
|
|
100
100
|
var CLIENT_ENTITY_PERMISSIONS = {
|
|
101
|
-
"client-project": ["list", "create", "read", "update", "delete"],
|
|
101
|
+
"client-project": ["list", "create", "read", "update", "delete", "assign"],
|
|
102
102
|
"client-media-platform": ["list", "create", "read", "update", "delete"],
|
|
103
103
|
"client-content-pillar": ["list", "create", "read", "update", "delete"],
|
|
104
104
|
"client-report": ["list", "create", "read", "update", "delete"],
|
|
@@ -125,21 +125,13 @@ var REGEX_NANP_PHONE = /^(?:\+?1[\s.-]?)?(?:\(?([2-9]\d{2})\)?[\s.-]?)(?:([2-9](
|
|
|
125
125
|
var ERROR_MESSAGE_REGEX_URL_SLUG = `can only contain letters, numbers, and the special characters: - _ .`;
|
|
126
126
|
var REGEX_URL_SLUG = /^([a-zA-Z0-9._-]+)?$/;
|
|
127
127
|
var QueryStrapiSearchBlogPosts = v5__namespace.object({
|
|
128
|
-
page: v5__namespace.
|
|
129
|
-
size: v5__namespace.
|
|
130
|
-
v5__namespace.
|
|
131
|
-
v5__namespace.pipe(
|
|
132
|
-
v5__namespace.number(),
|
|
133
|
-
v5__namespace.minValue(1),
|
|
134
|
-
v5__namespace.maxValue(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE)
|
|
135
|
-
),
|
|
136
|
-
LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE
|
|
137
|
-
),
|
|
138
|
-
LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE
|
|
128
|
+
page: v5__namespace.optional(v5__namespace.pipe(v5__namespace.number(), v5__namespace.minValue(1))),
|
|
129
|
+
size: v5__namespace.optional(
|
|
130
|
+
v5__namespace.pipe(v5__namespace.number(), v5__namespace.minValue(1), v5__namespace.maxValue(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE))
|
|
139
131
|
),
|
|
140
|
-
search: v5__namespace.optional(v5__namespace.pipe(v5__namespace.string(), v5__namespace.maxLength(255))
|
|
141
|
-
category: v5__namespace.optional(v5__namespace.pipe(v5__namespace.string(), v5__namespace.maxLength(100))
|
|
142
|
-
tags: v5__namespace.optional(v5__namespace.array(v5__namespace.pipe(v5__namespace.string(), v5__namespace.maxLength(100)))
|
|
132
|
+
search: v5__namespace.optional(v5__namespace.pipe(v5__namespace.string(), v5__namespace.maxLength(255))),
|
|
133
|
+
category: v5__namespace.optional(v5__namespace.pipe(v5__namespace.string(), v5__namespace.maxLength(100))),
|
|
134
|
+
tags: v5__namespace.optional(v5__namespace.array(v5__namespace.pipe(v5__namespace.string(), v5__namespace.maxLength(100)))),
|
|
143
135
|
status: v5__namespace.optional(v5__namespace.picklist(["draft", "published"]))
|
|
144
136
|
});
|
|
145
137
|
var QueryStrapiSearchBlogPostsBySlug = v5__namespace.object({
|