revdev 0.209.0 → 0.211.0
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ContributionGen } from "../../common";
|
|
1
|
+
import { ContributionGen, EntryStatus } from "../../common";
|
|
2
2
|
import { WordGen } from "../../shared";
|
|
3
3
|
export interface BoWordRecord extends WordGen {
|
|
4
|
+
status?: EntryStatus;
|
|
4
5
|
created: string;
|
|
5
6
|
mode?: string;
|
|
6
7
|
rate?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntryStatus } from "../../common";
|
|
1
2
|
import { FeedRequest, WordFeedExtension, LangFeedRequest } from "../../feed";
|
|
2
3
|
import { CreateWordRequest } from "../../shared";
|
|
3
4
|
export interface BoWordImageFeedRequest extends LangFeedRequest {
|
|
@@ -23,4 +24,6 @@ export interface BoDeleteWordImageRequest {
|
|
|
23
24
|
imageId: string;
|
|
24
25
|
}
|
|
25
26
|
export interface BoWordFeedRequest extends FeedRequest, WordFeedExtension {
|
|
27
|
+
active?: boolean;
|
|
28
|
+
status?: EntryStatus;
|
|
26
29
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare type ExceptionParam = string | string[] | number | number[];
|
|
2
|
+
export interface ExceptionClass {
|
|
3
|
+
statusCode: number;
|
|
4
|
+
exceptionCode: string;
|
|
5
|
+
param?: ExceptionParam;
|
|
6
|
+
}
|
|
7
|
+
export declare enum ExceptionCodes {
|
|
8
|
+
ParameterInvalid = "ParameterInvalid",
|
|
9
|
+
UsernameExists = "UsernameExists",
|
|
10
|
+
UsernameInvalid = "UsernameInvalid",
|
|
11
|
+
EmailExists = "EmailExists",
|
|
12
|
+
EmailInvalid = "EmailInvalid",
|
|
13
|
+
ResetPasswordTokenExpired = "ResetPasswordTokenExpired",
|
|
14
|
+
PasswordInvalid = "PasswordInvalid",
|
|
15
|
+
SlugAlreadyExists = "SlugAlreadyExists",
|
|
16
|
+
SlugInvalid = "SlugInvalid",
|
|
17
|
+
CodeInvalid = "CodeInvalid",
|
|
18
|
+
CodeAlreadyExists = "CodeAlreadyExists",
|
|
19
|
+
TagWordInvalidUserId = "TagWordInvalidUserId",
|
|
20
|
+
LinkToOwn = "LinkToOwn",
|
|
21
|
+
LinkToPrivate = "LinkToPrivate",
|
|
22
|
+
LinkResourceNotFound = "LinkResourceNotFound",
|
|
23
|
+
ListMaxWordsExceeded = "ListMaxWordsExceeded",
|
|
24
|
+
TableMinColumnsBelow = "TableMinColumnsBelow",
|
|
25
|
+
TableMaxColumnsExceeded = "TableMaxColumnsExceeded",
|
|
26
|
+
TableRowColumnsUnmatched = "TableRowColumnsUnmatched",
|
|
27
|
+
TableMaxRowsExceeded = "TableMaxRowsExceeded",
|
|
28
|
+
TableCellMaxWordsExceeded = "TableCellMaxWordsExceeded",
|
|
29
|
+
TableRowInvalidColumnIndex = "TableRowInvalidColumnIndex",
|
|
30
|
+
ImageMinSize = "ImageMinSize",
|
|
31
|
+
CsvParsingValidation = "CsvParsingValidation",
|
|
32
|
+
EntryStatusCannotBeChangedForAdminEntity = "EntryStatusCannotBeChangedForAdminEntity"
|
|
33
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExceptionCodes = void 0;
|
|
4
|
+
var ExceptionCodes;
|
|
5
|
+
(function (ExceptionCodes) {
|
|
6
|
+
// common
|
|
7
|
+
ExceptionCodes["ParameterInvalid"] = "ParameterInvalid";
|
|
8
|
+
// auth
|
|
9
|
+
ExceptionCodes["UsernameExists"] = "UsernameExists";
|
|
10
|
+
ExceptionCodes["UsernameInvalid"] = "UsernameInvalid";
|
|
11
|
+
ExceptionCodes["EmailExists"] = "EmailExists";
|
|
12
|
+
ExceptionCodes["EmailInvalid"] = "EmailInvalid";
|
|
13
|
+
ExceptionCodes["ResetPasswordTokenExpired"] = "ResetPasswordTokenExpired";
|
|
14
|
+
ExceptionCodes["PasswordInvalid"] = "PasswordInvalid";
|
|
15
|
+
//
|
|
16
|
+
ExceptionCodes["SlugAlreadyExists"] = "SlugAlreadyExists";
|
|
17
|
+
ExceptionCodes["SlugInvalid"] = "SlugInvalid";
|
|
18
|
+
ExceptionCodes["CodeInvalid"] = "CodeInvalid";
|
|
19
|
+
ExceptionCodes["CodeAlreadyExists"] = "CodeAlreadyExists";
|
|
20
|
+
ExceptionCodes["TagWordInvalidUserId"] = "TagWordInvalidUserId";
|
|
21
|
+
// link
|
|
22
|
+
ExceptionCodes["LinkToOwn"] = "LinkToOwn";
|
|
23
|
+
ExceptionCodes["LinkToPrivate"] = "LinkToPrivate";
|
|
24
|
+
ExceptionCodes["LinkResourceNotFound"] = "LinkResourceNotFound";
|
|
25
|
+
// list
|
|
26
|
+
ExceptionCodes["ListMaxWordsExceeded"] = "ListMaxWordsExceeded";
|
|
27
|
+
// table
|
|
28
|
+
ExceptionCodes["TableMinColumnsBelow"] = "TableMinColumnsBelow";
|
|
29
|
+
ExceptionCodes["TableMaxColumnsExceeded"] = "TableMaxColumnsExceeded";
|
|
30
|
+
ExceptionCodes["TableRowColumnsUnmatched"] = "TableRowColumnsUnmatched";
|
|
31
|
+
ExceptionCodes["TableMaxRowsExceeded"] = "TableMaxRowsExceeded";
|
|
32
|
+
ExceptionCodes["TableCellMaxWordsExceeded"] = "TableCellMaxWordsExceeded";
|
|
33
|
+
ExceptionCodes["TableRowInvalidColumnIndex"] = "TableRowInvalidColumnIndex";
|
|
34
|
+
// image
|
|
35
|
+
ExceptionCodes["ImageMinSize"] = "ImageMinSize";
|
|
36
|
+
// parsing
|
|
37
|
+
ExceptionCodes["CsvParsingValidation"] = "CsvParsingValidation";
|
|
38
|
+
// entry status
|
|
39
|
+
ExceptionCodes["EntryStatusCannotBeChangedForAdminEntity"] = "EntryStatusCannotBeChangedForAdminEntity";
|
|
40
|
+
})(ExceptionCodes = exports.ExceptionCodes || (exports.ExceptionCodes = {}));
|
package/lib/common/index.d.ts
CHANGED
package/lib/common/index.js
CHANGED