@getcommunity/gc-validators 0.0.173 → 0.0.175
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 +2 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1508,21 +1508,18 @@ type ClientContentPillarDocument = {
|
|
|
1508
1508
|
is_active: boolean;
|
|
1509
1509
|
} & BaseDocument;
|
|
1510
1510
|
|
|
1511
|
-
declare const ReportCommentReasonOptions: ("
|
|
1511
|
+
declare const ReportCommentReasonOptions: ("BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER")[];
|
|
1512
1512
|
declare const ReportCommentReason: {
|
|
1513
|
-
readonly
|
|
1514
|
-
readonly OTHER: "OTHER";
|
|
1513
|
+
readonly BAD_LANGUAGE: "BAD_LANGUAGE";
|
|
1515
1514
|
readonly DISCRIMINATION: "DISCRIMINATION";
|
|
1516
|
-
readonly
|
|
1517
|
-
readonly INAPPROPRIATE: "INAPPROPRIATE";
|
|
1518
|
-
readonly SPAM: "SPAM";
|
|
1515
|
+
readonly OTHER: "OTHER";
|
|
1519
1516
|
};
|
|
1520
1517
|
type ReportCommentReason = keyof typeof ReportCommentReason;
|
|
1521
1518
|
type CommentReportDocument = {
|
|
1522
1519
|
content: string;
|
|
1523
1520
|
reason: ReportCommentReason | null;
|
|
1524
|
-
resolved: boolean | null;
|
|
1525
1521
|
related: CommentDocument[] | null;
|
|
1522
|
+
resolved?: boolean | null;
|
|
1526
1523
|
} & BaseDocument;
|
|
1527
1524
|
declare const CommentApprovalStatusOptions: ("PENDING" | "APPROVED" | "REJECTED")[];
|
|
1528
1525
|
declare const CommentApprovalStatus: {
|
|
@@ -2718,7 +2715,7 @@ declare const SReportCommentDocument: v.ObjectSchema<{
|
|
|
2718
2715
|
readonly relation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>;
|
|
2719
2716
|
readonly commentId: v.NumberSchema<"please provide a valid id">;
|
|
2720
2717
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
2721
|
-
readonly reason: v.PicklistSchema<("
|
|
2718
|
+
readonly reason: v.PicklistSchema<("BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER")[], "You must select a valid reason for reporting this comment.">;
|
|
2722
2719
|
}, undefined>;
|
|
2723
2720
|
type SReportCommentDocument = v.InferOutput<typeof SReportCommentDocument>;
|
|
2724
2721
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1508,21 +1508,18 @@ type ClientContentPillarDocument = {
|
|
|
1508
1508
|
is_active: boolean;
|
|
1509
1509
|
} & BaseDocument;
|
|
1510
1510
|
|
|
1511
|
-
declare const ReportCommentReasonOptions: ("
|
|
1511
|
+
declare const ReportCommentReasonOptions: ("BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER")[];
|
|
1512
1512
|
declare const ReportCommentReason: {
|
|
1513
|
-
readonly
|
|
1514
|
-
readonly OTHER: "OTHER";
|
|
1513
|
+
readonly BAD_LANGUAGE: "BAD_LANGUAGE";
|
|
1515
1514
|
readonly DISCRIMINATION: "DISCRIMINATION";
|
|
1516
|
-
readonly
|
|
1517
|
-
readonly INAPPROPRIATE: "INAPPROPRIATE";
|
|
1518
|
-
readonly SPAM: "SPAM";
|
|
1515
|
+
readonly OTHER: "OTHER";
|
|
1519
1516
|
};
|
|
1520
1517
|
type ReportCommentReason = keyof typeof ReportCommentReason;
|
|
1521
1518
|
type CommentReportDocument = {
|
|
1522
1519
|
content: string;
|
|
1523
1520
|
reason: ReportCommentReason | null;
|
|
1524
|
-
resolved: boolean | null;
|
|
1525
1521
|
related: CommentDocument[] | null;
|
|
1522
|
+
resolved?: boolean | null;
|
|
1526
1523
|
} & BaseDocument;
|
|
1527
1524
|
declare const CommentApprovalStatusOptions: ("PENDING" | "APPROVED" | "REJECTED")[];
|
|
1528
1525
|
declare const CommentApprovalStatus: {
|
|
@@ -2718,7 +2715,7 @@ declare const SReportCommentDocument: v.ObjectSchema<{
|
|
|
2718
2715
|
readonly relation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 255, "The string you provided is too long, it must be 255 characters or less.">]>;
|
|
2719
2716
|
readonly commentId: v.NumberSchema<"please provide a valid id">;
|
|
2720
2717
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "Please provide a valid string.">, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>;
|
|
2721
|
-
readonly reason: v.PicklistSchema<("
|
|
2718
|
+
readonly reason: v.PicklistSchema<("BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER")[], "You must select a valid reason for reporting this comment.">;
|
|
2722
2719
|
}, undefined>;
|
|
2723
2720
|
type SReportCommentDocument = v.InferOutput<typeof SReportCommentDocument>;
|
|
2724
2721
|
|
package/dist/index.js
CHANGED
|
@@ -845,12 +845,9 @@ var ClientProjectPhaseOptions = [
|
|
|
845
845
|
|
|
846
846
|
// src/types/documents/comment.document.ts
|
|
847
847
|
var ReportCommentReason = {
|
|
848
|
-
|
|
849
|
-
OTHER: "OTHER",
|
|
848
|
+
BAD_LANGUAGE: "BAD_LANGUAGE",
|
|
850
849
|
DISCRIMINATION: "DISCRIMINATION",
|
|
851
|
-
|
|
852
|
-
INAPPROPRIATE: "INAPPROPRIATE",
|
|
853
|
-
SPAM: "SPAM"
|
|
850
|
+
OTHER: "OTHER"
|
|
854
851
|
};
|
|
855
852
|
var ReportCommentReasonOptions = Object.values(ReportCommentReason);
|
|
856
853
|
var CommentApprovalStatus = {
|