revdev 0.208.0 → 0.210.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 +1,2 @@
1
1
  export * from "./entity";
2
+ export * from "./request";
@@ -11,3 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./entity"), exports);
14
+ __exportStar(require("./request"), exports);
@@ -0,0 +1,8 @@
1
+ import { EntryStatus } from "../../common";
2
+ export interface BoEntryStatusUpdateRequest {
3
+ id: string;
4
+ status: EntryStatus;
5
+ }
6
+ export interface BoEntryStatusUpdateModifier extends BoEntryStatusUpdateRequest {
7
+ active: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,10 +6,3 @@ export interface BoTranFeedRequest extends FeedRequest {
6
6
  speechPartId?: string;
7
7
  status?: EntryStatus;
8
8
  }
9
- export interface BoTranStatusUpdateRequest {
10
- id: string;
11
- status: EntryStatus;
12
- }
13
- export interface BoTranStatusUpdateModifier extends BoTranStatusUpdateRequest {
14
- active: boolean;
15
- }
@@ -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;
@@ -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 = {}));
@@ -7,3 +7,4 @@ export * from "./entity";
7
7
  export * from "./gen";
8
8
  export * from "./link";
9
9
  export * from "./feed";
10
+ export * from "./exception";
@@ -19,3 +19,4 @@ __exportStar(require("./entity"), exports);
19
19
  __exportStar(require("./gen"), exports);
20
20
  __exportStar(require("./link"), exports);
21
21
  __exportStar(require("./feed"), exports);
22
+ __exportStar(require("./exception"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.208.0",
3
+ "version": "0.210.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",