@getcommunity/gc-validators 0.0.70 → 0.0.71
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 +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -167,12 +167,14 @@ declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
|
|
|
167
167
|
}, undefined>;
|
|
168
168
|
type QueryStrapiSearchClientProjects = v.InferOutput<typeof QueryStrapiSearchClientProjects>;
|
|
169
169
|
declare const SCreateClientProjectDocument: v.ObjectSchema<{
|
|
170
|
+
readonly clients: v.ArraySchema<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>;
|
|
170
171
|
readonly title: 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.">]>;
|
|
171
172
|
readonly slug: v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
172
173
|
readonly project_status: v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>;
|
|
173
174
|
}, undefined>;
|
|
174
175
|
type SCreateClientProjectDocument = v.InferOutput<typeof SCreateClientProjectDocument>;
|
|
175
176
|
declare const SUpdateClientProjectDocument: v.ObjectSchema<{
|
|
177
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
176
178
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
177
179
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
178
180
|
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
|
|
@@ -181,6 +183,7 @@ type SUpdateClientProjectDocument = v.InferOutput<typeof SUpdateClientProjectDoc
|
|
|
181
183
|
declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
182
184
|
readonly documentId: 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">]>;
|
|
183
185
|
readonly data: v.ObjectSchema<{
|
|
186
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
184
187
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
185
188
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
186
189
|
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
|
|
@@ -198,12 +201,14 @@ declare const QueryStrapiSearchClientReports: v.ObjectSchema<{
|
|
|
198
201
|
}, undefined>;
|
|
199
202
|
type QueryStrapiSearchClientReports = v.InferOutput<typeof QueryStrapiSearchClientReports>;
|
|
200
203
|
declare const SCreateClientReportDocument: v.ObjectSchema<{
|
|
204
|
+
readonly clients: v.ArraySchema<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>;
|
|
201
205
|
readonly title: 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.">]>;
|
|
202
206
|
readonly report_id: v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
203
207
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, true>;
|
|
204
208
|
}, undefined>;
|
|
205
209
|
type SCreateClientReportDocument = v.InferOutput<typeof SCreateClientReportDocument>;
|
|
206
210
|
declare const SUpdateClientReportDocument: v.ObjectSchema<{
|
|
211
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
207
212
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
208
213
|
readonly report_id: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
209
214
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>;
|
|
@@ -212,6 +217,7 @@ type SUpdateClientReportDocument = v.InferOutput<typeof SUpdateClientReportDocum
|
|
|
212
217
|
declare const SUpdateClientReportDocumentRequest: v.ObjectSchema<{
|
|
213
218
|
readonly documentId: 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">]>;
|
|
214
219
|
readonly data: v.ObjectSchema<{
|
|
220
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
215
221
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
216
222
|
readonly report_id: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
217
223
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -167,12 +167,14 @@ declare const QueryStrapiSearchClientProjects: v.ObjectSchema<{
|
|
|
167
167
|
}, undefined>;
|
|
168
168
|
type QueryStrapiSearchClientProjects = v.InferOutput<typeof QueryStrapiSearchClientProjects>;
|
|
169
169
|
declare const SCreateClientProjectDocument: v.ObjectSchema<{
|
|
170
|
+
readonly clients: v.ArraySchema<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>;
|
|
170
171
|
readonly title: 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.">]>;
|
|
171
172
|
readonly slug: v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
172
173
|
readonly project_status: v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>;
|
|
173
174
|
}, undefined>;
|
|
174
175
|
type SCreateClientProjectDocument = v.InferOutput<typeof SCreateClientProjectDocument>;
|
|
175
176
|
declare const SUpdateClientProjectDocument: v.ObjectSchema<{
|
|
177
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
176
178
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
177
179
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
178
180
|
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
|
|
@@ -181,6 +183,7 @@ type SUpdateClientProjectDocument = v.InferOutput<typeof SUpdateClientProjectDoc
|
|
|
181
183
|
declare const SUpdateClientProjectDocumentRequest: v.ObjectSchema<{
|
|
182
184
|
readonly documentId: 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">]>;
|
|
183
185
|
readonly data: v.ObjectSchema<{
|
|
186
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
184
187
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
185
188
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
186
189
|
readonly project_status: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.OptionalSchema<v.PicklistSchema<readonly ["coming-soon", "now-open", "for-sale", "sold-out", "available"], "one or more of the project status options is invalid">, "coming-soon">, undefined>, v.MinLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">, v.MaxLengthAction<("coming-soon" | "now-open" | "for-sale" | "sold-out" | "available")[], 1, "please select one project status">]>, undefined>;
|
|
@@ -198,12 +201,14 @@ declare const QueryStrapiSearchClientReports: v.ObjectSchema<{
|
|
|
198
201
|
}, undefined>;
|
|
199
202
|
type QueryStrapiSearchClientReports = v.InferOutput<typeof QueryStrapiSearchClientReports>;
|
|
200
203
|
declare const SCreateClientReportDocument: v.ObjectSchema<{
|
|
204
|
+
readonly clients: v.ArraySchema<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>;
|
|
201
205
|
readonly title: 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.">]>;
|
|
202
206
|
readonly report_id: v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
203
207
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, true>;
|
|
204
208
|
}, undefined>;
|
|
205
209
|
type SCreateClientReportDocument = v.InferOutput<typeof SCreateClientReportDocument>;
|
|
206
210
|
declare const SUpdateClientReportDocument: v.ObjectSchema<{
|
|
211
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
207
212
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
208
213
|
readonly report_id: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
209
214
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>;
|
|
@@ -212,6 +217,7 @@ type SUpdateClientReportDocument = v.InferOutput<typeof SUpdateClientReportDocum
|
|
|
212
217
|
declare const SUpdateClientReportDocumentRequest: v.ObjectSchema<{
|
|
213
218
|
readonly documentId: 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">]>;
|
|
214
219
|
readonly data: v.ObjectSchema<{
|
|
220
|
+
readonly clients: v.OptionalSchema<v.ArraySchema<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>, undefined>;
|
|
215
221
|
readonly title: v.OptionalSchema<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.">]>, undefined>;
|
|
216
222
|
readonly report_id: v.OptionalSchema<v.SchemaWithPipe<readonly [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.">]>, v.RegexAction<string, "can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
217
223
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>;
|
package/dist/index.js
CHANGED
|
@@ -834,11 +834,13 @@ var QueryStrapiSearchClientProjects = v5.object({
|
|
|
834
834
|
client_id: v5.optional(IsValidReferenceDocumentId)
|
|
835
835
|
});
|
|
836
836
|
var SCreateClientProjectDocument = v5.object({
|
|
837
|
+
clients: v5.array(IsValidReferenceDocumentId),
|
|
837
838
|
title: IsValidShortString,
|
|
838
839
|
slug: IsValidSlug,
|
|
839
840
|
project_status: IsValidClientProjectStatus
|
|
840
841
|
});
|
|
841
842
|
var SUpdateClientProjectDocument = v5.object({
|
|
843
|
+
clients: v5.optional(v5.array(IsValidReferenceDocumentId)),
|
|
842
844
|
title: IsValidShortStringOrUndefined,
|
|
843
845
|
slug: IsValidSlugOrUndefined,
|
|
844
846
|
project_status: IsValidOrUndefinedClientProjectStatus
|
|
@@ -862,11 +864,13 @@ var QueryStrapiSearchClientReports = v5.object({
|
|
|
862
864
|
client_id: v5.optional(IsValidReferenceDocumentId)
|
|
863
865
|
});
|
|
864
866
|
var SCreateClientReportDocument = v5.object({
|
|
867
|
+
clients: v5.array(IsValidReferenceDocumentId),
|
|
865
868
|
title: IsValidShortString,
|
|
866
869
|
report_id: IsValidSlug,
|
|
867
870
|
is_active: v5.optional(IsValidIsActive, true)
|
|
868
871
|
});
|
|
869
872
|
var SUpdateClientReportDocument = v5.object({
|
|
873
|
+
clients: v5.optional(v5.array(IsValidReferenceDocumentId)),
|
|
870
874
|
title: IsValidShortStringOrUndefined,
|
|
871
875
|
report_id: IsValidSlugOrUndefined,
|
|
872
876
|
is_active: IsValidOrUndefinedIsActive
|