@getcommunity/gc-validators 0.0.172 → 0.0.173
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1532,20 +1532,24 @@ declare const CommentApprovalStatus: {
|
|
|
1532
1532
|
};
|
|
1533
1533
|
type CommentApprovalStatus = keyof typeof CommentApprovalStatus;
|
|
1534
1534
|
type CommentDocument = {
|
|
1535
|
+
id: string;
|
|
1536
|
+
documentId: string;
|
|
1537
|
+
createdAt: string;
|
|
1538
|
+
updatedAt: string;
|
|
1535
1539
|
content: string;
|
|
1536
1540
|
blocked: boolean | null;
|
|
1537
1541
|
blockedThread: boolean | null;
|
|
1538
1542
|
removed: boolean | null;
|
|
1539
1543
|
approvalStatus: CommentApprovalStatus | null;
|
|
1540
1544
|
author: {
|
|
1541
|
-
id:
|
|
1545
|
+
id: string;
|
|
1542
1546
|
name: string;
|
|
1543
1547
|
} | null;
|
|
1544
1548
|
threadOf: {
|
|
1545
|
-
id:
|
|
1549
|
+
id: string;
|
|
1546
1550
|
} | null;
|
|
1547
1551
|
children: CommentDocument[] | null;
|
|
1548
|
-
}
|
|
1552
|
+
};
|
|
1549
1553
|
|
|
1550
1554
|
type LeadDocument = {
|
|
1551
1555
|
first_name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1532,20 +1532,24 @@ declare const CommentApprovalStatus: {
|
|
|
1532
1532
|
};
|
|
1533
1533
|
type CommentApprovalStatus = keyof typeof CommentApprovalStatus;
|
|
1534
1534
|
type CommentDocument = {
|
|
1535
|
+
id: string;
|
|
1536
|
+
documentId: string;
|
|
1537
|
+
createdAt: string;
|
|
1538
|
+
updatedAt: string;
|
|
1535
1539
|
content: string;
|
|
1536
1540
|
blocked: boolean | null;
|
|
1537
1541
|
blockedThread: boolean | null;
|
|
1538
1542
|
removed: boolean | null;
|
|
1539
1543
|
approvalStatus: CommentApprovalStatus | null;
|
|
1540
1544
|
author: {
|
|
1541
|
-
id:
|
|
1545
|
+
id: string;
|
|
1542
1546
|
name: string;
|
|
1543
1547
|
} | null;
|
|
1544
1548
|
threadOf: {
|
|
1545
|
-
id:
|
|
1549
|
+
id: string;
|
|
1546
1550
|
} | null;
|
|
1547
1551
|
children: CommentDocument[] | null;
|
|
1548
|
-
}
|
|
1552
|
+
};
|
|
1549
1553
|
|
|
1550
1554
|
type LeadDocument = {
|
|
1551
1555
|
first_name: string;
|
package/dist/index.js
CHANGED
|
@@ -106,11 +106,11 @@ var ROLE_PERMISSIONS = {
|
|
|
106
106
|
create: true,
|
|
107
107
|
update: (u, p, d) => {
|
|
108
108
|
var _a;
|
|
109
|
-
return u.id === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
109
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
110
110
|
},
|
|
111
111
|
delete: (u, p, d) => {
|
|
112
112
|
var _a;
|
|
113
|
-
return u.id === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
113
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
114
114
|
},
|
|
115
115
|
report: true
|
|
116
116
|
},
|
|
@@ -352,11 +352,11 @@ var ROLE_PERMISSIONS = {
|
|
|
352
352
|
create: true,
|
|
353
353
|
update: (u, p, d) => {
|
|
354
354
|
var _a;
|
|
355
|
-
return u.id === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
355
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
356
356
|
},
|
|
357
357
|
delete: (u, p, d) => {
|
|
358
358
|
var _a;
|
|
359
|
-
return u.id === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
359
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
360
360
|
},
|
|
361
361
|
report: true
|
|
362
362
|
},
|
|
@@ -488,7 +488,7 @@ var ROLE_PERMISSIONS = {
|
|
|
488
488
|
create: true,
|
|
489
489
|
update: (u, p, d) => {
|
|
490
490
|
var _a;
|
|
491
|
-
return u.id === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
491
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
492
492
|
},
|
|
493
493
|
delete: true,
|
|
494
494
|
report: true
|
|
@@ -612,11 +612,11 @@ var ROLE_PERMISSIONS = {
|
|
|
612
612
|
create: true,
|
|
613
613
|
update: (u, p, d) => {
|
|
614
614
|
var _a;
|
|
615
|
-
return u.id === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
615
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
616
616
|
},
|
|
617
617
|
delete: (u, p, d) => {
|
|
618
618
|
var _a;
|
|
619
|
-
return u.id === ((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
619
|
+
return u.id === Number((_a = d == null ? void 0 : d.author) == null ? void 0 : _a.id);
|
|
620
620
|
},
|
|
621
621
|
report: true
|
|
622
622
|
},
|