revdev 0.103.0 → 0.104.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 (157) hide show
  1. package/lib/{backoffice → back}/list/entity.d.ts +2 -2
  2. package/lib/{backoffice → back}/list/request.d.ts +6 -2
  3. package/lib/{backoffice → back}/locale-text/request.d.ts +2 -2
  4. package/lib/{backoffice → back}/table/entity.d.ts +1 -1
  5. package/lib/{backoffice → back}/tag/entity.d.ts +2 -2
  6. package/lib/{backoffice → back}/translation/entity.d.ts +3 -3
  7. package/lib/{backoffice → back}/user/entity.d.ts +3 -3
  8. package/lib/{backoffice → back}/word/entity.d.ts +4 -4
  9. package/lib/{backoffice → back}/word/request.d.ts +6 -3
  10. package/lib/feed/index.d.ts +1 -1
  11. package/lib/{units → front}/common/entity.d.ts +9 -9
  12. package/lib/{units → front}/common/request.d.ts +1 -1
  13. package/lib/{units → front}/discover/entity.d.ts +6 -6
  14. package/lib/{units → front}/discover/request.d.ts +1 -1
  15. package/lib/{units → front}/image/entity.d.ts +1 -1
  16. package/lib/{units → front}/language/entity.d.ts +7 -7
  17. package/lib/{units → front}/list/entity.d.ts +2 -7
  18. package/lib/{units → front}/list/request.d.ts +6 -0
  19. package/lib/front/quiz/entity.d.ts +19 -0
  20. package/lib/{units → front}/quiz/request.d.ts +1 -1
  21. package/lib/{units → front}/table/entity.d.ts +4 -4
  22. package/lib/{units → front}/tag/entity.d.ts +1 -1
  23. package/lib/{units → front}/translation/entity.d.ts +3 -3
  24. package/lib/{units → front}/translation/request.d.ts +1 -1
  25. package/lib/{units → front}/user/request.d.ts +1 -1
  26. package/lib/{units → front}/word/entity.d.ts +8 -8
  27. package/lib/index.d.ts +3 -3
  28. package/lib/index.js +3 -3
  29. package/package.json +2 -1
  30. package/lib/units/quiz/entity.d.ts +0 -19
  31. /package/lib/{backoffice → back}/auth/entity.d.ts +0 -0
  32. /package/lib/{backoffice → back}/auth/entity.js +0 -0
  33. /package/lib/{backoffice → back}/auth/index.d.ts +0 -0
  34. /package/lib/{backoffice → back}/auth/index.js +0 -0
  35. /package/lib/{backoffice → back}/common/entity.d.ts +0 -0
  36. /package/lib/{backoffice → back}/common/entity.js +0 -0
  37. /package/lib/{backoffice → back}/common/index.d.ts +0 -0
  38. /package/lib/{backoffice → back}/common/index.js +0 -0
  39. /package/lib/{backoffice → back}/general/entity.d.ts +0 -0
  40. /package/lib/{backoffice → back}/general/entity.js +0 -0
  41. /package/lib/{backoffice → back}/general/index.d.ts +0 -0
  42. /package/lib/{backoffice → back}/general/index.js +0 -0
  43. /package/lib/{backoffice → back}/image/index.d.ts +0 -0
  44. /package/lib/{backoffice → back}/image/index.js +0 -0
  45. /package/lib/{backoffice → back}/image/request.d.ts +0 -0
  46. /package/lib/{backoffice → back}/image/request.js +0 -0
  47. /package/lib/{backoffice → back}/index.d.ts +0 -0
  48. /package/lib/{backoffice → back}/index.js +0 -0
  49. /package/lib/{backoffice → back}/list/entity.js +0 -0
  50. /package/lib/{backoffice → back}/list/index.d.ts +0 -0
  51. /package/lib/{backoffice → back}/list/index.js +0 -0
  52. /package/lib/{backoffice → back}/list/request.js +0 -0
  53. /package/lib/{backoffice → back}/locale-text/index.d.ts +0 -0
  54. /package/lib/{backoffice → back}/locale-text/index.js +0 -0
  55. /package/lib/{backoffice → back}/locale-text/request.js +0 -0
  56. /package/lib/{backoffice → back}/table/entity.js +0 -0
  57. /package/lib/{backoffice → back}/table/index.d.ts +0 -0
  58. /package/lib/{backoffice → back}/table/index.js +0 -0
  59. /package/lib/{backoffice → back}/tag/entity.js +0 -0
  60. /package/lib/{backoffice → back}/tag/index.d.ts +0 -0
  61. /package/lib/{backoffice → back}/tag/index.js +0 -0
  62. /package/lib/{backoffice → back}/translation/entity.js +0 -0
  63. /package/lib/{backoffice → back}/translation/index.d.ts +0 -0
  64. /package/lib/{backoffice → back}/translation/index.js +0 -0
  65. /package/lib/{backoffice → back}/user/entity.js +0 -0
  66. /package/lib/{backoffice → back}/user/index.d.ts +0 -0
  67. /package/lib/{backoffice → back}/user/index.js +0 -0
  68. /package/lib/{backoffice → back}/word/entity.js +0 -0
  69. /package/lib/{backoffice → back}/word/index.d.ts +0 -0
  70. /package/lib/{backoffice → back}/word/index.js +0 -0
  71. /package/lib/{backoffice → back}/word/request.js +0 -0
  72. /package/lib/{shared → common}/api.d.ts +0 -0
  73. /package/lib/{shared → common}/api.js +0 -0
  74. /package/lib/{shared → common}/entity.d.ts +0 -0
  75. /package/lib/{shared → common}/entity.js +0 -0
  76. /package/lib/{shared → common}/enums.d.ts +0 -0
  77. /package/lib/{shared → common}/enums.js +0 -0
  78. /package/lib/{shared → common}/index.d.ts +0 -0
  79. /package/lib/{shared → common}/index.js +0 -0
  80. /package/lib/{shared → common}/literals.d.ts +0 -0
  81. /package/lib/{shared → common}/literals.js +0 -0
  82. /package/lib/{shared → common}/options.d.ts +0 -0
  83. /package/lib/{shared → common}/options.js +0 -0
  84. /package/lib/{shared → common}/request.d.ts +0 -0
  85. /package/lib/{shared → common}/request.js +0 -0
  86. /package/lib/{units → front}/audio/index.d.ts +0 -0
  87. /package/lib/{units → front}/audio/index.js +0 -0
  88. /package/lib/{units → front}/audio/request.d.ts +0 -0
  89. /package/lib/{units → front}/audio/request.js +0 -0
  90. /package/lib/{units → front}/auth/entity.d.ts +0 -0
  91. /package/lib/{units → front}/auth/entity.js +0 -0
  92. /package/lib/{units → front}/auth/index.d.ts +0 -0
  93. /package/lib/{units → front}/auth/index.js +0 -0
  94. /package/lib/{units → front}/auth/request.d.ts +0 -0
  95. /package/lib/{units → front}/auth/request.js +0 -0
  96. /package/lib/{units → front}/common/entity.js +0 -0
  97. /package/lib/{units → front}/common/index.d.ts +0 -0
  98. /package/lib/{units → front}/common/index.js +0 -0
  99. /package/lib/{units → front}/common/request.js +0 -0
  100. /package/lib/{units → front}/discover/entity.js +0 -0
  101. /package/lib/{units → front}/discover/index.d.ts +0 -0
  102. /package/lib/{units → front}/discover/index.js +0 -0
  103. /package/lib/{units → front}/discover/request.js +0 -0
  104. /package/lib/{units → front}/image/entity.js +0 -0
  105. /package/lib/{units → front}/image/index.d.ts +0 -0
  106. /package/lib/{units → front}/image/index.js +0 -0
  107. /package/lib/{units → front}/image/request.d.ts +0 -0
  108. /package/lib/{units → front}/image/request.js +0 -0
  109. /package/lib/{units → front}/index.d.ts +0 -0
  110. /package/lib/{units → front}/index.js +0 -0
  111. /package/lib/{units → front}/language/entity.js +0 -0
  112. /package/lib/{units → front}/language/index.d.ts +0 -0
  113. /package/lib/{units → front}/language/index.js +0 -0
  114. /package/lib/{units → front}/list/entity.js +0 -0
  115. /package/lib/{units → front}/list/index.d.ts +0 -0
  116. /package/lib/{units → front}/list/index.js +0 -0
  117. /package/lib/{units → front}/list/request.js +0 -0
  118. /package/lib/{units → front}/progress/entity.d.ts +0 -0
  119. /package/lib/{units → front}/progress/entity.js +0 -0
  120. /package/lib/{units → front}/progress/index.d.ts +0 -0
  121. /package/lib/{units → front}/progress/index.js +0 -0
  122. /package/lib/{units → front}/progress/request.d.ts +0 -0
  123. /package/lib/{units → front}/progress/request.js +0 -0
  124. /package/lib/{units → front}/quiz/entity.js +0 -0
  125. /package/lib/{units → front}/quiz/index.d.ts +0 -0
  126. /package/lib/{units → front}/quiz/index.js +0 -0
  127. /package/lib/{units → front}/quiz/request.js +0 -0
  128. /package/lib/{units → front}/settings/entity.d.ts +0 -0
  129. /package/lib/{units → front}/settings/entity.js +0 -0
  130. /package/lib/{units → front}/settings/index.d.ts +0 -0
  131. /package/lib/{units → front}/settings/index.js +0 -0
  132. /package/lib/{units → front}/settings/request.d.ts +0 -0
  133. /package/lib/{units → front}/settings/request.js +0 -0
  134. /package/lib/{units → front}/table/entity.js +0 -0
  135. /package/lib/{units → front}/table/index.d.ts +0 -0
  136. /package/lib/{units → front}/table/index.js +0 -0
  137. /package/lib/{units → front}/table/request.d.ts +0 -0
  138. /package/lib/{units → front}/table/request.js +0 -0
  139. /package/lib/{units → front}/tag/entity.js +0 -0
  140. /package/lib/{units → front}/tag/index.d.ts +0 -0
  141. /package/lib/{units → front}/tag/index.js +0 -0
  142. /package/lib/{units → front}/tag/request.d.ts +0 -0
  143. /package/lib/{units → front}/tag/request.js +0 -0
  144. /package/lib/{units → front}/translation/entity.js +0 -0
  145. /package/lib/{units → front}/translation/index.d.ts +0 -0
  146. /package/lib/{units → front}/translation/index.js +0 -0
  147. /package/lib/{units → front}/translation/request.js +0 -0
  148. /package/lib/{units → front}/user/entity.d.ts +0 -0
  149. /package/lib/{units → front}/user/entity.js +0 -0
  150. /package/lib/{units → front}/user/index.d.ts +0 -0
  151. /package/lib/{units → front}/user/index.js +0 -0
  152. /package/lib/{units → front}/user/request.js +0 -0
  153. /package/lib/{units → front}/word/entity.js +0 -0
  154. /package/lib/{units → front}/word/index.d.ts +0 -0
  155. /package/lib/{units → front}/word/index.js +0 -0
  156. /package/lib/{units → front}/word/request.d.ts +0 -0
  157. /package/lib/{units → front}/word/request.js +0 -0
@@ -1,5 +1,5 @@
1
- import { FeEntityContribution } from "../../units";
2
- export interface BoList {
1
+ import { FeEntityContribution } from "../../front";
2
+ export interface BoListRecord {
3
3
  listId: string;
4
4
  languageCode: string;
5
5
  slug: string;
@@ -1,5 +1,9 @@
1
- import { FeCreateListRequest } from "../../units";
2
- export interface BoCreateListRequest extends FeCreateListRequest {
1
+ export interface BoCreateListRequest {
2
+ name: string;
3
+ description?: string;
4
+ languageCode: string;
5
+ isPrivate: boolean;
6
+ slug?: string;
3
7
  baseListId?: string;
4
8
  isSuper?: boolean;
5
9
  metaKeywords?: string;
@@ -1,8 +1,8 @@
1
- export interface BoLocaleText {
1
+ export interface BoLocaleTextRecord {
2
2
  languageCode: string;
3
3
  code: string;
4
4
  text: string;
5
5
  }
6
6
  export interface BoUpdateLocaleTextRequest {
7
- localeText: BoLocaleText | BoLocaleText[];
7
+ localeText: BoLocaleTextRecord | BoLocaleTextRecord[];
8
8
  }
@@ -1,4 +1,4 @@
1
- export interface BoTable {
1
+ export interface BoTableRecord {
2
2
  tableId: string;
3
3
  name: string;
4
4
  languageCode: string;
@@ -1,4 +1,4 @@
1
- export interface BoTagWord {
1
+ export interface BoTagWordRecord {
2
2
  wordId: string;
3
3
  text: string;
4
4
  languageCode: string;
@@ -7,7 +7,7 @@ export interface BoTagWord {
7
7
  createdUsername: string;
8
8
  rate: number;
9
9
  }
10
- export interface BoTag {
10
+ export interface BoTagRecord {
11
11
  code: string;
12
12
  created: string;
13
13
  createdUsername: string;
@@ -1,4 +1,4 @@
1
- export interface BoTranslationWord {
1
+ export interface BoTranslationWordRecord {
2
2
  translationId: string;
3
3
  wordId: string;
4
4
  text: string;
@@ -6,10 +6,10 @@ export interface BoTranslationWord {
6
6
  imageFileName: string;
7
7
  imageThumbnailFileName: string;
8
8
  }
9
- export interface BoTranslation {
9
+ export interface BoTranslationRecord {
10
10
  translationId: string;
11
11
  created: string;
12
12
  userId?: string;
13
13
  speechPartCode?: string;
14
- words: BoTranslationWord[];
14
+ words: BoTranslationWordRecord[];
15
15
  }
@@ -1,5 +1,5 @@
1
- import { QuizMode } from "../../shared";
2
- export interface BoUser {
1
+ import { QuizMode } from "../../common";
2
+ export interface BoUserRecord {
3
3
  userId: string;
4
4
  email: string;
5
5
  name: string;
@@ -9,7 +9,7 @@ export interface BoUser {
9
9
  learnLanguageCode: string;
10
10
  translationLanguageCode: string;
11
11
  }
12
- export interface BoAttempt {
12
+ export interface BoAttemptRecord {
13
13
  attemptId: string;
14
14
  quizCode: string;
15
15
  username: string;
@@ -1,5 +1,5 @@
1
- import { FeEntityContribution, FeWordDirect } from "../../units";
2
- export interface BoWord {
1
+ import { FeEntityContribution, FeWordDirect } from "../../front";
2
+ export interface BoWordRecord {
3
3
  id: string;
4
4
  text: string;
5
5
  languageCode: string;
@@ -22,7 +22,7 @@ export interface BoWordEntity {
22
22
  rate?: number;
23
23
  tags?: string[];
24
24
  }
25
- export interface BoWordImage {
25
+ export interface BoWordImageRecord {
26
26
  word: FeWordDirect;
27
27
  imageId: string;
28
28
  fileName: string;
@@ -31,7 +31,7 @@ export interface BoWordImage {
31
31
  wordCount: number;
32
32
  rate: number;
33
33
  }
34
- export interface BoWordAudio {
34
+ export interface BoWordAudioRecord {
35
35
  wordId: string;
36
36
  text: string;
37
37
  languageCode: string;
@@ -1,5 +1,4 @@
1
1
  import { LanguageFeedRequest } from "../../feed";
2
- import { FeCreateWordRequest } from "../../units";
3
2
  export interface BoWordImageFeedRequest extends LanguageFeedRequest {
4
3
  wordId?: string;
5
4
  }
@@ -10,9 +9,13 @@ export interface BoWordUpdateRequest {
10
9
  mode?: string;
11
10
  rate?: number;
12
11
  }
13
- export interface BoCreateWordRequest extends FeCreateWordRequest {
12
+ export interface BoCreateWordRequest {
13
+ languageCode: string;
14
+ text: string;
15
+ mode?: string;
16
+ rate?: number;
14
17
  }
15
- export interface BoUpdateWordRequest extends Pick<FeCreateWordRequest, "mode" | "rate"> {
18
+ export interface BoUpdateWordRequest extends BoCreateWordRequest {
16
19
  id: string;
17
20
  }
18
21
  export interface BoUpdateWordTagRequest {
@@ -1,4 +1,4 @@
1
- import { Knowing, OrderDirection } from "../shared";
1
+ import { Knowing, OrderDirection } from "../common";
2
2
  export interface ShortFeedRequest {
3
3
  skip: number;
4
4
  }
@@ -1,8 +1,8 @@
1
- import { Knowing } from "../../shared";
2
- import { FeLanguage } from "../language";
3
- import { FeList } from "../list";
4
- import { FeTable } from "../table";
5
- import { FeWord } from "../word";
1
+ import { Knowing } from "../../common";
2
+ import { FeLanguageRecord } from "../language";
3
+ import { FeListRecord } from "../list";
4
+ import { FeTableRecord } from "../table";
5
+ import { FeWordRecord } from "../word";
6
6
  export interface FeWordKnowledge {
7
7
  total: number;
8
8
  learn: number;
@@ -38,12 +38,12 @@ export interface FeInitData {
38
38
  localeVersion: number;
39
39
  }
40
40
  export interface FeIntroductionData {
41
- languages: FeLanguage[];
41
+ languages: FeLanguageRecord[];
42
42
  }
43
43
  export interface FeSearchResult {
44
- words: FeWord[];
45
- lists: FeList[];
46
- tables: FeTable[];
44
+ words: FeWordRecord[];
45
+ lists: FeListRecord[];
46
+ tables: FeTableRecord[];
47
47
  }
48
48
  export interface UpdatedEntity {
49
49
  id: string;
@@ -1,4 +1,4 @@
1
- import { IdRequest, UserReaction, Knowing } from "../../shared";
1
+ import { IdRequest, UserReaction, Knowing } from "../../common";
2
2
  export interface FeReactionRequest extends IdRequest {
3
3
  value?: UserReaction;
4
4
  }
@@ -1,10 +1,10 @@
1
- import { Knowing } from "../../shared";
1
+ import { Knowing } from "../../common";
2
2
  import { FeWordKnowledge } from "../common";
3
- import { FeWord } from "../word";
3
+ import { FeWordRecord } from "../word";
4
4
  export interface FeDiscoverProveEntity {
5
- word: FeWord;
6
- images?: FeWord[];
7
- translations?: FeWord[];
5
+ word: FeWordRecord;
6
+ images?: FeWordRecord[];
7
+ translations?: FeWordRecord[];
8
8
  }
9
9
  export interface FeDiscoverKnowingOld {
10
10
  words?: [string, Knowing][];
@@ -20,7 +20,7 @@ export interface FeEntityKnowing extends FeWordKnowledge {
20
20
  export interface FeDiscoverMeta extends FeWordKnowledge {
21
21
  columns: FeEntityKnowing[];
22
22
  }
23
- export interface ProveWordMeta extends FeWord {
23
+ export interface ProveWordMeta extends FeWordRecord {
24
24
  isImage: number;
25
25
  isTranslation: boolean;
26
26
  inTag: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FeedRequest } from "../../feed";
2
- import { Knowing } from "../../shared";
2
+ import { Knowing } from "../../common";
3
3
  import { FeUserInfoRequest } from "../common";
4
4
  export interface FeDiscoverWordKnowingRequest {
5
5
  wordId: string;
@@ -1,5 +1,5 @@
1
1
  import { FeEntityContribution, FeReactionInfo } from "../common";
2
- export interface FeWordImage {
2
+ export interface FeWordImageRecord {
3
3
  wordId: string;
4
4
  imageId: string;
5
5
  fileName: string;
@@ -1,9 +1,9 @@
1
1
  import { Feed } from "../../feed";
2
- import { FeList } from "../list";
3
- import { FeTable } from "../table";
4
- import { FeTag } from "../tag";
2
+ import { FeListRecord } from "../list";
3
+ import { FeTableRecord } from "../table";
4
+ import { FeTagRecord } from "../tag";
5
5
  import { FeUserRelationMeta } from "../user";
6
- export interface FeLanguage {
6
+ export interface FeLanguageRecord {
7
7
  code: string;
8
8
  wordCount: number;
9
9
  knownWordCount: number;
@@ -16,7 +16,7 @@ export interface FeLanguageEntity {
16
16
  nativeName: string;
17
17
  wordCount: number;
18
18
  relation?: FeUserRelationMeta;
19
- listFeed: Feed<FeList>;
20
- tagFeed: Feed<FeTag>;
21
- tableFeed: Feed<FeTable>;
19
+ listFeed: Feed<FeListRecord>;
20
+ tagFeed: Feed<FeTagRecord>;
21
+ tableFeed: Feed<FeTableRecord>;
22
22
  }
@@ -1,5 +1,5 @@
1
- import { FeEntityAccess, FeEntityContribution, EntryWord } from "../common";
2
- export interface FeList {
1
+ import { FeEntityAccess, FeEntityContribution } from "../common";
2
+ export interface FeListRecord {
3
3
  id: string;
4
4
  slug: string;
5
5
  languageCode: string;
@@ -10,11 +10,6 @@ export interface FeList {
10
10
  contribution: FeEntityContribution;
11
11
  access: FeEntityAccess;
12
12
  }
13
- export interface FeListLinkWordRequest {
14
- listId: string;
15
- word: EntryWord;
16
- link: boolean;
17
- }
18
13
  export interface FeListEntity {
19
14
  id: string;
20
15
  slug: string;
@@ -1,4 +1,5 @@
1
1
  import { FeWordSetRequest, FeedRequest } from "../../feed";
2
+ import { EntryWord } from "../common";
2
3
  export interface FeListWordFeedRequest extends FeedRequest, FeWordSetRequest {
3
4
  slug: string;
4
5
  }
@@ -12,3 +13,8 @@ export interface FeCreateListRequest {
12
13
  export interface FeUpdateListRequest extends Omit<FeCreateListRequest, "languageCode"> {
13
14
  id: string;
14
15
  }
16
+ export interface FeListLinkWordRequest {
17
+ listId: string;
18
+ word: EntryWord;
19
+ link: boolean;
20
+ }
@@ -0,0 +1,19 @@
1
+ import { QuizMode } from "../../common";
2
+ import { FeWordDirect } from "../common";
3
+ import { FeWordImageRecord } from "../image";
4
+ import { FeTranslationRecord } from "../translation";
5
+ import { FeWordRecord } from "../word";
6
+ export interface FeQuizEntity {
7
+ mode?: QuizMode;
8
+ isTable?: boolean;
9
+ pairs: FeQuizPair[];
10
+ }
11
+ export interface FeQuizPair {
12
+ word: FeWordDirect;
13
+ translations?: FeTranslationRecord[];
14
+ images?: FeWordImageRecord[];
15
+ cellWords?: FeWordDirect[];
16
+ }
17
+ export interface FeQuizRack {
18
+ words: FeWordRecord[];
19
+ }
@@ -1,4 +1,4 @@
1
- import { QuizCode, QuizMode } from "../../shared";
1
+ import { QuizCode, QuizMode } from "../../common";
2
2
  export interface FeQuizEntityRequest {
3
3
  code: QuizCode;
4
4
  wordCount: number;
@@ -1,10 +1,10 @@
1
1
  import { FeEntityAccess, FeEntityContribution, RealWord } from "../common";
2
- import { FeWord } from "../word";
2
+ import { FeWordRecord } from "../word";
3
3
  export interface BasicCellStruct<TWords> {
4
4
  columnIndex: number;
5
5
  words: TWords;
6
6
  }
7
- export interface FeTable {
7
+ export interface FeTableRecord {
8
8
  id: string;
9
9
  slug: string;
10
10
  languageCode: string;
@@ -15,9 +15,9 @@ export interface FeTable {
15
15
  contribution: FeEntityContribution;
16
16
  access: FeEntityAccess;
17
17
  }
18
- export interface FeCell extends BasicCellStruct<FeWord[]> {
18
+ export interface FeCell extends BasicCellStruct<FeWordRecord[]> {
19
19
  }
20
- export interface FeRow {
20
+ export interface FeRowRecord {
21
21
  id: string;
22
22
  cells: FeCell[];
23
23
  }
@@ -2,7 +2,7 @@ import { FeEntityContribution, EntryWord } from "../common";
2
2
  export interface FeCreateTagRequest {
3
3
  code: string;
4
4
  }
5
- export interface FeTag {
5
+ export interface FeTagRecord {
6
6
  code: string;
7
7
  wordCount: number;
8
8
  knownWordCount: number;
@@ -1,10 +1,10 @@
1
1
  import { FeEntityContribution, FeReactionInfo } from "../common";
2
- import { FeWord } from "../word";
3
- export interface FeTranslation {
2
+ import { FeWordRecord } from "../word";
3
+ export interface FeTranslationRecord {
4
4
  id: string;
5
5
  wordId: string;
6
6
  speechPartCode?: string;
7
- destination: FeWord;
7
+ destination: FeWordRecord;
8
8
  reaction?: FeReactionInfo;
9
9
  contribution?: FeEntityContribution;
10
10
  }
@@ -1,4 +1,4 @@
1
- import { WordSetRequest } from "../../shared";
1
+ import { WordSetRequest } from "../../common";
2
2
  import { EntryWord, RealWord } from "../common";
3
3
  interface BaseCreateTranslationRequest<TWord> {
4
4
  sourceWordId: string;
@@ -1,5 +1,5 @@
1
1
  import { FeedRequest } from "../../feed";
2
- import { Knowing } from "../../shared";
2
+ import { Knowing } from "../../common";
3
3
  export interface FeUserFeedRequest extends FeedRequest {
4
4
  username: string;
5
5
  languageCode?: string;
@@ -1,19 +1,19 @@
1
1
  import { Feed } from "../../feed";
2
- import { QuizCode, QuizMode, Knowing } from "../../shared";
3
- import { FeWordImage } from "../image";
2
+ import { QuizCode, QuizMode, Knowing } from "../../common";
3
+ import { FeWordImageRecord } from "../image";
4
4
  import { FeEntityAccess, FeEntityContribution, FeReactionInfo } from "../common";
5
- import { FeTranslation } from "../translation";
6
- export interface FeWord {
5
+ import { FeTranslationRecord } from "../translation";
6
+ export interface FeWordRecord {
7
7
  id: string;
8
8
  text: string;
9
9
  languageCode: string;
10
10
  mode?: string;
11
11
  knowing?: Knowing;
12
12
  attempts?: FeWordAttempt[];
13
- images?: FeWordImage[];
13
+ images?: FeWordImageRecord[];
14
14
  audios?: FeWordAudio[];
15
15
  tags?: FeWordTag[];
16
- translations?: FeTranslation[];
16
+ translations?: FeTranslationRecord[];
17
17
  }
18
18
  export interface FeWordTag {
19
19
  wordId: string;
@@ -41,7 +41,7 @@ export interface FeWordAudio {
41
41
  }
42
42
  export interface FeWordSpeechPart {
43
43
  speechPartCode?: string;
44
- translationFeed: Feed<FeTranslation>;
44
+ translationFeed: Feed<FeTranslationRecord>;
45
45
  }
46
46
  export interface FeWordTranslationCode {
47
47
  languageCode: string;
@@ -57,7 +57,7 @@ export interface FeWordEntity {
57
57
  access?: FeEntityAccess;
58
58
  attempts?: FeWordAttempt[];
59
59
  speechParts?: FeWordSpeechPart[];
60
- imageFeed?: Feed<FeWordImage>;
60
+ imageFeed?: Feed<FeWordImageRecord>;
61
61
  audioFeed?: Feed<FeWordAudio>;
62
62
  tagFeed?: Feed<FeWordTag>;
63
63
  translationLanguageCode?: string;
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "./feed";
2
- export * from "./backoffice";
3
- export * from "./units";
4
- export * from "./shared";
2
+ export * from "./back";
3
+ export * from "./front";
4
+ export * from "./common";
5
5
  export * from "./utils";
package/lib/index.js CHANGED
@@ -11,7 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./feed"), exports);
14
- __exportStar(require("./backoffice"), exports);
15
- __exportStar(require("./units"), exports);
16
- __exportStar(require("./shared"), exports);
14
+ __exportStar(require("./back"), exports);
15
+ __exportStar(require("./front"), exports);
16
+ __exportStar(require("./common"), exports);
17
17
  __exportStar(require("./utils"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev",
3
- "version": "0.103.0",
3
+ "version": "0.104.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -10,6 +10,7 @@
10
10
  "lint": "eslint .",
11
11
  "lint:fix": "eslint . --fix",
12
12
  "v": "npm --no-git-tag-version version minor",
13
+ "pm": "npm run lint:fix && git add * && git commit -m\"update\" && git push origin master",
13
14
  "p": "npm run v && npm run lint:fix && git add * && git commit -m\"v\" && git push origin master"
14
15
  },
15
16
  "keywords": [
@@ -1,19 +0,0 @@
1
- import { QuizMode } from "../../shared";
2
- import { FeWordDirect } from "../common";
3
- import { FeWordImage } from "../image";
4
- import { FeTranslation } from "../translation";
5
- import { FeWord } from "../word";
6
- export interface FeQuizEntity {
7
- mode?: QuizMode;
8
- isTable?: boolean;
9
- pairs: FeQuizPair[];
10
- }
11
- export interface FeQuizPair {
12
- word: FeWordDirect;
13
- translations?: FeTranslation[];
14
- images?: FeWordImage[];
15
- cellWords?: FeWordDirect[];
16
- }
17
- export interface FeQuizRack {
18
- words: FeWord[];
19
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes