revdev 0.230.0 → 0.232.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.
- package/lib/back/index.d.ts +1 -0
- package/lib/back/index.js +1 -0
- package/lib/back/word/entity.d.ts +1 -10
- package/lib/back/word/request.d.ts +1 -8
- package/lib/back/wordImage/entity.d.ts +14 -0
- package/lib/back/wordImage/index.d.ts +2 -0
- package/lib/back/wordImage/index.js +14 -0
- package/lib/back/wordImage/request.d.ts +9 -0
- package/lib/back/wordImage/request.js +2 -0
- package/lib/common/exception.d.ts +1 -0
- package/lib/common/exception.js +1 -0
- package/lib/feed/index.d.ts +2 -0
- package/lib/front/image/index.d.ts +0 -1
- package/lib/front/image/index.js +0 -1
- package/lib/front/index.d.ts +1 -0
- package/lib/front/index.js +1 -0
- package/lib/front/quiz/entity.d.ts +1 -1
- package/lib/front/word/entity.d.ts +1 -1
- package/lib/front/word/request.d.ts +1 -5
- package/lib/front/wordImage/entity.d.ts +13 -0
- package/lib/front/wordImage/entity.js +2 -0
- package/lib/front/wordImage/index.d.ts +2 -0
- package/lib/front/wordImage/index.js +14 -0
- package/lib/front/wordImage/request.d.ts +4 -0
- package/lib/front/wordImage/request.js +2 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +1 -0
- package/lib/shared/wordImage/entity.d.ts +11 -0
- package/lib/shared/wordImage/entity.js +2 -0
- package/lib/shared/wordImage/index.d.ts +1 -0
- package/lib/shared/wordImage/index.js +13 -0
- package/package.json +1 -1
- package/lib/front/image/entity.d.ts +0 -10
- /package/lib/{front/image → back/wordImage}/entity.js +0 -0
package/lib/back/index.d.ts
CHANGED
package/lib/back/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntryStatus } from "../../common";
|
|
2
2
|
import { WordGen } from "../../shared";
|
|
3
3
|
export interface BoWordRecord extends WordGen {
|
|
4
4
|
status?: EntryStatus;
|
|
@@ -17,15 +17,6 @@ export interface BoWordEntity extends WordGen {
|
|
|
17
17
|
mode?: string;
|
|
18
18
|
rate?: number;
|
|
19
19
|
}
|
|
20
|
-
export interface BoWordImageRecord {
|
|
21
|
-
word: WordGen;
|
|
22
|
-
imageId: string;
|
|
23
|
-
fileName: string;
|
|
24
|
-
thumbnailFileName: string;
|
|
25
|
-
contrib: DualContribGen;
|
|
26
|
-
wordTotal: number;
|
|
27
|
-
rate: number;
|
|
28
|
-
}
|
|
29
20
|
export interface BoWordAudioRecord {
|
|
30
21
|
wordId: string;
|
|
31
22
|
text: string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { EntryStatus } from "../../common";
|
|
2
|
-
import { FeedRequest, WordFeedExtension
|
|
2
|
+
import { FeedRequest, WordFeedExtension } from "../../feed";
|
|
3
3
|
import { CreateWordRequest } from "../../shared";
|
|
4
|
-
export interface BoWordImageFeedRequest extends LangFeedRequest {
|
|
5
|
-
wordId?: string;
|
|
6
|
-
}
|
|
7
4
|
export interface BoWordUpdateRequest {
|
|
8
5
|
mode?: string;
|
|
9
6
|
rate?: number;
|
|
@@ -19,10 +16,6 @@ export interface BoUpdateWordTagRequest {
|
|
|
19
16
|
wordId: string | string[];
|
|
20
17
|
tagCode: string | string[];
|
|
21
18
|
}
|
|
22
|
-
export interface BoDeleteWordImageRequest {
|
|
23
|
-
wordId: string;
|
|
24
|
-
imageId: string;
|
|
25
|
-
}
|
|
26
19
|
export interface BoWordFeedRequest extends FeedRequest, WordFeedExtension {
|
|
27
20
|
active?: boolean;
|
|
28
21
|
status?: EntryStatus;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DualContribGen, EntryStatus } from "../../common";
|
|
2
|
+
import { WordGen } from "../../shared";
|
|
3
|
+
export interface BoWordImageRecord {
|
|
4
|
+
id: string;
|
|
5
|
+
word: WordGen;
|
|
6
|
+
imageId: string;
|
|
7
|
+
fileName: string;
|
|
8
|
+
thumbnailFileName: string;
|
|
9
|
+
contrib: DualContribGen;
|
|
10
|
+
wordTotal: number;
|
|
11
|
+
rate: number;
|
|
12
|
+
active: boolean;
|
|
13
|
+
status?: EntryStatus;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./request"), exports);
|
|
14
|
+
__exportStar(require("./entity"), exports);
|
|
@@ -28,6 +28,7 @@ export declare enum ExceptionCodes {
|
|
|
28
28
|
TableCellMaxWordsExceeded = "TableCellMaxWordsExceeded",
|
|
29
29
|
TableRowInvalidColumnIndex = "TableRowInvalidColumnIndex",
|
|
30
30
|
ImageMinSize = "ImageMinSize",
|
|
31
|
+
ImageCannotUploadInDevelopmentFolder = "ImageCannotUploadInDevelopmentFolder",
|
|
31
32
|
CsvParsingValidation = "CsvParsingValidation",
|
|
32
33
|
EntryStatusCannotBeChangedForAdminEntity = "EntryStatusCannotBeChangedForAdminEntity",
|
|
33
34
|
MaxTranWordPinsExceeded = "MaxTranWordPinsExceeded"
|
package/lib/common/exception.js
CHANGED
|
@@ -33,6 +33,7 @@ var ExceptionCodes;
|
|
|
33
33
|
ExceptionCodes["TableRowInvalidColumnIndex"] = "TableRowInvalidColumnIndex";
|
|
34
34
|
// image
|
|
35
35
|
ExceptionCodes["ImageMinSize"] = "ImageMinSize";
|
|
36
|
+
ExceptionCodes["ImageCannotUploadInDevelopmentFolder"] = "ImageCannotUploadInDevelopmentFolder";
|
|
36
37
|
// parsing
|
|
37
38
|
ExceptionCodes["CsvParsingValidation"] = "CsvParsingValidation";
|
|
38
39
|
// entry status
|
package/lib/feed/index.d.ts
CHANGED
package/lib/front/image/index.js
CHANGED
|
@@ -10,5 +10,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./entity"), exports);
|
|
14
13
|
__exportStar(require("./request"), exports);
|
package/lib/front/index.d.ts
CHANGED
package/lib/front/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QuizMode } from "../../common";
|
|
2
2
|
import { WordGen } from "../../shared";
|
|
3
|
-
import { FeWordImageRecord } from "../image";
|
|
4
3
|
import { FeTranRecord } from "../tran";
|
|
5
4
|
import { WordDataGen } from "../word";
|
|
5
|
+
import { FeWordImageRecord } from "../wordImage";
|
|
6
6
|
export interface FeQuizEntity {
|
|
7
7
|
mode: QuizMode;
|
|
8
8
|
pairs: FeQuizPair[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Feed } from "../../feed";
|
|
2
2
|
import { QuizCode, QuizMode, DualContribGen, AccessGen, ContribGen } from "../../common";
|
|
3
|
-
import { FeWordImageRecord } from "../image";
|
|
4
3
|
import { FeTranRecord } from "../tran";
|
|
5
4
|
import { ReactionGen, WordUserGen } from "../../shared";
|
|
5
|
+
import { FeWordImageRecord } from "../wordImage";
|
|
6
6
|
export interface WordDataGen extends WordUserGen {
|
|
7
7
|
attempts?: FeWordAttempt[];
|
|
8
8
|
images?: FeWordImageRecord[];
|
|
@@ -12,8 +12,7 @@ export interface FeWordEntityIdRequest extends BaseWordEntityRequest {
|
|
|
12
12
|
id: string;
|
|
13
13
|
}
|
|
14
14
|
export declare type FeWordEntityRequest = FeWordEntityTextRequest | FeWordEntityIdRequest;
|
|
15
|
-
export interface FeTranFeedRequest {
|
|
16
|
-
skip: number;
|
|
15
|
+
export interface FeTranFeedRequest extends ShortFeedRequest {
|
|
17
16
|
wordId: string;
|
|
18
17
|
tranId?: string;
|
|
19
18
|
langCode?: string;
|
|
@@ -30,9 +29,6 @@ export interface FeWordAttemptRequest {
|
|
|
30
29
|
export interface FeWordAudioFeedRequest extends ShortFeedRequest {
|
|
31
30
|
wordIds: string[];
|
|
32
31
|
}
|
|
33
|
-
export interface FeWordImageFeedRequest extends ShortFeedRequest {
|
|
34
|
-
wordIds: string[];
|
|
35
|
-
}
|
|
36
32
|
export interface FeWordFeedRequest extends FeedRequest, WordFeedExtension {
|
|
37
33
|
}
|
|
38
34
|
export interface FeWordOptionRequest {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DualContribGen, UserReaction } from "../../common";
|
|
2
|
+
export interface FeWordImageRecord {
|
|
3
|
+
id: string;
|
|
4
|
+
wordId: string;
|
|
5
|
+
imageId: string;
|
|
6
|
+
fileName: string;
|
|
7
|
+
thumbnailFileName: string;
|
|
8
|
+
active: boolean;
|
|
9
|
+
rate: number;
|
|
10
|
+
reaction: UserReaction;
|
|
11
|
+
pinned: boolean;
|
|
12
|
+
contrib: DualContribGen;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./request"), exports);
|
|
14
|
+
__exportStar(require("./entity"), exports);
|
package/lib/shared/index.d.ts
CHANGED
package/lib/shared/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./entity";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./entity"), exports);
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DualContribGen } from "../../common";
|
|
2
|
-
import { ReactionGen } from "../../shared";
|
|
3
|
-
export interface FeWordImageRecord {
|
|
4
|
-
wordId: string;
|
|
5
|
-
imageId: string;
|
|
6
|
-
fileName: string;
|
|
7
|
-
thumbnailFileName: string;
|
|
8
|
-
reaction?: ReactionGen;
|
|
9
|
-
contrib?: DualContribGen;
|
|
10
|
-
}
|
|
File without changes
|