@ooneex/typeorm 0.12.0 → 0.14.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 (141) hide show
  1. package/dist/shared/chunk-19qhst35.js +5 -0
  2. package/dist/shared/{chunk-tqd6ek7s.js.map → chunk-19qhst35.js.map} +2 -2
  3. package/dist/shared/{chunk-trhrh4e1.js → chunk-31y260d6.js} +24 -89
  4. package/dist/shared/{chunk-trhrh4e1.js.map → chunk-31y260d6.js.map} +2 -2
  5. package/dist/shared/chunk-59vwmfpm.js +5 -0
  6. package/dist/shared/{chunk-r9hsk9fk.js.map → chunk-59vwmfpm.js.map} +1 -1
  7. package/dist/shared/chunk-5tnqjb3n.js +5 -0
  8. package/dist/shared/{chunk-2wdazj26.js.map → chunk-5tnqjb3n.js.map} +2 -2
  9. package/dist/shared/chunk-5ybg5hda.js +5 -0
  10. package/dist/shared/{chunk-m4mpkr4n.js.map → chunk-5ybg5hda.js.map} +2 -2
  11. package/dist/shared/chunk-6jnj2pfx.js +5 -0
  12. package/dist/shared/{chunk-p12g6e7b.js.map → chunk-6jnj2pfx.js.map} +2 -2
  13. package/dist/shared/chunk-6kdkyjbn.js +5 -0
  14. package/dist/shared/{chunk-mssxq87m.js.map → chunk-6kdkyjbn.js.map} +2 -2
  15. package/dist/shared/{chunk-jap9t59k.js → chunk-aj0aak90.js} +14 -52
  16. package/dist/shared/{chunk-jap9t59k.js.map → chunk-aj0aak90.js.map} +2 -2
  17. package/dist/shared/chunk-e51ktjsq.js +5 -0
  18. package/dist/shared/{chunk-efmap3y3.js.map → chunk-e51ktjsq.js.map} +2 -2
  19. package/dist/shared/{chunk-yszvxhf3.js → chunk-jr0xys18.js} +11 -41
  20. package/dist/shared/{chunk-yszvxhf3.js.map → chunk-jr0xys18.js.map} +2 -2
  21. package/dist/shared/chunk-kw4t1san.js +5 -0
  22. package/dist/shared/{chunk-m9wkjs7v.js.map → chunk-kw4t1san.js.map} +2 -2
  23. package/dist/shared/chunk-nfv9ce7v.js +5 -0
  24. package/dist/shared/{chunk-qbn9p4vj.js.map → chunk-nfv9ce7v.js.map} +2 -2
  25. package/dist/shared/chunk-p22keb3y.js +5 -0
  26. package/dist/shared/{chunk-bkdccdhn.js.map → chunk-p22keb3y.js.map} +2 -2
  27. package/dist/shared/chunk-pbns711f.js +5 -0
  28. package/dist/shared/{chunk-hkfj9j6w.js.map → chunk-pbns711f.js.map} +2 -2
  29. package/dist/shared/{chunk-6vmvyg0q.js → chunk-qrs0g3m9.js} +17 -58
  30. package/dist/shared/{chunk-6vmvyg0q.js.map → chunk-qrs0g3m9.js.map} +2 -2
  31. package/dist/shared/{chunk-eets3mef.js → chunk-qyf32qsz.js} +22 -75
  32. package/dist/shared/{chunk-eets3mef.js.map → chunk-qyf32qsz.js.map} +2 -2
  33. package/dist/shared/chunk-t1jad451.js +5 -0
  34. package/dist/shared/{chunk-cv6xa6qy.js.map → chunk-t1jad451.js.map} +2 -2
  35. package/dist/shared/chunk-t5cy307m.js +5 -0
  36. package/dist/shared/{chunk-wg7xcq50.js.map → chunk-t5cy307m.js.map} +2 -2
  37. package/dist/shared/chunk-x2d798hg.js +5 -0
  38. package/dist/shared/{chunk-sk8z5zmk.js.map → chunk-x2d798hg.js.map} +2 -2
  39. package/dist/shared/chunk-x3pmm3na.js +5 -0
  40. package/dist/shared/{chunk-cwxhwya1.js.map → chunk-x3pmm3na.js.map} +2 -2
  41. package/dist/shared/chunk-xrqhqgen.js +5 -0
  42. package/dist/shared/{chunk-chan1evn.js.map → chunk-xrqhqgen.js.map} +2 -2
  43. package/dist/shared/chunk-xwe8m6av.js +5 -0
  44. package/dist/shared/{chunk-0swb1h0m.js.map → chunk-xwe8m6av.js.map} +2 -2
  45. package/dist/shared/chunk-yrwsqc6r.js +5 -0
  46. package/dist/shared/{chunk-6m3p1ht9.js.map → chunk-yrwsqc6r.js.map} +2 -2
  47. package/dist/src/entities/book/index.js +2 -34
  48. package/dist/src/entities/book/index.js.map +1 -1
  49. package/dist/src/entities/common/index.js +2 -26
  50. package/dist/src/entities/common/index.js.map +1 -1
  51. package/dist/src/entities/country/index.js +2 -9
  52. package/dist/src/entities/country/index.js.map +1 -1
  53. package/dist/src/entities/currency/index.js +2 -9
  54. package/dist/src/entities/currency/index.js.map +1 -1
  55. package/dist/src/entities/folder/index.js +2 -394
  56. package/dist/src/entities/folder/index.js.map +2 -2
  57. package/dist/src/entities/gamification/flashcard/index.js +2 -26
  58. package/dist/src/entities/gamification/flashcard/index.js.map +1 -1
  59. package/dist/src/entities/gamification/index.js +2 -9
  60. package/dist/src/entities/gamification/index.js.map +1 -1
  61. package/dist/src/entities/gamification/mcq/index.js +2 -36
  62. package/dist/src/entities/gamification/mcq/index.js.map +1 -1
  63. package/dist/src/entities/image/index.js +2 -31
  64. package/dist/src/entities/image/index.js.map +1 -1
  65. package/dist/src/entities/medecine/index.js +2 -13
  66. package/dist/src/entities/medecine/index.js.map +1 -1
  67. package/dist/src/entities/payment/index.js +2 -23
  68. package/dist/src/entities/payment/index.js.map +1 -1
  69. package/dist/src/entities/user/index.js +2 -30
  70. package/dist/src/entities/user/index.js.map +1 -1
  71. package/dist/src/entities/video/index.js +2 -34
  72. package/dist/src/entities/video/index.js.map +1 -1
  73. package/dist/src/migrations/book/index.js +137 -541
  74. package/dist/src/migrations/book/index.js.map +2 -2
  75. package/dist/src/migrations/common/index.js +14 -63
  76. package/dist/src/migrations/common/index.js.map +2 -2
  77. package/dist/src/migrations/country/index.js +13 -48
  78. package/dist/src/migrations/country/index.js.map +2 -2
  79. package/dist/src/migrations/currency/index.js +14 -50
  80. package/dist/src/migrations/currency/index.js.map +2 -2
  81. package/dist/src/migrations/folder/index.js +104 -426
  82. package/dist/src/migrations/folder/index.js.map +2 -2
  83. package/dist/src/migrations/gamification/flashcard/index.js +96 -356
  84. package/dist/src/migrations/gamification/flashcard/index.js.map +2 -2
  85. package/dist/src/migrations/gamification/index.js +2 -8
  86. package/dist/src/migrations/gamification/index.js.map +1 -1
  87. package/dist/src/migrations/gamification/mcq/index.js +139 -553
  88. package/dist/src/migrations/gamification/mcq/index.js.map +2 -2
  89. package/dist/src/migrations/image/index.js +85 -353
  90. package/dist/src/migrations/image/index.js.map +2 -2
  91. package/dist/src/migrations/medecine/index.js +36 -132
  92. package/dist/src/migrations/medecine/index.js.map +2 -2
  93. package/dist/src/migrations/payment/index.js +94 -339
  94. package/dist/src/migrations/payment/index.js.map +2 -2
  95. package/dist/src/migrations/user/index.js +39 -331
  96. package/dist/src/migrations/user/index.js.map +2 -2
  97. package/dist/src/migrations/video/index.js +17 -345
  98. package/dist/src/migrations/video/index.js.map +2 -2
  99. package/dist/src/repositories/book/index.js +2 -997
  100. package/dist/src/repositories/book/index.js.map +2 -2
  101. package/dist/src/repositories/common/index.js +2 -439
  102. package/dist/src/repositories/common/index.js.map +2 -2
  103. package/dist/src/repositories/country/index.js +2 -89
  104. package/dist/src/repositories/country/index.js.map +2 -2
  105. package/dist/src/repositories/currency/index.js +2 -89
  106. package/dist/src/repositories/currency/index.js.map +2 -2
  107. package/dist/src/repositories/gamification/flashcard/index.js +2 -632
  108. package/dist/src/repositories/gamification/flashcard/index.js.map +2 -2
  109. package/dist/src/repositories/gamification/index.js +2 -160
  110. package/dist/src/repositories/gamification/index.js.map +2 -2
  111. package/dist/src/repositories/gamification/mcq/index.js +2 -1017
  112. package/dist/src/repositories/gamification/mcq/index.js.map +2 -2
  113. package/dist/src/repositories/image/index.js +2 -800
  114. package/dist/src/repositories/image/index.js.map +2 -2
  115. package/dist/src/repositories/medecine/index.js +2 -243
  116. package/dist/src/repositories/medecine/index.js.map +2 -2
  117. package/dist/src/repositories/payment/index.js +2 -560
  118. package/dist/src/repositories/payment/index.js.map +2 -2
  119. package/dist/src/repositories/user/index.js +2 -999
  120. package/dist/src/repositories/user/index.js.map +2 -2
  121. package/dist/src/repositories/video/index.js +2 -975
  122. package/dist/src/repositories/video/index.js.map +2 -2
  123. package/package.json +21 -21
  124. package/dist/shared/chunk-0swb1h0m.js +0 -51
  125. package/dist/shared/chunk-2wdazj26.js +0 -371
  126. package/dist/shared/chunk-6m3p1ht9.js +0 -606
  127. package/dist/shared/chunk-bkdccdhn.js +0 -105
  128. package/dist/shared/chunk-chan1evn.js +0 -72
  129. package/dist/shared/chunk-cv6xa6qy.js +0 -621
  130. package/dist/shared/chunk-cwxhwya1.js +0 -548
  131. package/dist/shared/chunk-efmap3y3.js +0 -345
  132. package/dist/shared/chunk-hkfj9j6w.js +0 -30
  133. package/dist/shared/chunk-m4mpkr4n.js +0 -34
  134. package/dist/shared/chunk-m9wkjs7v.js +0 -639
  135. package/dist/shared/chunk-mssxq87m.js +0 -195
  136. package/dist/shared/chunk-p12g6e7b.js +0 -38
  137. package/dist/shared/chunk-qbn9p4vj.js +0 -835
  138. package/dist/shared/chunk-r9hsk9fk.js +0 -20
  139. package/dist/shared/chunk-sk8z5zmk.js +0 -112
  140. package/dist/shared/chunk-tqd6ek7s.js +0 -86
  141. package/dist/shared/chunk-wg7xcq50.js +0 -38
@@ -1,606 +0,0 @@
1
- // @bun
2
- import {
3
- StatEntity
4
- } from "./chunk-mssxq87m.js";
5
- import {
6
- ImageEntity
7
- } from "./chunk-bkdccdhn.js";
8
- import {
9
- TagEntity
10
- } from "./chunk-p12g6e7b.js";
11
- import {
12
- StatusEntity
13
- } from "./chunk-sk8z5zmk.js";
14
- import {
15
- LevelEntity
16
- } from "./chunk-m4mpkr4n.js";
17
- import {
18
- BaseEntity
19
- } from "./chunk-chan1evn.js";
20
- import {
21
- __legacyDecorateClassTS,
22
- __legacyMetadataTS
23
- } from "./chunk-r9hsk9fk.js";
24
-
25
- // src/entities/gamification/mcq/McqQuestionEntity.ts
26
- import { Column as Column2, Entity as Entity2, JoinColumn as JoinColumn2, JoinTable, ManyToMany, ManyToOne as ManyToOne2, OneToMany } from "typeorm";
27
-
28
- // src/entities/gamification/mcq/McqQuestionChoiceEntity.ts
29
- import { EMcqQuestionChoiceLetter } from "@ooneex/gamification/mcq";
30
- import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
31
- class McqQuestionChoiceEntity extends BaseEntity {
32
- }
33
- __legacyDecorateClassTS([
34
- Column({
35
- name: "letter",
36
- type: "enum",
37
- enum: EMcqQuestionChoiceLetter
38
- }),
39
- __legacyMetadataTS("design:type", typeof EMcqQuestionChoiceLetter === "undefined" ? Object : EMcqQuestionChoiceLetter)
40
- ], McqQuestionChoiceEntity.prototype, "letter", undefined);
41
- __legacyDecorateClassTS([
42
- Column({ name: "text", type: "text" }),
43
- __legacyMetadataTS("design:type", String)
44
- ], McqQuestionChoiceEntity.prototype, "text", undefined);
45
- __legacyDecorateClassTS([
46
- Column({ name: "is_correct", type: "boolean", default: false }),
47
- __legacyMetadataTS("design:type", Boolean)
48
- ], McqQuestionChoiceEntity.prototype, "isCorrect", undefined);
49
- __legacyDecorateClassTS([
50
- Column({ name: "explanation", type: "text", nullable: true }),
51
- __legacyMetadataTS("design:type", String)
52
- ], McqQuestionChoiceEntity.prototype, "explanation", undefined);
53
- __legacyDecorateClassTS([
54
- ManyToOne(() => McqQuestionEntity, {
55
- nullable: false,
56
- eager: false,
57
- cascade: ["remove", "soft-remove"]
58
- }),
59
- JoinColumn({ name: "question_id" }),
60
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
61
- ], McqQuestionChoiceEntity.prototype, "question", undefined);
62
- McqQuestionChoiceEntity = __legacyDecorateClassTS([
63
- Entity({
64
- name: "mcq_question_choices"
65
- })
66
- ], McqQuestionChoiceEntity);
67
-
68
- // src/entities/gamification/mcq/McqQuestionEntity.ts
69
- class McqQuestionEntity extends BaseEntity {
70
- }
71
- __legacyDecorateClassTS([
72
- Column2({ name: "question_number", type: "int" }),
73
- __legacyMetadataTS("design:type", Number)
74
- ], McqQuestionEntity.prototype, "questionNumber", undefined);
75
- __legacyDecorateClassTS([
76
- Column2({ name: "text", type: "text" }),
77
- __legacyMetadataTS("design:type", String)
78
- ], McqQuestionEntity.prototype, "text", undefined);
79
- __legacyDecorateClassTS([
80
- OneToMany(() => McqQuestionChoiceEntity, (choice) => choice.question, {
81
- eager: false,
82
- cascade: ["insert", "update", "remove"]
83
- }),
84
- __legacyMetadataTS("design:type", Array)
85
- ], McqQuestionEntity.prototype, "choices", undefined);
86
- __legacyDecorateClassTS([
87
- Column2({ name: "context", type: "varchar", length: 255, nullable: true }),
88
- __legacyMetadataTS("design:type", String)
89
- ], McqQuestionEntity.prototype, "context", undefined);
90
- __legacyDecorateClassTS([
91
- Column2({ name: "context_id", type: "varchar", length: 25, nullable: true }),
92
- __legacyMetadataTS("design:type", String)
93
- ], McqQuestionEntity.prototype, "contextId", undefined);
94
- __legacyDecorateClassTS([
95
- ManyToOne2(() => StatEntity, {
96
- nullable: true,
97
- eager: false,
98
- cascade: ["insert", "update"]
99
- }),
100
- JoinColumn2({ name: "stat_id" }),
101
- __legacyMetadataTS("design:type", typeof IStat === "undefined" ? Object : IStat)
102
- ], McqQuestionEntity.prototype, "stat", undefined);
103
- __legacyDecorateClassTS([
104
- ManyToOne2(() => StatusEntity, {
105
- nullable: true,
106
- eager: false,
107
- cascade: ["insert", "update"]
108
- }),
109
- JoinColumn2({ name: "status_id" }),
110
- __legacyMetadataTS("design:type", typeof IStatus === "undefined" ? Object : IStatus)
111
- ], McqQuestionEntity.prototype, "status", undefined);
112
- __legacyDecorateClassTS([
113
- ManyToOne2(() => ImageEntity, {
114
- nullable: true,
115
- eager: false,
116
- cascade: ["insert", "update"]
117
- }),
118
- JoinColumn2({ name: "image_id" }),
119
- __legacyMetadataTS("design:type", typeof IImage === "undefined" ? Object : IImage)
120
- ], McqQuestionEntity.prototype, "image", undefined);
121
- __legacyDecorateClassTS([
122
- ManyToMany(() => TagEntity, {
123
- nullable: true,
124
- eager: false,
125
- cascade: ["insert", "update"]
126
- }),
127
- JoinTable({
128
- name: "mcq_questions_tags",
129
- joinColumn: { name: "question_id", referencedColumnName: "id" },
130
- inverseJoinColumn: { name: "tag_id", referencedColumnName: "id" }
131
- }),
132
- __legacyMetadataTS("design:type", Array)
133
- ], McqQuestionEntity.prototype, "tags", undefined);
134
- McqQuestionEntity = __legacyDecorateClassTS([
135
- Entity2({
136
- name: "mcq_questions"
137
- })
138
- ], McqQuestionEntity);
139
-
140
- // src/entities/gamification/mcq/McqQuestionCommentEntity.ts
141
- import { Column as Column3, Entity as Entity3, JoinColumn as JoinColumn3, ManyToOne as ManyToOne3 } from "typeorm";
142
- class McqQuestionCommentEntity extends BaseEntity {
143
- }
144
- __legacyDecorateClassTS([
145
- ManyToOne3(() => McqQuestionEntity, {
146
- nullable: true,
147
- eager: false
148
- }),
149
- JoinColumn3({ name: "question_id" }),
150
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
151
- ], McqQuestionCommentEntity.prototype, "question", undefined);
152
- __legacyDecorateClassTS([
153
- Column3({ name: "question_id", type: "varchar", length: 25, nullable: true }),
154
- __legacyMetadataTS("design:type", String)
155
- ], McqQuestionCommentEntity.prototype, "questionId", undefined);
156
- __legacyDecorateClassTS([
157
- Column3({ name: "comment", type: "text" }),
158
- __legacyMetadataTS("design:type", String)
159
- ], McqQuestionCommentEntity.prototype, "comment", undefined);
160
- __legacyDecorateClassTS([
161
- Column3({ name: "commented_by", type: "varchar", length: 255, nullable: true }),
162
- __legacyMetadataTS("design:type", String)
163
- ], McqQuestionCommentEntity.prototype, "commentedBy", undefined);
164
- __legacyDecorateClassTS([
165
- Column3({ name: "commented_by_id", type: "varchar", length: 25, nullable: true }),
166
- __legacyMetadataTS("design:type", String)
167
- ], McqQuestionCommentEntity.prototype, "commentedById", undefined);
168
- __legacyDecorateClassTS([
169
- Column3({ name: "parent_comment_id", type: "varchar", length: 25, nullable: true }),
170
- __legacyMetadataTS("design:type", String)
171
- ], McqQuestionCommentEntity.prototype, "parentCommentId", undefined);
172
- McqQuestionCommentEntity = __legacyDecorateClassTS([
173
- Entity3({
174
- name: "mcq_questions_comments"
175
- })
176
- ], McqQuestionCommentEntity);
177
-
178
- // src/entities/gamification/mcq/McqQuestionDislikedEntity.ts
179
- import { Column as Column4, Entity as Entity4, JoinColumn as JoinColumn4, ManyToOne as ManyToOne4 } from "typeorm";
180
- class McqQuestionDislikedEntity extends BaseEntity {
181
- }
182
- __legacyDecorateClassTS([
183
- ManyToOne4(() => McqQuestionEntity, {
184
- nullable: true,
185
- eager: false
186
- }),
187
- JoinColumn4({ name: "question_id" }),
188
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
189
- ], McqQuestionDislikedEntity.prototype, "question", undefined);
190
- __legacyDecorateClassTS([
191
- Column4({ name: "question_id", type: "varchar", length: 25, nullable: true }),
192
- __legacyMetadataTS("design:type", String)
193
- ], McqQuestionDislikedEntity.prototype, "questionId", undefined);
194
- __legacyDecorateClassTS([
195
- Column4({ name: "disliked_by", type: "varchar", length: 255, nullable: true }),
196
- __legacyMetadataTS("design:type", String)
197
- ], McqQuestionDislikedEntity.prototype, "dislikedBy", undefined);
198
- __legacyDecorateClassTS([
199
- Column4({ name: "disliked_by_id", type: "varchar", length: 25, nullable: true }),
200
- __legacyMetadataTS("design:type", String)
201
- ], McqQuestionDislikedEntity.prototype, "dislikedById", undefined);
202
- McqQuestionDislikedEntity = __legacyDecorateClassTS([
203
- Entity4({
204
- name: "mcq_questions_disliked"
205
- })
206
- ], McqQuestionDislikedEntity);
207
-
208
- // src/entities/gamification/mcq/McqQuestionLikedEntity.ts
209
- import { Column as Column5, Entity as Entity5, JoinColumn as JoinColumn5, ManyToOne as ManyToOne5 } from "typeorm";
210
- class McqQuestionLikedEntity extends BaseEntity {
211
- }
212
- __legacyDecorateClassTS([
213
- ManyToOne5(() => McqQuestionEntity, {
214
- nullable: true,
215
- eager: false
216
- }),
217
- JoinColumn5({ name: "question_id" }),
218
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
219
- ], McqQuestionLikedEntity.prototype, "question", undefined);
220
- __legacyDecorateClassTS([
221
- Column5({ name: "question_id", type: "varchar", length: 25, nullable: true }),
222
- __legacyMetadataTS("design:type", String)
223
- ], McqQuestionLikedEntity.prototype, "questionId", undefined);
224
- __legacyDecorateClassTS([
225
- Column5({ name: "liked_by", type: "varchar", length: 255, nullable: true }),
226
- __legacyMetadataTS("design:type", String)
227
- ], McqQuestionLikedEntity.prototype, "likedBy", undefined);
228
- __legacyDecorateClassTS([
229
- Column5({ name: "liked_by_id", type: "varchar", length: 25, nullable: true }),
230
- __legacyMetadataTS("design:type", String)
231
- ], McqQuestionLikedEntity.prototype, "likedById", undefined);
232
- McqQuestionLikedEntity = __legacyDecorateClassTS([
233
- Entity5({
234
- name: "mcq_questions_liked"
235
- })
236
- ], McqQuestionLikedEntity);
237
-
238
- // src/entities/gamification/mcq/McqQuestionReportEntity.ts
239
- import { Column as Column6, Entity as Entity6, JoinColumn as JoinColumn6, ManyToOne as ManyToOne6 } from "typeorm";
240
- class McqQuestionReportEntity extends BaseEntity {
241
- }
242
- __legacyDecorateClassTS([
243
- ManyToOne6(() => McqQuestionEntity, {
244
- nullable: true,
245
- eager: false
246
- }),
247
- JoinColumn6({ name: "question_id" }),
248
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
249
- ], McqQuestionReportEntity.prototype, "question", undefined);
250
- __legacyDecorateClassTS([
251
- Column6({ name: "question_id", type: "varchar", length: 25, nullable: true }),
252
- __legacyMetadataTS("design:type", String)
253
- ], McqQuestionReportEntity.prototype, "questionId", undefined);
254
- __legacyDecorateClassTS([
255
- Column6({ name: "reason", type: "varchar", length: 255 }),
256
- __legacyMetadataTS("design:type", String)
257
- ], McqQuestionReportEntity.prototype, "reason", undefined);
258
- __legacyDecorateClassTS([
259
- Column6({ name: "description", type: "text", nullable: true }),
260
- __legacyMetadataTS("design:type", String)
261
- ], McqQuestionReportEntity.prototype, "description", undefined);
262
- __legacyDecorateClassTS([
263
- Column6({ name: "reported_by", type: "varchar", length: 255, nullable: true }),
264
- __legacyMetadataTS("design:type", String)
265
- ], McqQuestionReportEntity.prototype, "reportedBy", undefined);
266
- __legacyDecorateClassTS([
267
- Column6({ name: "reported_by_id", type: "varchar", length: 25, nullable: true }),
268
- __legacyMetadataTS("design:type", String)
269
- ], McqQuestionReportEntity.prototype, "reportedById", undefined);
270
- __legacyDecorateClassTS([
271
- ManyToOne6(() => StatusEntity, {
272
- nullable: true,
273
- eager: false,
274
- cascade: ["insert", "update"]
275
- }),
276
- JoinColumn6({ name: "status_id" }),
277
- __legacyMetadataTS("design:type", typeof IStatus === "undefined" ? Object : IStatus)
278
- ], McqQuestionReportEntity.prototype, "status", undefined);
279
- McqQuestionReportEntity = __legacyDecorateClassTS([
280
- Entity6({
281
- name: "mcq_questions_reports"
282
- })
283
- ], McqQuestionReportEntity);
284
-
285
- // src/entities/gamification/mcq/McqQuestionSavedEntity.ts
286
- import { Column as Column7, Entity as Entity7, JoinColumn as JoinColumn7, ManyToOne as ManyToOne7 } from "typeorm";
287
- class McqQuestionSavedEntity extends BaseEntity {
288
- }
289
- __legacyDecorateClassTS([
290
- ManyToOne7(() => McqQuestionEntity, {
291
- nullable: true,
292
- eager: false
293
- }),
294
- JoinColumn7({ name: "question_id" }),
295
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
296
- ], McqQuestionSavedEntity.prototype, "question", undefined);
297
- __legacyDecorateClassTS([
298
- Column7({ name: "question_id", type: "varchar", length: 25, nullable: true }),
299
- __legacyMetadataTS("design:type", String)
300
- ], McqQuestionSavedEntity.prototype, "questionId", undefined);
301
- __legacyDecorateClassTS([
302
- Column7({ name: "saved_by", type: "varchar", length: 255, nullable: true }),
303
- __legacyMetadataTS("design:type", String)
304
- ], McqQuestionSavedEntity.prototype, "savedBy", undefined);
305
- __legacyDecorateClassTS([
306
- Column7({ name: "saved_by_id", type: "varchar", length: 25, nullable: true }),
307
- __legacyMetadataTS("design:type", String)
308
- ], McqQuestionSavedEntity.prototype, "savedById", undefined);
309
- McqQuestionSavedEntity = __legacyDecorateClassTS([
310
- Entity7({
311
- name: "mcq_questions_saved"
312
- })
313
- ], McqQuestionSavedEntity);
314
-
315
- // src/entities/gamification/mcq/McqQuestionSharedEntity.ts
316
- import { Column as Column8, Entity as Entity8, JoinColumn as JoinColumn8, ManyToOne as ManyToOne8 } from "typeorm";
317
- class McqQuestionSharedEntity extends BaseEntity {
318
- }
319
- __legacyDecorateClassTS([
320
- ManyToOne8(() => McqQuestionEntity, {
321
- nullable: true,
322
- eager: false
323
- }),
324
- JoinColumn8({ name: "question_id" }),
325
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
326
- ], McqQuestionSharedEntity.prototype, "question", undefined);
327
- __legacyDecorateClassTS([
328
- Column8({ name: "question_id", type: "varchar", length: 25, nullable: true }),
329
- __legacyMetadataTS("design:type", String)
330
- ], McqQuestionSharedEntity.prototype, "questionId", undefined);
331
- __legacyDecorateClassTS([
332
- Column8({ name: "shared_with", type: "varchar", length: 255, nullable: true }),
333
- __legacyMetadataTS("design:type", String)
334
- ], McqQuestionSharedEntity.prototype, "sharedWith", undefined);
335
- __legacyDecorateClassTS([
336
- Column8({ name: "shared_by_id", type: "varchar", length: 25, nullable: true }),
337
- __legacyMetadataTS("design:type", String)
338
- ], McqQuestionSharedEntity.prototype, "sharedById", undefined);
339
- __legacyDecorateClassTS([
340
- Column8({ name: "permission", type: "varchar", length: 50, nullable: true }),
341
- __legacyMetadataTS("design:type", String)
342
- ], McqQuestionSharedEntity.prototype, "permission", undefined);
343
- __legacyDecorateClassTS([
344
- Column8({ name: "expires_at", type: "timestamptz", nullable: true }),
345
- __legacyMetadataTS("design:type", String)
346
- ], McqQuestionSharedEntity.prototype, "expiresAt", undefined);
347
- McqQuestionSharedEntity = __legacyDecorateClassTS([
348
- Entity8({
349
- name: "mcq_questions_shared"
350
- })
351
- ], McqQuestionSharedEntity);
352
-
353
- // src/entities/gamification/mcq/McqQuestionStatEntity.ts
354
- import { Column as Column9, Entity as Entity9, JoinColumn as JoinColumn9, ManyToOne as ManyToOne9 } from "typeorm";
355
- class McqQuestionStatEntity extends BaseEntity {
356
- }
357
- __legacyDecorateClassTS([
358
- ManyToOne9(() => McqQuestionEntity, {
359
- nullable: true,
360
- eager: false
361
- }),
362
- JoinColumn9({ name: "question_id" }),
363
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
364
- ], McqQuestionStatEntity.prototype, "question", undefined);
365
- __legacyDecorateClassTS([
366
- Column9({ name: "question_id", type: "varchar", length: 25, nullable: true }),
367
- __legacyMetadataTS("design:type", String)
368
- ], McqQuestionStatEntity.prototype, "questionId", undefined);
369
- __legacyDecorateClassTS([
370
- Column9({ name: "likes_count", type: "int", default: 0, nullable: true }),
371
- __legacyMetadataTS("design:type", Number)
372
- ], McqQuestionStatEntity.prototype, "likesCount", undefined);
373
- __legacyDecorateClassTS([
374
- Column9({ name: "dislikes_count", type: "int", default: 0, nullable: true }),
375
- __legacyMetadataTS("design:type", Number)
376
- ], McqQuestionStatEntity.prototype, "dislikesCount", undefined);
377
- __legacyDecorateClassTS([
378
- Column9({ name: "comments_count", type: "int", default: 0, nullable: true }),
379
- __legacyMetadataTS("design:type", Number)
380
- ], McqQuestionStatEntity.prototype, "commentsCount", undefined);
381
- __legacyDecorateClassTS([
382
- Column9({ name: "shares_count", type: "int", default: 0, nullable: true }),
383
- __legacyMetadataTS("design:type", Number)
384
- ], McqQuestionStatEntity.prototype, "sharesCount", undefined);
385
- __legacyDecorateClassTS([
386
- Column9({ name: "saves_count", type: "int", default: 0, nullable: true }),
387
- __legacyMetadataTS("design:type", Number)
388
- ], McqQuestionStatEntity.prototype, "savesCount", undefined);
389
- __legacyDecorateClassTS([
390
- Column9({ name: "views_count", type: "int", default: 0, nullable: true }),
391
- __legacyMetadataTS("design:type", Number)
392
- ], McqQuestionStatEntity.prototype, "viewsCount", undefined);
393
- __legacyDecorateClassTS([
394
- Column9({ name: "reports_count", type: "int", default: 0, nullable: true }),
395
- __legacyMetadataTS("design:type", Number)
396
- ], McqQuestionStatEntity.prototype, "reportsCount", undefined);
397
- McqQuestionStatEntity = __legacyDecorateClassTS([
398
- Entity9({
399
- name: "mcq_questions_stats"
400
- })
401
- ], McqQuestionStatEntity);
402
-
403
- // src/entities/gamification/mcq/McqQuestionViewedEntity.ts
404
- import { Column as Column10, Entity as Entity10, JoinColumn as JoinColumn10, ManyToOne as ManyToOne10 } from "typeorm";
405
- class McqQuestionViewedEntity extends BaseEntity {
406
- }
407
- __legacyDecorateClassTS([
408
- ManyToOne10(() => McqQuestionEntity, {
409
- nullable: true,
410
- eager: false
411
- }),
412
- JoinColumn10({ name: "question_id" }),
413
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
414
- ], McqQuestionViewedEntity.prototype, "question", undefined);
415
- __legacyDecorateClassTS([
416
- Column10({ name: "question_id", type: "varchar", length: 25, nullable: true }),
417
- __legacyMetadataTS("design:type", String)
418
- ], McqQuestionViewedEntity.prototype, "questionId", undefined);
419
- __legacyDecorateClassTS([
420
- Column10({ name: "viewed_by", type: "varchar", length: 255, nullable: true }),
421
- __legacyMetadataTS("design:type", String)
422
- ], McqQuestionViewedEntity.prototype, "viewedBy", undefined);
423
- __legacyDecorateClassTS([
424
- Column10({ name: "viewed_by_id", type: "varchar", length: 25, nullable: true }),
425
- __legacyMetadataTS("design:type", String)
426
- ], McqQuestionViewedEntity.prototype, "viewedById", undefined);
427
- McqQuestionViewedEntity = __legacyDecorateClassTS([
428
- Entity10({
429
- name: "mcq_questions_viewed"
430
- })
431
- ], McqQuestionViewedEntity);
432
-
433
- // src/entities/gamification/mcq/McqSessionEntity.ts
434
- import { ESessionType } from "@ooneex/gamification";
435
- import { EMcqSessionStatus } from "@ooneex/gamification/mcq";
436
- import { Column as Column11, Entity as Entity11, JoinColumn as JoinColumn11, JoinTable as JoinTable2, ManyToMany as ManyToMany2, ManyToOne as ManyToOne11 } from "typeorm";
437
- class McqSessionEntity extends BaseEntity {
438
- }
439
- __legacyDecorateClassTS([
440
- Column11({ name: "name", type: "varchar", length: 500 }),
441
- __legacyMetadataTS("design:type", String)
442
- ], McqSessionEntity.prototype, "name", undefined);
443
- __legacyDecorateClassTS([
444
- Column11({ name: "total_questions", type: "int", default: 0 }),
445
- __legacyMetadataTS("design:type", Number)
446
- ], McqSessionEntity.prototype, "totalQuestions", undefined);
447
- __legacyDecorateClassTS([
448
- Column11({ name: "answered_count", type: "int", default: 0 }),
449
- __legacyMetadataTS("design:type", Number)
450
- ], McqSessionEntity.prototype, "answeredCount", undefined);
451
- __legacyDecorateClassTS([
452
- Column11({ name: "correct_count", type: "int", default: 0 }),
453
- __legacyMetadataTS("design:type", Number)
454
- ], McqSessionEntity.prototype, "correctCount", undefined);
455
- __legacyDecorateClassTS([
456
- Column11({ name: "incorrect_count", type: "int", default: 0 }),
457
- __legacyMetadataTS("design:type", Number)
458
- ], McqSessionEntity.prototype, "incorrectCount", undefined);
459
- __legacyDecorateClassTS([
460
- Column11({ name: "timing", type: "int", default: 0 }),
461
- __legacyMetadataTS("design:type", Number)
462
- ], McqSessionEntity.prototype, "timing", undefined);
463
- __legacyDecorateClassTS([
464
- ManyToMany2(() => McqQuestionEntity, {
465
- eager: false,
466
- cascade: ["insert", "update"]
467
- }),
468
- JoinTable2({
469
- name: "mcq_sessions_questions",
470
- joinColumn: { name: "session_id", referencedColumnName: "id" },
471
- inverseJoinColumn: { name: "question_id", referencedColumnName: "id" }
472
- }),
473
- __legacyMetadataTS("design:type", Array)
474
- ], McqSessionEntity.prototype, "questions", undefined);
475
- __legacyDecorateClassTS([
476
- Column11({
477
- name: "status",
478
- type: "enum",
479
- enum: EMcqSessionStatus,
480
- default: EMcqSessionStatus.DRAFT
481
- }),
482
- __legacyMetadataTS("design:type", typeof EMcqSessionStatus === "undefined" ? Object : EMcqSessionStatus)
483
- ], McqSessionEntity.prototype, "status", undefined);
484
- __legacyDecorateClassTS([
485
- Column11({
486
- name: "score",
487
- type: "decimal",
488
- precision: 5,
489
- scale: 2,
490
- default: 0
491
- }),
492
- __legacyMetadataTS("design:type", Number)
493
- ], McqSessionEntity.prototype, "score", undefined);
494
- __legacyDecorateClassTS([
495
- Column11({ name: "started_at", type: "timestamptz", nullable: true }),
496
- __legacyMetadataTS("design:type", typeof Date === "undefined" ? Object : Date)
497
- ], McqSessionEntity.prototype, "startedAt", undefined);
498
- __legacyDecorateClassTS([
499
- Column11({ name: "paused_at", type: "timestamptz", nullable: true }),
500
- __legacyMetadataTS("design:type", typeof Date === "undefined" ? Object : Date)
501
- ], McqSessionEntity.prototype, "pausedAt", undefined);
502
- __legacyDecorateClassTS([
503
- Column11({ name: "resumed_at", type: "timestamptz", nullable: true }),
504
- __legacyMetadataTS("design:type", typeof Date === "undefined" ? Object : Date)
505
- ], McqSessionEntity.prototype, "resumedAt", undefined);
506
- __legacyDecorateClassTS([
507
- Column11({ name: "completed_at", type: "timestamptz", nullable: true }),
508
- __legacyMetadataTS("design:type", typeof Date === "undefined" ? Object : Date)
509
- ], McqSessionEntity.prototype, "completedAt", undefined);
510
- __legacyDecorateClassTS([
511
- Column11({
512
- name: "type",
513
- type: "enum",
514
- enum: ESessionType
515
- }),
516
- __legacyMetadataTS("design:type", typeof ESessionType === "undefined" ? Object : ESessionType)
517
- ], McqSessionEntity.prototype, "type", undefined);
518
- __legacyDecorateClassTS([
519
- ManyToOne11(() => LevelEntity, {
520
- nullable: false,
521
- eager: false,
522
- cascade: ["insert", "update"]
523
- }),
524
- JoinColumn11({ name: "level_id" }),
525
- __legacyMetadataTS("design:type", typeof ILevel === "undefined" ? Object : ILevel)
526
- ], McqSessionEntity.prototype, "level", undefined);
527
- McqSessionEntity = __legacyDecorateClassTS([
528
- Entity11({
529
- name: "mcq_sessions"
530
- })
531
- ], McqSessionEntity);
532
-
533
- // src/entities/gamification/mcq/McqSessionQuestionEntity.ts
534
- import { EAnswerState } from "@ooneex/gamification";
535
- import { Column as Column12, Entity as Entity12, JoinColumn as JoinColumn12, JoinTable as JoinTable3, ManyToMany as ManyToMany3, ManyToOne as ManyToOne12 } from "typeorm";
536
- class McqSessionQuestionEntity extends BaseEntity {
537
- }
538
- __legacyDecorateClassTS([
539
- ManyToOne12(() => McqSessionEntity, {
540
- nullable: false,
541
- eager: false,
542
- cascade: ["remove", "soft-remove"]
543
- }),
544
- JoinColumn12({ name: "session_id" }),
545
- __legacyMetadataTS("design:type", typeof IMcqSession === "undefined" ? Object : IMcqSession)
546
- ], McqSessionQuestionEntity.prototype, "session", undefined);
547
- __legacyDecorateClassTS([
548
- ManyToOne12(() => McqQuestionEntity, {
549
- nullable: false,
550
- eager: false,
551
- cascade: ["insert", "update"]
552
- }),
553
- JoinColumn12({ name: "question_id" }),
554
- __legacyMetadataTS("design:type", typeof IMcqQuestion === "undefined" ? Object : IMcqQuestion)
555
- ], McqSessionQuestionEntity.prototype, "question", undefined);
556
- __legacyDecorateClassTS([
557
- Column12({ name: "question_number", type: "int" }),
558
- __legacyMetadataTS("design:type", Number)
559
- ], McqSessionQuestionEntity.prototype, "questionNumber", undefined);
560
- __legacyDecorateClassTS([
561
- ManyToMany3(() => McqQuestionChoiceEntity, {
562
- eager: false,
563
- cascade: ["insert", "update"]
564
- }),
565
- JoinTable3({
566
- name: "mcq_session_questions_selected_choices",
567
- joinColumn: { name: "session_question_id", referencedColumnName: "id" },
568
- inverseJoinColumn: { name: "choice_id", referencedColumnName: "id" }
569
- }),
570
- __legacyMetadataTS("design:type", Array)
571
- ], McqSessionQuestionEntity.prototype, "selectedChoices", undefined);
572
- __legacyDecorateClassTS([
573
- Column12({ name: "context", type: "varchar", length: 255, nullable: true }),
574
- __legacyMetadataTS("design:type", String)
575
- ], McqSessionQuestionEntity.prototype, "context", undefined);
576
- __legacyDecorateClassTS([
577
- Column12({ name: "context_id", type: "varchar", length: 25, nullable: true }),
578
- __legacyMetadataTS("design:type", String)
579
- ], McqSessionQuestionEntity.prototype, "contextId", undefined);
580
- __legacyDecorateClassTS([
581
- Column12({
582
- name: "state",
583
- type: "enum",
584
- enum: EAnswerState
585
- }),
586
- __legacyMetadataTS("design:type", typeof EAnswerState === "undefined" ? Object : EAnswerState)
587
- ], McqSessionQuestionEntity.prototype, "state", undefined);
588
- __legacyDecorateClassTS([
589
- Column12({
590
- name: "score",
591
- type: "decimal",
592
- precision: 5,
593
- scale: 2,
594
- default: 0
595
- }),
596
- __legacyMetadataTS("design:type", Number)
597
- ], McqSessionQuestionEntity.prototype, "score", undefined);
598
- McqSessionQuestionEntity = __legacyDecorateClassTS([
599
- Entity12({
600
- name: "mcq_session_questions"
601
- })
602
- ], McqSessionQuestionEntity);
603
-
604
- export { McqQuestionEntity, McqQuestionChoiceEntity, McqQuestionCommentEntity, McqQuestionDislikedEntity, McqQuestionLikedEntity, McqQuestionReportEntity, McqQuestionSavedEntity, McqQuestionSharedEntity, McqQuestionStatEntity, McqQuestionViewedEntity, McqSessionEntity, McqSessionQuestionEntity };
605
-
606
- //# debugId=A1B75813A1DAABC664756E2164756E21