revdev 0.316.0 → 0.318.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.
@@ -6,7 +6,7 @@ export interface BoCourseRecord {
6
6
  status?: PostStatus;
7
7
  contrib: DualContribGen;
8
8
  langCode: string;
9
- image: ImageGen | null;
9
+ image?: ImageGen;
10
10
  }
11
11
  export interface BoCourseUserPassRecord {
12
12
  id: string;
@@ -11,9 +11,9 @@ export interface BoListRecord {
11
11
  contrib: DualContribGen;
12
12
  wordTotal: number;
13
13
  userTotal: number;
14
- image: ImageGen | null;
14
+ image?: ImageGen;
15
15
  }
16
16
  export interface BoListModifier extends BoUpdateListRequest {
17
- image: ImageGen | null;
17
+ image?: ImageGen;
18
18
  isPrivate?: boolean;
19
19
  }
@@ -10,5 +10,5 @@ export interface BoTableRecord {
10
10
  contrib: DualContribGen;
11
11
  wordTotal: number;
12
12
  userTotal: number;
13
- image: ImageGen | null;
13
+ image?: ImageGen;
14
14
  }
@@ -9,6 +9,7 @@ export interface BoWordImageRecord {
9
9
  rate: number;
10
10
  active: boolean;
11
11
  status?: EntryStatus;
12
+ imagePrompt?: string;
12
13
  }
13
14
  interface WordImageContainerRecord {
14
15
  id: string;
@@ -84,3 +84,14 @@ export declare enum PointerMode {
84
84
  ExerciseResult = "exerciseResult",
85
85
  ItemView = "itemView"
86
86
  }
87
+ export declare enum AudioKind {
88
+ Word = "audioWord"
89
+ }
90
+ export declare enum ImageKind {
91
+ Word = "imageWord",
92
+ List = "imageList",
93
+ Table = "imageTable",
94
+ Course = "imageCourse",
95
+ Item = "imageItem"
96
+ }
97
+ export type StoreFileKind = AudioKind | ImageKind;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.ImageKind = exports.AudioKind = 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";
@@ -71,8 +71,6 @@ var PostStatus;
71
71
  PostStatus["Published"] = "published";
72
72
  PostStatus["Draft"] = "draft";
73
73
  })(PostStatus || (exports.PostStatus = PostStatus = {}));
74
- var PASS_PROGRESS = "progress";
75
- var PASS_COMPLETED = "completed";
76
74
  var PassStatus;
77
75
  (function (PassStatus) {
78
76
  PassStatus["Progress"] = "progress";
@@ -109,3 +107,19 @@ var PointerMode;
109
107
  PointerMode["ExerciseResult"] = "exerciseResult";
110
108
  PointerMode["ItemView"] = "itemView";
111
109
  })(PointerMode || (exports.PointerMode = PointerMode = {}));
110
+ // export enum StoreFileType {
111
+ // Audio = "audio",
112
+ // Image = "image",
113
+ // }
114
+ var AudioKind;
115
+ (function (AudioKind) {
116
+ AudioKind["Word"] = "audioWord";
117
+ })(AudioKind || (exports.AudioKind = AudioKind = {}));
118
+ var ImageKind;
119
+ (function (ImageKind) {
120
+ ImageKind["Word"] = "imageWord";
121
+ ImageKind["List"] = "imageList";
122
+ ImageKind["Table"] = "imageTable";
123
+ ImageKind["Course"] = "imageCourse";
124
+ ImageKind["Item"] = "imageItem";
125
+ })(ImageKind || (exports.ImageKind = ImageKind = {}));
@@ -1,7 +1,9 @@
1
- export interface ImageGen {
1
+ export interface ImageRawGen {
2
2
  id: string;
3
3
  fileName: string;
4
4
  thumbnailFileName: string;
5
+ }
6
+ export interface ImageGen extends Pick<ImageRawGen, "id"> {
5
7
  url: string;
6
8
  thumbnailUrl: string;
7
9
  }
@@ -9,7 +9,7 @@ export interface FeCourseRecord {
9
9
  created: string;
10
10
  passId?: string;
11
11
  passStatus?: PassStatus;
12
- image: ImageGen | null;
12
+ image?: ImageGen;
13
13
  }
14
14
  export interface FeCourseEntity extends FeCourseRecord {
15
15
  metaKeywords?: string;
@@ -9,7 +9,7 @@ export interface FeListRecord {
9
9
  userTotal: number;
10
10
  contrib: ContribGen;
11
11
  access: AccessGen;
12
- image: ImageGen | null;
12
+ image?: ImageGen;
13
13
  }
14
14
  export interface FeListEntity {
15
15
  id: string;
@@ -23,5 +23,5 @@ export interface FeListEntity {
23
23
  userTotal: number;
24
24
  wordTotal: number;
25
25
  knownWordTotal: number;
26
- image: ImageGen | null;
26
+ image?: ImageGen;
27
27
  }
@@ -8,7 +8,7 @@ export interface FeTableRecord {
8
8
  wordTotal: number;
9
9
  contrib: ContribGen;
10
10
  access: AccessGen;
11
- image: ImageGen | null;
11
+ image?: ImageGen;
12
12
  }
13
13
  export interface FeTableEntity {
14
14
  id: string;
@@ -17,7 +17,7 @@ export interface FeTableEntity {
17
17
  langCode: string;
18
18
  description?: string;
19
19
  metaKeywords: string;
20
- image: ImageGen | null;
20
+ image?: ImageGen;
21
21
  access: AccessGen;
22
22
  contrib: ContribGen;
23
23
  rowTotal: number;
@@ -1,8 +1,8 @@
1
- import { ImageGen } from "../../common";
1
+ import { ImageRawGen } from "../../common";
2
2
  import { ShortFeedRequest } from "../../feed";
3
3
  export interface FeWordImageFeedRequest extends ShortFeedRequest {
4
4
  wordId: string;
5
5
  }
6
- export interface FeInitWordImageRequest extends Pick<ImageGen, "fileName" | "thumbnailFileName"> {
6
+ export interface FeInitWordImageRequest extends Pick<ImageRawGen, "fileName" | "thumbnailFileName"> {
7
7
  wordId: string;
8
8
  }
@@ -6,6 +6,7 @@ export interface CreateCourseRequest {
6
6
  content?: string;
7
7
  contentType?: ContentType;
8
8
  langCode: string;
9
+ imagePrompt?: string;
9
10
  }
10
11
  export interface UpdateCourseRequest extends CreateCourseRequest {
11
12
  id: string;
@@ -9,6 +9,7 @@ export interface CreateItemRegularRequest extends BaseItemRequest {
9
9
  content: string;
10
10
  }
11
11
  export interface CreateItemImageRequest extends BaseItemRequest {
12
+ imagePrompt?: string;
12
13
  }
13
14
  export interface UpdateItemRegularRequest extends CreateItemRegularRequest {
14
15
  id: string;
@@ -26,5 +27,6 @@ export interface ItemRegularModifier extends BaseItemModifier {
26
27
  }
27
28
  export interface ItemImageModifier extends BaseItemModifier {
28
29
  image: ImageGen;
30
+ imagePrompt?: string;
29
31
  }
30
32
  export type ItemModifier = ItemRegularModifier | ItemImageModifier;
@@ -4,6 +4,7 @@ export interface CreateListRequest {
4
4
  description?: string;
5
5
  langCode: string;
6
6
  isPrivate?: boolean;
7
+ imagePrompt?: string;
7
8
  }
8
9
  export interface UpdateListRequest extends CreateListRequest {
9
10
  id: string;
@@ -21,6 +21,7 @@ export interface CreateTableRequest {
21
21
  description?: string;
22
22
  isPrivate: boolean;
23
23
  columns: string[];
24
+ imagePrompt?: string;
24
25
  }
25
26
  export interface UpdateTableRequest extends Omit<CreateTableRequest, "langCode" | "isPrivate"> {
26
27
  id: string;
@@ -28,7 +29,7 @@ export interface UpdateTableRequest extends Omit<CreateTableRequest, "langCode"
28
29
  }
29
30
  export interface TableModifier extends CreateTableRequest {
30
31
  id: string;
31
- image: ImageGen | null;
32
+ image?: ImageGen;
32
33
  }
33
34
  export interface UpdateTableCellRequest extends TableCellSkeleton<LiteralWord> {
34
35
  }
@@ -1,3 +1,4 @@
1
1
  export interface UploadWordImageRequest {
2
2
  wordId: string;
3
+ imagePrompt?: string;
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.316.0",
3
+ "version": "0.318.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",