@getcommunity/gc-validators 0.0.60 → 0.0.62
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 +14 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -357
- package/dist/index.d.ts +26 -357
- package/dist/index.js +14 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -99,6 +99,7 @@ var LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE = 1e3;
|
|
|
99
99
|
// src/constants/permission.constants.ts
|
|
100
100
|
var CLIENT_ENTITY_PERMISSIONS = {
|
|
101
101
|
"client-project": ["list", "create", "read", "update", "delete"],
|
|
102
|
+
"client-media-platform": ["list", "create", "read", "update", "delete"],
|
|
102
103
|
"client-report": ["list", "create", "read", "update", "delete"],
|
|
103
104
|
"client-styleguide": ["list", "create", "read", "update", "delete"],
|
|
104
105
|
"utm-tracking-link": ["list", "create", "read", "update", "delete"]
|
|
@@ -829,6 +830,18 @@ var QueryStrapiSearchBlogPostsBySlug = v3__namespace.object({
|
|
|
829
830
|
slug: v3__namespace.string(),
|
|
830
831
|
status: v3__namespace.optional(v3__namespace.picklist(["draft", "published"]), "published")
|
|
831
832
|
});
|
|
833
|
+
var QueryStrapiSearchClientMediaPlatforms = v3__namespace.object({
|
|
834
|
+
page: v3__namespace.fallback(v3__namespace.optional(v3__namespace.pipe(v3__namespace.number(), v3__namespace.minValue(1)), 1), 1),
|
|
835
|
+
size: v3__namespace.fallback(
|
|
836
|
+
v3__namespace.optional(
|
|
837
|
+
v3__namespace.pipe(v3__namespace.number(), v3__namespace.minValue(1), v3__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE)),
|
|
838
|
+
LIMIT_PAGINATION_DEFAULT_SIZE
|
|
839
|
+
),
|
|
840
|
+
LIMIT_PAGINATION_DEFAULT_SIZE
|
|
841
|
+
),
|
|
842
|
+
client_id: v3__namespace.optional(IsValidReferenceDocumentId),
|
|
843
|
+
media_platform_id: v3__namespace.optional(IsValidReferenceDocumentId)
|
|
844
|
+
});
|
|
832
845
|
|
|
833
846
|
// src/types/documents/client-project.document.ts
|
|
834
847
|
var ClientProjectStatusOptions = [
|
|
@@ -854,15 +867,6 @@ var QueryStrapiSearchClientProjects = v3__namespace.object({
|
|
|
854
867
|
project_status: v3__namespace.optional(v3__namespace.picklist(ClientProjectStatusOptions)),
|
|
855
868
|
client_id: v3__namespace.optional(IsValidReferenceDocumentId)
|
|
856
869
|
});
|
|
857
|
-
var SConnectClientProjects = v3__namespace.object({
|
|
858
|
-
client_projects: SConnectManyEntityRelation
|
|
859
|
-
});
|
|
860
|
-
var SDisconnectClientProjects = v3__namespace.object({
|
|
861
|
-
client_projects: SDisconnectManyEntityRelation
|
|
862
|
-
});
|
|
863
|
-
var SSetClientProjects = v3__namespace.object({
|
|
864
|
-
client_projects: SSetManyEntityRelation
|
|
865
|
-
});
|
|
866
870
|
var QueryStrapiSearchClientReports = v3__namespace.object({
|
|
867
871
|
page: v3__namespace.fallback(v3__namespace.optional(v3__namespace.pipe(v3__namespace.number(), v3__namespace.minValue(1)), 1), 1),
|
|
868
872
|
size: v3__namespace.fallback(
|
|
@@ -877,15 +881,6 @@ var QueryStrapiSearchClientReports = v3__namespace.object({
|
|
|
877
881
|
is_active: v3__namespace.optional(v3__namespace.boolean()),
|
|
878
882
|
client_id: v3__namespace.optional(IsValidReferenceDocumentId)
|
|
879
883
|
});
|
|
880
|
-
var SConnectClientReports = v3__namespace.object({
|
|
881
|
-
client_reports: SConnectManyEntityRelation
|
|
882
|
-
});
|
|
883
|
-
var SDisconnectClientReports = v3__namespace.object({
|
|
884
|
-
client_reports: SDisconnectManyEntityRelation
|
|
885
|
-
});
|
|
886
|
-
var SSetClientReports = v3__namespace.object({
|
|
887
|
-
client_reports: SSetManyEntityRelation
|
|
888
|
-
});
|
|
889
884
|
var QueryStrapiSearchClientStyleguide = v3__namespace.object({
|
|
890
885
|
page: v3__namespace.fallback(v3__namespace.optional(v3__namespace.pipe(v3__namespace.number(), v3__namespace.minValue(1)), 1), 1),
|
|
891
886
|
size: v3__namespace.fallback(
|
|
@@ -1017,15 +1012,6 @@ var QueryStrapiSearchMediaPlatforms = v3__namespace.object({
|
|
|
1017
1012
|
title: v3__namespace.optional(IsValidShortString),
|
|
1018
1013
|
slug: v3__namespace.optional(IsValidShortString)
|
|
1019
1014
|
});
|
|
1020
|
-
var SConnectMediaPlatforms = v3__namespace.object({
|
|
1021
|
-
client_reports: SConnectManyEntityRelation
|
|
1022
|
-
});
|
|
1023
|
-
var SDisconnectMediaPlatforms = v3__namespace.object({
|
|
1024
|
-
client_reports: SDisconnectManyEntityRelation
|
|
1025
|
-
});
|
|
1026
|
-
var SSetMediaPlatforms = v3__namespace.object({
|
|
1027
|
-
client_reports: SSetManyEntityRelation
|
|
1028
|
-
});
|
|
1029
1015
|
var SCreateNewsletterSignup = v3__namespace.object({
|
|
1030
1016
|
first_name: IsValidFirstName,
|
|
1031
1017
|
last_name: IsValidLastName,
|
|
@@ -1774,6 +1760,7 @@ exports.QueryStrapiPaginated = QueryStrapiPaginated;
|
|
|
1774
1760
|
exports.QueryStrapiPaginatedUrlRedirects = QueryStrapiPaginatedUrlRedirects;
|
|
1775
1761
|
exports.QueryStrapiSearchBlogPosts = QueryStrapiSearchBlogPosts;
|
|
1776
1762
|
exports.QueryStrapiSearchBlogPostsBySlug = QueryStrapiSearchBlogPostsBySlug;
|
|
1763
|
+
exports.QueryStrapiSearchClientMediaPlatforms = QueryStrapiSearchClientMediaPlatforms;
|
|
1777
1764
|
exports.QueryStrapiSearchClientProjects = QueryStrapiSearchClientProjects;
|
|
1778
1765
|
exports.QueryStrapiSearchClientReports = QueryStrapiSearchClientReports;
|
|
1779
1766
|
exports.QueryStrapiSearchClientStyleguide = QueryStrapiSearchClientStyleguide;
|
|
@@ -1791,10 +1778,7 @@ exports.SAuthConnectProviderConfirmation = SAuthConnectProviderConfirmation;
|
|
|
1791
1778
|
exports.SAuthConnectProviderRedirectSearch = SAuthConnectProviderRedirectSearch;
|
|
1792
1779
|
exports.SAuthRawAccessToken = SAuthRawAccessToken;
|
|
1793
1780
|
exports.SChangePassword = SChangePassword;
|
|
1794
|
-
exports.SConnectClientProjects = SConnectClientProjects;
|
|
1795
|
-
exports.SConnectClientReports = SConnectClientReports;
|
|
1796
1781
|
exports.SConnectManyEntityRelation = SConnectManyEntityRelation;
|
|
1797
|
-
exports.SConnectMediaPlatforms = SConnectMediaPlatforms;
|
|
1798
1782
|
exports.SConnectOneEntityRelation = SConnectOneEntityRelation;
|
|
1799
1783
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
1800
1784
|
exports.SCreateClientUserDocumentRequest = SCreateClientUserDocumentRequest;
|
|
@@ -1806,10 +1790,7 @@ exports.SCreateUtmTrackingLinkDocument = SCreateUtmTrackingLinkDocument;
|
|
|
1806
1790
|
exports.SCreateUtmTrackingLinkParts = SCreateUtmTrackingLinkParts;
|
|
1807
1791
|
exports.SDeleteClientUserDocument = SDeleteClientUserDocument;
|
|
1808
1792
|
exports.SDeleteUtmTrackingLinkDocument = SDeleteUtmTrackingLinkDocument;
|
|
1809
|
-
exports.SDisconnectClientProjects = SDisconnectClientProjects;
|
|
1810
|
-
exports.SDisconnectClientReports = SDisconnectClientReports;
|
|
1811
1793
|
exports.SDisconnectManyEntityRelation = SDisconnectManyEntityRelation;
|
|
1812
|
-
exports.SDisconnectMediaPlatforms = SDisconnectMediaPlatforms;
|
|
1813
1794
|
exports.SDisconnectOneEntityRelation = SDisconnectOneEntityRelation;
|
|
1814
1795
|
exports.SEntityRelation = SEntityRelation;
|
|
1815
1796
|
exports.SEntityRelationPosition = SEntityRelationPosition;
|
|
@@ -1832,10 +1813,7 @@ exports.SReadUtmTrackingLinkDocumentByUrl = SReadUtmTrackingLinkDocumentByUrl;
|
|
|
1832
1813
|
exports.SRegisterUser = SRegisterUser;
|
|
1833
1814
|
exports.SRequestConfirmEmail = SRequestConfirmEmail;
|
|
1834
1815
|
exports.SResetUserPassword = SResetUserPassword;
|
|
1835
|
-
exports.SSetClientProjects = SSetClientProjects;
|
|
1836
|
-
exports.SSetClientReports = SSetClientReports;
|
|
1837
1816
|
exports.SSetManyEntityRelation = SSetManyEntityRelation;
|
|
1838
|
-
exports.SSetMediaPlatforms = SSetMediaPlatforms;
|
|
1839
1817
|
exports.SSetOneEntityRelation = SSetOneEntityRelation;
|
|
1840
1818
|
exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
1841
1819
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|