revdev 0.311.0 → 0.312.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.
Files changed (84) hide show
  1. package/lib/back/course/entity.d.ts +19 -0
  2. package/lib/back/course/entity.js +2 -0
  3. package/lib/back/course/index.d.ts +2 -0
  4. package/lib/back/course/index.js +18 -0
  5. package/lib/back/course/request.d.ts +13 -0
  6. package/lib/back/course/request.js +2 -0
  7. package/lib/back/episode/entity.d.ts +9 -0
  8. package/lib/back/episode/entity.js +2 -0
  9. package/lib/back/episode/index.d.ts +2 -0
  10. package/lib/back/episode/index.js +18 -0
  11. package/lib/back/episode/request.d.ts +4 -0
  12. package/lib/back/episode/request.js +2 -0
  13. package/lib/back/exercise/entity.d.ts +32 -0
  14. package/lib/back/exercise/entity.js +2 -0
  15. package/lib/back/exercise/index.d.ts +2 -0
  16. package/lib/back/exercise/index.js +18 -0
  17. package/lib/back/exercise/request.d.ts +4 -0
  18. package/lib/back/exercise/request.js +2 -0
  19. package/lib/back/index.d.ts +4 -0
  20. package/lib/back/index.js +4 -0
  21. package/lib/back/item/entity.d.ts +25 -0
  22. package/lib/back/item/entity.js +2 -0
  23. package/lib/back/item/index.d.ts +2 -0
  24. package/lib/back/item/index.js +18 -0
  25. package/lib/back/item/request.d.ts +4 -0
  26. package/lib/back/item/request.js +2 -0
  27. package/lib/back/list/entity.d.ts +3 -7
  28. package/lib/back/table/entity.d.ts +2 -5
  29. package/lib/back/tran/entity.d.ts +0 -8
  30. package/lib/common/course.d.ts +5 -0
  31. package/lib/common/course.js +2 -0
  32. package/lib/common/entity.d.ts +5 -0
  33. package/lib/common/enums.d.ts +33 -0
  34. package/lib/common/enums.js +43 -1
  35. package/lib/common/exception.d.ts +4 -1
  36. package/lib/common/exception.js +4 -1
  37. package/lib/common/index.d.ts +1 -0
  38. package/lib/common/index.js +1 -0
  39. package/lib/feed/index.d.ts +0 -1
  40. package/lib/front/course/entity.d.ts +19 -0
  41. package/lib/front/course/entity.js +2 -0
  42. package/lib/front/course/index.d.ts +1 -0
  43. package/lib/front/course/index.js +17 -0
  44. package/lib/front/discover/request.d.ts +1 -0
  45. package/lib/front/episode/entity.d.ts +20 -0
  46. package/lib/front/episode/entity.js +2 -0
  47. package/lib/front/episode/index.d.ts +1 -0
  48. package/lib/front/episode/index.js +17 -0
  49. package/lib/front/exercise/entity.d.ts +57 -0
  50. package/lib/front/exercise/entity.js +2 -0
  51. package/lib/front/exercise/index.d.ts +1 -0
  52. package/lib/front/exercise/index.js +17 -0
  53. package/lib/front/index.d.ts +5 -0
  54. package/lib/front/index.js +5 -0
  55. package/lib/front/item/entity.d.ts +33 -0
  56. package/lib/front/item/entity.js +2 -0
  57. package/lib/front/item/index.d.ts +2 -0
  58. package/lib/front/item/index.js +18 -0
  59. package/lib/front/item/request.d.ts +5 -0
  60. package/lib/front/item/request.js +2 -0
  61. package/lib/front/list/entity.d.ts +3 -5
  62. package/lib/front/pass/entity.d.ts +39 -0
  63. package/lib/front/pass/entity.js +2 -0
  64. package/lib/front/pass/index.d.ts +2 -0
  65. package/lib/front/pass/index.js +18 -0
  66. package/lib/front/pass/request.d.ts +34 -0
  67. package/lib/front/pass/request.js +5 -0
  68. package/lib/front/table/entity.d.ts +3 -5
  69. package/lib/front/table/request.d.ts +1 -0
  70. package/lib/shared/course/request.d.ts +8 -1
  71. package/lib/shared/episode/request.d.ts +4 -2
  72. package/lib/shared/exercise/basic.d.ts +10 -0
  73. package/lib/shared/exercise/basic.js +2 -0
  74. package/lib/shared/exercise/index.d.ts +2 -0
  75. package/lib/shared/exercise/index.js +2 -0
  76. package/lib/shared/exercise/list.d.ts +4 -2
  77. package/lib/shared/exercise/regular.d.ts +15 -0
  78. package/lib/shared/exercise/regular.js +2 -0
  79. package/lib/shared/exercise/request.d.ts +6 -21
  80. package/lib/shared/exercise/table.d.ts +3 -2
  81. package/lib/shared/general/entity.d.ts +3 -0
  82. package/lib/shared/item/request.d.ts +7 -7
  83. package/lib/shared/table/request.d.ts +2 -2
  84. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import { DualContribGen, ImageGen, PassStatus, PostStatus, UserInfoGen } from "../../common";
2
+ export interface BoCourseRecord {
3
+ id: string;
4
+ name: string;
5
+ description?: string;
6
+ status?: PostStatus;
7
+ contrib: DualContribGen;
8
+ langCode: string;
9
+ image: ImageGen | null;
10
+ }
11
+ export interface BoCourseUserPassRecord {
12
+ id: string;
13
+ status: PassStatus;
14
+ created: string;
15
+ courseId: string;
16
+ courseName: string;
17
+ courseLangCode: string;
18
+ user: UserInfoGen;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./entity";
2
+ export * from "./request";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entity"), exports);
18
+ __exportStar(require("./request"), exports);
@@ -0,0 +1,13 @@
1
+ import { PostStatus, PassStatus } from "../../common";
2
+ import { FeedRequest } from "../../feed";
3
+ export interface BoCourseFeedRequest extends FeedRequest {
4
+ status?: PostStatus;
5
+ langCode?: string;
6
+ }
7
+ export interface BoCourseUserPassFeedRequest extends FeedRequest {
8
+ status?: PassStatus;
9
+ }
10
+ export interface BoDeletePassCourseRequest {
11
+ courseId: string;
12
+ userId: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { DualContribGen } from "../../common";
2
+ export interface BoEpisodeRecord {
3
+ id: string;
4
+ name: string;
5
+ valid: boolean;
6
+ contrib: DualContribGen;
7
+ langCode: string;
8
+ position: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./entity";
2
+ export * from "./request";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entity"), exports);
18
+ __exportStar(require("./request"), exports);
@@ -0,0 +1,4 @@
1
+ import { FeedRequest } from "../../feed";
2
+ export interface BoEpisodeFeedRequest extends FeedRequest {
3
+ courseId?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { DualContribGen, ExerciseMode, ExerciseType, StringOption } from "../../common";
2
+ export interface BoExerciseRecord {
3
+ id: string;
4
+ name: string;
5
+ type: ExerciseType;
6
+ valid: boolean;
7
+ contrib: DualContribGen;
8
+ episodeId: string;
9
+ langCode: string;
10
+ position: number;
11
+ }
12
+ export interface BoExerciseRegularRecord extends BoExerciseRecord {
13
+ randomTips?: boolean;
14
+ mode?: ExerciseMode;
15
+ }
16
+ export interface BoExerciseListRecord extends BoExerciseRecord {
17
+ listId: string;
18
+ words: StringOption[];
19
+ }
20
+ export interface BoExerciseTableCell {
21
+ words: StringOption[];
22
+ columnIndex: number;
23
+ }
24
+ export interface BoExerciseTableRow {
25
+ cells: BoExerciseTableCell[];
26
+ rowId?: string;
27
+ }
28
+ export interface BoExerciseTableRecord extends BoExerciseRecord {
29
+ tableId: string;
30
+ columns: string[];
31
+ rows: BoExerciseTableRow[];
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./entity";
2
+ export * from "./request";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entity"), exports);
18
+ __exportStar(require("./request"), exports);
@@ -0,0 +1,4 @@
1
+ import { FeedRequest } from "../../feed";
2
+ export interface BoExerciseFeedRequest extends FeedRequest {
3
+ episodeId?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,3 +15,7 @@ export * from "./lang";
15
15
  export * from "./wordImage";
16
16
  export * from "./smm";
17
17
  export * from "./wordAudio";
18
+ export * from "./course";
19
+ export * from "./episode";
20
+ export * from "./exercise";
21
+ export * from "./item";
package/lib/back/index.js CHANGED
@@ -31,3 +31,7 @@ __exportStar(require("./lang"), exports);
31
31
  __exportStar(require("./wordImage"), exports);
32
32
  __exportStar(require("./smm"), exports);
33
33
  __exportStar(require("./wordAudio"), exports);
34
+ __exportStar(require("./course"), exports);
35
+ __exportStar(require("./episode"), exports);
36
+ __exportStar(require("./exercise"), exports);
37
+ __exportStar(require("./item"), exports);
@@ -0,0 +1,25 @@
1
+ import { DualContribGen, ItemType } from "../../common";
2
+ export interface BoItemTipRecord {
3
+ id: string;
4
+ text: string;
5
+ index: number;
6
+ }
7
+ export interface BoItemAnswerRecord {
8
+ id: string;
9
+ text: string;
10
+ index: number;
11
+ }
12
+ export interface BoItemRecord {
13
+ id: string;
14
+ content: string;
15
+ contrib: DualContribGen;
16
+ type: ItemType;
17
+ exerciseId: string;
18
+ isExample: boolean;
19
+ tips: BoItemTipRecord[];
20
+ answers: BoItemAnswerRecord[];
21
+ imageId?: string;
22
+ imageUrl?: string;
23
+ imageThumbnailUrl?: string;
24
+ position: number;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./entity";
2
+ export * from "./request";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entity"), exports);
18
+ __exportStar(require("./request"), exports);
@@ -0,0 +1,4 @@
1
+ import { FeedRequest } from "../../feed";
2
+ export interface BoItemFeedRequest extends FeedRequest {
3
+ exerciseId?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { DualContribGen } from "../../common";
1
+ import { DualContribGen, ImageGen } from "../../common";
2
2
  import { BoUpdateListRequest } from "./request";
3
3
  export interface BoListRecord {
4
4
  id: string;
@@ -11,12 +11,8 @@ export interface BoListRecord {
11
11
  contrib: DualContribGen;
12
12
  wordTotal: number;
13
13
  userTotal: number;
14
- fileName?: string;
15
- thumbnailFileName?: string;
16
- imageUrl?: string;
17
- imageThumbnailUrl?: string;
14
+ image: ImageGen | null;
18
15
  }
19
16
  export interface BoListModifier extends BoUpdateListRequest {
20
- imageUrl?: string;
21
- imageThumbnailUrl?: string;
17
+ image: ImageGen | null;
22
18
  }
@@ -1,4 +1,4 @@
1
- import { DualContribGen } from "../../common";
1
+ import { DualContribGen, ImageGen } from "../../common";
2
2
  export interface BoTableRecord {
3
3
  id: string;
4
4
  langCode: string;
@@ -10,8 +10,5 @@ export interface BoTableRecord {
10
10
  contrib: DualContribGen;
11
11
  wordTotal: number;
12
12
  userTotal: number;
13
- fileName?: string;
14
- thumbnailFileName?: string;
15
- imageUrl?: string;
16
- imageThumbnailUrl?: string;
13
+ image: ImageGen | null;
17
14
  }
@@ -1,13 +1,5 @@
1
1
  import { ContribGen, DualContribGen, EntryStatus, UserReaction } from "../../common";
2
2
  import { WordGen } from "../../shared";
3
- export interface BoTranWordRecord {
4
- tranId: string;
5
- wordId: string;
6
- text: string;
7
- langCode: string;
8
- imageFileName: string;
9
- imageThumbnailFileName: string;
10
- }
11
3
  export interface BoTranRecord {
12
4
  id: string;
13
5
  speechPartId?: string;
@@ -0,0 +1,5 @@
1
+ import { PositionDirection } from "./enums";
2
+ import { IdRequest } from "./request";
3
+ export interface ChangePositionRequest extends IdRequest {
4
+ position: PositionDirection;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,8 @@
1
+ import { ContentType } from "./enums";
1
2
  export interface CreatedEntity {
2
3
  id: string;
3
4
  }
5
+ export interface EntityContent {
6
+ content: string;
7
+ type: ContentType;
8
+ }
@@ -39,6 +39,9 @@ export declare enum ExerciseType {
39
39
  List = "list",
40
40
  Table = "table"
41
41
  }
42
+ export declare enum ExerciseMode {
43
+ Correct = "correct"
44
+ }
42
45
  export declare enum ItemType {
43
46
  Regular = "regular",
44
47
  Image = "image"
@@ -51,3 +54,33 @@ export declare enum PostStatus {
51
54
  Published = "published",
52
55
  Draft = "draft"
53
56
  }
57
+ export declare enum PassStatus {
58
+ Progress = "progress",
59
+ Completed = "completed"
60
+ }
61
+ export declare enum PassEpisodeStatus {
62
+ Progress = "progress",
63
+ Completed = "completed",
64
+ Content = "content"
65
+ }
66
+ export declare enum PassExerciseStatus {
67
+ Progress = "progress",
68
+ Completed = "completed",
69
+ Result = "result"
70
+ }
71
+ export declare enum PositionDirection {
72
+ UP = "UP",
73
+ DOWN = "DOWN"
74
+ }
75
+ export declare enum ContentType {
76
+ Html = "html",
77
+ Markdown = "markdown"
78
+ }
79
+ export declare enum PointerMode {
80
+ CourseView = "courseView",
81
+ CourseResult = "courseResult",
82
+ EpisodeView = "episodeView",
83
+ ExerciseView = "exerciseView",
84
+ ExerciseResult = "exerciseResult",
85
+ ItemView = "itemView"
86
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PostStatus = exports.SetType = exports.ItemType = exports.ExerciseType = exports.SmmCampaignType = exports.SmmCampaignStatus = exports.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
3
+ exports.PointerMode = exports.ContentType = exports.PositionDirection = exports.PassExerciseStatus = exports.PassEpisodeStatus = exports.PassStatus = exports.PostStatus = exports.SetType = exports.ItemType = exports.ExerciseMode = exports.ExerciseType = exports.SmmCampaignType = exports.SmmCampaignStatus = exports.SocialProvider = exports.EntryStatus = exports.QuizMode = exports.UserReaction = exports.WordMode = exports.Knowing = void 0;
4
4
  var Knowing;
5
5
  (function (Knowing) {
6
6
  Knowing[Knowing["Known"] = 1] = "Known";
@@ -52,6 +52,10 @@ var ExerciseType;
52
52
  ExerciseType["List"] = "list";
53
53
  ExerciseType["Table"] = "table";
54
54
  })(ExerciseType || (exports.ExerciseType = ExerciseType = {}));
55
+ var ExerciseMode;
56
+ (function (ExerciseMode) {
57
+ ExerciseMode["Correct"] = "correct";
58
+ })(ExerciseMode || (exports.ExerciseMode = ExerciseMode = {}));
55
59
  var ItemType;
56
60
  (function (ItemType) {
57
61
  ItemType["Regular"] = "regular";
@@ -67,3 +71,41 @@ var PostStatus;
67
71
  PostStatus["Published"] = "published";
68
72
  PostStatus["Draft"] = "draft";
69
73
  })(PostStatus || (exports.PostStatus = PostStatus = {}));
74
+ var PASS_PROGRESS = "progress";
75
+ var PASS_COMPLETED = "completed";
76
+ var PassStatus;
77
+ (function (PassStatus) {
78
+ PassStatus["Progress"] = "progress";
79
+ PassStatus["Completed"] = "completed";
80
+ })(PassStatus || (exports.PassStatus = PassStatus = {}));
81
+ var PassEpisodeStatus;
82
+ (function (PassEpisodeStatus) {
83
+ PassEpisodeStatus["Progress"] = "progress";
84
+ PassEpisodeStatus["Completed"] = "completed";
85
+ PassEpisodeStatus["Content"] = "content";
86
+ })(PassEpisodeStatus || (exports.PassEpisodeStatus = PassEpisodeStatus = {}));
87
+ var PassExerciseStatus;
88
+ (function (PassExerciseStatus) {
89
+ PassExerciseStatus["Progress"] = "progress";
90
+ PassExerciseStatus["Completed"] = "completed";
91
+ PassExerciseStatus["Result"] = "result";
92
+ })(PassExerciseStatus || (exports.PassExerciseStatus = PassExerciseStatus = {}));
93
+ var PositionDirection;
94
+ (function (PositionDirection) {
95
+ PositionDirection["UP"] = "UP";
96
+ PositionDirection["DOWN"] = "DOWN";
97
+ })(PositionDirection || (exports.PositionDirection = PositionDirection = {}));
98
+ var ContentType;
99
+ (function (ContentType) {
100
+ ContentType["Html"] = "html";
101
+ ContentType["Markdown"] = "markdown";
102
+ })(ContentType || (exports.ContentType = ContentType = {}));
103
+ var PointerMode;
104
+ (function (PointerMode) {
105
+ PointerMode["CourseView"] = "courseView";
106
+ PointerMode["CourseResult"] = "courseResult";
107
+ PointerMode["EpisodeView"] = "episodeView";
108
+ PointerMode["ExerciseView"] = "exerciseView";
109
+ PointerMode["ExerciseResult"] = "exerciseResult";
110
+ PointerMode["ItemView"] = "itemView";
111
+ })(PointerMode || (exports.PointerMode = PointerMode = {}));
@@ -37,13 +37,16 @@ export declare enum ExceptionCodes {
37
37
  MaxWordImagePinsExceeded = "MaxWordImagePinsExceeded",
38
38
  SimilarRecordAlreadyExists = "SimilarRecordAlreadyExists",
39
39
  ErrorText = "ErrorText",
40
+ InconsistentRequest = "InconsistentRequest",
40
41
  SmmChannelIsNotActive = "SmmChannelIsNotActive",
41
42
  SmmPostWordWithoutTranslation = "SmmPostWordWithoutTranslation",
42
43
  ExerciseTypeNotSupported = "ExerciseTypeNotSupported",
44
+ CourseIsNotPublished = "CourseIsNotPublished",
43
45
  ItemTypeNotSupported = "ItemTypeNotSupported",
44
46
  CourseIsNotDraft = "CourseIsNotDraft",
45
47
  CourseEpisodesRangeInvalid = "CourseEpisodesRangeInvalid",
46
48
  EpisodeExercisesRangeInvalid = "EpisodeExercisesRangeInvalid",
47
49
  ExerciseItemsRangeInvalid = "ExerciseItemsRangeInvalid",
48
- ItemAnswersRequired = "ItemAnswersRequired"
50
+ ItemAnswersRequired = "ItemAnswersRequired",
51
+ ExerciseListUnknownWords = "ExerciseListUnknownWords"
49
52
  }
@@ -45,16 +45,19 @@ var ExceptionCodes;
45
45
  // common
46
46
  ExceptionCodes["SimilarRecordAlreadyExists"] = "SimilarRecordAlreadyExists";
47
47
  ExceptionCodes["ErrorText"] = "ErrorText";
48
+ ExceptionCodes["InconsistentRequest"] = "InconsistentRequest";
48
49
  // smm
49
50
  ExceptionCodes["SmmChannelIsNotActive"] = "SmmChannelIsNotActive";
50
51
  ExceptionCodes["SmmPostWordWithoutTranslation"] = "SmmPostWordWithoutTranslation";
51
52
  // course
52
53
  ExceptionCodes["ExerciseTypeNotSupported"] = "ExerciseTypeNotSupported";
54
+ ExceptionCodes["CourseIsNotPublished"] = "CourseIsNotPublished";
53
55
  ExceptionCodes["ItemTypeNotSupported"] = "ItemTypeNotSupported";
54
56
  ExceptionCodes["CourseIsNotDraft"] = "CourseIsNotDraft";
55
57
  ExceptionCodes["CourseEpisodesRangeInvalid"] = "CourseEpisodesRangeInvalid";
56
58
  ExceptionCodes["EpisodeExercisesRangeInvalid"] = "EpisodeExercisesRangeInvalid";
57
59
  ExceptionCodes["ExerciseItemsRangeInvalid"] = "ExerciseItemsRangeInvalid";
58
60
  ExceptionCodes["ItemAnswersRequired"] = "ItemAnswersRequired";
59
- //
61
+ // course pass
62
+ ExceptionCodes["ExerciseListUnknownWords"] = "ExerciseListUnknownWords";
60
63
  })(ExceptionCodes || (exports.ExceptionCodes = ExceptionCodes = {}));
@@ -10,3 +10,4 @@ export * from "./feed";
10
10
  export * from "./exception";
11
11
  export * from "./modifier";
12
12
  export * from "./image";
13
+ export * from "./course";
@@ -26,3 +26,4 @@ __exportStar(require("./feed"), exports);
26
26
  __exportStar(require("./exception"), exports);
27
27
  __exportStar(require("./modifier"), exports);
28
28
  __exportStar(require("./image"), exports);
29
+ __exportStar(require("./course"), exports);
@@ -6,7 +6,6 @@ export interface FeedRequest {
6
6
  skip: number;
7
7
  order?: string;
8
8
  direction?: OrderDirection;
9
- [key: string]: any;
10
9
  }
11
10
  export interface ShortFeedRequest extends Pick<FeedRequest, "skip" | "id"> {
12
11
  [key: string]: any;
@@ -0,0 +1,19 @@
1
+ import { FeEpisodeRecord } from "../..";
2
+ import { ContentType, ImageGen, PassStatus } from "../../common";
3
+ export interface FeCourseRecord {
4
+ id: string;
5
+ slug: string;
6
+ name: string;
7
+ description: string;
8
+ langCode: string;
9
+ created: string;
10
+ passId?: string;
11
+ passStatus?: PassStatus;
12
+ image: ImageGen | null;
13
+ }
14
+ export interface FeCourseEntity extends FeCourseRecord {
15
+ metaKeywords?: string;
16
+ content: string;
17
+ contentType: ContentType;
18
+ episodes: FeEpisodeRecord[];
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./entity";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entity"), exports);
@@ -32,6 +32,7 @@ export interface FeDiscoverKnowingOldRequest {
32
32
  }
33
33
  export interface FeDiscoverWordFeedRequest extends FeDiscoverMetaRequest, FeedRequest {
34
34
  knowing?: Knowing;
35
+ state?: string;
35
36
  }
36
37
  export interface FeDiscoverKnowingRequest {
37
38
  slug: string;
@@ -0,0 +1,20 @@
1
+ import { ContentType, FeExerciseNavigator, FePassExerciseResult, PassEpisodeStatus } from "../..";
2
+ export interface FeEpisodeRecord {
3
+ id: string;
4
+ name: string;
5
+ }
6
+ export interface FeEpisodeNavigator {
7
+ id: string;
8
+ name: string;
9
+ content: string;
10
+ contentType: ContentType;
11
+ exercises: FeExerciseNavigator[];
12
+ }
13
+ export interface FePassEpisodeResult {
14
+ id: string;
15
+ episodeId: string;
16
+ passCourseId: string;
17
+ status: PassEpisodeStatus;
18
+ grade: number;
19
+ exercises: FePassExerciseResult[];
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./entity";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entity"), exports);