@getcommunity/gc-validators 0.0.63 → 0.0.64
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -376,6 +376,7 @@ type QueryStrapiSearchClientMediaPlatforms = v.InferOutput<typeof QueryStrapiSea
|
|
|
376
376
|
declare const SCreateClientMediaPlatformDocument: v.ObjectSchema<{
|
|
377
377
|
readonly client: 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">]>;
|
|
378
378
|
readonly media_platform: 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">]>;
|
|
379
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
379
380
|
}, undefined>;
|
|
380
381
|
type SCreateClientMediaPlatformDocument = v.InferOutput<typeof SCreateClientMediaPlatformDocument>;
|
|
381
382
|
declare const SReadClientMediaPlatformDocumentById: v.ObjectSchema<{
|
|
@@ -386,11 +387,15 @@ declare const SReadClientMediaPlatformDocumentByDocumentId: v.ObjectSchema<{
|
|
|
386
387
|
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">]>;
|
|
387
388
|
}, undefined>;
|
|
388
389
|
type SReadClientMediaPlatformDocumentByDocumentId = v.InferOutput<typeof SReadClientMediaPlatformDocumentByDocumentId>;
|
|
389
|
-
declare const SUpdateClientMediaPlatformDocument: v.ObjectSchema<{
|
|
390
|
+
declare const SUpdateClientMediaPlatformDocument: v.ObjectSchema<{
|
|
391
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
392
|
+
}, undefined>;
|
|
390
393
|
type SUpdateClientMediaPlatformDocument = v.InferOutput<typeof SUpdateClientMediaPlatformDocument>;
|
|
391
394
|
declare const SUpdateClientMediaPlatformDocumentRequest: v.ObjectSchema<{
|
|
392
395
|
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">]>;
|
|
393
|
-
readonly data: v.ObjectSchema<{
|
|
396
|
+
readonly data: v.ObjectSchema<{
|
|
397
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
398
|
+
}, undefined>;
|
|
394
399
|
}, undefined>;
|
|
395
400
|
type SUpdateClientMediaPlatformDocumentRequest = v.InferOutput<typeof SUpdateClientMediaPlatformDocumentRequest>;
|
|
396
401
|
declare const SDeleteClientMediaPlatformDocument: v.ObjectSchema<{
|
|
@@ -1453,6 +1458,7 @@ type MediaPlatformDocument = {
|
|
|
1453
1458
|
type ClientMediaPlatformDocument = {
|
|
1454
1459
|
client?: ClientDocument;
|
|
1455
1460
|
media_platform?: MediaPlatformDocument;
|
|
1461
|
+
is_active: boolean;
|
|
1456
1462
|
} & BaseDocument;
|
|
1457
1463
|
|
|
1458
1464
|
type ClientReportDocument = {
|
package/dist/index.d.ts
CHANGED
|
@@ -376,6 +376,7 @@ type QueryStrapiSearchClientMediaPlatforms = v.InferOutput<typeof QueryStrapiSea
|
|
|
376
376
|
declare const SCreateClientMediaPlatformDocument: v.ObjectSchema<{
|
|
377
377
|
readonly client: 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">]>;
|
|
378
378
|
readonly media_platform: 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">]>;
|
|
379
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
379
380
|
}, undefined>;
|
|
380
381
|
type SCreateClientMediaPlatformDocument = v.InferOutput<typeof SCreateClientMediaPlatformDocument>;
|
|
381
382
|
declare const SReadClientMediaPlatformDocumentById: v.ObjectSchema<{
|
|
@@ -386,11 +387,15 @@ declare const SReadClientMediaPlatformDocumentByDocumentId: v.ObjectSchema<{
|
|
|
386
387
|
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">]>;
|
|
387
388
|
}, undefined>;
|
|
388
389
|
type SReadClientMediaPlatformDocumentByDocumentId = v.InferOutput<typeof SReadClientMediaPlatformDocumentByDocumentId>;
|
|
389
|
-
declare const SUpdateClientMediaPlatformDocument: v.ObjectSchema<{
|
|
390
|
+
declare const SUpdateClientMediaPlatformDocument: v.ObjectSchema<{
|
|
391
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
392
|
+
}, undefined>;
|
|
390
393
|
type SUpdateClientMediaPlatformDocument = v.InferOutput<typeof SUpdateClientMediaPlatformDocument>;
|
|
391
394
|
declare const SUpdateClientMediaPlatformDocumentRequest: v.ObjectSchema<{
|
|
392
395
|
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">]>;
|
|
393
|
-
readonly data: v.ObjectSchema<{
|
|
396
|
+
readonly data: v.ObjectSchema<{
|
|
397
|
+
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
398
|
+
}, undefined>;
|
|
394
399
|
}, undefined>;
|
|
395
400
|
type SUpdateClientMediaPlatformDocumentRequest = v.InferOutput<typeof SUpdateClientMediaPlatformDocumentRequest>;
|
|
396
401
|
declare const SDeleteClientMediaPlatformDocument: v.ObjectSchema<{
|
|
@@ -1453,6 +1458,7 @@ type MediaPlatformDocument = {
|
|
|
1453
1458
|
type ClientMediaPlatformDocument = {
|
|
1454
1459
|
client?: ClientDocument;
|
|
1455
1460
|
media_platform?: MediaPlatformDocument;
|
|
1461
|
+
is_active: boolean;
|
|
1456
1462
|
} & BaseDocument;
|
|
1457
1463
|
|
|
1458
1464
|
type ClientReportDocument = {
|
package/dist/index.js
CHANGED
|
@@ -822,7 +822,8 @@ var QueryStrapiSearchClientMediaPlatforms = v3.object({
|
|
|
822
822
|
});
|
|
823
823
|
var SCreateClientMediaPlatformDocument = v3.object({
|
|
824
824
|
client: IsValidReferenceDocumentId,
|
|
825
|
-
media_platform: IsValidReferenceDocumentId
|
|
825
|
+
media_platform: IsValidReferenceDocumentId,
|
|
826
|
+
is_active: v3.optional(v3.boolean())
|
|
826
827
|
});
|
|
827
828
|
var SReadClientMediaPlatformDocumentById = v3.object({
|
|
828
829
|
id: IsValidReferenceId
|
|
@@ -830,7 +831,9 @@ var SReadClientMediaPlatformDocumentById = v3.object({
|
|
|
830
831
|
var SReadClientMediaPlatformDocumentByDocumentId = v3.object({
|
|
831
832
|
documentId: IsValidReferenceDocumentId
|
|
832
833
|
});
|
|
833
|
-
var SUpdateClientMediaPlatformDocument = v3.object({
|
|
834
|
+
var SUpdateClientMediaPlatformDocument = v3.object({
|
|
835
|
+
is_active: v3.optional(v3.boolean())
|
|
836
|
+
});
|
|
834
837
|
var SUpdateClientMediaPlatformDocumentRequest = v3.object({
|
|
835
838
|
documentId: IsValidReferenceDocumentId,
|
|
836
839
|
data: SUpdateClientMediaPlatformDocument
|