@ooneex/typeorm 0.0.1 → 0.4.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-19qhst35.js.map +12 -0
- package/dist/shared/chunk-31y260d6.js +101 -0
- package/dist/shared/chunk-31y260d6.js.map +11 -0
- package/dist/shared/chunk-59vwmfpm.js +5 -0
- package/dist/shared/chunk-59vwmfpm.js.map +9 -0
- package/dist/shared/chunk-5tnqjb3n.js +5 -0
- package/dist/shared/{chunk-eh420jqn.js.map → chunk-5tnqjb3n.js.map} +2 -2
- package/dist/shared/chunk-5ybg5hda.js +5 -0
- package/dist/shared/{chunk-pwhygf44.js.map → chunk-5ybg5hda.js.map} +2 -2
- package/dist/shared/chunk-6jnj2pfx.js +5 -0
- package/dist/shared/chunk-6jnj2pfx.js.map +10 -0
- package/dist/shared/chunk-6kdkyjbn.js +5 -0
- package/dist/shared/chunk-6kdkyjbn.js.map +10 -0
- package/dist/shared/chunk-aj0aak90.js +42 -0
- package/dist/shared/chunk-aj0aak90.js.map +10 -0
- package/dist/shared/chunk-e51ktjsq.js +5 -0
- package/dist/shared/chunk-e51ktjsq.js.map +18 -0
- package/dist/shared/chunk-jr0xys18.js +36 -0
- package/dist/shared/chunk-jr0xys18.js.map +10 -0
- package/dist/shared/chunk-kw4t1san.js +5 -0
- package/dist/shared/{chunk-wawk30n1.js.map → chunk-kw4t1san.js.map} +9 -4
- package/dist/shared/chunk-nfv9ce7v.js +5 -0
- package/dist/shared/{chunk-wmftwzcs.js.map → chunk-nfv9ce7v.js.map} +2 -2
- package/dist/shared/chunk-p22keb3y.js +5 -0
- package/dist/shared/{chunk-2e7zbxcq.js.map → chunk-p22keb3y.js.map} +2 -2
- package/dist/shared/chunk-pbns711f.js +5 -0
- package/dist/shared/chunk-pbns711f.js.map +10 -0
- package/dist/shared/chunk-qrs0g3m9.js +51 -0
- package/dist/shared/chunk-qrs0g3m9.js.map +10 -0
- package/dist/shared/chunk-qyf32qsz.js +82 -0
- package/dist/shared/chunk-qyf32qsz.js.map +10 -0
- package/dist/shared/chunk-t1jad451.js +5 -0
- package/dist/shared/chunk-t1jad451.js.map +21 -0
- package/dist/shared/chunk-t5cy307m.js +5 -0
- package/dist/shared/chunk-t5cy307m.js.map +10 -0
- package/dist/shared/chunk-x2d798hg.js +5 -0
- package/dist/shared/chunk-x2d798hg.js.map +11 -0
- package/dist/shared/chunk-x3pmm3na.js +5 -0
- package/dist/shared/chunk-x3pmm3na.js.map +21 -0
- package/dist/shared/chunk-xrqhqgen.js +5 -0
- package/dist/shared/{chunk-j7nprmyh.js.map → chunk-xrqhqgen.js.map} +2 -2
- package/dist/shared/chunk-xwe8m6av.js +5 -0
- package/dist/shared/{chunk-zmzz7hqq.js.map → chunk-xwe8m6av.js.map} +2 -2
- package/dist/shared/chunk-yrwsqc6r.js +5 -0
- package/dist/shared/chunk-yrwsqc6r.js.map +21 -0
- package/dist/src/entities/book/index.d.ts +80 -3
- package/dist/src/entities/book/index.js +2 -2
- package/dist/src/entities/book/index.js.map +1 -1
- package/dist/src/entities/common/index.d.ts +21 -28
- package/dist/src/entities/common/index.js +2 -2
- package/dist/src/entities/common/index.js.map +1 -1
- package/dist/src/entities/country/index.d.ts +21 -0
- package/dist/src/entities/country/index.js +4 -0
- package/dist/src/entities/country/index.js.map +9 -0
- package/dist/src/entities/currency/index.d.ts +23 -0
- package/dist/src/entities/currency/index.js +4 -0
- package/dist/src/entities/currency/index.js.map +9 -0
- package/dist/src/entities/folder/index.d.ts +104 -0
- package/dist/src/entities/folder/index.js +4 -0
- package/dist/src/entities/folder/index.js.map +19 -0
- package/dist/src/entities/gamification/flashcard/index.js +2 -2
- package/dist/src/entities/gamification/flashcard/index.js.map +1 -1
- package/dist/src/entities/gamification/index.js +2 -2
- package/dist/src/entities/gamification/index.js.map +1 -1
- package/dist/src/entities/gamification/mcq/index.d.ts +76 -7
- package/dist/src/entities/gamification/mcq/index.js +2 -2
- package/dist/src/entities/gamification/mcq/index.js.map +1 -1
- package/dist/src/entities/image/index.d.ts +83 -6
- package/dist/src/entities/image/index.js +2 -2
- package/dist/src/entities/image/index.js.map +1 -1
- package/dist/src/entities/medecine/index.d.ts +36 -0
- package/dist/src/entities/medecine/index.js +4 -0
- package/dist/src/entities/medecine/index.js.map +9 -0
- package/dist/src/entities/payment/index.js +2 -2
- package/dist/src/entities/payment/index.js.map +1 -1
- package/dist/src/entities/user/index.d.ts +48 -7
- package/dist/src/entities/user/index.js +2 -2
- package/dist/src/entities/user/index.js.map +1 -1
- package/dist/src/entities/video/index.d.ts +88 -10
- package/dist/src/entities/video/index.js +2 -2
- package/dist/src/entities/video/index.js.map +1 -1
- package/dist/src/migrations/book/index.d.ts +97 -0
- package/dist/src/migrations/book/index.js +516 -0
- package/dist/src/migrations/book/index.js.map +21 -0
- package/dist/src/migrations/common/index.d.ts +41 -0
- package/dist/src/migrations/common/index.js +57 -0
- package/dist/src/migrations/common/index.js.map +10 -0
- package/dist/src/migrations/country/index.d.ts +9 -0
- package/dist/src/migrations/country/index.js +40 -0
- package/dist/src/migrations/country/index.js.map +10 -0
- package/dist/src/migrations/currency/index.d.ts +9 -0
- package/dist/src/migrations/currency/index.js +44 -0
- package/dist/src/migrations/currency/index.js.map +10 -0
- package/dist/src/migrations/folder/index.d.ts +81 -0
- package/dist/src/migrations/folder/index.js +387 -0
- package/dist/src/migrations/folder/index.js.map +19 -0
- package/dist/src/migrations/gamification/flashcard/index.d.ts +57 -0
- package/dist/src/migrations/gamification/flashcard/index.js +420 -0
- package/dist/src/migrations/gamification/flashcard/index.js.map +16 -0
- package/dist/src/migrations/gamification/index.d.ts +9 -0
- package/dist/src/migrations/gamification/index.js +4 -0
- package/dist/src/migrations/gamification/index.js.map +9 -0
- package/dist/src/migrations/gamification/mcq/index.d.ts +97 -0
- package/dist/src/migrations/gamification/mcq/index.js +526 -0
- package/dist/src/migrations/gamification/mcq/index.js.map +21 -0
- package/dist/src/migrations/image/index.d.ts +81 -0
- package/dist/src/migrations/image/index.js +328 -0
- package/dist/src/migrations/image/index.js.map +18 -0
- package/dist/src/migrations/medecine/index.d.ts +25 -0
- package/dist/src/migrations/medecine/index.js +119 -0
- package/dist/src/migrations/medecine/index.js.map +12 -0
- package/dist/src/migrations/payment/index.d.ts +49 -0
- package/dist/src/migrations/payment/index.js +352 -0
- package/dist/src/migrations/payment/index.js.map +15 -0
- package/dist/src/migrations/user/index.d.ts +81 -0
- package/dist/src/migrations/user/index.js +309 -0
- package/dist/src/migrations/user/index.js.map +19 -0
- package/dist/src/migrations/video/index.d.ts +97 -0
- package/dist/src/migrations/video/index.js +289 -0
- package/dist/src/migrations/video/index.js.map +21 -0
- package/dist/src/repositories/book/index.d.ts +310 -35
- package/dist/src/repositories/book/index.js +2 -2
- package/dist/src/repositories/book/index.js.map +15 -6
- package/dist/src/repositories/common/index.d.ts +65 -94
- package/dist/src/repositories/common/index.js +2 -2
- package/dist/src/repositories/common/index.js.map +8 -9
- package/dist/src/repositories/country/index.d.ts +42 -0
- package/dist/src/repositories/country/index.js +4 -0
- package/dist/src/repositories/country/index.js.map +10 -0
- package/dist/src/repositories/currency/index.d.ts +44 -0
- package/dist/src/repositories/currency/index.js +4 -0
- package/dist/src/repositories/currency/index.js.map +10 -0
- package/dist/src/repositories/gamification/flashcard/index.d.ts +14 -14
- package/dist/src/repositories/gamification/flashcard/index.js +2 -2
- package/dist/src/repositories/gamification/flashcard/index.js.map +9 -9
- package/dist/src/repositories/gamification/index.d.ts +328 -83
- package/dist/src/repositories/gamification/index.js +2 -2
- package/dist/src/repositories/gamification/index.js.map +3 -3
- package/dist/src/repositories/gamification/mcq/index.d.ts +299 -54
- package/dist/src/repositories/gamification/mcq/index.js +2 -2
- package/dist/src/repositories/gamification/mcq/index.js.map +15 -7
- package/dist/src/repositories/image/index.d.ts +295 -20
- package/dist/src/repositories/image/index.js +2 -2
- package/dist/src/repositories/image/index.js.map +13 -4
- package/dist/src/repositories/medecine/index.d.ts +99 -0
- package/dist/src/repositories/medecine/index.js +4 -0
- package/dist/src/repositories/medecine/index.js.map +12 -0
- package/dist/src/repositories/payment/index.d.ts +12 -12
- package/dist/src/repositories/payment/index.js +2 -2
- package/dist/src/repositories/payment/index.js.map +8 -8
- package/dist/src/repositories/user/index.d.ts +210 -59
- package/dist/src/repositories/user/index.js +2 -2
- package/dist/src/repositories/user/index.js.map +13 -8
- package/dist/src/repositories/video/index.d.ts +330 -54
- package/dist/src/repositories/video/index.js +2 -2
- package/dist/src/repositories/video/index.js.map +15 -6
- package/package.json +188 -58
- package/dist/ooneex-typeorm-0.0.1.tgz +0 -0
- package/dist/shared/chunk-2e7zbxcq.js +0 -5
- package/dist/shared/chunk-764bzjhz.js +0 -5
- package/dist/shared/chunk-764bzjhz.js.map +0 -12
- package/dist/shared/chunk-eh420jqn.js +0 -5
- package/dist/shared/chunk-gjsgnzaq.js +0 -5
- package/dist/shared/chunk-gjsgnzaq.js.map +0 -10
- package/dist/shared/chunk-hw4vdg6q.js +0 -5
- package/dist/shared/chunk-hw4vdg6q.js.map +0 -10
- package/dist/shared/chunk-j7nprmyh.js +0 -5
- package/dist/shared/chunk-kgxsdeye.js +0 -5
- package/dist/shared/chunk-kgxsdeye.js.map +0 -13
- package/dist/shared/chunk-ntrrrvwt.js +0 -5
- package/dist/shared/chunk-ntrrrvwt.js.map +0 -12
- package/dist/shared/chunk-pwhygf44.js +0 -5
- package/dist/shared/chunk-sd6mmec6.js +0 -5
- package/dist/shared/chunk-sd6mmec6.js.map +0 -12
- package/dist/shared/chunk-wawk30n1.js +0 -5
- package/dist/shared/chunk-wmftwzcs.js +0 -5
- package/dist/shared/chunk-zmzz7hqq.js +0 -5
|
@@ -37,45 +37,38 @@ declare class ColorEntity extends BaseEntity implements IColor2 {
|
|
|
37
37
|
saturation?: number;
|
|
38
38
|
lightness?: number;
|
|
39
39
|
}
|
|
40
|
-
import { IColor as IColor3 } from "@ooneex/color";
|
|
41
|
-
import { IFolder } from "@ooneex/folder";
|
|
42
|
-
declare class FolderEntity extends BaseEntity implements IFolder {
|
|
43
|
-
name: string;
|
|
44
|
-
color?: IColor3;
|
|
45
|
-
description?: string;
|
|
46
|
-
context?: string;
|
|
47
|
-
contextId?: string;
|
|
48
|
-
parent?: IFolder;
|
|
49
|
-
children?: IFolder[];
|
|
50
|
-
}
|
|
51
40
|
import { IStat } from "@ooneex/types";
|
|
52
41
|
declare class StatEntity extends BaseEntity implements IStat {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
42
|
+
commentsCount: number;
|
|
43
|
+
likesCount: number;
|
|
44
|
+
dislikesCount: number;
|
|
45
|
+
sharesCount: number;
|
|
46
|
+
viewsCount: number;
|
|
47
|
+
downloadsCount: number;
|
|
48
|
+
savesCount: number;
|
|
49
|
+
bookmarksCount: number;
|
|
50
|
+
repostsCount: number;
|
|
51
|
+
impressionsCount: number;
|
|
52
|
+
clicksCount: number;
|
|
62
53
|
engagementRate: number;
|
|
63
54
|
reach: number;
|
|
64
|
-
|
|
55
|
+
followersCount: number;
|
|
65
56
|
followingCount: number;
|
|
57
|
+
blockedCount: number;
|
|
58
|
+
reportsCount: number;
|
|
66
59
|
}
|
|
67
|
-
import { IColor as
|
|
60
|
+
import { IColor as IColor3 } from "@ooneex/color";
|
|
68
61
|
import { EStatus, IStatus } from "@ooneex/status";
|
|
69
62
|
declare class StatusEntity extends BaseEntity implements IStatus {
|
|
70
63
|
status: EStatus;
|
|
71
|
-
color?:
|
|
72
|
-
description?: string;
|
|
73
|
-
reason?: string;
|
|
64
|
+
color?: IColor3 | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
reason?: string | undefined;
|
|
74
67
|
}
|
|
75
|
-
import { IColor as
|
|
68
|
+
import { IColor as IColor4 } from "@ooneex/color";
|
|
76
69
|
import { ITag } from "@ooneex/tag";
|
|
77
70
|
declare class TagEntity extends BaseEntity implements ITag {
|
|
78
71
|
name: string;
|
|
79
|
-
color?:
|
|
72
|
+
color?: IColor4 | undefined;
|
|
80
73
|
}
|
|
81
|
-
export { TagEntity, StatusEntity, StatEntity,
|
|
74
|
+
export { TagEntity, StatusEntity, StatEntity, ColorEntity, CategoryEntity, BaseEntity };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Q as f}from"../../../shared/chunk-6kdkyjbn.js";import{qa as r}from"../../../shared/chunk-xwe8m6av.js";import{Ca as y}from"../../../shared/chunk-6jnj2pfx.js";import{Da as o,Ea as e}from"../../../shared/chunk-x2d798hg.js";import{Ga as t}from"../../../shared/chunk-xrqhqgen.js";import"../../../shared/chunk-59vwmfpm.js";export{y as TagEntity,e as StatusEntity,f as StatEntity,o as ColorEntity,r as CategoryEntity,t as BaseEntity};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=B0FBF26CBB0CA42464756E2164756E21
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ICountry } from "@ooneex/country";
|
|
2
|
+
import { LocaleType } from "@ooneex/translation";
|
|
3
|
+
import { IBase } from "@ooneex/types";
|
|
4
|
+
declare abstract class BaseEntity implements IBase {
|
|
5
|
+
id: string;
|
|
6
|
+
isLocked?: boolean;
|
|
7
|
+
lockedAt?: Date;
|
|
8
|
+
isBlocked?: boolean;
|
|
9
|
+
blockedAt?: Date;
|
|
10
|
+
blockReason?: string;
|
|
11
|
+
isPublic?: boolean;
|
|
12
|
+
language?: LocaleType;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
deletedAt?: Date;
|
|
16
|
+
}
|
|
17
|
+
declare class CountryEntity extends BaseEntity implements ICountry {
|
|
18
|
+
name: string;
|
|
19
|
+
code: string;
|
|
20
|
+
}
|
|
21
|
+
export { CountryEntity };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ICurrency } from "@ooneex/currencies";
|
|
2
|
+
import { LocaleType } from "@ooneex/translation";
|
|
3
|
+
import { IBase } from "@ooneex/types";
|
|
4
|
+
declare abstract class BaseEntity implements IBase {
|
|
5
|
+
id: string;
|
|
6
|
+
isLocked?: boolean;
|
|
7
|
+
lockedAt?: Date;
|
|
8
|
+
isBlocked?: boolean;
|
|
9
|
+
blockedAt?: Date;
|
|
10
|
+
blockReason?: string;
|
|
11
|
+
isPublic?: boolean;
|
|
12
|
+
language?: LocaleType;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
deletedAt?: Date;
|
|
16
|
+
}
|
|
17
|
+
declare class CurrencyEntity extends BaseEntity implements ICurrency {
|
|
18
|
+
code: string;
|
|
19
|
+
name: string;
|
|
20
|
+
icon?: string;
|
|
21
|
+
symbol: string;
|
|
22
|
+
}
|
|
23
|
+
export { CurrencyEntity };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { IFolder, IFolderComment } from "@ooneex/folder";
|
|
2
|
+
import { LocaleType } from "@ooneex/translation";
|
|
3
|
+
import { IBase } from "@ooneex/types";
|
|
4
|
+
declare abstract class BaseEntity implements IBase {
|
|
5
|
+
id: string;
|
|
6
|
+
isLocked?: boolean;
|
|
7
|
+
lockedAt?: Date;
|
|
8
|
+
isBlocked?: boolean;
|
|
9
|
+
blockedAt?: Date;
|
|
10
|
+
blockReason?: string;
|
|
11
|
+
isPublic?: boolean;
|
|
12
|
+
language?: LocaleType;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
deletedAt?: Date;
|
|
16
|
+
}
|
|
17
|
+
declare class FolderCommentEntity extends BaseEntity implements IFolderComment {
|
|
18
|
+
folder?: IFolder;
|
|
19
|
+
folderId?: string;
|
|
20
|
+
comment: string;
|
|
21
|
+
commentedBy?: string;
|
|
22
|
+
commentedById?: string;
|
|
23
|
+
parentCommentId?: string;
|
|
24
|
+
}
|
|
25
|
+
import { IFolder as IFolder2, IFolderDisliked } from "@ooneex/folder";
|
|
26
|
+
declare class FolderDislikedEntity extends BaseEntity implements IFolderDisliked {
|
|
27
|
+
folder?: IFolder2;
|
|
28
|
+
folderId?: string;
|
|
29
|
+
dislikedBy?: string;
|
|
30
|
+
dislikedById?: string;
|
|
31
|
+
}
|
|
32
|
+
import { IFolder as IFolder3, IFolderDownloaded } from "@ooneex/folder";
|
|
33
|
+
declare class FolderDownloadedEntity extends BaseEntity implements IFolderDownloaded {
|
|
34
|
+
folder?: IFolder3;
|
|
35
|
+
folderId?: string;
|
|
36
|
+
downloadedBy?: string;
|
|
37
|
+
downloadedById?: string;
|
|
38
|
+
}
|
|
39
|
+
import { IColor } from "@ooneex/color";
|
|
40
|
+
import { IFolder as IFolder4 } from "@ooneex/folder";
|
|
41
|
+
declare class FolderEntity extends BaseEntity implements IFolder4 {
|
|
42
|
+
name: string;
|
|
43
|
+
color?: IColor;
|
|
44
|
+
description?: string;
|
|
45
|
+
parent?: IFolder4;
|
|
46
|
+
children?: IFolder4[];
|
|
47
|
+
context?: string;
|
|
48
|
+
contextId?: string;
|
|
49
|
+
}
|
|
50
|
+
import { IFolder as IFolder5, IFolderLiked } from "@ooneex/folder";
|
|
51
|
+
declare class FolderLikedEntity extends BaseEntity implements IFolderLiked {
|
|
52
|
+
folder?: IFolder5;
|
|
53
|
+
folderId?: string;
|
|
54
|
+
likedBy?: string;
|
|
55
|
+
likedById?: string;
|
|
56
|
+
}
|
|
57
|
+
import { IFolder as IFolder6, IFolderReport } from "@ooneex/folder";
|
|
58
|
+
import { IStatus } from "@ooneex/status";
|
|
59
|
+
declare class FolderReportEntity extends BaseEntity implements IFolderReport {
|
|
60
|
+
folder?: IFolder6;
|
|
61
|
+
folderId?: string;
|
|
62
|
+
reason: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
reportedBy?: string;
|
|
65
|
+
reportedById?: string;
|
|
66
|
+
status?: IStatus;
|
|
67
|
+
}
|
|
68
|
+
import { IFolder as IFolder7, IFolderSaved } from "@ooneex/folder";
|
|
69
|
+
declare class FolderSavedEntity extends BaseEntity implements IFolderSaved {
|
|
70
|
+
folder?: IFolder7;
|
|
71
|
+
folderId?: string;
|
|
72
|
+
savedBy?: string;
|
|
73
|
+
savedById?: string;
|
|
74
|
+
}
|
|
75
|
+
import { IFolder as IFolder8, IFolderShared } from "@ooneex/folder";
|
|
76
|
+
declare class FolderSharedEntity extends BaseEntity implements IFolderShared {
|
|
77
|
+
folder?: IFolder8;
|
|
78
|
+
folderId?: string;
|
|
79
|
+
sharedWith?: string;
|
|
80
|
+
sharedById?: string;
|
|
81
|
+
permission?: string;
|
|
82
|
+
expiresAt?: string;
|
|
83
|
+
}
|
|
84
|
+
import { IFolder as IFolder9, IFolderStat } from "@ooneex/folder";
|
|
85
|
+
declare class FolderStatEntity extends BaseEntity implements IFolderStat {
|
|
86
|
+
folder?: IFolder9;
|
|
87
|
+
folderId?: string;
|
|
88
|
+
likesCount?: number;
|
|
89
|
+
dislikesCount?: number;
|
|
90
|
+
commentsCount?: number;
|
|
91
|
+
sharesCount?: number;
|
|
92
|
+
savesCount?: number;
|
|
93
|
+
downloadsCount?: number;
|
|
94
|
+
viewsCount?: number;
|
|
95
|
+
reportsCount?: number;
|
|
96
|
+
}
|
|
97
|
+
import { IFolder as IFolder10, IFolderViewed } from "@ooneex/folder";
|
|
98
|
+
declare class FolderViewedEntity extends BaseEntity implements IFolderViewed {
|
|
99
|
+
folder?: IFolder10;
|
|
100
|
+
folderId?: string;
|
|
101
|
+
viewedBy?: string;
|
|
102
|
+
viewedById?: string;
|
|
103
|
+
}
|
|
104
|
+
export { FolderViewedEntity, FolderStatEntity, FolderSharedEntity, FolderSavedEntity, FolderReportEntity, FolderLikedEntity, FolderEntity, FolderDownloadedEntity, FolderDislikedEntity, FolderCommentEntity };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Da as k,Ea as T}from"../../../shared/chunk-x2d798hg.js";import{Ga as l}from"../../../shared/chunk-xrqhqgen.js";import{Ha as e,Ja as r}from"../../../shared/chunk-59vwmfpm.js";import{Column as o,Entity as w,JoinColumn as S,ManyToOne as z}from"typeorm";import{Column as d,Entity as J,JoinColumn as F,ManyToOne as B,OneToMany as E}from"typeorm";class t extends l{}e([d({name:"name",type:"varchar",length:255}),r("design:type",String)],t.prototype,"name",void 0),e([B(()=>k,{nullable:!0,eager:!1,cascade:["insert","update"]}),F({name:"color_id"}),r("design:type",typeof IColor==="undefined"?Object:IColor)],t.prototype,"color",void 0),e([d({name:"description",type:"text",nullable:!0}),r("design:type",String)],t.prototype,"description",void 0),e([B(()=>t,(_)=>_.children,{nullable:!0,eager:!1}),F({name:"parent_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],t.prototype,"parent",void 0),e([E(()=>t,(_)=>_.parent,{cascade:["insert","update"]}),r("design:type",Array)],t.prototype,"children",void 0),e([d({name:"context",type:"varchar",length:255,nullable:!0}),r("design:type",String)],t.prototype,"context",void 0),e([d({name:"context_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],t.prototype,"contextId",void 0),t=e([J({name:"folders"})],t);class i extends l{}e([z(()=>t,{nullable:!0,eager:!1}),S({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],i.prototype,"folder",void 0),e([o({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],i.prototype,"folderId",void 0),e([o({name:"comment",type:"text"}),r("design:type",String)],i.prototype,"comment",void 0),e([o({name:"commented_by",type:"varchar",length:255,nullable:!0}),r("design:type",String)],i.prototype,"commentedBy",void 0),e([o({name:"commented_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],i.prototype,"commentedById",void 0),e([o({name:"parent_comment_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],i.prototype,"parentCommentId",void 0),i=e([w({name:"folders_comments"})],i);import{Column as b,Entity as A,JoinColumn as W,ManyToOne as j}from"typeorm";class s extends l{}e([j(()=>t,{nullable:!0,eager:!1}),W({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],s.prototype,"folder",void 0),e([b({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],s.prototype,"folderId",void 0),e([b({name:"disliked_by",type:"varchar",length:255,nullable:!0}),r("design:type",String)],s.prototype,"dislikedBy",void 0),e([b({name:"disliked_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],s.prototype,"dislikedById",void 0),s=e([A({name:"folders_disliked"})],s);import{Column as I,Entity as q,JoinColumn as D,ManyToOne as G}from"typeorm";class u extends l{}e([G(()=>t,{nullable:!0,eager:!1}),D({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],u.prototype,"folder",void 0),e([I({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],u.prototype,"folderId",void 0),e([I({name:"downloaded_by",type:"varchar",length:255,nullable:!0}),r("design:type",String)],u.prototype,"downloadedBy",void 0),e([I({name:"downloaded_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],u.prototype,"downloadedById",void 0),u=e([q({name:"folders_downloaded"})],u);import{Column as x,Entity as H,JoinColumn as K,ManyToOne as L}from"typeorm";class p extends l{}e([L(()=>t,{nullable:!0,eager:!1}),K({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],p.prototype,"folder",void 0),e([x({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],p.prototype,"folderId",void 0),e([x({name:"liked_by",type:"varchar",length:255,nullable:!0}),r("design:type",String)],p.prototype,"likedBy",void 0),e([x({name:"liked_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],p.prototype,"likedById",void 0),p=e([H({name:"folders_liked"})],p);import{Column as a,Entity as N,JoinColumn as M,ManyToOne as O}from"typeorm";class f extends l{}e([O(()=>t,{nullable:!0,eager:!1}),M({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],f.prototype,"folder",void 0),e([a({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],f.prototype,"folderId",void 0),e([a({name:"reason",type:"varchar",length:255}),r("design:type",String)],f.prototype,"reason",void 0),e([a({name:"description",type:"text",nullable:!0}),r("design:type",String)],f.prototype,"description",void 0),e([a({name:"reported_by",type:"varchar",length:255,nullable:!0}),r("design:type",String)],f.prototype,"reportedBy",void 0),e([a({name:"reported_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],f.prototype,"reportedById",void 0),e([O(()=>T,{nullable:!0,eager:!1,cascade:["insert","update"]}),M({name:"status_id"}),r("design:type",typeof IStatus==="undefined"?Object:IStatus)],f.prototype,"status",void 0),f=e([N({name:"folders_reports"})],f);import{Column as v,Entity as P,JoinColumn as Q,ManyToOne as R}from"typeorm";class y extends l{}e([R(()=>t,{nullable:!0,eager:!1}),Q({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],y.prototype,"folder",void 0),e([v({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],y.prototype,"folderId",void 0),e([v({name:"saved_by",type:"varchar",length:255,nullable:!0}),r("design:type",String)],y.prototype,"savedBy",void 0),e([v({name:"saved_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],y.prototype,"savedById",void 0),y=e([P({name:"folders_saved"})],y);import{Column as m,Entity as U,JoinColumn as V,ManyToOne as X}from"typeorm";class c extends l{}e([X(()=>t,{nullable:!0,eager:!1}),V({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],c.prototype,"folder",void 0),e([m({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],c.prototype,"folderId",void 0),e([m({name:"shared_with",type:"varchar",length:255,nullable:!0}),r("design:type",String)],c.prototype,"sharedWith",void 0),e([m({name:"shared_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],c.prototype,"sharedById",void 0),e([m({name:"permission",type:"varchar",length:50,nullable:!0}),r("design:type",String)],c.prototype,"permission",void 0),e([m({name:"expires_at",type:"timestamptz",nullable:!0}),r("design:type",String)],c.prototype,"expiresAt",void 0),c=e([U({name:"folders_shared"})],c);import{Column as n,Entity as Y,JoinColumn as Z,ManyToOne as $}from"typeorm";class g extends l{}e([$(()=>t,{nullable:!0,eager:!1}),Z({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],g.prototype,"folder",void 0),e([n({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],g.prototype,"folderId",void 0),e([n({name:"likes_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"likesCount",void 0),e([n({name:"dislikes_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"dislikesCount",void 0),e([n({name:"comments_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"commentsCount",void 0),e([n({name:"shares_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"sharesCount",void 0),e([n({name:"saves_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"savesCount",void 0),e([n({name:"downloads_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"downloadsCount",void 0),e([n({name:"views_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"viewsCount",void 0),e([n({name:"reports_count",type:"int",default:0,nullable:!0}),r("design:type",Number)],g.prototype,"reportsCount",void 0),g=e([Y({name:"folders_stats"})],g);import{Column as C,Entity as ee,JoinColumn as re,ManyToOne as te}from"typeorm";class h extends l{}e([te(()=>t,{nullable:!0,eager:!1}),re({name:"folder_id"}),r("design:type",typeof IFolder==="undefined"?Object:IFolder)],h.prototype,"folder",void 0),e([C({name:"folder_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],h.prototype,"folderId",void 0),e([C({name:"viewed_by",type:"varchar",length:255,nullable:!0}),r("design:type",String)],h.prototype,"viewedBy",void 0),e([C({name:"viewed_by_id",type:"varchar",length:25,nullable:!0}),r("design:type",String)],h.prototype,"viewedById",void 0),h=e([ee({name:"folders_viewed"})],h);export{h as FolderViewedEntity,g as FolderStatEntity,c as FolderSharedEntity,y as FolderSavedEntity,f as FolderReportEntity,p as FolderLikedEntity,t as FolderEntity,u as FolderDownloadedEntity,s as FolderDislikedEntity,i as FolderCommentEntity};
|
|
3
|
+
|
|
4
|
+
//# debugId=D203F271675E76D564756E2164756E21
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/entities/folder/FolderCommentEntity.ts", "src/entities/folder/FolderEntity.ts", "src/entities/folder/FolderDislikedEntity.ts", "src/entities/folder/FolderDownloadedEntity.ts", "src/entities/folder/FolderLikedEntity.ts", "src/entities/folder/FolderReportEntity.ts", "src/entities/folder/FolderSavedEntity.ts", "src/entities/folder/FolderSharedEntity.ts", "src/entities/folder/FolderStatEntity.ts", "src/entities/folder/FolderViewedEntity.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import type { IFolder, IFolderComment } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_comments\",\n})\nexport class FolderCommentEntity extends BaseEntity implements IFolderComment {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"comment\", type: \"text\" })\n comment: string;\n\n @Column({ name: \"commented_by\", type: \"varchar\", length: 255, nullable: true })\n commentedBy?: string;\n\n @Column({ name: \"commented_by_id\", type: \"varchar\", length: 25, nullable: true })\n commentedById?: string;\n\n @Column({ name: \"parent_comment_id\", type: \"varchar\", length: 25, nullable: true })\n parentCommentId?: string;\n}\n",
|
|
6
|
+
"import type { IColor } from \"@ooneex/color\";\nimport type { IFolder } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne, OneToMany } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { ColorEntity } from \"../common/ColorEntity\";\n\n@Entity({\n name: \"folders\",\n})\nexport class FolderEntity extends BaseEntity implements IFolder {\n @Column({ name: \"name\", type: \"varchar\", length: 255 })\n name: string;\n\n @ManyToOne(() => ColorEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"color_id\" })\n color?: IColor;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @ManyToOne(\n () => FolderEntity,\n (folder) => folder.children,\n {\n nullable: true,\n eager: false,\n },\n )\n @JoinColumn({ name: \"parent_id\" })\n parent?: IFolder;\n\n @OneToMany(\n () => FolderEntity,\n (folder) => folder.parent,\n {\n cascade: [\"insert\", \"update\"],\n },\n )\n children?: IFolder[];\n\n @Column({ name: \"context\", type: \"varchar\", length: 255, nullable: true })\n context?: string;\n\n @Column({ name: \"context_id\", type: \"varchar\", length: 25, nullable: true })\n contextId?: string;\n}\n",
|
|
7
|
+
"import type { IFolder, IFolderDisliked } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_disliked\",\n})\nexport class FolderDislikedEntity extends BaseEntity implements IFolderDisliked {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"disliked_by\", type: \"varchar\", length: 255, nullable: true })\n dislikedBy?: string;\n\n @Column({ name: \"disliked_by_id\", type: \"varchar\", length: 25, nullable: true })\n dislikedById?: string;\n}\n",
|
|
8
|
+
"import type { IFolder, IFolderDownloaded } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_downloaded\",\n})\nexport class FolderDownloadedEntity extends BaseEntity implements IFolderDownloaded {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"downloaded_by\", type: \"varchar\", length: 255, nullable: true })\n downloadedBy?: string;\n\n @Column({ name: \"downloaded_by_id\", type: \"varchar\", length: 25, nullable: true })\n downloadedById?: string;\n}\n",
|
|
9
|
+
"import type { IFolder, IFolderLiked } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_liked\",\n})\nexport class FolderLikedEntity extends BaseEntity implements IFolderLiked {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"liked_by\", type: \"varchar\", length: 255, nullable: true })\n likedBy?: string;\n\n @Column({ name: \"liked_by_id\", type: \"varchar\", length: 25, nullable: true })\n likedById?: string;\n}\n",
|
|
10
|
+
"import type { IFolder, IFolderReport } from \"@ooneex/folder\";\nimport type { IStatus } from \"@ooneex/status\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { StatusEntity } from \"../common/StatusEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_reports\",\n})\nexport class FolderReportEntity extends BaseEntity implements IFolderReport {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"reason\", type: \"varchar\", length: 255 })\n reason: string;\n\n @Column({ name: \"description\", type: \"text\", nullable: true })\n description?: string;\n\n @Column({ name: \"reported_by\", type: \"varchar\", length: 255, nullable: true })\n reportedBy?: string;\n\n @Column({ name: \"reported_by_id\", type: \"varchar\", length: 25, nullable: true })\n reportedById?: string;\n\n @ManyToOne(() => StatusEntity, {\n nullable: true,\n eager: false,\n cascade: [\"insert\", \"update\"],\n })\n @JoinColumn({ name: \"status_id\" })\n status?: IStatus;\n}\n",
|
|
11
|
+
"import type { IFolder, IFolderSaved } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_saved\",\n})\nexport class FolderSavedEntity extends BaseEntity implements IFolderSaved {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"saved_by\", type: \"varchar\", length: 255, nullable: true })\n savedBy?: string;\n\n @Column({ name: \"saved_by_id\", type: \"varchar\", length: 25, nullable: true })\n savedById?: string;\n}\n",
|
|
12
|
+
"import type { IFolder, IFolderShared } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_shared\",\n})\nexport class FolderSharedEntity extends BaseEntity implements IFolderShared {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"shared_with\", type: \"varchar\", length: 255, nullable: true })\n sharedWith?: string;\n\n @Column({ name: \"shared_by_id\", type: \"varchar\", length: 25, nullable: true })\n sharedById?: string;\n\n @Column({ name: \"permission\", type: \"varchar\", length: 50, nullable: true })\n permission?: string;\n\n @Column({ name: \"expires_at\", type: \"timestamptz\", nullable: true })\n expiresAt?: string;\n}\n",
|
|
13
|
+
"import type { IFolder, IFolderStat } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_stats\",\n})\nexport class FolderStatEntity extends BaseEntity implements IFolderStat {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"likes_count\", type: \"int\", default: 0, nullable: true })\n likesCount?: number;\n\n @Column({ name: \"dislikes_count\", type: \"int\", default: 0, nullable: true })\n dislikesCount?: number;\n\n @Column({ name: \"comments_count\", type: \"int\", default: 0, nullable: true })\n commentsCount?: number;\n\n @Column({ name: \"shares_count\", type: \"int\", default: 0, nullable: true })\n sharesCount?: number;\n\n @Column({ name: \"saves_count\", type: \"int\", default: 0, nullable: true })\n savesCount?: number;\n\n @Column({ name: \"downloads_count\", type: \"int\", default: 0, nullable: true })\n downloadsCount?: number;\n\n @Column({ name: \"views_count\", type: \"int\", default: 0, nullable: true })\n viewsCount?: number;\n\n @Column({ name: \"reports_count\", type: \"int\", default: 0, nullable: true })\n reportsCount?: number;\n}\n",
|
|
14
|
+
"import type { IFolder, IFolderViewed } from \"@ooneex/folder\";\nimport { Column, Entity, JoinColumn, ManyToOne } from \"typeorm\";\nimport { BaseEntity } from \"../common/BaseEntity\";\nimport { FolderEntity } from \"./FolderEntity\";\n\n@Entity({\n name: \"folders_viewed\",\n})\nexport class FolderViewedEntity extends BaseEntity implements IFolderViewed {\n @ManyToOne(() => FolderEntity, {\n nullable: true,\n eager: false,\n })\n @JoinColumn({ name: \"folder_id\" })\n folder?: IFolder;\n\n @Column({ name: \"folder_id\", type: \"varchar\", length: 25, nullable: true })\n folderId?: string;\n\n @Column({ name: \"viewed_by\", type: \"varchar\", length: 255, nullable: true })\n viewedBy?: string;\n\n @Column({ name: \"viewed_by_id\", type: \"varchar\", length: 25, nullable: true })\n viewedById?: string;\n}\n"
|
|
15
|
+
],
|
|
16
|
+
"mappings": ";qKACA,yBAAS,oBAAQ,gBAAQ,eAAY,gBCCrC,iBAAS,YAAQ,gBAAQ,eAAY,eAAW,gBAOzC,MAAM,UAAqB,CAA8B,CAwChE,CAtCE,GADC,EAAO,CAAE,KAAM,OAAQ,KAAM,UAAW,OAAQ,GAAI,CAAC,EACtD,yBAFW,EAEX,yBAQA,GANC,EAAU,IAAM,EAAa,CAC5B,SAAU,GACV,MAAO,GACP,QAAS,CAAC,SAAU,QAAQ,CAC9B,CAAC,EACA,EAAW,CAAE,KAAM,UAAW,CAAC,EAChC,4DAVW,EAUX,0BAGA,GADC,EAAO,CAAE,KAAM,cAAe,KAAM,OAAQ,SAAU,EAAK,CAAC,EAC7D,yBAbW,EAaX,gCAWA,GATC,EACC,IAAM,EACN,CAAC,IAAW,EAAO,SACnB,CACE,SAAU,GACV,MAAO,EACT,CACF,EACC,EAAW,CAAE,KAAM,WAAY,CAAC,EACjC,8DAxBW,EAwBX,2BASA,GAPC,EACC,IAAM,EACN,CAAC,IAAW,EAAO,OACnB,CACE,QAAS,CAAC,SAAU,QAAQ,CAC9B,CACF,EACA,wBAjCW,EAiCX,6BAGA,GADC,EAAO,CAAE,KAAM,UAAW,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,IAAK,SAAU,EAAK,CAAC,EAC3E,yBAZW,EAYX,6BAGA,GADC,EAAO,CAAE,KAAM,eAAgB,KAAM,UAAW,OAAQ,GAAI,SAAU,EAAK,CAAC,EAC7E,yBAfW,EAeX,+BAfW,EAAN,GAHN,GAAO,CACN,KAAM,gBACR,CAAC,GACY",
|
|
17
|
+
"debugId": "D203F271675E76D564756E2164756E21",
|
|
18
|
+
"names": []
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{g as t,h as r,i as a,j as e,k as o,l as s,m as c}from"../../../../shared/chunk-nfv9ce7v.js";import"../../../../shared/chunk-6kdkyjbn.js";import"../../../../shared/chunk-p22keb3y.js";import"../../../../shared/chunk-6jnj2pfx.js";import"../../../../shared/chunk-x2d798hg.js";import"../../../../shared/chunk-5ybg5hda.js";import"../../../../shared/chunk-xrqhqgen.js";import"../../../../shared/chunk-59vwmfpm.js";export{c as FlashcardStatsEntity,o as FlashcardSessionEntity,t as FlashcardScheduleEntity,s as FlashcardReviewEntity,e as FlashcardPresetEntity,r as FlashcardEntity,a as FlashcardDeckEntity};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=EDB45922C17EF76B64756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Fa as e}from"../../../shared/chunk-5ybg5hda.js";import"../../../shared/chunk-xrqhqgen.js";import"../../../shared/chunk-59vwmfpm.js";export{e as LevelEntity};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=8AF7145BD1E4758F64756E2164756E21
|
|
@@ -22,12 +22,28 @@ declare class McqQuestionChoiceEntity extends BaseEntity implements IMcqQuestion
|
|
|
22
22
|
explanation?: string;
|
|
23
23
|
question: IMcqQuestion;
|
|
24
24
|
}
|
|
25
|
-
import { IMcqQuestion as IMcqQuestion2,
|
|
25
|
+
import { IMcqQuestion as IMcqQuestion2, IMcqQuestionComment } from "@ooneex/gamification/mcq";
|
|
26
|
+
declare class McqQuestionCommentEntity extends BaseEntity implements IMcqQuestionComment {
|
|
27
|
+
question?: IMcqQuestion2;
|
|
28
|
+
questionId?: string;
|
|
29
|
+
comment: string;
|
|
30
|
+
commentedBy?: string;
|
|
31
|
+
commentedById?: string;
|
|
32
|
+
parentCommentId?: string;
|
|
33
|
+
}
|
|
34
|
+
import { IMcqQuestion as IMcqQuestion3, IMcqQuestionDisliked } from "@ooneex/gamification/mcq";
|
|
35
|
+
declare class McqQuestionDislikedEntity extends BaseEntity implements IMcqQuestionDisliked {
|
|
36
|
+
question?: IMcqQuestion3;
|
|
37
|
+
questionId?: string;
|
|
38
|
+
dislikedBy?: string;
|
|
39
|
+
dislikedById?: string;
|
|
40
|
+
}
|
|
41
|
+
import { IMcqQuestion as IMcqQuestion4, IMcqQuestionChoice as IMcqQuestionChoice2 } from "@ooneex/gamification/mcq";
|
|
26
42
|
import { IImage } from "@ooneex/image";
|
|
27
43
|
import { IStatus } from "@ooneex/status";
|
|
28
44
|
import { ITag } from "@ooneex/tag";
|
|
29
45
|
import { IStat } from "@ooneex/types";
|
|
30
|
-
declare class McqQuestionEntity extends BaseEntity implements
|
|
46
|
+
declare class McqQuestionEntity extends BaseEntity implements IMcqQuestion4 {
|
|
31
47
|
questionNumber: number;
|
|
32
48
|
text: string;
|
|
33
49
|
choices: IMcqQuestionChoice2[];
|
|
@@ -38,9 +54,62 @@ declare class McqQuestionEntity extends BaseEntity implements IMcqQuestion2 {
|
|
|
38
54
|
image?: IImage;
|
|
39
55
|
tags?: ITag[];
|
|
40
56
|
}
|
|
57
|
+
import { IMcqQuestion as IMcqQuestion5, IMcqQuestionLiked } from "@ooneex/gamification/mcq";
|
|
58
|
+
declare class McqQuestionLikedEntity extends BaseEntity implements IMcqQuestionLiked {
|
|
59
|
+
question?: IMcqQuestion5;
|
|
60
|
+
questionId?: string;
|
|
61
|
+
likedBy?: string;
|
|
62
|
+
likedById?: string;
|
|
63
|
+
}
|
|
64
|
+
import { IMcqQuestion as IMcqQuestion6, IMcqQuestionReport } from "@ooneex/gamification/mcq";
|
|
65
|
+
import { IStatus as IStatus2 } from "@ooneex/status";
|
|
66
|
+
declare class McqQuestionReportEntity extends BaseEntity implements IMcqQuestionReport {
|
|
67
|
+
question?: IMcqQuestion6;
|
|
68
|
+
questionId?: string;
|
|
69
|
+
reason: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
reportedBy?: string;
|
|
72
|
+
reportedById?: string;
|
|
73
|
+
status?: IStatus2;
|
|
74
|
+
}
|
|
75
|
+
import { IMcqQuestion as IMcqQuestion7, IMcqQuestionSaved } from "@ooneex/gamification/mcq";
|
|
76
|
+
declare class McqQuestionSavedEntity extends BaseEntity implements IMcqQuestionSaved {
|
|
77
|
+
question?: IMcqQuestion7;
|
|
78
|
+
questionId?: string;
|
|
79
|
+
savedBy?: string;
|
|
80
|
+
savedById?: string;
|
|
81
|
+
}
|
|
82
|
+
import { IMcqQuestion as IMcqQuestion8, IMcqQuestionShared } from "@ooneex/gamification/mcq";
|
|
83
|
+
declare class McqQuestionSharedEntity extends BaseEntity implements IMcqQuestionShared {
|
|
84
|
+
question?: IMcqQuestion8;
|
|
85
|
+
questionId?: string;
|
|
86
|
+
sharedWith?: string;
|
|
87
|
+
sharedById?: string;
|
|
88
|
+
permission?: string;
|
|
89
|
+
expiresAt?: string;
|
|
90
|
+
}
|
|
91
|
+
import { IMcqQuestion as IMcqQuestion9, IMcqQuestionStat } from "@ooneex/gamification/mcq";
|
|
92
|
+
declare class McqQuestionStatEntity extends BaseEntity implements IMcqQuestionStat {
|
|
93
|
+
question?: IMcqQuestion9;
|
|
94
|
+
questionId?: string;
|
|
95
|
+
likesCount?: number;
|
|
96
|
+
dislikesCount?: number;
|
|
97
|
+
commentsCount?: number;
|
|
98
|
+
sharesCount?: number;
|
|
99
|
+
savesCount?: number;
|
|
100
|
+
viewsCount?: number;
|
|
101
|
+
reportsCount?: number;
|
|
102
|
+
}
|
|
103
|
+
import { IMcqQuestion as IMcqQuestion10, IMcqQuestionViewed } from "@ooneex/gamification/mcq";
|
|
104
|
+
declare class McqQuestionViewedEntity extends BaseEntity implements IMcqQuestionViewed {
|
|
105
|
+
question?: IMcqQuestion10;
|
|
106
|
+
questionId?: string;
|
|
107
|
+
viewedBy?: string;
|
|
108
|
+
viewedById?: string;
|
|
109
|
+
}
|
|
41
110
|
import { ILevel } from "@ooneex/gamification";
|
|
42
111
|
import { ESessionType } from "@ooneex/gamification";
|
|
43
|
-
import { IMcqQuestion as
|
|
112
|
+
import { IMcqQuestion as IMcqQuestion11, IMcqSession } from "@ooneex/gamification/mcq";
|
|
44
113
|
import { EMcqSessionStatus } from "@ooneex/gamification/mcq";
|
|
45
114
|
declare class McqSessionEntity extends BaseEntity implements IMcqSession {
|
|
46
115
|
name: string;
|
|
@@ -49,7 +118,7 @@ declare class McqSessionEntity extends BaseEntity implements IMcqSession {
|
|
|
49
118
|
correctCount: number;
|
|
50
119
|
incorrectCount: number;
|
|
51
120
|
timing: number;
|
|
52
|
-
questions:
|
|
121
|
+
questions: IMcqQuestion11[];
|
|
53
122
|
status: EMcqSessionStatus;
|
|
54
123
|
score: number;
|
|
55
124
|
startedAt?: Date | null;
|
|
@@ -60,10 +129,10 @@ declare class McqSessionEntity extends BaseEntity implements IMcqSession {
|
|
|
60
129
|
level: ILevel;
|
|
61
130
|
}
|
|
62
131
|
import { EAnswerState } from "@ooneex/gamification";
|
|
63
|
-
import { IMcqQuestion as
|
|
132
|
+
import { IMcqQuestion as IMcqQuestion12, IMcqQuestionChoice as IMcqQuestionChoice3, IMcqSession as IMcqSession2, IMcqSessionQuestion } from "@ooneex/gamification/mcq";
|
|
64
133
|
declare class McqSessionQuestionEntity extends BaseEntity implements IMcqSessionQuestion {
|
|
65
134
|
session: IMcqSession2;
|
|
66
|
-
question:
|
|
135
|
+
question: IMcqQuestion12;
|
|
67
136
|
questionNumber: number;
|
|
68
137
|
selectedChoices: IMcqQuestionChoice3[];
|
|
69
138
|
context?: string;
|
|
@@ -71,4 +140,4 @@ declare class McqSessionQuestionEntity extends BaseEntity implements IMcqSession
|
|
|
71
140
|
state: EAnswerState;
|
|
72
141
|
score: number;
|
|
73
142
|
}
|
|
74
|
-
export { McqSessionQuestionEntity, McqSessionEntity, McqQuestionEntity, McqQuestionChoiceEntity };
|
|
143
|
+
export { McqSessionQuestionEntity, McqSessionEntity, McqQuestionViewedEntity, McqQuestionStatEntity, McqQuestionSharedEntity, McqQuestionSavedEntity, McqQuestionReportEntity, McqQuestionLikedEntity, McqQuestionEntity, McqQuestionDislikedEntity, McqQuestionCommentEntity, McqQuestionChoiceEntity };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{n as t,o,p as e,q as i,r as n,s as r,t as s,u as m,v as c,w as p,x as f,y as q}from"../../../../shared/chunk-yrwsqc6r.js";import"../../../../shared/chunk-6kdkyjbn.js";import"../../../../shared/chunk-p22keb3y.js";import"../../../../shared/chunk-6jnj2pfx.js";import"../../../../shared/chunk-x2d798hg.js";import"../../../../shared/chunk-5ybg5hda.js";import"../../../../shared/chunk-xrqhqgen.js";import"../../../../shared/chunk-59vwmfpm.js";export{q as McqSessionQuestionEntity,f as McqSessionEntity,p as McqQuestionViewedEntity,c as McqQuestionStatEntity,m as McqQuestionSharedEntity,s as McqQuestionSavedEntity,r as McqQuestionReportEntity,n as McqQuestionLikedEntity,t as McqQuestionEntity,i as McqQuestionDislikedEntity,e as McqQuestionCommentEntity,o as McqQuestionChoiceEntity};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=776AE0113F781A6E64756E2164756E21
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { IImage,
|
|
2
|
-
import { IStatus } from "@ooneex/status";
|
|
3
|
-
import { ITag } from "@ooneex/tag";
|
|
4
|
-
import { ScalarType } from "@ooneex/types";
|
|
1
|
+
import { IImage, IImageComment } from "@ooneex/image";
|
|
5
2
|
import { LocaleType } from "@ooneex/translation";
|
|
6
3
|
import { IBase } from "@ooneex/types";
|
|
7
4
|
declare abstract class BaseEntity implements IBase {
|
|
@@ -17,7 +14,33 @@ declare abstract class BaseEntity implements IBase {
|
|
|
17
14
|
updatedAt?: Date;
|
|
18
15
|
deletedAt?: Date;
|
|
19
16
|
}
|
|
20
|
-
declare class
|
|
17
|
+
declare class ImageCommentEntity extends BaseEntity implements IImageComment {
|
|
18
|
+
image?: IImage;
|
|
19
|
+
imageId?: string;
|
|
20
|
+
comment: string;
|
|
21
|
+
commentedBy?: string;
|
|
22
|
+
commentedById?: string;
|
|
23
|
+
parentCommentId?: string;
|
|
24
|
+
}
|
|
25
|
+
import { IImage as IImage2, IImageDisliked } from "@ooneex/image";
|
|
26
|
+
declare class ImageDislikedEntity extends BaseEntity implements IImageDisliked {
|
|
27
|
+
image?: IImage2;
|
|
28
|
+
imageId?: string;
|
|
29
|
+
dislikedBy?: string;
|
|
30
|
+
dislikedById?: string;
|
|
31
|
+
}
|
|
32
|
+
import { IImage as IImage3, IImageDownloaded } from "@ooneex/image";
|
|
33
|
+
declare class ImageDownloadedEntity extends BaseEntity implements IImageDownloaded {
|
|
34
|
+
image?: IImage3;
|
|
35
|
+
imageId?: string;
|
|
36
|
+
downloadedBy?: string;
|
|
37
|
+
downloadedById?: string;
|
|
38
|
+
}
|
|
39
|
+
import { IImage as IImage4, ImageFormatType, ImageMimeType } from "@ooneex/image";
|
|
40
|
+
import { IStatus } from "@ooneex/status";
|
|
41
|
+
import { ITag } from "@ooneex/tag";
|
|
42
|
+
import { ScalarType } from "@ooneex/types";
|
|
43
|
+
declare class ImageEntity extends BaseEntity implements IImage4 {
|
|
21
44
|
url: string;
|
|
22
45
|
width?: number;
|
|
23
46
|
height?: number;
|
|
@@ -32,4 +55,58 @@ declare class ImageEntity extends BaseEntity implements IImage {
|
|
|
32
55
|
status?: IStatus;
|
|
33
56
|
tags?: ITag[];
|
|
34
57
|
}
|
|
35
|
-
|
|
58
|
+
import { IImage as IImage5, IImageLiked } from "@ooneex/image";
|
|
59
|
+
declare class ImageLikedEntity extends BaseEntity implements IImageLiked {
|
|
60
|
+
image?: IImage5;
|
|
61
|
+
imageId?: string;
|
|
62
|
+
likedBy?: string;
|
|
63
|
+
likedById?: string;
|
|
64
|
+
}
|
|
65
|
+
import { IImage as IImage6, IImageReport } from "@ooneex/image";
|
|
66
|
+
import { IStatus as IStatus2 } from "@ooneex/status";
|
|
67
|
+
declare class ImageReportEntity extends BaseEntity implements IImageReport {
|
|
68
|
+
image?: IImage6;
|
|
69
|
+
imageId?: string;
|
|
70
|
+
reason: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
reportedBy?: string;
|
|
73
|
+
reportedById?: string;
|
|
74
|
+
status?: IStatus2;
|
|
75
|
+
}
|
|
76
|
+
import { IImage as IImage7, IImageSaved } from "@ooneex/image";
|
|
77
|
+
declare class ImageSavedEntity extends BaseEntity implements IImageSaved {
|
|
78
|
+
image?: IImage7;
|
|
79
|
+
imageId?: string;
|
|
80
|
+
savedBy?: string;
|
|
81
|
+
savedById?: string;
|
|
82
|
+
}
|
|
83
|
+
import { IImage as IImage8, IImageShared } from "@ooneex/image";
|
|
84
|
+
declare class ImageSharedEntity extends BaseEntity implements IImageShared {
|
|
85
|
+
image?: IImage8;
|
|
86
|
+
imageId?: string;
|
|
87
|
+
sharedWith?: string;
|
|
88
|
+
sharedById?: string;
|
|
89
|
+
permission?: string;
|
|
90
|
+
expiresAt?: string;
|
|
91
|
+
}
|
|
92
|
+
import { IImage as IImage9, IImageStat } from "@ooneex/image";
|
|
93
|
+
declare class ImageStatEntity extends BaseEntity implements IImageStat {
|
|
94
|
+
image?: IImage9;
|
|
95
|
+
imageId?: string;
|
|
96
|
+
likesCount?: number;
|
|
97
|
+
dislikesCount?: number;
|
|
98
|
+
commentsCount?: number;
|
|
99
|
+
sharesCount?: number;
|
|
100
|
+
savesCount?: number;
|
|
101
|
+
downloadsCount?: number;
|
|
102
|
+
viewsCount?: number;
|
|
103
|
+
reportsCount?: number;
|
|
104
|
+
}
|
|
105
|
+
import { IImage as IImage10, IImageViewed } from "@ooneex/image";
|
|
106
|
+
declare class ImageViewedEntity extends BaseEntity implements IImageViewed {
|
|
107
|
+
image?: IImage10;
|
|
108
|
+
imageId?: string;
|
|
109
|
+
viewedBy?: string;
|
|
110
|
+
viewedById?: string;
|
|
111
|
+
}
|
|
112
|
+
export { ImageViewedEntity, ImageStatEntity, ImageSharedEntity, ImageSavedEntity, ImageReportEntity, ImageLikedEntity, ImageEntity, ImageDownloadedEntity, ImageDislikedEntity, ImageCommentEntity };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{R as e,S as o,T as m,U as r,V as a,W as i,X as n,Y as p,Z as f}from"../../../shared/chunk-e51ktjsq.js";import{Ba as t}from"../../../shared/chunk-p22keb3y.js";import"../../../shared/chunk-6jnj2pfx.js";import"../../../shared/chunk-x2d798hg.js";import"../../../shared/chunk-xrqhqgen.js";import"../../../shared/chunk-59vwmfpm.js";export{f as ImageViewedEntity,p as ImageStatEntity,n as ImageSharedEntity,i as ImageSavedEntity,a as ImageReportEntity,r as ImageLikedEntity,t as ImageEntity,m as ImageDownloadedEntity,o as ImageDislikedEntity,e as ImageCommentEntity};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=7071F95BE3DED5BD64756E2164756E21
|