@venturialstd/social-network 0.0.1
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/constants/content-element.constant.d.ts +14 -0
- package/dist/constants/content-element.constant.d.ts.map +1 -0
- package/dist/constants/content-element.constant.js +18 -0
- package/dist/constants/content-element.constant.js.map +1 -0
- package/dist/constants/feed.constant.d.ts +6 -0
- package/dist/constants/feed.constant.d.ts.map +1 -0
- package/dist/constants/feed.constant.js +9 -0
- package/dist/constants/feed.constant.js.map +1 -0
- package/dist/constants/social-network.constant.d.ts +32 -0
- package/dist/constants/social-network.constant.d.ts.map +1 -0
- package/dist/constants/social-network.constant.js +41 -0
- package/dist/constants/social-network.constant.js.map +1 -0
- package/dist/entities/comment.entity.d.ts +13 -0
- package/dist/entities/comment.entity.d.ts.map +1 -0
- package/dist/entities/comment.entity.js +93 -0
- package/dist/entities/comment.entity.js.map +1 -0
- package/dist/entities/content-hashtag.entity.d.ts +9 -0
- package/dist/entities/content-hashtag.entity.d.ts.map +1 -0
- package/dist/entities/content-hashtag.entity.js +63 -0
- package/dist/entities/content-hashtag.entity.js.map +1 -0
- package/dist/entities/content-music.entity.d.ts +13 -0
- package/dist/entities/content-music.entity.d.ts.map +1 -0
- package/dist/entities/content-music.entity.js +95 -0
- package/dist/entities/content-music.entity.js.map +1 -0
- package/dist/entities/content-tagged-place.entity.d.ts +9 -0
- package/dist/entities/content-tagged-place.entity.d.ts.map +1 -0
- package/dist/entities/content-tagged-place.entity.js +62 -0
- package/dist/entities/content-tagged-place.entity.js.map +1 -0
- package/dist/entities/content-tagged-user.entity.d.ts +9 -0
- package/dist/entities/content-tagged-user.entity.d.ts.map +1 -0
- package/dist/entities/content-tagged-user.entity.js +62 -0
- package/dist/entities/content-tagged-user.entity.js.map +1 -0
- package/dist/entities/follow.entity.d.ts +8 -0
- package/dist/entities/follow.entity.d.ts.map +1 -0
- package/dist/entities/follow.entity.js +55 -0
- package/dist/entities/follow.entity.js.map +1 -0
- package/dist/entities/friend-request.entity.d.ts +12 -0
- package/dist/entities/friend-request.entity.d.ts.map +1 -0
- package/dist/entities/friend-request.entity.js +87 -0
- package/dist/entities/friend-request.entity.js.map +1 -0
- package/dist/entities/friendship.entity.d.ts +12 -0
- package/dist/entities/friendship.entity.d.ts.map +1 -0
- package/dist/entities/friendship.entity.js +88 -0
- package/dist/entities/friendship.entity.js.map +1 -0
- package/dist/entities/post.entity.d.ts +14 -0
- package/dist/entities/post.entity.d.ts.map +1 -0
- package/dist/entities/post.entity.js +99 -0
- package/dist/entities/post.entity.js.map +1 -0
- package/dist/entities/reaction.entity.d.ts +11 -0
- package/dist/entities/reaction.entity.d.ts.map +1 -0
- package/dist/entities/reaction.entity.js +79 -0
- package/dist/entities/reaction.entity.js.map +1 -0
- package/dist/entities/reel.entity.d.ts +13 -0
- package/dist/entities/reel.entity.d.ts.map +1 -0
- package/dist/entities/reel.entity.js +94 -0
- package/dist/entities/reel.entity.js.map +1 -0
- package/dist/entities/save.entity.d.ts +10 -0
- package/dist/entities/save.entity.d.ts.map +1 -0
- package/dist/entities/save.entity.js +64 -0
- package/dist/entities/save.entity.js.map +1 -0
- package/dist/entities/story.entity.d.ts +13 -0
- package/dist/entities/story.entity.d.ts.map +1 -0
- package/dist/entities/story.entity.js +87 -0
- package/dist/entities/story.entity.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/services/comment.service.d.ts +20 -0
- package/dist/services/comment.service.d.ts.map +1 -0
- package/dist/services/comment.service.js +74 -0
- package/dist/services/comment.service.js.map +1 -0
- package/dist/services/content-hashtag.service.d.ts +23 -0
- package/dist/services/content-hashtag.service.d.ts.map +1 -0
- package/dist/services/content-hashtag.service.js +84 -0
- package/dist/services/content-hashtag.service.js.map +1 -0
- package/dist/services/content-music.service.d.ts +26 -0
- package/dist/services/content-music.service.d.ts.map +1 -0
- package/dist/services/content-music.service.js +100 -0
- package/dist/services/content-music.service.js.map +1 -0
- package/dist/services/content-tagged-place.service.d.ts +16 -0
- package/dist/services/content-tagged-place.service.d.ts.map +1 -0
- package/dist/services/content-tagged-place.service.js +66 -0
- package/dist/services/content-tagged-place.service.js.map +1 -0
- package/dist/services/content-tagged-user.service.d.ts +16 -0
- package/dist/services/content-tagged-user.service.d.ts.map +1 -0
- package/dist/services/content-tagged-user.service.js +66 -0
- package/dist/services/content-tagged-user.service.js.map +1 -0
- package/dist/services/feed.service.d.ts +14 -0
- package/dist/services/feed.service.d.ts.map +1 -0
- package/dist/services/feed.service.js +135 -0
- package/dist/services/feed.service.js.map +1 -0
- package/dist/services/follow.service.d.ts +21 -0
- package/dist/services/follow.service.d.ts.map +1 -0
- package/dist/services/follow.service.js +78 -0
- package/dist/services/follow.service.js.map +1 -0
- package/dist/services/friend-request.service.d.ts +16 -0
- package/dist/services/friend-request.service.d.ts.map +1 -0
- package/dist/services/friend-request.service.js +106 -0
- package/dist/services/friend-request.service.js.map +1 -0
- package/dist/services/friendship.service.d.ts +17 -0
- package/dist/services/friendship.service.d.ts.map +1 -0
- package/dist/services/friendship.service.js +79 -0
- package/dist/services/friendship.service.js.map +1 -0
- package/dist/services/post.service.d.ts +10 -0
- package/dist/services/post.service.d.ts.map +1 -0
- package/dist/services/post.service.js +48 -0
- package/dist/services/post.service.js.map +1 -0
- package/dist/services/reaction.service.d.ts +19 -0
- package/dist/services/reaction.service.d.ts.map +1 -0
- package/dist/services/reaction.service.js +88 -0
- package/dist/services/reaction.service.js.map +1 -0
- package/dist/services/reel.service.d.ts +8 -0
- package/dist/services/reel.service.d.ts.map +1 -0
- package/dist/services/reel.service.js +34 -0
- package/dist/services/reel.service.js.map +1 -0
- package/dist/services/save.service.d.ts +17 -0
- package/dist/services/save.service.d.ts.map +1 -0
- package/dist/services/save.service.js +65 -0
- package/dist/services/save.service.js.map +1 -0
- package/dist/services/story.service.d.ts +14 -0
- package/dist/services/story.service.d.ts.map +1 -0
- package/dist/services/story.service.js +50 -0
- package/dist/services/story.service.js.map +1 -0
- package/dist/social-network.module.d.ts +3 -0
- package/dist/social-network.module.d.ts.map +1 -0
- package/dist/social-network.module.js +80 -0
- package/dist/social-network.module.js.map +1 -0
- package/dist/types/content-element.types.d.ts +84 -0
- package/dist/types/content-element.types.d.ts.map +1 -0
- package/dist/types/content-element.types.js +3 -0
- package/dist/types/content-element.types.js.map +1 -0
- package/dist/types/content-music.types.d.ts +8 -0
- package/dist/types/content-music.types.d.ts.map +1 -0
- package/dist/types/content-music.types.js +3 -0
- package/dist/types/content-music.types.js.map +1 -0
- package/dist/types/feed.types.d.ts +28 -0
- package/dist/types/feed.types.d.ts.map +1 -0
- package/dist/types/feed.types.js +3 -0
- package/dist/types/feed.types.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum ContentElementType {
|
|
2
|
+
MUSIC = "MUSIC",
|
|
3
|
+
EMOJI = "EMOJI",
|
|
4
|
+
STICKER = "STICKER",
|
|
5
|
+
TEXT = "TEXT",
|
|
6
|
+
POLL = "POLL",
|
|
7
|
+
QUESTION = "QUESTION",
|
|
8
|
+
LOCATION = "LOCATION",
|
|
9
|
+
HASHTAG = "HASHTAG",
|
|
10
|
+
MENTION = "MENTION",
|
|
11
|
+
LINK = "LINK",
|
|
12
|
+
GIF = "GIF"
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=content-element.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-element.constant.d.ts","sourceRoot":"","sources":["../../src/constants/content-element.constant.ts"],"names":[],"mappings":"AAGA,oBAAY,kBAAkB;IAC5B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentElementType = void 0;
|
|
4
|
+
var ContentElementType;
|
|
5
|
+
(function (ContentElementType) {
|
|
6
|
+
ContentElementType["MUSIC"] = "MUSIC";
|
|
7
|
+
ContentElementType["EMOJI"] = "EMOJI";
|
|
8
|
+
ContentElementType["STICKER"] = "STICKER";
|
|
9
|
+
ContentElementType["TEXT"] = "TEXT";
|
|
10
|
+
ContentElementType["POLL"] = "POLL";
|
|
11
|
+
ContentElementType["QUESTION"] = "QUESTION";
|
|
12
|
+
ContentElementType["LOCATION"] = "LOCATION";
|
|
13
|
+
ContentElementType["HASHTAG"] = "HASHTAG";
|
|
14
|
+
ContentElementType["MENTION"] = "MENTION";
|
|
15
|
+
ContentElementType["LINK"] = "LINK";
|
|
16
|
+
ContentElementType["GIF"] = "GIF";
|
|
17
|
+
})(ContentElementType || (exports.ContentElementType = ContentElementType = {}));
|
|
18
|
+
//# sourceMappingURL=content-element.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-element.constant.js","sourceRoot":"","sources":["../../src/constants/content-element.constant.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,mCAAa,CAAA;IACb,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,iCAAW,CAAA;AACb,CAAC,EAZW,kBAAkB,kCAAlB,kBAAkB,QAY7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed.constant.d.ts","sourceRoot":"","sources":["../../src/constants/feed.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_IMPORTANCE_WEIGHTS = void 0;
|
|
4
|
+
exports.DEFAULT_IMPORTANCE_WEIGHTS = {
|
|
5
|
+
commentWeight: 2,
|
|
6
|
+
reactionWeight: 1,
|
|
7
|
+
recencyWeight: 10,
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=feed.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed.constant.js","sourceRoot":"","sources":["../../src/constants/feed.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,aAAa,EAAE,CAAC;IAChB,cAAc,EAAE,CAAC;IACjB,aAAa,EAAE,EAAE;CACT,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare enum ContentTargetType {
|
|
2
|
+
POST = "POST",
|
|
3
|
+
REEL = "REEL",
|
|
4
|
+
COMMENT = "COMMENT"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ReactionType {
|
|
7
|
+
LIKE = "LIKE",
|
|
8
|
+
LOVE = "LOVE",
|
|
9
|
+
HAHA = "HAHA",
|
|
10
|
+
WOW = "WOW",
|
|
11
|
+
SAD = "SAD",
|
|
12
|
+
ANGRY = "ANGRY"
|
|
13
|
+
}
|
|
14
|
+
export declare enum FriendRequestStatus {
|
|
15
|
+
PENDING = "PENDING",
|
|
16
|
+
ACCEPTED = "ACCEPTED",
|
|
17
|
+
REJECTED = "REJECTED"
|
|
18
|
+
}
|
|
19
|
+
export declare enum FriendshipStatus {
|
|
20
|
+
ACTIVE = "ACTIVE",
|
|
21
|
+
BLOCKED = "BLOCKED"
|
|
22
|
+
}
|
|
23
|
+
export declare enum StoryMediaType {
|
|
24
|
+
IMAGE = "IMAGE",
|
|
25
|
+
VIDEO = "VIDEO"
|
|
26
|
+
}
|
|
27
|
+
export declare enum TaggableContentType {
|
|
28
|
+
POST = "POST",
|
|
29
|
+
REEL = "REEL",
|
|
30
|
+
STORY = "STORY"
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=social-network.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social-network.constant.d.ts","sourceRoot":"","sources":["../../src/constants/social-network.constant.ts"],"names":[],"mappings":"AAGA,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAKD,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAKD,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAKD,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAKD,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAMD,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaggableContentType = exports.StoryMediaType = exports.FriendshipStatus = exports.FriendRequestStatus = exports.ReactionType = exports.ContentTargetType = void 0;
|
|
4
|
+
var ContentTargetType;
|
|
5
|
+
(function (ContentTargetType) {
|
|
6
|
+
ContentTargetType["POST"] = "POST";
|
|
7
|
+
ContentTargetType["REEL"] = "REEL";
|
|
8
|
+
ContentTargetType["COMMENT"] = "COMMENT";
|
|
9
|
+
})(ContentTargetType || (exports.ContentTargetType = ContentTargetType = {}));
|
|
10
|
+
var ReactionType;
|
|
11
|
+
(function (ReactionType) {
|
|
12
|
+
ReactionType["LIKE"] = "LIKE";
|
|
13
|
+
ReactionType["LOVE"] = "LOVE";
|
|
14
|
+
ReactionType["HAHA"] = "HAHA";
|
|
15
|
+
ReactionType["WOW"] = "WOW";
|
|
16
|
+
ReactionType["SAD"] = "SAD";
|
|
17
|
+
ReactionType["ANGRY"] = "ANGRY";
|
|
18
|
+
})(ReactionType || (exports.ReactionType = ReactionType = {}));
|
|
19
|
+
var FriendRequestStatus;
|
|
20
|
+
(function (FriendRequestStatus) {
|
|
21
|
+
FriendRequestStatus["PENDING"] = "PENDING";
|
|
22
|
+
FriendRequestStatus["ACCEPTED"] = "ACCEPTED";
|
|
23
|
+
FriendRequestStatus["REJECTED"] = "REJECTED";
|
|
24
|
+
})(FriendRequestStatus || (exports.FriendRequestStatus = FriendRequestStatus = {}));
|
|
25
|
+
var FriendshipStatus;
|
|
26
|
+
(function (FriendshipStatus) {
|
|
27
|
+
FriendshipStatus["ACTIVE"] = "ACTIVE";
|
|
28
|
+
FriendshipStatus["BLOCKED"] = "BLOCKED";
|
|
29
|
+
})(FriendshipStatus || (exports.FriendshipStatus = FriendshipStatus = {}));
|
|
30
|
+
var StoryMediaType;
|
|
31
|
+
(function (StoryMediaType) {
|
|
32
|
+
StoryMediaType["IMAGE"] = "IMAGE";
|
|
33
|
+
StoryMediaType["VIDEO"] = "VIDEO";
|
|
34
|
+
})(StoryMediaType || (exports.StoryMediaType = StoryMediaType = {}));
|
|
35
|
+
var TaggableContentType;
|
|
36
|
+
(function (TaggableContentType) {
|
|
37
|
+
TaggableContentType["POST"] = "POST";
|
|
38
|
+
TaggableContentType["REEL"] = "REEL";
|
|
39
|
+
TaggableContentType["STORY"] = "STORY";
|
|
40
|
+
})(TaggableContentType || (exports.TaggableContentType = TaggableContentType = {}));
|
|
41
|
+
//# sourceMappingURL=social-network.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"social-network.constant.js","sourceRoot":"","sources":["../../src/constants/social-network.constant.ts"],"names":[],"mappings":";;;AAGA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,wCAAmB,CAAA;AACrB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAKD,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,+BAAe,CAAA;AACjB,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB;AAKD,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;AACvB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAKD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;AACrB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAKD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAMD,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,oCAAa,CAAA;IACb,sCAAe,CAAA;AACjB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContentTargetType } from '../constants/social-network.constant';
|
|
2
|
+
export declare class Comment {
|
|
3
|
+
id: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
targetType: ContentTargetType;
|
|
6
|
+
targetId: string;
|
|
7
|
+
parentId: string;
|
|
8
|
+
text: string;
|
|
9
|
+
metadata: Record<string, unknown>;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=comment.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.entity.d.ts","sourceRoot":"","sources":["../../src/entities/comment.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,qBAIa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAKX,MAAM,EAAE,MAAM,CAAC;IAOf,UAAU,EAAE,iBAAiB,CAAC;IAK9B,QAAQ,EAAE,MAAM,CAAC;IAMjB,QAAQ,EAAE,MAAM,CAAC;IAKjB,IAAI,EAAE,MAAM,CAAC;IAIb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Comment = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const social_network_constant_1 = require("../constants/social-network.constant");
|
|
16
|
+
let Comment = class Comment {
|
|
17
|
+
id;
|
|
18
|
+
userId;
|
|
19
|
+
targetType;
|
|
20
|
+
targetId;
|
|
21
|
+
parentId;
|
|
22
|
+
text;
|
|
23
|
+
metadata;
|
|
24
|
+
createdAt;
|
|
25
|
+
updatedAt;
|
|
26
|
+
};
|
|
27
|
+
exports.Comment = Comment;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Comment.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Comment.prototype, "userId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, typeorm_1.Column)({
|
|
41
|
+
type: 'enum',
|
|
42
|
+
enum: social_network_constant_1.ContentTargetType,
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Comment.prototype, "targetType", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Comment.prototype, "targetId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Comment.prototype, "parentId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Comment.prototype, "text", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], Comment.prototype, "metadata", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
71
|
+
name: 'createdAt',
|
|
72
|
+
nullable: false,
|
|
73
|
+
type: 'timestamptz',
|
|
74
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", Date)
|
|
77
|
+
], Comment.prototype, "createdAt", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.UpdateDateColumn)({
|
|
80
|
+
name: 'updatedAt',
|
|
81
|
+
nullable: false,
|
|
82
|
+
type: 'timestamptz',
|
|
83
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], Comment.prototype, "updatedAt", void 0);
|
|
87
|
+
exports.Comment = Comment = __decorate([
|
|
88
|
+
(0, typeorm_1.Entity)('social_comment'),
|
|
89
|
+
(0, typeorm_1.Index)(['targetType', 'targetId']),
|
|
90
|
+
(0, typeorm_1.Index)(['userId']),
|
|
91
|
+
(0, typeorm_1.Index)(['parentId'])
|
|
92
|
+
], Comment);
|
|
93
|
+
//# sourceMappingURL=comment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.entity.js","sourceRoot":"","sources":["../../src/entities/comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AACnE,qCAOiB;AAEjB,kFAAyE;AAMlE,IAAM,OAAO,GAAb,MAAM,OAAO;IAElB,EAAE,CAAS;IAKX,MAAM,CAAS;IAOf,UAAU,CAAoB;IAK9B,QAAQ,CAAS;IAMjB,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAIb,QAAQ,CAA0B;IAQlC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AAnDY,0BAAO;AAElB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;mCACpB;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uCACV;AAOf;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,2CAAiB;KACxB,CAAC;;2CAC4B;AAK9B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACR;AAMjB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACxB;AAKjB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCACZ;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACR;AAQlC;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;0CAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;0CAAC;kBAlDL,OAAO;IAJnB,IAAA,gBAAM,EAAC,gBAAgB,CAAC;IACxB,IAAA,eAAK,EAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACjC,IAAA,eAAK,EAAC,CAAC,QAAQ,CAAC,CAAC;IACjB,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,CAAC;GACP,OAAO,CAmDnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TaggableContentType } from '../constants/social-network.constant';
|
|
2
|
+
export declare class ContentHashtag {
|
|
3
|
+
id: string;
|
|
4
|
+
contentType: TaggableContentType;
|
|
5
|
+
contentId: string;
|
|
6
|
+
tag: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=content-hashtag.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-hashtag.entity.d.ts","sourceRoot":"","sources":["../../src/entities/content-hashtag.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAQ3E,qBAIa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAMX,WAAW,EAAE,mBAAmB,CAAC;IAKjC,SAAS,EAAE,MAAM,CAAC;IAMlB,GAAG,EAAE,MAAM,CAAC;IAQZ,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContentHashtag = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const social_network_constant_1 = require("../constants/social-network.constant");
|
|
16
|
+
let ContentHashtag = class ContentHashtag {
|
|
17
|
+
id;
|
|
18
|
+
contentType;
|
|
19
|
+
contentId;
|
|
20
|
+
tag;
|
|
21
|
+
createdAt;
|
|
22
|
+
};
|
|
23
|
+
exports.ContentHashtag = ContentHashtag;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ContentHashtag.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({
|
|
30
|
+
type: 'enum',
|
|
31
|
+
enum: social_network_constant_1.TaggableContentType,
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ContentHashtag.prototype, "contentType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ContentHashtag.prototype, "contentId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(100),
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ContentHashtag.prototype, "tag", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
50
|
+
name: 'createdAt',
|
|
51
|
+
nullable: false,
|
|
52
|
+
type: 'timestamptz',
|
|
53
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], ContentHashtag.prototype, "createdAt", void 0);
|
|
57
|
+
exports.ContentHashtag = ContentHashtag = __decorate([
|
|
58
|
+
(0, typeorm_1.Entity)('social_content_hashtag'),
|
|
59
|
+
(0, typeorm_1.Index)(['tag', 'contentType']),
|
|
60
|
+
(0, typeorm_1.Index)(['contentType', 'contentId']),
|
|
61
|
+
(0, typeorm_1.Index)(['contentType', 'contentId', 'tag'], { unique: true })
|
|
62
|
+
], ContentHashtag);
|
|
63
|
+
//# sourceMappingURL=content-hashtag.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-hashtag.entity.js","sourceRoot":"","sources":["../../src/entities/content-hashtag.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAClE,qCAMiB;AAEjB,kFAA2E;AAYpE,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAS;IAMX,WAAW,CAAsB;IAKjC,SAAS,CAAS;IAMlB,GAAG,CAAS;IAQZ,SAAS,CAAO;CACjB,CAAA;AA5BY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;0CACpB;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6CAAmB;KAC1B,CAAC;;mDAC+B;AAKjC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACP;AAMlB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2CAC7B;AAQZ;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;iDAAC;yBA3BL,cAAc;IAJ1B,IAAA,gBAAM,EAAC,wBAAwB,CAAC;IAChC,IAAA,eAAK,EAAC,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IAC7B,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACnC,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAChD,cAAc,CA4B1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TaggableContentType } from '../constants/social-network.constant';
|
|
2
|
+
export declare class ContentMusic {
|
|
3
|
+
id: string;
|
|
4
|
+
contentType: TaggableContentType;
|
|
5
|
+
contentId: string;
|
|
6
|
+
trackId: string;
|
|
7
|
+
title: string;
|
|
8
|
+
artist: string;
|
|
9
|
+
startOffsetSeconds: number;
|
|
10
|
+
endOffsetSeconds: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=content-music.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-music.entity.d.ts","sourceRoot":"","sources":["../../src/entities/content-music.entity.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAQ3E,qBAIa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAMX,WAAW,EAAE,mBAAmB,CAAC;IAKjC,SAAS,EAAE,MAAM,CAAC;IAMlB,OAAO,EAAE,MAAM,CAAC;IAMhB,KAAK,EAAE,MAAM,CAAC;IAMd,MAAM,EAAE,MAAM,CAAC;IAOf,kBAAkB,EAAE,MAAM,CAAC;IAO3B,gBAAgB,EAAE,MAAM,CAAC;IAQzB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContentMusic = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const social_network_constant_1 = require("../constants/social-network.constant");
|
|
16
|
+
let ContentMusic = class ContentMusic {
|
|
17
|
+
id;
|
|
18
|
+
contentType;
|
|
19
|
+
contentId;
|
|
20
|
+
trackId;
|
|
21
|
+
title;
|
|
22
|
+
artist;
|
|
23
|
+
startOffsetSeconds;
|
|
24
|
+
endOffsetSeconds;
|
|
25
|
+
createdAt;
|
|
26
|
+
};
|
|
27
|
+
exports.ContentMusic = ContentMusic;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ContentMusic.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({
|
|
34
|
+
type: 'enum',
|
|
35
|
+
enum: social_network_constant_1.TaggableContentType,
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ContentMusic.prototype, "contentType", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], ContentMusic.prototype, "contentId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
+
(0, class_validator_1.MaxLength)(255),
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ContentMusic.prototype, "trackId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.MaxLength)(255),
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], ContentMusic.prototype, "title", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.MaxLength)(255),
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], ContentMusic.prototype, "artist", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.Min)(0),
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], ContentMusic.prototype, "startOffsetSeconds", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsNumber)(),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.Min)(0),
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], ContentMusic.prototype, "endOffsetSeconds", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
82
|
+
name: 'createdAt',
|
|
83
|
+
nullable: false,
|
|
84
|
+
type: 'timestamptz',
|
|
85
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
86
|
+
}),
|
|
87
|
+
__metadata("design:type", Date)
|
|
88
|
+
], ContentMusic.prototype, "createdAt", void 0);
|
|
89
|
+
exports.ContentMusic = ContentMusic = __decorate([
|
|
90
|
+
(0, typeorm_1.Entity)('social_content_music'),
|
|
91
|
+
(0, typeorm_1.Index)(['trackId', 'contentType']),
|
|
92
|
+
(0, typeorm_1.Index)(['contentType', 'contentId']),
|
|
93
|
+
(0, typeorm_1.Index)(['contentType', 'contentId', 'trackId'], { unique: true })
|
|
94
|
+
], ContentMusic);
|
|
95
|
+
//# sourceMappingURL=content-music.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-music.entity.js","sourceRoot":"","sources":["../../src/entities/content-music.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,qCAMiB;AAEjB,kFAA2E;AAYpE,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEvB,EAAE,CAAS;IAMX,WAAW,CAAsB;IAKjC,SAAS,CAAS;IAMlB,OAAO,CAAS;IAMhB,KAAK,CAAS;IAMd,MAAM,CAAS;IAOf,kBAAkB,CAAS;IAO3B,gBAAgB,CAAS;IAQzB,SAAS,CAAO;CACjB,CAAA;AAtDY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wCACpB;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6CAAmB;KAC1B,CAAC;;iDAC+B;AAKjC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACP;AAMlB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;6CACzB;AAMhB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC3C;AAMd;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;IACd,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC1C;AAOf;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACf;AAO3B;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACjB;AAQzB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;+CAAC;uBArDL,YAAY;IAJxB,IAAA,gBAAM,EAAC,sBAAsB,CAAC;IAC9B,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACjC,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACnC,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACpD,YAAY,CAsDxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TaggableContentType } from '../constants/social-network.constant';
|
|
2
|
+
export declare class ContentTaggedPlace {
|
|
3
|
+
id: string;
|
|
4
|
+
contentType: TaggableContentType;
|
|
5
|
+
contentId: string;
|
|
6
|
+
placeId: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=content-tagged-place.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-tagged-place.entity.d.ts","sourceRoot":"","sources":["../../src/entities/content-tagged-place.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAM3E,qBAIa,kBAAkB;IAE7B,EAAE,EAAE,MAAM,CAAC;IAMX,WAAW,EAAE,mBAAmB,CAAC;IAKjC,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,EAAE,MAAM,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContentTaggedPlace = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const social_network_constant_1 = require("../constants/social-network.constant");
|
|
16
|
+
let ContentTaggedPlace = class ContentTaggedPlace {
|
|
17
|
+
id;
|
|
18
|
+
contentType;
|
|
19
|
+
contentId;
|
|
20
|
+
placeId;
|
|
21
|
+
createdAt;
|
|
22
|
+
};
|
|
23
|
+
exports.ContentTaggedPlace = ContentTaggedPlace;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ContentTaggedPlace.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({
|
|
30
|
+
type: 'enum',
|
|
31
|
+
enum: social_network_constant_1.TaggableContentType,
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ContentTaggedPlace.prototype, "contentType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ContentTaggedPlace.prototype, "contentId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
+
(0, typeorm_1.Column)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ContentTaggedPlace.prototype, "placeId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
49
|
+
name: 'createdAt',
|
|
50
|
+
nullable: false,
|
|
51
|
+
type: 'timestamptz',
|
|
52
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], ContentTaggedPlace.prototype, "createdAt", void 0);
|
|
56
|
+
exports.ContentTaggedPlace = ContentTaggedPlace = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)('social_content_tagged_place'),
|
|
58
|
+
(0, typeorm_1.Index)(['placeId', 'contentType']),
|
|
59
|
+
(0, typeorm_1.Index)(['contentType', 'contentId']),
|
|
60
|
+
(0, typeorm_1.Index)(['contentType', 'contentId', 'placeId'], { unique: true })
|
|
61
|
+
], ContentTaggedPlace);
|
|
62
|
+
//# sourceMappingURL=content-tagged-place.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-tagged-place.entity.js","sourceRoot":"","sources":["../../src/entities/content-tagged-place.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qCAMiB;AAEjB,kFAA2E;AAUpE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,EAAE,CAAS;IAMX,WAAW,CAAsB;IAKjC,SAAS,CAAS;IAKlB,OAAO,CAAS;IAQhB,SAAS,CAAO;CACjB,CAAA;AA3BY,gDAAkB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;8CACpB;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6CAAmB;KAC1B,CAAC;;uDAC+B;AAKjC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACP;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;mDACO;AAQhB;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;qDAAC;6BA1BL,kBAAkB;IAJ9B,IAAA,gBAAM,EAAC,6BAA6B,CAAC;IACrC,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACjC,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACnC,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACpD,kBAAkB,CA2B9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TaggableContentType } from '../constants/social-network.constant';
|
|
2
|
+
export declare class ContentTaggedUser {
|
|
3
|
+
id: string;
|
|
4
|
+
contentType: TaggableContentType;
|
|
5
|
+
contentId: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=content-tagged-user.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-tagged-user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/content-tagged-user.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAO3E,qBAIa,iBAAiB;IAE5B,EAAE,EAAE,MAAM,CAAC;IAMX,WAAW,EAAE,mBAAmB,CAAC;IAKjC,SAAS,EAAE,MAAM,CAAC;IAKlB,MAAM,EAAE,MAAM,CAAC;IAQf,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContentTaggedUser = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const social_network_constant_1 = require("../constants/social-network.constant");
|
|
16
|
+
let ContentTaggedUser = class ContentTaggedUser {
|
|
17
|
+
id;
|
|
18
|
+
contentType;
|
|
19
|
+
contentId;
|
|
20
|
+
userId;
|
|
21
|
+
createdAt;
|
|
22
|
+
};
|
|
23
|
+
exports.ContentTaggedUser = ContentTaggedUser;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ContentTaggedUser.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({
|
|
30
|
+
type: 'enum',
|
|
31
|
+
enum: social_network_constant_1.TaggableContentType,
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ContentTaggedUser.prototype, "contentType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], ContentTaggedUser.prototype, "contentId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ContentTaggedUser.prototype, "userId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.CreateDateColumn)({
|
|
49
|
+
name: 'createdAt',
|
|
50
|
+
nullable: false,
|
|
51
|
+
type: 'timestamptz',
|
|
52
|
+
default: () => 'CURRENT_TIMESTAMP',
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], ContentTaggedUser.prototype, "createdAt", void 0);
|
|
56
|
+
exports.ContentTaggedUser = ContentTaggedUser = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)('social_content_tagged_user'),
|
|
58
|
+
(0, typeorm_1.Index)(['userId', 'contentType']),
|
|
59
|
+
(0, typeorm_1.Index)(['contentType', 'contentId']),
|
|
60
|
+
(0, typeorm_1.Index)(['contentType', 'contentId', 'userId'], { unique: true })
|
|
61
|
+
], ContentTaggedUser);
|
|
62
|
+
//# sourceMappingURL=content-tagged-user.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-tagged-user.entity.js","sourceRoot":"","sources":["../../src/entities/content-tagged-user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qCAMiB;AAEjB,kFAA2E;AAWpE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,EAAE,CAAS;IAMX,WAAW,CAAsB;IAKjC,SAAS,CAAS;IAKlB,MAAM,CAAS;IAQf,SAAS,CAAO;CACjB,CAAA;AA3BY,8CAAiB;AAE5B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;6CACpB;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6CAAmB;KAC1B,CAAC;;sDAC+B;AAKjC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACP;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACV;AAQf;IANC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;KACnC,CAAC;8BACS,IAAI;oDAAC;4BA1BL,iBAAiB;IAJ7B,IAAA,gBAAM,EAAC,4BAA4B,CAAC;IACpC,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAChC,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IACnC,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnD,iBAAiB,CA2B7B"}
|