@ooneex/typeorm 0.13.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.
- package/dist/shared/chunk-19qhst35.js +5 -0
- package/dist/shared/{chunk-tqd6ek7s.js.map → chunk-19qhst35.js.map} +2 -2
- package/dist/shared/{chunk-trhrh4e1.js → chunk-31y260d6.js} +24 -89
- package/dist/shared/{chunk-trhrh4e1.js.map → chunk-31y260d6.js.map} +2 -2
- package/dist/shared/chunk-59vwmfpm.js +5 -0
- package/dist/shared/{chunk-r9hsk9fk.js.map → chunk-59vwmfpm.js.map} +1 -1
- package/dist/shared/chunk-5tnqjb3n.js +5 -0
- package/dist/shared/{chunk-2wdazj26.js.map → chunk-5tnqjb3n.js.map} +2 -2
- package/dist/shared/chunk-5ybg5hda.js +5 -0
- package/dist/shared/{chunk-m4mpkr4n.js.map → chunk-5ybg5hda.js.map} +2 -2
- package/dist/shared/chunk-6jnj2pfx.js +5 -0
- package/dist/shared/{chunk-p12g6e7b.js.map → chunk-6jnj2pfx.js.map} +2 -2
- package/dist/shared/chunk-6kdkyjbn.js +5 -0
- package/dist/shared/{chunk-mssxq87m.js.map → chunk-6kdkyjbn.js.map} +2 -2
- package/dist/shared/{chunk-jap9t59k.js → chunk-aj0aak90.js} +14 -52
- package/dist/shared/{chunk-jap9t59k.js.map → chunk-aj0aak90.js.map} +2 -2
- package/dist/shared/chunk-e51ktjsq.js +5 -0
- package/dist/shared/{chunk-efmap3y3.js.map → chunk-e51ktjsq.js.map} +2 -2
- package/dist/shared/{chunk-yszvxhf3.js → chunk-jr0xys18.js} +11 -41
- package/dist/shared/{chunk-yszvxhf3.js.map → chunk-jr0xys18.js.map} +2 -2
- package/dist/shared/chunk-kw4t1san.js +5 -0
- package/dist/shared/{chunk-m9wkjs7v.js.map → chunk-kw4t1san.js.map} +2 -2
- package/dist/shared/chunk-nfv9ce7v.js +5 -0
- package/dist/shared/{chunk-qbn9p4vj.js.map → chunk-nfv9ce7v.js.map} +2 -2
- package/dist/shared/chunk-p22keb3y.js +5 -0
- package/dist/shared/{chunk-bkdccdhn.js.map → chunk-p22keb3y.js.map} +2 -2
- package/dist/shared/chunk-pbns711f.js +5 -0
- package/dist/shared/{chunk-hkfj9j6w.js.map → chunk-pbns711f.js.map} +2 -2
- package/dist/shared/{chunk-6vmvyg0q.js → chunk-qrs0g3m9.js} +17 -58
- package/dist/shared/{chunk-6vmvyg0q.js.map → chunk-qrs0g3m9.js.map} +2 -2
- package/dist/shared/{chunk-eets3mef.js → chunk-qyf32qsz.js} +22 -75
- package/dist/shared/{chunk-eets3mef.js.map → chunk-qyf32qsz.js.map} +2 -2
- package/dist/shared/chunk-t1jad451.js +5 -0
- package/dist/shared/{chunk-cv6xa6qy.js.map → chunk-t1jad451.js.map} +2 -2
- package/dist/shared/chunk-t5cy307m.js +5 -0
- package/dist/shared/{chunk-wg7xcq50.js.map → chunk-t5cy307m.js.map} +2 -2
- package/dist/shared/chunk-x2d798hg.js +5 -0
- package/dist/shared/{chunk-sk8z5zmk.js.map → chunk-x2d798hg.js.map} +2 -2
- package/dist/shared/chunk-x3pmm3na.js +5 -0
- package/dist/shared/{chunk-cwxhwya1.js.map → chunk-x3pmm3na.js.map} +2 -2
- package/dist/shared/chunk-xrqhqgen.js +5 -0
- package/dist/shared/{chunk-chan1evn.js.map → chunk-xrqhqgen.js.map} +2 -2
- package/dist/shared/chunk-xwe8m6av.js +5 -0
- package/dist/shared/{chunk-0swb1h0m.js.map → chunk-xwe8m6av.js.map} +2 -2
- package/dist/shared/chunk-yrwsqc6r.js +5 -0
- package/dist/shared/{chunk-6m3p1ht9.js.map → chunk-yrwsqc6r.js.map} +2 -2
- package/dist/src/entities/book/index.js +2 -34
- package/dist/src/entities/book/index.js.map +1 -1
- package/dist/src/entities/common/index.js +2 -26
- package/dist/src/entities/common/index.js.map +1 -1
- package/dist/src/entities/country/index.js +2 -9
- package/dist/src/entities/country/index.js.map +1 -1
- package/dist/src/entities/currency/index.js +2 -9
- package/dist/src/entities/currency/index.js.map +1 -1
- package/dist/src/entities/folder/index.js +2 -394
- package/dist/src/entities/folder/index.js.map +2 -2
- package/dist/src/entities/gamification/flashcard/index.js +2 -26
- package/dist/src/entities/gamification/flashcard/index.js.map +1 -1
- package/dist/src/entities/gamification/index.js +2 -9
- package/dist/src/entities/gamification/index.js.map +1 -1
- package/dist/src/entities/gamification/mcq/index.js +2 -36
- package/dist/src/entities/gamification/mcq/index.js.map +1 -1
- package/dist/src/entities/image/index.js +2 -31
- package/dist/src/entities/image/index.js.map +1 -1
- package/dist/src/entities/medecine/index.js +2 -13
- package/dist/src/entities/medecine/index.js.map +1 -1
- package/dist/src/entities/payment/index.js +2 -23
- package/dist/src/entities/payment/index.js.map +1 -1
- package/dist/src/entities/user/index.js +2 -30
- package/dist/src/entities/user/index.js.map +1 -1
- package/dist/src/entities/video/index.js +2 -34
- package/dist/src/entities/video/index.js.map +1 -1
- package/dist/src/migrations/book/index.js +137 -541
- package/dist/src/migrations/book/index.js.map +2 -2
- package/dist/src/migrations/common/index.js +14 -63
- package/dist/src/migrations/common/index.js.map +2 -2
- package/dist/src/migrations/country/index.js +13 -48
- package/dist/src/migrations/country/index.js.map +2 -2
- package/dist/src/migrations/currency/index.js +14 -50
- package/dist/src/migrations/currency/index.js.map +2 -2
- package/dist/src/migrations/folder/index.js +104 -426
- package/dist/src/migrations/folder/index.js.map +2 -2
- package/dist/src/migrations/gamification/flashcard/index.js +96 -356
- package/dist/src/migrations/gamification/flashcard/index.js.map +2 -2
- package/dist/src/migrations/gamification/index.js +2 -8
- package/dist/src/migrations/gamification/index.js.map +1 -1
- package/dist/src/migrations/gamification/mcq/index.js +139 -553
- package/dist/src/migrations/gamification/mcq/index.js.map +2 -2
- package/dist/src/migrations/image/index.js +85 -353
- package/dist/src/migrations/image/index.js.map +2 -2
- package/dist/src/migrations/medecine/index.js +36 -132
- package/dist/src/migrations/medecine/index.js.map +2 -2
- package/dist/src/migrations/payment/index.js +94 -339
- package/dist/src/migrations/payment/index.js.map +2 -2
- package/dist/src/migrations/user/index.js +39 -331
- package/dist/src/migrations/user/index.js.map +2 -2
- package/dist/src/migrations/video/index.js +17 -345
- package/dist/src/migrations/video/index.js.map +2 -2
- package/dist/src/repositories/book/index.js +2 -997
- package/dist/src/repositories/book/index.js.map +2 -2
- package/dist/src/repositories/common/index.js +2 -439
- package/dist/src/repositories/common/index.js.map +2 -2
- package/dist/src/repositories/country/index.js +2 -89
- package/dist/src/repositories/country/index.js.map +2 -2
- package/dist/src/repositories/currency/index.js +2 -89
- package/dist/src/repositories/currency/index.js.map +2 -2
- package/dist/src/repositories/gamification/flashcard/index.js +2 -632
- package/dist/src/repositories/gamification/flashcard/index.js.map +2 -2
- package/dist/src/repositories/gamification/index.js +2 -160
- package/dist/src/repositories/gamification/index.js.map +2 -2
- package/dist/src/repositories/gamification/mcq/index.js +2 -1017
- package/dist/src/repositories/gamification/mcq/index.js.map +2 -2
- package/dist/src/repositories/image/index.js +2 -800
- package/dist/src/repositories/image/index.js.map +2 -2
- package/dist/src/repositories/medecine/index.js +2 -243
- package/dist/src/repositories/medecine/index.js.map +2 -2
- package/dist/src/repositories/payment/index.js +2 -560
- package/dist/src/repositories/payment/index.js.map +2 -2
- package/dist/src/repositories/user/index.js +2 -999
- package/dist/src/repositories/user/index.js.map +2 -2
- package/dist/src/repositories/video/index.js +2 -975
- package/dist/src/repositories/video/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/shared/chunk-0swb1h0m.js +0 -51
- package/dist/shared/chunk-2wdazj26.js +0 -371
- package/dist/shared/chunk-6m3p1ht9.js +0 -606
- package/dist/shared/chunk-bkdccdhn.js +0 -105
- package/dist/shared/chunk-chan1evn.js +0 -72
- package/dist/shared/chunk-cv6xa6qy.js +0 -621
- package/dist/shared/chunk-cwxhwya1.js +0 -548
- package/dist/shared/chunk-efmap3y3.js +0 -345
- package/dist/shared/chunk-hkfj9j6w.js +0 -30
- package/dist/shared/chunk-m4mpkr4n.js +0 -34
- package/dist/shared/chunk-m9wkjs7v.js +0 -639
- package/dist/shared/chunk-mssxq87m.js +0 -195
- package/dist/shared/chunk-p12g6e7b.js +0 -38
- package/dist/shared/chunk-qbn9p4vj.js +0 -835
- package/dist/shared/chunk-r9hsk9fk.js +0 -20
- package/dist/shared/chunk-sk8z5zmk.js +0 -112
- package/dist/shared/chunk-tqd6ek7s.js +0 -86
- package/dist/shared/chunk-wg7xcq50.js +0 -38
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
BaseEntity
|
|
4
|
-
} from "./chunk-chan1evn.js";
|
|
5
|
-
import {
|
|
6
|
-
__legacyDecorateClassTS,
|
|
7
|
-
__legacyMetadataTS
|
|
8
|
-
} from "./chunk-r9hsk9fk.js";
|
|
9
|
-
|
|
10
|
-
// src/entities/common/StatEntity.ts
|
|
11
|
-
import { Column, Entity } from "typeorm";
|
|
12
|
-
class StatEntity extends BaseEntity {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.commentsCount = 0;
|
|
16
|
-
this.likesCount = 0;
|
|
17
|
-
this.dislikesCount = 0;
|
|
18
|
-
this.sharesCount = 0;
|
|
19
|
-
this.viewsCount = 0;
|
|
20
|
-
this.downloadsCount = 0;
|
|
21
|
-
this.savesCount = 0;
|
|
22
|
-
this.bookmarksCount = 0;
|
|
23
|
-
this.repostsCount = 0;
|
|
24
|
-
this.impressionsCount = 0;
|
|
25
|
-
this.clicksCount = 0;
|
|
26
|
-
this.engagementRate = 0;
|
|
27
|
-
this.reach = 0;
|
|
28
|
-
this.followersCount = 0;
|
|
29
|
-
this.followingCount = 0;
|
|
30
|
-
this.blockedCount = 0;
|
|
31
|
-
this.reportsCount = 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
__legacyDecorateClassTS([
|
|
35
|
-
Column({
|
|
36
|
-
name: "comments_count",
|
|
37
|
-
type: "int",
|
|
38
|
-
default: 0,
|
|
39
|
-
nullable: false
|
|
40
|
-
}),
|
|
41
|
-
__legacyMetadataTS("design:type", Object)
|
|
42
|
-
], StatEntity.prototype, "commentsCount", undefined);
|
|
43
|
-
__legacyDecorateClassTS([
|
|
44
|
-
Column({
|
|
45
|
-
name: "likes_count",
|
|
46
|
-
type: "int",
|
|
47
|
-
default: 0,
|
|
48
|
-
nullable: false
|
|
49
|
-
}),
|
|
50
|
-
__legacyMetadataTS("design:type", Object)
|
|
51
|
-
], StatEntity.prototype, "likesCount", undefined);
|
|
52
|
-
__legacyDecorateClassTS([
|
|
53
|
-
Column({
|
|
54
|
-
name: "dislikes_count",
|
|
55
|
-
type: "int",
|
|
56
|
-
default: 0,
|
|
57
|
-
nullable: false
|
|
58
|
-
}),
|
|
59
|
-
__legacyMetadataTS("design:type", Object)
|
|
60
|
-
], StatEntity.prototype, "dislikesCount", undefined);
|
|
61
|
-
__legacyDecorateClassTS([
|
|
62
|
-
Column({
|
|
63
|
-
name: "shares_count",
|
|
64
|
-
type: "int",
|
|
65
|
-
default: 0,
|
|
66
|
-
nullable: false
|
|
67
|
-
}),
|
|
68
|
-
__legacyMetadataTS("design:type", Object)
|
|
69
|
-
], StatEntity.prototype, "sharesCount", undefined);
|
|
70
|
-
__legacyDecorateClassTS([
|
|
71
|
-
Column({
|
|
72
|
-
name: "views_count",
|
|
73
|
-
type: "int",
|
|
74
|
-
default: 0,
|
|
75
|
-
nullable: false
|
|
76
|
-
}),
|
|
77
|
-
__legacyMetadataTS("design:type", Object)
|
|
78
|
-
], StatEntity.prototype, "viewsCount", undefined);
|
|
79
|
-
__legacyDecorateClassTS([
|
|
80
|
-
Column({
|
|
81
|
-
name: "downloads_count",
|
|
82
|
-
type: "int",
|
|
83
|
-
default: 0,
|
|
84
|
-
nullable: false
|
|
85
|
-
}),
|
|
86
|
-
__legacyMetadataTS("design:type", Object)
|
|
87
|
-
], StatEntity.prototype, "downloadsCount", undefined);
|
|
88
|
-
__legacyDecorateClassTS([
|
|
89
|
-
Column({
|
|
90
|
-
name: "saves_count",
|
|
91
|
-
type: "int",
|
|
92
|
-
default: 0,
|
|
93
|
-
nullable: false
|
|
94
|
-
}),
|
|
95
|
-
__legacyMetadataTS("design:type", Object)
|
|
96
|
-
], StatEntity.prototype, "savesCount", undefined);
|
|
97
|
-
__legacyDecorateClassTS([
|
|
98
|
-
Column({
|
|
99
|
-
name: "bookmarks_count",
|
|
100
|
-
type: "int",
|
|
101
|
-
default: 0,
|
|
102
|
-
nullable: false
|
|
103
|
-
}),
|
|
104
|
-
__legacyMetadataTS("design:type", Object)
|
|
105
|
-
], StatEntity.prototype, "bookmarksCount", undefined);
|
|
106
|
-
__legacyDecorateClassTS([
|
|
107
|
-
Column({
|
|
108
|
-
name: "reposts_count",
|
|
109
|
-
type: "int",
|
|
110
|
-
default: 0,
|
|
111
|
-
nullable: false
|
|
112
|
-
}),
|
|
113
|
-
__legacyMetadataTS("design:type", Object)
|
|
114
|
-
], StatEntity.prototype, "repostsCount", undefined);
|
|
115
|
-
__legacyDecorateClassTS([
|
|
116
|
-
Column({
|
|
117
|
-
name: "impressions_count",
|
|
118
|
-
type: "int",
|
|
119
|
-
default: 0,
|
|
120
|
-
nullable: false
|
|
121
|
-
}),
|
|
122
|
-
__legacyMetadataTS("design:type", Object)
|
|
123
|
-
], StatEntity.prototype, "impressionsCount", undefined);
|
|
124
|
-
__legacyDecorateClassTS([
|
|
125
|
-
Column({
|
|
126
|
-
name: "clicks_count",
|
|
127
|
-
type: "int",
|
|
128
|
-
default: 0,
|
|
129
|
-
nullable: false
|
|
130
|
-
}),
|
|
131
|
-
__legacyMetadataTS("design:type", Object)
|
|
132
|
-
], StatEntity.prototype, "clicksCount", undefined);
|
|
133
|
-
__legacyDecorateClassTS([
|
|
134
|
-
Column({
|
|
135
|
-
name: "engagement_rate",
|
|
136
|
-
type: "decimal",
|
|
137
|
-
precision: 5,
|
|
138
|
-
scale: 4,
|
|
139
|
-
default: 0,
|
|
140
|
-
nullable: false
|
|
141
|
-
}),
|
|
142
|
-
__legacyMetadataTS("design:type", Object)
|
|
143
|
-
], StatEntity.prototype, "engagementRate", undefined);
|
|
144
|
-
__legacyDecorateClassTS([
|
|
145
|
-
Column({
|
|
146
|
-
name: "reach",
|
|
147
|
-
type: "int",
|
|
148
|
-
default: 0,
|
|
149
|
-
nullable: false
|
|
150
|
-
}),
|
|
151
|
-
__legacyMetadataTS("design:type", Object)
|
|
152
|
-
], StatEntity.prototype, "reach", undefined);
|
|
153
|
-
__legacyDecorateClassTS([
|
|
154
|
-
Column({
|
|
155
|
-
name: "followers_count",
|
|
156
|
-
type: "int",
|
|
157
|
-
default: 0,
|
|
158
|
-
nullable: false
|
|
159
|
-
}),
|
|
160
|
-
__legacyMetadataTS("design:type", Object)
|
|
161
|
-
], StatEntity.prototype, "followersCount", undefined);
|
|
162
|
-
__legacyDecorateClassTS([
|
|
163
|
-
Column({
|
|
164
|
-
name: "following_count",
|
|
165
|
-
type: "int",
|
|
166
|
-
default: 0,
|
|
167
|
-
nullable: false
|
|
168
|
-
}),
|
|
169
|
-
__legacyMetadataTS("design:type", Object)
|
|
170
|
-
], StatEntity.prototype, "followingCount", undefined);
|
|
171
|
-
__legacyDecorateClassTS([
|
|
172
|
-
Column({
|
|
173
|
-
name: "blocked_count",
|
|
174
|
-
type: "int",
|
|
175
|
-
default: 0,
|
|
176
|
-
nullable: false
|
|
177
|
-
}),
|
|
178
|
-
__legacyMetadataTS("design:type", Object)
|
|
179
|
-
], StatEntity.prototype, "blockedCount", undefined);
|
|
180
|
-
__legacyDecorateClassTS([
|
|
181
|
-
Column({
|
|
182
|
-
name: "reports_count",
|
|
183
|
-
type: "int",
|
|
184
|
-
default: 0,
|
|
185
|
-
nullable: false
|
|
186
|
-
}),
|
|
187
|
-
__legacyMetadataTS("design:type", Object)
|
|
188
|
-
], StatEntity.prototype, "reportsCount", undefined);
|
|
189
|
-
StatEntity = __legacyDecorateClassTS([
|
|
190
|
-
Entity("stats")
|
|
191
|
-
], StatEntity);
|
|
192
|
-
|
|
193
|
-
export { StatEntity };
|
|
194
|
-
|
|
195
|
-
//# debugId=463D45DA5EADF1C464756E2164756E21
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ColorEntity
|
|
4
|
-
} from "./chunk-sk8z5zmk.js";
|
|
5
|
-
import {
|
|
6
|
-
BaseEntity
|
|
7
|
-
} from "./chunk-chan1evn.js";
|
|
8
|
-
import {
|
|
9
|
-
__legacyDecorateClassTS,
|
|
10
|
-
__legacyMetadataTS
|
|
11
|
-
} from "./chunk-r9hsk9fk.js";
|
|
12
|
-
|
|
13
|
-
// src/entities/common/TagEntity.ts
|
|
14
|
-
import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
|
|
15
|
-
class TagEntity extends BaseEntity {
|
|
16
|
-
}
|
|
17
|
-
__legacyDecorateClassTS([
|
|
18
|
-
Column({ name: "name", type: "varchar", length: 100 }),
|
|
19
|
-
__legacyMetadataTS("design:type", String)
|
|
20
|
-
], TagEntity.prototype, "name", undefined);
|
|
21
|
-
__legacyDecorateClassTS([
|
|
22
|
-
ManyToOne(() => ColorEntity, {
|
|
23
|
-
nullable: true,
|
|
24
|
-
eager: false,
|
|
25
|
-
cascade: ["insert", "update"]
|
|
26
|
-
}),
|
|
27
|
-
JoinColumn({ name: "color_id" }),
|
|
28
|
-
__legacyMetadataTS("design:type", typeof IColor === "undefined" ? Object : IColor)
|
|
29
|
-
], TagEntity.prototype, "color", undefined);
|
|
30
|
-
TagEntity = __legacyDecorateClassTS([
|
|
31
|
-
Entity({
|
|
32
|
-
name: "tags"
|
|
33
|
-
})
|
|
34
|
-
], TagEntity);
|
|
35
|
-
|
|
36
|
-
export { TagEntity };
|
|
37
|
-
|
|
38
|
-
//# debugId=81F5AE36A61FB42264756E2164756E21
|