@getcommunity/gc-validators 0.0.161 → 0.0.165
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 +247 -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 +235 -83
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,91 @@ 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.object({
|
|
2084
|
+
content: v6__namespace.optional(
|
|
2085
|
+
v6__namespace.object({
|
|
2086
|
+
containsi: IsValidShortStringNoMin
|
|
2087
|
+
})
|
|
2088
|
+
),
|
|
2089
|
+
blocked: v6__namespace.optional(
|
|
2090
|
+
v6__namespace.object({
|
|
2091
|
+
eq: IsValidIsBoolean
|
|
2092
|
+
})
|
|
2093
|
+
),
|
|
2094
|
+
blockedThread: v6__namespace.optional(
|
|
2095
|
+
v6__namespace.object({
|
|
2096
|
+
eq: IsValidIsBoolean
|
|
2097
|
+
})
|
|
2098
|
+
),
|
|
2099
|
+
removed: v6__namespace.optional(
|
|
2100
|
+
v6__namespace.object({
|
|
2101
|
+
eq: IsValidIsBoolean
|
|
2102
|
+
})
|
|
2103
|
+
),
|
|
2104
|
+
approvalStatus: v6__namespace.optional(
|
|
2105
|
+
v6__namespace.object({
|
|
2106
|
+
eq: v6__namespace.picklist(
|
|
2107
|
+
CommentApprovalStatusOptions,
|
|
2108
|
+
"You must provide a valid approval status."
|
|
2109
|
+
)
|
|
2110
|
+
})
|
|
2111
|
+
)
|
|
2112
|
+
});
|
|
2113
|
+
var QueryStrapiComments = v6__namespace.object({
|
|
2114
|
+
relation: IsValidShortString,
|
|
2115
|
+
filters: QueryStrapiFilterComments,
|
|
2116
|
+
sort: QueryStrapiSortComments,
|
|
2117
|
+
page: v6__namespace.optional(v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1))),
|
|
2118
|
+
size: v6__namespace.optional(
|
|
2119
|
+
v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1), v6__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE))
|
|
2120
|
+
)
|
|
2121
|
+
});
|
|
2122
|
+
var QueryStrapiCommentsByAuthor = v6__namespace.object({
|
|
2123
|
+
authorId: IsValidReferenceId,
|
|
2124
|
+
filters: QueryStrapiFilterComments,
|
|
2125
|
+
sort: QueryStrapiSortComments,
|
|
2126
|
+
page: v6__namespace.optional(v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1))),
|
|
2127
|
+
size: v6__namespace.optional(
|
|
2128
|
+
v6__namespace.pipe(v6__namespace.number(), v6__namespace.minValue(1), v6__namespace.maxValue(LIMIT_PAGINATION_MAX_SIZE))
|
|
2129
|
+
)
|
|
2130
|
+
});
|
|
2131
|
+
var SCreateCommentDocument = v6__namespace.object({
|
|
2132
|
+
relation: IsValidShortString,
|
|
2133
|
+
content: IsValidLongString,
|
|
2134
|
+
threadOf: IsValidOrUndefinedReferenceId
|
|
2135
|
+
});
|
|
2136
|
+
var SUpdateCommentDocument = v6__namespace.object({
|
|
2137
|
+
id: IsValidReferenceId,
|
|
2138
|
+
relation: IsValidShortString,
|
|
2139
|
+
content: IsValidLongString
|
|
2140
|
+
});
|
|
2141
|
+
var SDeleteCommentDocument = v6__namespace.object({
|
|
2142
|
+
id: IsValidReferenceId,
|
|
2143
|
+
relation: IsValidShortString
|
|
2144
|
+
});
|
|
2145
|
+
var SReportCommentDocument = v6__namespace.object({
|
|
2146
|
+
commentId: IsValidReferenceId,
|
|
2147
|
+
relation: IsValidShortString,
|
|
2148
|
+
reason: v6__namespace.picklist(
|
|
2149
|
+
ReportCommentReasonOptions,
|
|
2150
|
+
"You must select a valid reason for reporting this comment."
|
|
2151
|
+
),
|
|
2152
|
+
content: IsValidLongString
|
|
2153
|
+
});
|
|
1995
2154
|
var QuerySortContentPillars = v6__namespace.optional(
|
|
1996
2155
|
v6__namespace.object({
|
|
1997
2156
|
key: v6__namespace.picklist(["id", "title", "slug", "createdAt", "updatedAt"]),
|
|
@@ -2474,17 +2633,10 @@ var SConnectOneEntityRelation = v6__namespace.object({
|
|
|
2474
2633
|
connect: v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])
|
|
2475
2634
|
});
|
|
2476
2635
|
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
|
-
)
|
|
2636
|
+
disconnect: v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])
|
|
2482
2637
|
});
|
|
2483
2638
|
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
|
-
)
|
|
2639
|
+
set: v6__namespace.union([IsValidReferenceDocumentId, SEntityRelation])
|
|
2488
2640
|
});
|
|
2489
2641
|
var SCreateStrapiMediaUploadDocument = v6__namespace.object({
|
|
2490
2642
|
files: IsValidMediaFile,
|
|
@@ -3158,6 +3310,8 @@ exports.CLIENT_ENTITY_SCOPES = CLIENT_ENTITY_SCOPES;
|
|
|
3158
3310
|
exports.ClientProjectPhaseOptions = ClientProjectPhaseOptions;
|
|
3159
3311
|
exports.ClientProjectPhaseSelectOptions = ClientProjectPhaseSelectOptions;
|
|
3160
3312
|
exports.ClientProjectStatusOptions = ClientProjectStatusOptions;
|
|
3313
|
+
exports.CommentApprovalStatus = CommentApprovalStatus;
|
|
3314
|
+
exports.CommentApprovalStatusOptions = CommentApprovalStatusOptions;
|
|
3161
3315
|
exports.ERROR_MESSAGE_REGEX_DOMAIN = ERROR_MESSAGE_REGEX_DOMAIN;
|
|
3162
3316
|
exports.ERROR_MESSAGE_REGEX_PHONE = ERROR_MESSAGE_REGEX_PHONE;
|
|
3163
3317
|
exports.ERROR_MESSAGE_REGEX_URL_SLUG = ERROR_MESSAGE_REGEX_URL_SLUG;
|
|
@@ -3254,6 +3408,7 @@ exports.IsValidOrUndefinedPhoneNumber = IsValidOrUndefinedPhoneNumber;
|
|
|
3254
3408
|
exports.IsValidOrUndefinedProvider = IsValidOrUndefinedProvider;
|
|
3255
3409
|
exports.IsValidOrUndefinedReferenceDocumentId = IsValidOrUndefinedReferenceDocumentId;
|
|
3256
3410
|
exports.IsValidOrUndefinedReferenceDocumentIdList = IsValidOrUndefinedReferenceDocumentIdList;
|
|
3411
|
+
exports.IsValidOrUndefinedReferenceId = IsValidOrUndefinedReferenceId;
|
|
3257
3412
|
exports.IsValidOrUndefinedShortString = IsValidOrUndefinedShortString;
|
|
3258
3413
|
exports.IsValidOrUndefinedShortStringNoMin = IsValidOrUndefinedShortStringNoMin;
|
|
3259
3414
|
exports.IsValidOrUndefinedSlug = IsValidOrUndefinedSlug;
|
|
@@ -3433,6 +3588,9 @@ exports.QueryStrapiById = QueryStrapiById;
|
|
|
3433
3588
|
exports.QueryStrapiByName = QueryStrapiByName;
|
|
3434
3589
|
exports.QueryStrapiByPhone = QueryStrapiByPhone;
|
|
3435
3590
|
exports.QueryStrapiBySlug = QueryStrapiBySlug;
|
|
3591
|
+
exports.QueryStrapiComments = QueryStrapiComments;
|
|
3592
|
+
exports.QueryStrapiCommentsByAuthor = QueryStrapiCommentsByAuthor;
|
|
3593
|
+
exports.QueryStrapiFilterComments = QueryStrapiFilterComments;
|
|
3436
3594
|
exports.QueryStrapiPaginated = QueryStrapiPaginated;
|
|
3437
3595
|
exports.QueryStrapiPaginatedUrlRedirects = QueryStrapiPaginatedUrlRedirects;
|
|
3438
3596
|
exports.QueryStrapiSearchBlogPosts = QueryStrapiSearchBlogPosts;
|
|
@@ -3453,6 +3611,7 @@ exports.QueryStrapiSearchMediaPlatforms = QueryStrapiSearchMediaPlatforms;
|
|
|
3453
3611
|
exports.QueryStrapiSearchTeamMembers = QueryStrapiSearchTeamMembers;
|
|
3454
3612
|
exports.QueryStrapiSearchTeamworkProjectHealth = QueryStrapiSearchTeamworkProjectHealth;
|
|
3455
3613
|
exports.QueryStrapiSearchUtmTrackingLinks = QueryStrapiSearchUtmTrackingLinks;
|
|
3614
|
+
exports.QueryStrapiSortComments = QueryStrapiSortComments;
|
|
3456
3615
|
exports.QueryStrapiUrlRedirectsByFrom = QueryStrapiUrlRedirectsByFrom;
|
|
3457
3616
|
exports.QueryStrapiUsers = QueryStrapiUsers;
|
|
3458
3617
|
exports.QueryStrapiUsersByIdentifier = QueryStrapiUsersByIdentifier;
|
|
@@ -3462,6 +3621,8 @@ exports.REGEX_NANP_PHONE = REGEX_NANP_PHONE;
|
|
|
3462
3621
|
exports.REGEX_URL_SLUG = REGEX_URL_SLUG;
|
|
3463
3622
|
exports.REGEX_UTM_VALUE = REGEX_UTM_VALUE;
|
|
3464
3623
|
exports.ROLE_PERMISSIONS = ROLE_PERMISSIONS;
|
|
3624
|
+
exports.ReportCommentReason = ReportCommentReason;
|
|
3625
|
+
exports.ReportCommentReasonOptions = ReportCommentReasonOptions;
|
|
3465
3626
|
exports.SAssociateClientMediaPlatformContentTypesToMediaContentType = SAssociateClientMediaPlatformContentTypesToMediaContentType;
|
|
3466
3627
|
exports.SAssociateClientToClientProjectDocument = SAssociateClientToClientProjectDocument;
|
|
3467
3628
|
exports.SAssociateClientsToGCFlyTour = SAssociateClientsToGCFlyTour;
|
|
@@ -3483,6 +3644,7 @@ exports.SCreateClientProjectDocument = SCreateClientProjectDocument;
|
|
|
3483
3644
|
exports.SCreateClientReportDocument = SCreateClientReportDocument;
|
|
3484
3645
|
exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
|
|
3485
3646
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
3647
|
+
exports.SCreateCommentDocument = SCreateCommentDocument;
|
|
3486
3648
|
exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
|
|
3487
3649
|
exports.SCreateGCFlyTourDocument = SCreateGCFlyTourDocument;
|
|
3488
3650
|
exports.SCreateGCFlyTourSnapDocument = SCreateGCFlyTourSnapDocument;
|
|
@@ -3500,6 +3662,7 @@ exports.SCreateUserDocument = SCreateUserDocument;
|
|
|
3500
3662
|
exports.SCreateUtmTrackingLinkDocument = SCreateUtmTrackingLinkDocument;
|
|
3501
3663
|
exports.SCreateUtmTrackingLinkDocumentRequest = SCreateUtmTrackingLinkDocumentRequest;
|
|
3502
3664
|
exports.SCreateUtmTrackingLinkParts = SCreateUtmTrackingLinkParts;
|
|
3665
|
+
exports.SDeleteCommentDocument = SDeleteCommentDocument;
|
|
3503
3666
|
exports.SDisconnectManyEntityRelation = SDisconnectManyEntityRelation;
|
|
3504
3667
|
exports.SDisconnectOneEntityRelation = SDisconnectOneEntityRelation;
|
|
3505
3668
|
exports.SEntityRelation = SEntityRelation;
|
|
@@ -3516,6 +3679,7 @@ exports.SReadUserAccountByDocumentId = SReadUserAccountByDocumentId;
|
|
|
3516
3679
|
exports.SReadUserAccountById = SReadUserAccountById;
|
|
3517
3680
|
exports.SReadUtmTrackingLinkDocumentByUrl = SReadUtmTrackingLinkDocumentByUrl;
|
|
3518
3681
|
exports.SRegisterUser = SRegisterUser;
|
|
3682
|
+
exports.SReportCommentDocument = SReportCommentDocument;
|
|
3519
3683
|
exports.SRequestConfirmEmail = SRequestConfirmEmail;
|
|
3520
3684
|
exports.SResetUserPassword = SResetUserPassword;
|
|
3521
3685
|
exports.SSetManyEntityRelation = SSetManyEntityRelation;
|
|
@@ -3538,6 +3702,7 @@ exports.SUpdateClientStyleguideDocument = SUpdateClientStyleguideDocument;
|
|
|
3538
3702
|
exports.SUpdateClientStyleguideDocumentRequest = SUpdateClientStyleguideDocumentRequest;
|
|
3539
3703
|
exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
3540
3704
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
3705
|
+
exports.SUpdateCommentDocument = SUpdateCommentDocument;
|
|
3541
3706
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
3542
3707
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
3543
3708
|
exports.SUpdateGCFlyTourDocument = SUpdateGCFlyTourDocument;
|