@getcommunity/gc-validators 0.0.135 → 0.0.136
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 +167 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +194 -1
- package/dist/index.d.ts +194 -1
- package/dist/index.js +157 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -212,6 +212,20 @@ var ROLE_PERMISSIONS = {
|
|
|
212
212
|
read: false,
|
|
213
213
|
update: false,
|
|
214
214
|
delete: false
|
|
215
|
+
},
|
|
216
|
+
gcflytour: {
|
|
217
|
+
list: true,
|
|
218
|
+
create: false,
|
|
219
|
+
read: true,
|
|
220
|
+
update: false,
|
|
221
|
+
delete: false
|
|
222
|
+
},
|
|
223
|
+
"gcflytour-snap": {
|
|
224
|
+
list: true,
|
|
225
|
+
create: false,
|
|
226
|
+
read: true,
|
|
227
|
+
update: false,
|
|
228
|
+
delete: false
|
|
215
229
|
}
|
|
216
230
|
},
|
|
217
231
|
public: {
|
|
@@ -311,6 +325,20 @@ var ROLE_PERMISSIONS = {
|
|
|
311
325
|
read: false,
|
|
312
326
|
update: false,
|
|
313
327
|
delete: false
|
|
328
|
+
},
|
|
329
|
+
gcflytour: {
|
|
330
|
+
list: true,
|
|
331
|
+
create: false,
|
|
332
|
+
read: true,
|
|
333
|
+
update: false,
|
|
334
|
+
delete: false
|
|
335
|
+
},
|
|
336
|
+
"gcflytour-snap": {
|
|
337
|
+
list: true,
|
|
338
|
+
create: false,
|
|
339
|
+
read: true,
|
|
340
|
+
update: false,
|
|
341
|
+
delete: false
|
|
314
342
|
}
|
|
315
343
|
},
|
|
316
344
|
employee: {
|
|
@@ -420,6 +448,20 @@ var ROLE_PERMISSIONS = {
|
|
|
420
448
|
var _a;
|
|
421
449
|
return ((_a = d == null ? void 0 : d.creator) == null ? void 0 : _a.documentId) === u.documentId || p.scopes.includes("utm-tracking-link:delete");
|
|
422
450
|
}
|
|
451
|
+
},
|
|
452
|
+
gcflytour: {
|
|
453
|
+
list: true,
|
|
454
|
+
create: (u, p) => p.scopes.includes("gcflytour:create"),
|
|
455
|
+
read: true,
|
|
456
|
+
update: (u, p, d) => p.scopes.includes("gcflytour:update"),
|
|
457
|
+
delete: (u, p, d) => p.scopes.includes("gcflytour:delete")
|
|
458
|
+
},
|
|
459
|
+
"gcflytour-snap": {
|
|
460
|
+
list: true,
|
|
461
|
+
create: (u, p) => p.scopes.includes("gcflytour-snap:create"),
|
|
462
|
+
read: true,
|
|
463
|
+
update: (u, p, d) => p.scopes.includes("gcflytour-snap:update"),
|
|
464
|
+
delete: (u, p, d) => p.scopes.includes("gcflytour-snap:delete")
|
|
423
465
|
}
|
|
424
466
|
},
|
|
425
467
|
manager: {
|
|
@@ -520,6 +562,20 @@ var ROLE_PERMISSIONS = {
|
|
|
520
562
|
read: true,
|
|
521
563
|
update: true,
|
|
522
564
|
delete: true
|
|
565
|
+
},
|
|
566
|
+
gcflytour: {
|
|
567
|
+
list: true,
|
|
568
|
+
create: true,
|
|
569
|
+
read: true,
|
|
570
|
+
update: true,
|
|
571
|
+
delete: true
|
|
572
|
+
},
|
|
573
|
+
"gcflytour-snap": {
|
|
574
|
+
list: true,
|
|
575
|
+
create: true,
|
|
576
|
+
read: true,
|
|
577
|
+
update: true,
|
|
578
|
+
delete: true
|
|
523
579
|
}
|
|
524
580
|
},
|
|
525
581
|
client: {
|
|
@@ -629,6 +685,20 @@ var ROLE_PERMISSIONS = {
|
|
|
629
685
|
var _a;
|
|
630
686
|
return ((_a = d == null ? void 0 : d.creator) == null ? void 0 : _a.documentId) === u.documentId || p.scopes.includes("utm-tracking-link:delete");
|
|
631
687
|
}
|
|
688
|
+
},
|
|
689
|
+
gcflytour: {
|
|
690
|
+
list: true,
|
|
691
|
+
create: false,
|
|
692
|
+
read: true,
|
|
693
|
+
update: false,
|
|
694
|
+
delete: false
|
|
695
|
+
},
|
|
696
|
+
"gcflytour-snap": {
|
|
697
|
+
list: true,
|
|
698
|
+
create: false,
|
|
699
|
+
read: true,
|
|
700
|
+
update: false,
|
|
701
|
+
delete: false
|
|
632
702
|
}
|
|
633
703
|
}
|
|
634
704
|
};
|
|
@@ -642,7 +712,9 @@ var CLIENT_ENTITY_PERMISSIONS = {
|
|
|
642
712
|
"client-content-pillar": ["list", "create", "read", "update", "delete"],
|
|
643
713
|
"client-report": ["list", "create", "read", "update", "delete"],
|
|
644
714
|
"client-styleguide": ["list", "create", "read", "update", "delete"],
|
|
645
|
-
"utm-tracking-link": ["list", "create", "read", "update", "delete"]
|
|
715
|
+
"utm-tracking-link": ["list", "create", "read", "update", "delete"],
|
|
716
|
+
gcflytour: ["list", "create", "read", "update", "delete"],
|
|
717
|
+
"gcflytour-snap": ["list", "create", "read", "update", "delete"]
|
|
646
718
|
};
|
|
647
719
|
var CLIENT_ENTITY_KEYS = Object.keys(
|
|
648
720
|
CLIENT_ENTITY_PERMISSIONS
|
|
@@ -1889,6 +1961,89 @@ var SUpdateContentPillarDocumentRequest = v6__namespace.object({
|
|
|
1889
1961
|
documentId: IsValidReferenceDocumentId,
|
|
1890
1962
|
data: SUpdateContentPillarDocument
|
|
1891
1963
|
});
|
|
1964
|
+
var QuerySortGCFlyTourSnaps = v6__namespace.optional(
|
|
1965
|
+
v6__namespace.object({
|
|
1966
|
+
key: v6__namespace.picklist(["id", "title", "slug", "utm_key", "createdAt", "updatedAt"]),
|
|
1967
|
+
order: v6__namespace.picklist(["ASC", "DESC"])
|
|
1968
|
+
})
|
|
1969
|
+
);
|
|
1970
|
+
var QueryStrapiSearchGCFlyTourSnaps = v6__namespace.object({
|
|
1971
|
+
page: v6__namespace.optional(v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1))),
|
|
1972
|
+
size: v6__namespace.optional(
|
|
1973
|
+
v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1), v6__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE))
|
|
1974
|
+
),
|
|
1975
|
+
title: IsValidOrUndefinedShortStringNoMin,
|
|
1976
|
+
slug: IsValidOrUndefinedShortStringNoMin,
|
|
1977
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
1978
|
+
sort: QuerySortGCFlyTourSnaps
|
|
1979
|
+
});
|
|
1980
|
+
var SCreateGCFlyTourSnapDocument = v6__namespace.object({
|
|
1981
|
+
title: IsValidShortString,
|
|
1982
|
+
slug: IsValidSlug,
|
|
1983
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
1984
|
+
gcflytour: IsValidReferenceDocumentId
|
|
1985
|
+
});
|
|
1986
|
+
var SUpdateGCFlyTourSnapDocument = v6__namespace.object({
|
|
1987
|
+
title: IsValidOrUndefinedShortString,
|
|
1988
|
+
slug: IsValidOrUndefinedSlug,
|
|
1989
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
1990
|
+
gcflytour: IsValidReferenceDocumentId
|
|
1991
|
+
});
|
|
1992
|
+
var SUpdateGCFlyTourSnapDocumentRequest = v6__namespace.object({
|
|
1993
|
+
documentId: IsValidReferenceDocumentId,
|
|
1994
|
+
data: SUpdateGCFlyTourSnapDocument
|
|
1995
|
+
});
|
|
1996
|
+
var QuerySortGCFlyTours = v6__namespace.optional(
|
|
1997
|
+
v6__namespace.object({
|
|
1998
|
+
key: v6__namespace.picklist([
|
|
1999
|
+
"id",
|
|
2000
|
+
"title",
|
|
2001
|
+
"slug",
|
|
2002
|
+
"utm_key",
|
|
2003
|
+
"is_active",
|
|
2004
|
+
"is_hidden",
|
|
2005
|
+
"createdAt",
|
|
2006
|
+
"updatedAt"
|
|
2007
|
+
]),
|
|
2008
|
+
order: v6__namespace.picklist(["ASC", "DESC"])
|
|
2009
|
+
})
|
|
2010
|
+
);
|
|
2011
|
+
var QueryStrapiSearchGCFlyTours = v6__namespace.object({
|
|
2012
|
+
page: v6__namespace.optional(v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1))),
|
|
2013
|
+
size: v6__namespace.optional(
|
|
2014
|
+
v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1), v6__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE))
|
|
2015
|
+
),
|
|
2016
|
+
title: IsValidOrUndefinedShortStringNoMin,
|
|
2017
|
+
slug: IsValidOrUndefinedShortStringNoMin,
|
|
2018
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
2019
|
+
is_active: IsValidOrUndefinedIsBoolean,
|
|
2020
|
+
is_hidden: IsValidOrUndefinedIsBoolean,
|
|
2021
|
+
clients: IsValidOrUndefinedReferenceDocumentIdList,
|
|
2022
|
+
sort: QuerySortGCFlyTours
|
|
2023
|
+
});
|
|
2024
|
+
var SCreateGCFlyTourDocument = v6__namespace.object({
|
|
2025
|
+
title: IsValidShortString,
|
|
2026
|
+
slug: IsValidSlug,
|
|
2027
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
2028
|
+
is_active: IsValidIsBoolean,
|
|
2029
|
+
is_hidden: IsValidIsBoolean
|
|
2030
|
+
});
|
|
2031
|
+
var SUpdateGCFlyTourDocument = v6__namespace.object({
|
|
2032
|
+
title: IsValidOrUndefinedShortString,
|
|
2033
|
+
slug: IsValidOrUndefinedSlug,
|
|
2034
|
+
utm_key: IsValidOrUndefinedUrlUtmKey,
|
|
2035
|
+
is_active: IsValidOrUndefinedIsBoolean,
|
|
2036
|
+
is_hidden: IsValidOrUndefinedIsBoolean,
|
|
2037
|
+
clients: IsValidOrUndefinedReferenceDocumentIdList
|
|
2038
|
+
});
|
|
2039
|
+
var SUpdateGCFlyTourDocumentRequest = v6__namespace.object({
|
|
2040
|
+
documentId: IsValidReferenceDocumentId,
|
|
2041
|
+
data: SUpdateGCFlyTourDocument
|
|
2042
|
+
});
|
|
2043
|
+
var SAssociateClientsToGCFlyTour = v6__namespace.object({
|
|
2044
|
+
gcflytour: IsValidReferenceDocumentId,
|
|
2045
|
+
clients: IsValidReferenceDocumentIdList
|
|
2046
|
+
});
|
|
1892
2047
|
var QuerySortEntities = v6__namespace.optional(
|
|
1893
2048
|
v6__namespace.object({
|
|
1894
2049
|
key: v6__namespace.picklist(["id", "createdAt", "updatedAt"]),
|
|
@@ -3120,6 +3275,8 @@ exports.QuerySortClientUsers = QuerySortClientUsers;
|
|
|
3120
3275
|
exports.QuerySortClients = QuerySortClients;
|
|
3121
3276
|
exports.QuerySortContentPillars = QuerySortContentPillars;
|
|
3122
3277
|
exports.QuerySortEntities = QuerySortEntities;
|
|
3278
|
+
exports.QuerySortGCFlyTourSnaps = QuerySortGCFlyTourSnaps;
|
|
3279
|
+
exports.QuerySortGCFlyTours = QuerySortGCFlyTours;
|
|
3123
3280
|
exports.QuerySortMediaContentType = QuerySortMediaContentType;
|
|
3124
3281
|
exports.QuerySortMediaPlatforms = QuerySortMediaPlatforms;
|
|
3125
3282
|
exports.QuerySortTeamMembers = QuerySortTeamMembers;
|
|
@@ -3145,6 +3302,8 @@ exports.QueryStrapiSearchClientReports = QueryStrapiSearchClientReports;
|
|
|
3145
3302
|
exports.QueryStrapiSearchClientStyleguide = QueryStrapiSearchClientStyleguide;
|
|
3146
3303
|
exports.QueryStrapiSearchClients = QueryStrapiSearchClients;
|
|
3147
3304
|
exports.QueryStrapiSearchContentPillars = QueryStrapiSearchContentPillars;
|
|
3305
|
+
exports.QueryStrapiSearchGCFlyTourSnaps = QueryStrapiSearchGCFlyTourSnaps;
|
|
3306
|
+
exports.QueryStrapiSearchGCFlyTours = QueryStrapiSearchGCFlyTours;
|
|
3148
3307
|
exports.QueryStrapiSearchMediaContentTypes = QueryStrapiSearchMediaContentTypes;
|
|
3149
3308
|
exports.QueryStrapiSearchMediaPlatforms = QueryStrapiSearchMediaPlatforms;
|
|
3150
3309
|
exports.QueryStrapiSearchTeamMembers = QueryStrapiSearchTeamMembers;
|
|
@@ -3160,6 +3319,7 @@ exports.REGEX_UTM_VALUE = REGEX_UTM_VALUE;
|
|
|
3160
3319
|
exports.ROLE_PERMISSIONS = ROLE_PERMISSIONS;
|
|
3161
3320
|
exports.SAssociateClientMediaPlatformContentTypesToMediaContentType = SAssociateClientMediaPlatformContentTypesToMediaContentType;
|
|
3162
3321
|
exports.SAssociateClientToClientProjectDocument = SAssociateClientToClientProjectDocument;
|
|
3322
|
+
exports.SAssociateClientsToGCFlyTour = SAssociateClientsToGCFlyTour;
|
|
3163
3323
|
exports.SAssociateMediaContentTypesToClientMediaPlatform = SAssociateMediaContentTypesToClientMediaPlatform;
|
|
3164
3324
|
exports.SAssociateMediaContentTypesToMediaPlatform = SAssociateMediaContentTypesToMediaPlatform;
|
|
3165
3325
|
exports.SAssociateMediaPlatformsToMediaContentType = SAssociateMediaPlatformsToMediaContentType;
|
|
@@ -3179,6 +3339,8 @@ exports.SCreateClientReportDocument = SCreateClientReportDocument;
|
|
|
3179
3339
|
exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
|
|
3180
3340
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
3181
3341
|
exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
|
|
3342
|
+
exports.SCreateGCFlyTourDocument = SCreateGCFlyTourDocument;
|
|
3343
|
+
exports.SCreateGCFlyTourSnapDocument = SCreateGCFlyTourSnapDocument;
|
|
3182
3344
|
exports.SCreateLeadDocument = SCreateLeadDocument;
|
|
3183
3345
|
exports.SCreateMediaContentTypeDocument = SCreateMediaContentTypeDocument;
|
|
3184
3346
|
exports.SCreateMediaPlatformDocument = SCreateMediaPlatformDocument;
|
|
@@ -3233,6 +3395,10 @@ exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
|
3233
3395
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
3234
3396
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
3235
3397
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
3398
|
+
exports.SUpdateGCFlyTourDocument = SUpdateGCFlyTourDocument;
|
|
3399
|
+
exports.SUpdateGCFlyTourDocumentRequest = SUpdateGCFlyTourDocumentRequest;
|
|
3400
|
+
exports.SUpdateGCFlyTourSnapDocument = SUpdateGCFlyTourSnapDocument;
|
|
3401
|
+
exports.SUpdateGCFlyTourSnapDocumentRequest = SUpdateGCFlyTourSnapDocumentRequest;
|
|
3236
3402
|
exports.SUpdateLeadDocument = SUpdateLeadDocument;
|
|
3237
3403
|
exports.SUpdateLeadRequest = SUpdateLeadRequest;
|
|
3238
3404
|
exports.SUpdateMediaContentTypeDocument = SUpdateMediaContentTypeDocument;
|