@getcommunity/gc-validators 0.0.48 → 0.0.49
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 +34 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -10
- package/dist/index.d.ts +97 -10
- package/dist/index.js +29 -13
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -769,21 +769,37 @@ var SEntityRelation = v3__namespace.object({
|
|
|
769
769
|
documentId: IsValidReferenceDocumentId,
|
|
770
770
|
position: v3__namespace.optional(SEntityRelationPosition)
|
|
771
771
|
});
|
|
772
|
-
var
|
|
772
|
+
var SConnectManyEntityRelation = v3__namespace.object({
|
|
773
773
|
connect: v3__namespace.pipe(
|
|
774
774
|
v3__namespace.array(v3__namespace.union([IsValidReferenceDocumentId, SEntityRelation])),
|
|
775
775
|
v3__namespace.minLength(1, "At least one document ID is required to connect"),
|
|
776
776
|
v3__namespace.maxLength(100, "A maximum of 100 document IDs can be connected per request")
|
|
777
777
|
)
|
|
778
778
|
});
|
|
779
|
-
var
|
|
779
|
+
var SDisconnectManyEntityRelation = v3__namespace.object({
|
|
780
780
|
disconnect: v3__namespace.pipe(
|
|
781
781
|
v3__namespace.array(v3__namespace.union([IsValidReferenceDocumentId, SEntityRelation])),
|
|
782
782
|
v3__namespace.minLength(1, "At least one document ID is required to disconnect"),
|
|
783
783
|
v3__namespace.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
784
784
|
)
|
|
785
785
|
});
|
|
786
|
-
var
|
|
786
|
+
var SSetManyEntityRelation = v3__namespace.object({
|
|
787
|
+
set: v3__namespace.pipe(
|
|
788
|
+
v3__namespace.array(v3__namespace.union([IsValidReferenceDocumentId, SEntityRelation])),
|
|
789
|
+
v3__namespace.minLength(1, "At least one document ID is required to set a relation")
|
|
790
|
+
)
|
|
791
|
+
});
|
|
792
|
+
var SConnectOneEntityRelation = v3__namespace.object({
|
|
793
|
+
connect: v3__namespace.union([IsValidReferenceDocumentId, SEntityRelation])
|
|
794
|
+
});
|
|
795
|
+
var SDisconnectOneEntityRelation = v3__namespace.object({
|
|
796
|
+
disconnect: v3__namespace.pipe(
|
|
797
|
+
v3__namespace.array(v3__namespace.union([IsValidReferenceDocumentId, SEntityRelation])),
|
|
798
|
+
v3__namespace.minLength(1, "At least one document ID is required to disconnect"),
|
|
799
|
+
v3__namespace.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
800
|
+
)
|
|
801
|
+
});
|
|
802
|
+
var SSetOneEntityRelation = v3__namespace.object({
|
|
787
803
|
set: v3__namespace.pipe(
|
|
788
804
|
v3__namespace.array(v3__namespace.union([IsValidReferenceDocumentId, SEntityRelation])),
|
|
789
805
|
v3__namespace.minLength(1, "At least one document ID is required to set a relation")
|
|
@@ -837,13 +853,13 @@ var QueryStrapiSearchClientProjects = v3__namespace.object({
|
|
|
837
853
|
client_id: v3__namespace.optional(IsValidReferenceDocumentId)
|
|
838
854
|
});
|
|
839
855
|
var SConnectClientProjects = v3__namespace.object({
|
|
840
|
-
client_projects:
|
|
856
|
+
client_projects: SConnectManyEntityRelation
|
|
841
857
|
});
|
|
842
858
|
var SDisconnectClientProjects = v3__namespace.object({
|
|
843
|
-
client_projects:
|
|
859
|
+
client_projects: SDisconnectManyEntityRelation
|
|
844
860
|
});
|
|
845
861
|
var SSetClientProjects = v3__namespace.object({
|
|
846
|
-
client_projects:
|
|
862
|
+
client_projects: SSetManyEntityRelation
|
|
847
863
|
});
|
|
848
864
|
var QueryStrapiSearchClientReports = v3__namespace.object({
|
|
849
865
|
page: v3__namespace.fallback(v3__namespace.optional(v3__namespace.pipe(v3__namespace.number(), v3__namespace.minValue(1)), 1), 1),
|
|
@@ -860,13 +876,13 @@ var QueryStrapiSearchClientReports = v3__namespace.object({
|
|
|
860
876
|
client_id: v3__namespace.optional(IsValidReferenceDocumentId)
|
|
861
877
|
});
|
|
862
878
|
var SConnectClientReports = v3__namespace.object({
|
|
863
|
-
client_reports:
|
|
879
|
+
client_reports: SConnectManyEntityRelation
|
|
864
880
|
});
|
|
865
881
|
var SDisconnectClientReports = v3__namespace.object({
|
|
866
|
-
client_reports:
|
|
882
|
+
client_reports: SDisconnectManyEntityRelation
|
|
867
883
|
});
|
|
868
884
|
var SSetClientReports = v3__namespace.object({
|
|
869
|
-
client_reports:
|
|
885
|
+
client_reports: SSetManyEntityRelation
|
|
870
886
|
});
|
|
871
887
|
var QueryStrapiSearchClientStyleguide = v3__namespace.object({
|
|
872
888
|
page: v3__namespace.fallback(v3__namespace.optional(v3__namespace.pipe(v3__namespace.number(), v3__namespace.minValue(1)), 1), 1),
|
|
@@ -996,13 +1012,13 @@ var QueryStrapiSearchMediaPlatforms = v3__namespace.object({
|
|
|
996
1012
|
slug: v3__namespace.optional(IsValidShortString)
|
|
997
1013
|
});
|
|
998
1014
|
var SConnectMediaPlatforms = v3__namespace.object({
|
|
999
|
-
client_reports:
|
|
1015
|
+
client_reports: SConnectManyEntityRelation
|
|
1000
1016
|
});
|
|
1001
1017
|
var SDisconnectMediaPlatforms = v3__namespace.object({
|
|
1002
|
-
client_reports:
|
|
1018
|
+
client_reports: SDisconnectManyEntityRelation
|
|
1003
1019
|
});
|
|
1004
1020
|
var SSetMediaPlatforms = v3__namespace.object({
|
|
1005
|
-
client_reports:
|
|
1021
|
+
client_reports: SSetManyEntityRelation
|
|
1006
1022
|
});
|
|
1007
1023
|
var SCreateNewsletterSignup = v3__namespace.object({
|
|
1008
1024
|
first_name: IsValidFirstName,
|
|
@@ -1768,8 +1784,9 @@ exports.SAuthRawAccessToken = SAuthRawAccessToken;
|
|
|
1768
1784
|
exports.SChangePassword = SChangePassword;
|
|
1769
1785
|
exports.SConnectClientProjects = SConnectClientProjects;
|
|
1770
1786
|
exports.SConnectClientReports = SConnectClientReports;
|
|
1771
|
-
exports.
|
|
1787
|
+
exports.SConnectManyEntityRelation = SConnectManyEntityRelation;
|
|
1772
1788
|
exports.SConnectMediaPlatforms = SConnectMediaPlatforms;
|
|
1789
|
+
exports.SConnectOneEntityRelation = SConnectOneEntityRelation;
|
|
1773
1790
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
1774
1791
|
exports.SCreateClientUserDocumentRequest = SCreateClientUserDocumentRequest;
|
|
1775
1792
|
exports.SCreateLead = SCreateLead;
|
|
@@ -1782,8 +1799,9 @@ exports.SDeleteClientUserDocument = SDeleteClientUserDocument;
|
|
|
1782
1799
|
exports.SDeleteUtmTrackingLinkDocument = SDeleteUtmTrackingLinkDocument;
|
|
1783
1800
|
exports.SDisconnectClientProjects = SDisconnectClientProjects;
|
|
1784
1801
|
exports.SDisconnectClientReports = SDisconnectClientReports;
|
|
1785
|
-
exports.
|
|
1802
|
+
exports.SDisconnectManyEntityRelation = SDisconnectManyEntityRelation;
|
|
1786
1803
|
exports.SDisconnectMediaPlatforms = SDisconnectMediaPlatforms;
|
|
1804
|
+
exports.SDisconnectOneEntityRelation = SDisconnectOneEntityRelation;
|
|
1787
1805
|
exports.SEntityRelation = SEntityRelation;
|
|
1788
1806
|
exports.SEntityRelationPosition = SEntityRelationPosition;
|
|
1789
1807
|
exports.SEntityRelationPositionAfter = SEntityRelationPositionAfter;
|
|
@@ -1807,8 +1825,9 @@ exports.SRequestConfirmEmail = SRequestConfirmEmail;
|
|
|
1807
1825
|
exports.SResetUserPassword = SResetUserPassword;
|
|
1808
1826
|
exports.SSetClientProjects = SSetClientProjects;
|
|
1809
1827
|
exports.SSetClientReports = SSetClientReports;
|
|
1810
|
-
exports.
|
|
1828
|
+
exports.SSetManyEntityRelation = SSetManyEntityRelation;
|
|
1811
1829
|
exports.SSetMediaPlatforms = SSetMediaPlatforms;
|
|
1830
|
+
exports.SSetOneEntityRelation = SSetOneEntityRelation;
|
|
1812
1831
|
exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
1813
1832
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
1814
1833
|
exports.SUpdateResumeInfo = SUpdateResumeInfo;
|