@getcommunity/gc-validators 0.0.161 → 0.0.167
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 +249 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +264 -119
- package/dist/index.d.ts +264 -119
- package/dist/index.js +237 -83
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -116,6 +116,26 @@ var REGEX_URL_SLUG = /^([a-zA-Z0-9._-]+)?$/;
|
|
|
116
116
|
// src/permissions/permission.abac.ts
|
|
117
117
|
var ROLE_PERMISSIONS = {
|
|
118
118
|
authenticated: {
|
|
119
|
+
"user-account": {
|
|
120
|
+
list: false,
|
|
121
|
+
create: false,
|
|
122
|
+
read: false,
|
|
123
|
+
update: false,
|
|
124
|
+
delete: false
|
|
125
|
+
},
|
|
126
|
+
comment: {
|
|
127
|
+
list: true,
|
|
128
|
+
create: true,
|
|
129
|
+
update: (u, p, d) => {
|
|
130
|
+
var _a;
|
|
131
|
+
return u.documentId === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.documentId);
|
|
132
|
+
},
|
|
133
|
+
delete: (u, p, d) => {
|
|
134
|
+
var _a;
|
|
135
|
+
return u.documentId === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.documentId);
|
|
136
|
+
},
|
|
137
|
+
report: true
|
|
138
|
+
},
|
|
119
139
|
client: {
|
|
120
140
|
access: false,
|
|
121
141
|
billing: false,
|
|
@@ -128,6 +148,13 @@ var ROLE_PERMISSIONS = {
|
|
|
128
148
|
update: false,
|
|
129
149
|
delete: false
|
|
130
150
|
},
|
|
151
|
+
"client-user": {
|
|
152
|
+
list: false,
|
|
153
|
+
create: false,
|
|
154
|
+
read: false,
|
|
155
|
+
update: false,
|
|
156
|
+
delete: false
|
|
157
|
+
},
|
|
131
158
|
"client-content-pillar": {
|
|
132
159
|
list: false,
|
|
133
160
|
create: false,
|
|
@@ -171,13 +198,6 @@ var ROLE_PERMISSIONS = {
|
|
|
171
198
|
update: false,
|
|
172
199
|
delete: false
|
|
173
200
|
},
|
|
174
|
-
"client-user": {
|
|
175
|
-
list: false,
|
|
176
|
-
create: false,
|
|
177
|
-
read: false,
|
|
178
|
-
update: false,
|
|
179
|
-
delete: false
|
|
180
|
-
},
|
|
181
201
|
"content-pillar": {
|
|
182
202
|
list: false,
|
|
183
203
|
create: false,
|
|
@@ -199,13 +219,6 @@ var ROLE_PERMISSIONS = {
|
|
|
199
219
|
update: false,
|
|
200
220
|
delete: false
|
|
201
221
|
},
|
|
202
|
-
"user-account": {
|
|
203
|
-
list: false,
|
|
204
|
-
create: false,
|
|
205
|
-
read: false,
|
|
206
|
-
update: false,
|
|
207
|
-
delete: false
|
|
208
|
-
},
|
|
209
222
|
"utm-tracking-link": {
|
|
210
223
|
list: false,
|
|
211
224
|
create: false,
|
|
@@ -229,6 +242,20 @@ var ROLE_PERMISSIONS = {
|
|
|
229
242
|
}
|
|
230
243
|
},
|
|
231
244
|
public: {
|
|
245
|
+
"user-account": {
|
|
246
|
+
list: false,
|
|
247
|
+
create: false,
|
|
248
|
+
read: false,
|
|
249
|
+
update: false,
|
|
250
|
+
delete: false
|
|
251
|
+
},
|
|
252
|
+
comment: {
|
|
253
|
+
list: true,
|
|
254
|
+
create: false,
|
|
255
|
+
update: false,
|
|
256
|
+
delete: false,
|
|
257
|
+
report: false
|
|
258
|
+
},
|
|
232
259
|
client: {
|
|
233
260
|
access: false,
|
|
234
261
|
billing: false,
|
|
@@ -241,6 +268,13 @@ var ROLE_PERMISSIONS = {
|
|
|
241
268
|
update: false,
|
|
242
269
|
delete: false
|
|
243
270
|
},
|
|
271
|
+
"client-user": {
|
|
272
|
+
list: false,
|
|
273
|
+
create: false,
|
|
274
|
+
read: false,
|
|
275
|
+
update: false,
|
|
276
|
+
delete: false
|
|
277
|
+
},
|
|
244
278
|
"client-content-pillar": {
|
|
245
279
|
list: false,
|
|
246
280
|
create: false,
|
|
@@ -284,13 +318,6 @@ var ROLE_PERMISSIONS = {
|
|
|
284
318
|
update: false,
|
|
285
319
|
delete: false
|
|
286
320
|
},
|
|
287
|
-
"client-user": {
|
|
288
|
-
list: false,
|
|
289
|
-
create: false,
|
|
290
|
-
read: false,
|
|
291
|
-
update: false,
|
|
292
|
-
delete: false
|
|
293
|
-
},
|
|
294
321
|
"content-pillar": {
|
|
295
322
|
list: false,
|
|
296
323
|
create: false,
|
|
@@ -312,13 +339,6 @@ var ROLE_PERMISSIONS = {
|
|
|
312
339
|
update: false,
|
|
313
340
|
delete: false
|
|
314
341
|
},
|
|
315
|
-
"user-account": {
|
|
316
|
-
list: false,
|
|
317
|
-
create: false,
|
|
318
|
-
read: false,
|
|
319
|
-
update: false,
|
|
320
|
-
delete: false
|
|
321
|
-
},
|
|
322
342
|
"utm-tracking-link": {
|
|
323
343
|
list: false,
|
|
324
344
|
create: false,
|
|
@@ -342,6 +362,26 @@ var ROLE_PERMISSIONS = {
|
|
|
342
362
|
}
|
|
343
363
|
},
|
|
344
364
|
employee: {
|
|
365
|
+
"user-account": {
|
|
366
|
+
list: true,
|
|
367
|
+
create: false,
|
|
368
|
+
read: true,
|
|
369
|
+
update: (u, p, d) => u.account.documentId === (d == null ? void 0 : d.documentId),
|
|
370
|
+
delete: false
|
|
371
|
+
},
|
|
372
|
+
comment: {
|
|
373
|
+
list: true,
|
|
374
|
+
create: true,
|
|
375
|
+
update: (u, p, d) => {
|
|
376
|
+
var _a;
|
|
377
|
+
return u.documentId === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.documentId);
|
|
378
|
+
},
|
|
379
|
+
delete: (u, p, d) => {
|
|
380
|
+
var _a;
|
|
381
|
+
return u.documentId === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.documentId);
|
|
382
|
+
},
|
|
383
|
+
report: true
|
|
384
|
+
},
|
|
345
385
|
client: {
|
|
346
386
|
access: (u, p, d) => p.scopes.includes("client:access"),
|
|
347
387
|
billing: (u, p, d) => p.scopes.includes("client:billing"),
|
|
@@ -354,6 +394,14 @@ var ROLE_PERMISSIONS = {
|
|
|
354
394
|
update: (u, p, d) => p.scopes.includes("client:manager"),
|
|
355
395
|
delete: false
|
|
356
396
|
},
|
|
397
|
+
"client-user": {
|
|
398
|
+
list: true,
|
|
399
|
+
create: false,
|
|
400
|
+
read: true,
|
|
401
|
+
update: false,
|
|
402
|
+
delete: false,
|
|
403
|
+
verify: true
|
|
404
|
+
},
|
|
357
405
|
"client-content-pillar": {
|
|
358
406
|
list: (u, p, d) => p.scopes.includes("client-content-pillar:list"),
|
|
359
407
|
create: (u, p) => p.scopes.includes("client-content-pillar:create"),
|
|
@@ -397,14 +445,6 @@ var ROLE_PERMISSIONS = {
|
|
|
397
445
|
update: false,
|
|
398
446
|
delete: false
|
|
399
447
|
},
|
|
400
|
-
"client-user": {
|
|
401
|
-
list: true,
|
|
402
|
-
create: false,
|
|
403
|
-
read: true,
|
|
404
|
-
update: false,
|
|
405
|
-
delete: false,
|
|
406
|
-
verify: true
|
|
407
|
-
},
|
|
408
448
|
"content-pillar": {
|
|
409
449
|
list: true,
|
|
410
450
|
create: false,
|
|
@@ -426,13 +466,6 @@ var ROLE_PERMISSIONS = {
|
|
|
426
466
|
update: false,
|
|
427
467
|
delete: false
|
|
428
468
|
},
|
|
429
|
-
"user-account": {
|
|
430
|
-
list: true,
|
|
431
|
-
create: false,
|
|
432
|
-
read: true,
|
|
433
|
-
update: (u, p, d) => u.account.documentId === (d == null ? void 0 : d.documentId),
|
|
434
|
-
delete: false
|
|
435
|
-
},
|
|
436
469
|
"utm-tracking-link": {
|
|
437
470
|
list: (u, p, d) => p.scopes.includes("utm-tracking-link:list"),
|
|
438
471
|
create: (u, p) => p.scopes.includes("utm-tracking-link:create"),
|
|
@@ -465,6 +498,23 @@ var ROLE_PERMISSIONS = {
|
|
|
465
498
|
}
|
|
466
499
|
},
|
|
467
500
|
manager: {
|
|
501
|
+
"user-account": {
|
|
502
|
+
list: true,
|
|
503
|
+
create: false,
|
|
504
|
+
read: true,
|
|
505
|
+
update: (u, p, d) => u.account.documentId === (d == null ? void 0 : d.documentId),
|
|
506
|
+
delete: false
|
|
507
|
+
},
|
|
508
|
+
comment: {
|
|
509
|
+
list: true,
|
|
510
|
+
create: true,
|
|
511
|
+
update: (u, p, d) => {
|
|
512
|
+
var _a;
|
|
513
|
+
return u.documentId === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.documentId);
|
|
514
|
+
},
|
|
515
|
+
delete: true,
|
|
516
|
+
report: true
|
|
517
|
+
},
|
|
468
518
|
client: {
|
|
469
519
|
access: true,
|
|
470
520
|
billing: true,
|
|
@@ -477,6 +527,14 @@ var ROLE_PERMISSIONS = {
|
|
|
477
527
|
update: true,
|
|
478
528
|
delete: false
|
|
479
529
|
},
|
|
530
|
+
"client-user": {
|
|
531
|
+
list: true,
|
|
532
|
+
create: true,
|
|
533
|
+
read: true,
|
|
534
|
+
update: true,
|
|
535
|
+
delete: true,
|
|
536
|
+
verify: true
|
|
537
|
+
},
|
|
480
538
|
"client-content-pillar": {
|
|
481
539
|
list: true,
|
|
482
540
|
create: true,
|
|
@@ -520,14 +578,6 @@ var ROLE_PERMISSIONS = {
|
|
|
520
578
|
update: true,
|
|
521
579
|
delete: true
|
|
522
580
|
},
|
|
523
|
-
"client-user": {
|
|
524
|
-
list: true,
|
|
525
|
-
create: true,
|
|
526
|
-
read: true,
|
|
527
|
-
update: true,
|
|
528
|
-
delete: true,
|
|
529
|
-
verify: true
|
|
530
|
-
},
|
|
531
581
|
"content-pillar": {
|
|
532
582
|
list: true,
|
|
533
583
|
create: true,
|
|
@@ -549,13 +599,6 @@ var ROLE_PERMISSIONS = {
|
|
|
549
599
|
update: true,
|
|
550
600
|
delete: true
|
|
551
601
|
},
|
|
552
|
-
"user-account": {
|
|
553
|
-
list: true,
|
|
554
|
-
create: false,
|
|
555
|
-
read: true,
|
|
556
|
-
update: (u, p, d) => u.account.documentId === (d == null ? void 0 : d.documentId),
|
|
557
|
-
delete: false
|
|
558
|
-
},
|
|
559
602
|
"utm-tracking-link": {
|
|
560
603
|
list: true,
|
|
561
604
|
create: true,
|
|
@@ -579,6 +622,26 @@ var ROLE_PERMISSIONS = {
|
|
|
579
622
|
}
|
|
580
623
|
},
|
|
581
624
|
client: {
|
|
625
|
+
"user-account": {
|
|
626
|
+
list: true,
|
|
627
|
+
create: false,
|
|
628
|
+
read: true,
|
|
629
|
+
update: (u, p, d) => u.account.documentId === (d == null ? void 0 : d.documentId),
|
|
630
|
+
delete: false
|
|
631
|
+
},
|
|
632
|
+
comment: {
|
|
633
|
+
list: true,
|
|
634
|
+
create: true,
|
|
635
|
+
update: (u, p, d) => {
|
|
636
|
+
var _a;
|
|
637
|
+
return u.documentId === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.documentId);
|
|
638
|
+
},
|
|
639
|
+
delete: (u, p, d) => {
|
|
640
|
+
var _a;
|
|
641
|
+
return u.documentId === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.documentId);
|
|
642
|
+
},
|
|
643
|
+
report: true
|
|
644
|
+
},
|
|
582
645
|
client: {
|
|
583
646
|
access: (u, p, d) => p.scopes.includes("client:access"),
|
|
584
647
|
billing: (u, p, d) => p.scopes.includes("client:billing"),
|
|
@@ -591,6 +654,14 @@ var ROLE_PERMISSIONS = {
|
|
|
591
654
|
update: (u, p, d) => p.scopes.includes("client:manager"),
|
|
592
655
|
delete: false
|
|
593
656
|
},
|
|
657
|
+
"client-user": {
|
|
658
|
+
list: true,
|
|
659
|
+
create: false,
|
|
660
|
+
read: true,
|
|
661
|
+
update: false,
|
|
662
|
+
delete: false,
|
|
663
|
+
verify: true
|
|
664
|
+
},
|
|
594
665
|
"client-content-pillar": {
|
|
595
666
|
list: (u, p, d) => p.scopes.includes("client-content-pillar:list"),
|
|
596
667
|
create: (u, p) => p.scopes.includes("client-content-pillar:create"),
|
|
@@ -634,14 +705,6 @@ var ROLE_PERMISSIONS = {
|
|
|
634
705
|
update: false,
|
|
635
706
|
delete: false
|
|
636
707
|
},
|
|
637
|
-
"client-user": {
|
|
638
|
-
list: true,
|
|
639
|
-
create: false,
|
|
640
|
-
read: true,
|
|
641
|
-
update: false,
|
|
642
|
-
delete: false,
|
|
643
|
-
verify: true
|
|
644
|
-
},
|
|
645
708
|
"content-pillar": {
|
|
646
709
|
list: true,
|
|
647
710
|
create: false,
|
|
@@ -663,13 +726,6 @@ var ROLE_PERMISSIONS = {
|
|
|
663
726
|
update: false,
|
|
664
727
|
delete: false
|
|
665
728
|
},
|
|
666
|
-
"user-account": {
|
|
667
|
-
list: true,
|
|
668
|
-
create: false,
|
|
669
|
-
read: true,
|
|
670
|
-
update: (u, p, d) => u.account.documentId === (d == null ? void 0 : d.documentId),
|
|
671
|
-
delete: false
|
|
672
|
-
},
|
|
673
729
|
"utm-tracking-link": {
|
|
674
730
|
list: (u, p, d) => p.scopes.includes("utm-tracking-link:list"),
|
|
675
731
|
create: (u, p) => p.scopes.includes("utm-tracking-link:create"),
|
|
@@ -809,6 +865,23 @@ var ClientProjectPhaseOptions = [
|
|
|
809
865
|
"closed"
|
|
810
866
|
];
|
|
811
867
|
|
|
868
|
+
// src/types/documents/comment.document.ts
|
|
869
|
+
var ReportCommentReason = {
|
|
870
|
+
BAD_WORDS: "BAD_WORDS",
|
|
871
|
+
OTHER: "OTHER",
|
|
872
|
+
DISCRIMINATION: "DISCRIMINATION",
|
|
873
|
+
IRRELEVANT: "IRRELEVANT",
|
|
874
|
+
INAPPROPRIATE: "INAPPROPRIATE",
|
|
875
|
+
SPAM: "SPAM"
|
|
876
|
+
};
|
|
877
|
+
var ReportCommentReasonOptions = Object.values(ReportCommentReason);
|
|
878
|
+
var CommentApprovalStatus = {
|
|
879
|
+
PENDING: "PENDING",
|
|
880
|
+
APPROVED: "APPROVED",
|
|
881
|
+
REJECTED: "REJECTED"
|
|
882
|
+
};
|
|
883
|
+
var CommentApprovalStatusOptions = Object.values(CommentApprovalStatus);
|
|
884
|
+
|
|
812
885
|
// src/validators/validators-client-projects.ts
|
|
813
886
|
var IsValidClientProjectStatus = v6__namespace.pipe(
|
|
814
887
|
v6__namespace.array(
|
|
@@ -845,6 +918,7 @@ var IsValidClientUserScopes = v6__namespace.pipe(
|
|
|
845
918
|
)
|
|
846
919
|
);
|
|
847
920
|
var IsValidReferenceId = v6__namespace.number("please provide a valid id");
|
|
921
|
+
var IsValidOrUndefinedReferenceId = v6__namespace.optional(IsValidReferenceId);
|
|
848
922
|
var IsValidReferenceDocumentId = v6__namespace.pipe(
|
|
849
923
|
v6__namespace.string("please provide a valid document id"),
|
|
850
924
|
v6__namespace.trim(),
|
|
@@ -1992,6 +2066,93 @@ var SUpdateClientDocumentRequest = v6__namespace.object({
|
|
|
1992
2066
|
documentId: IsValidReferenceDocumentId,
|
|
1993
2067
|
data: SUpdateClientDocument
|
|
1994
2068
|
});
|
|
2069
|
+
var QueryStrapiSortComments = v6__namespace.optional(
|
|
2070
|
+
v6__namespace.object({
|
|
2071
|
+
key: v6__namespace.picklist([
|
|
2072
|
+
"id",
|
|
2073
|
+
"content",
|
|
2074
|
+
"blocked",
|
|
2075
|
+
"blockedThread",
|
|
2076
|
+
"approvalStatus",
|
|
2077
|
+
"createdAt",
|
|
2078
|
+
"updatedAt"
|
|
2079
|
+
]),
|
|
2080
|
+
order: v6__namespace.picklist(["ASC", "DESC"])
|
|
2081
|
+
})
|
|
2082
|
+
);
|
|
2083
|
+
var QueryStrapiFilterComments = v6__namespace.optional(
|
|
2084
|
+
v6__namespace.object({
|
|
2085
|
+
content: v6__namespace.optional(
|
|
2086
|
+
v6__namespace.object({
|
|
2087
|
+
containsi: IsValidShortStringNoMin
|
|
2088
|
+
})
|
|
2089
|
+
),
|
|
2090
|
+
blocked: v6__namespace.optional(
|
|
2091
|
+
v6__namespace.object({
|
|
2092
|
+
eq: IsValidIsBoolean
|
|
2093
|
+
})
|
|
2094
|
+
),
|
|
2095
|
+
blockedThread: v6__namespace.optional(
|
|
2096
|
+
v6__namespace.object({
|
|
2097
|
+
eq: IsValidIsBoolean
|
|
2098
|
+
})
|
|
2099
|
+
),
|
|
2100
|
+
removed: v6__namespace.optional(
|
|
2101
|
+
v6__namespace.object({
|
|
2102
|
+
eq: IsValidIsBoolean
|
|
2103
|
+
})
|
|
2104
|
+
),
|
|
2105
|
+
approvalStatus: v6__namespace.optional(
|
|
2106
|
+
v6__namespace.object({
|
|
2107
|
+
eq: v6__namespace.picklist(
|
|
2108
|
+
CommentApprovalStatusOptions,
|
|
2109
|
+
"You must provide a valid approval status."
|
|
2110
|
+
)
|
|
2111
|
+
})
|
|
2112
|
+
)
|
|
2113
|
+
})
|
|
2114
|
+
);
|
|
2115
|
+
var QueryStrapiComments = v6__namespace.object({
|
|
2116
|
+
relation: IsValidShortString,
|
|
2117
|
+
filters: QueryStrapiFilterComments,
|
|
2118
|
+
sort: QueryStrapiSortComments,
|
|
2119
|
+
page: v6__namespace.optional(v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1))),
|
|
2120
|
+
size: v6__namespace.optional(
|
|
2121
|
+
v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1), v6__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE))
|
|
2122
|
+
)
|
|
2123
|
+
});
|
|
2124
|
+
var QueryStrapiCommentsByAuthor = v6__namespace.object({
|
|
2125
|
+
authorId: IsValidReferenceId,
|
|
2126
|
+
filters: QueryStrapiFilterComments,
|
|
2127
|
+
sort: QueryStrapiSortComments,
|
|
2128
|
+
page: v6__namespace.optional(v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1))),
|
|
2129
|
+
size: v6__namespace.optional(
|
|
2130
|
+
v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1), v6__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE))
|
|
2131
|
+
)
|
|
2132
|
+
});
|
|
2133
|
+
var SCreateCommentDocument = v6__namespace.object({
|
|
2134
|
+
relation: IsValidShortString,
|
|
2135
|
+
content: IsValidLongString,
|
|
2136
|
+
threadOf: IsValidOrUndefinedReferenceId
|
|
2137
|
+
});
|
|
2138
|
+
var SUpdateCommentDocument = v6__namespace.object({
|
|
2139
|
+
id: IsValidReferenceId,
|
|
2140
|
+
relation: IsValidShortString,
|
|
2141
|
+
content: IsValidLongString
|
|
2142
|
+
});
|
|
2143
|
+
var SDeleteCommentDocument = v6__namespace.object({
|
|
2144
|
+
id: IsValidReferenceId,
|
|
2145
|
+
relation: IsValidShortString
|
|
2146
|
+
});
|
|
2147
|
+
var SReportCommentDocument = v6__namespace.object({
|
|
2148
|
+
commentId: IsValidReferenceId,
|
|
2149
|
+
relation: IsValidShortString,
|
|
2150
|
+
reason: v6__namespace.picklist(
|
|
2151
|
+
ReportCommentReasonOptions,
|
|
2152
|
+
"You must select a valid reason for reporting this comment."
|
|
2153
|
+
),
|
|
2154
|
+
content: IsValidLongString
|
|
2155
|
+
});
|
|
1995
2156
|
var QuerySortContentPillars = v6__namespace.optional(
|
|
1996
2157
|
v6__namespace.object({
|
|
1997
2158
|
key: v6__namespace.picklist(["id", "title", "slug", "createdAt", "updatedAt"]),
|
|
@@ -2474,17 +2635,10 @@ var SConnectOneEntityRelation = v6__namespace.object({
|
|
|
2474
2635
|
connect: v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])
|
|
2475
2636
|
});
|
|
2476
2637
|
var SDisconnectOneEntityRelation = v6__namespace.object({
|
|
2477
|
-
disconnect: v6__namespace.
|
|
2478
|
-
v6__namespace.array(v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])),
|
|
2479
|
-
v6__namespace.minLength(1, "At least one document ID is required to disconnect"),
|
|
2480
|
-
v6__namespace.maxLength(100, "A maximum of 100 document IDs can be disconnected per request")
|
|
2481
|
-
)
|
|
2638
|
+
disconnect: v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])
|
|
2482
2639
|
});
|
|
2483
2640
|
var SSetOneEntityRelation = v6__namespace.object({
|
|
2484
|
-
set: v6__namespace.
|
|
2485
|
-
v6__namespace.array(v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])),
|
|
2486
|
-
v6__namespace.minLength(1, "At least one document ID is required to set a relation")
|
|
2487
|
-
)
|
|
2641
|
+
set: v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])
|
|
2488
2642
|
});
|
|
2489
2643
|
var SCreateStrapiMediaUploadDocument = v6__namespace.object({
|
|
2490
2644
|
files: IsValidMediaFile,
|
|
@@ -3158,6 +3312,8 @@ exports.CLIENT_ENTITY_SCOPES = CLIENT_ENTITY_SCOPES;
|
|
|
3158
3312
|
exports.ClientProjectPhaseOptions = ClientProjectPhaseOptions;
|
|
3159
3313
|
exports.ClientProjectPhaseSelectOptions = ClientProjectPhaseSelectOptions;
|
|
3160
3314
|
exports.ClientProjectStatusOptions = ClientProjectStatusOptions;
|
|
3315
|
+
exports.CommentApprovalStatus = CommentApprovalStatus;
|
|
3316
|
+
exports.CommentApprovalStatusOptions = CommentApprovalStatusOptions;
|
|
3161
3317
|
exports.ERROR_MESSAGE_REGEX_DOMAIN = ERROR_MESSAGE_REGEX_DOMAIN;
|
|
3162
3318
|
exports.ERROR_MESSAGE_REGEX_PHONE = ERROR_MESSAGE_REGEX_PHONE;
|
|
3163
3319
|
exports.ERROR_MESSAGE_REGEX_URL_SLUG = ERROR_MESSAGE_REGEX_URL_SLUG;
|
|
@@ -3254,6 +3410,7 @@ exports.IsValidOrUndefinedPhoneNumber = IsValidOrUndefinedPhoneNumber;
|
|
|
3254
3410
|
exports.IsValidOrUndefinedProvider = IsValidOrUndefinedProvider;
|
|
3255
3411
|
exports.IsValidOrUndefinedReferenceDocumentId = IsValidOrUndefinedReferenceDocumentId;
|
|
3256
3412
|
exports.IsValidOrUndefinedReferenceDocumentIdList = IsValidOrUndefinedReferenceDocumentIdList;
|
|
3413
|
+
exports.IsValidOrUndefinedReferenceId = IsValidOrUndefinedReferenceId;
|
|
3257
3414
|
exports.IsValidOrUndefinedShortString = IsValidOrUndefinedShortString;
|
|
3258
3415
|
exports.IsValidOrUndefinedShortStringNoMin = IsValidOrUndefinedShortStringNoMin;
|
|
3259
3416
|
exports.IsValidOrUndefinedSlug = IsValidOrUndefinedSlug;
|
|
@@ -3433,6 +3590,9 @@ exports.QueryStrapiById = QueryStrapiById;
|
|
|
3433
3590
|
exports.QueryStrapiByName = QueryStrapiByName;
|
|
3434
3591
|
exports.QueryStrapiByPhone = QueryStrapiByPhone;
|
|
3435
3592
|
exports.QueryStrapiBySlug = QueryStrapiBySlug;
|
|
3593
|
+
exports.QueryStrapiComments = QueryStrapiComments;
|
|
3594
|
+
exports.QueryStrapiCommentsByAuthor = QueryStrapiCommentsByAuthor;
|
|
3595
|
+
exports.QueryStrapiFilterComments = QueryStrapiFilterComments;
|
|
3436
3596
|
exports.QueryStrapiPaginated = QueryStrapiPaginated;
|
|
3437
3597
|
exports.QueryStrapiPaginatedUrlRedirects = QueryStrapiPaginatedUrlRedirects;
|
|
3438
3598
|
exports.QueryStrapiSearchBlogPosts = QueryStrapiSearchBlogPosts;
|
|
@@ -3453,6 +3613,7 @@ exports.QueryStrapiSearchMediaPlatforms = QueryStrapiSearchMediaPlatforms;
|
|
|
3453
3613
|
exports.QueryStrapiSearchTeamMembers = QueryStrapiSearchTeamMembers;
|
|
3454
3614
|
exports.QueryStrapiSearchTeamworkProjectHealth = QueryStrapiSearchTeamworkProjectHealth;
|
|
3455
3615
|
exports.QueryStrapiSearchUtmTrackingLinks = QueryStrapiSearchUtmTrackingLinks;
|
|
3616
|
+
exports.QueryStrapiSortComments = QueryStrapiSortComments;
|
|
3456
3617
|
exports.QueryStrapiUrlRedirectsByFrom = QueryStrapiUrlRedirectsByFrom;
|
|
3457
3618
|
exports.QueryStrapiUsers = QueryStrapiUsers;
|
|
3458
3619
|
exports.QueryStrapiUsersByIdentifier = QueryStrapiUsersByIdentifier;
|
|
@@ -3462,6 +3623,8 @@ exports.REGEX_NANP_PHONE = REGEX_NANP_PHONE;
|
|
|
3462
3623
|
exports.REGEX_URL_SLUG = REGEX_URL_SLUG;
|
|
3463
3624
|
exports.REGEX_UTM_VALUE = REGEX_UTM_VALUE;
|
|
3464
3625
|
exports.ROLE_PERMISSIONS = ROLE_PERMISSIONS;
|
|
3626
|
+
exports.ReportCommentReason = ReportCommentReason;
|
|
3627
|
+
exports.ReportCommentReasonOptions = ReportCommentReasonOptions;
|
|
3465
3628
|
exports.SAssociateClientMediaPlatformContentTypesToMediaContentType = SAssociateClientMediaPlatformContentTypesToMediaContentType;
|
|
3466
3629
|
exports.SAssociateClientToClientProjectDocument = SAssociateClientToClientProjectDocument;
|
|
3467
3630
|
exports.SAssociateClientsToGCFlyTour = SAssociateClientsToGCFlyTour;
|
|
@@ -3483,6 +3646,7 @@ exports.SCreateClientProjectDocument = SCreateClientProjectDocument;
|
|
|
3483
3646
|
exports.SCreateClientReportDocument = SCreateClientReportDocument;
|
|
3484
3647
|
exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
|
|
3485
3648
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
3649
|
+
exports.SCreateCommentDocument = SCreateCommentDocument;
|
|
3486
3650
|
exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
|
|
3487
3651
|
exports.SCreateGCFlyTourDocument = SCreateGCFlyTourDocument;
|
|
3488
3652
|
exports.SCreateGCFlyTourSnapDocument = SCreateGCFlyTourSnapDocument;
|
|
@@ -3500,6 +3664,7 @@ exports.SCreateUserDocument = SCreateUserDocument;
|
|
|
3500
3664
|
exports.SCreateUtmTrackingLinkDocument = SCreateUtmTrackingLinkDocument;
|
|
3501
3665
|
exports.SCreateUtmTrackingLinkDocumentRequest = SCreateUtmTrackingLinkDocumentRequest;
|
|
3502
3666
|
exports.SCreateUtmTrackingLinkParts = SCreateUtmTrackingLinkParts;
|
|
3667
|
+
exports.SDeleteCommentDocument = SDeleteCommentDocument;
|
|
3503
3668
|
exports.SDisconnectManyEntityRelation = SDisconnectManyEntityRelation;
|
|
3504
3669
|
exports.SDisconnectOneEntityRelation = SDisconnectOneEntityRelation;
|
|
3505
3670
|
exports.SEntityRelation = SEntityRelation;
|
|
@@ -3516,6 +3681,7 @@ exports.SReadUserAccountByDocumentId = SReadUserAccountByDocumentId;
|
|
|
3516
3681
|
exports.SReadUserAccountById = SReadUserAccountById;
|
|
3517
3682
|
exports.SReadUtmTrackingLinkDocumentByUrl = SReadUtmTrackingLinkDocumentByUrl;
|
|
3518
3683
|
exports.SRegisterUser = SRegisterUser;
|
|
3684
|
+
exports.SReportCommentDocument = SReportCommentDocument;
|
|
3519
3685
|
exports.SRequestConfirmEmail = SRequestConfirmEmail;
|
|
3520
3686
|
exports.SResetUserPassword = SResetUserPassword;
|
|
3521
3687
|
exports.SSetManyEntityRelation = SSetManyEntityRelation;
|
|
@@ -3538,6 +3704,7 @@ exports.SUpdateClientStyleguideDocument = SUpdateClientStyleguideDocument;
|
|
|
3538
3704
|
exports.SUpdateClientStyleguideDocumentRequest = SUpdateClientStyleguideDocumentRequest;
|
|
3539
3705
|
exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
3540
3706
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
3707
|
+
exports.SUpdateCommentDocument = SUpdateCommentDocument;
|
|
3541
3708
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
3542
3709
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
3543
3710
|
exports.SUpdateGCFlyTourDocument = SUpdateGCFlyTourDocument;
|