@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.
Files changed (141) hide show
  1. package/dist/constants/content-element.constant.d.ts +14 -0
  2. package/dist/constants/content-element.constant.d.ts.map +1 -0
  3. package/dist/constants/content-element.constant.js +18 -0
  4. package/dist/constants/content-element.constant.js.map +1 -0
  5. package/dist/constants/feed.constant.d.ts +6 -0
  6. package/dist/constants/feed.constant.d.ts.map +1 -0
  7. package/dist/constants/feed.constant.js +9 -0
  8. package/dist/constants/feed.constant.js.map +1 -0
  9. package/dist/constants/social-network.constant.d.ts +32 -0
  10. package/dist/constants/social-network.constant.d.ts.map +1 -0
  11. package/dist/constants/social-network.constant.js +41 -0
  12. package/dist/constants/social-network.constant.js.map +1 -0
  13. package/dist/entities/comment.entity.d.ts +13 -0
  14. package/dist/entities/comment.entity.d.ts.map +1 -0
  15. package/dist/entities/comment.entity.js +93 -0
  16. package/dist/entities/comment.entity.js.map +1 -0
  17. package/dist/entities/content-hashtag.entity.d.ts +9 -0
  18. package/dist/entities/content-hashtag.entity.d.ts.map +1 -0
  19. package/dist/entities/content-hashtag.entity.js +63 -0
  20. package/dist/entities/content-hashtag.entity.js.map +1 -0
  21. package/dist/entities/content-music.entity.d.ts +13 -0
  22. package/dist/entities/content-music.entity.d.ts.map +1 -0
  23. package/dist/entities/content-music.entity.js +95 -0
  24. package/dist/entities/content-music.entity.js.map +1 -0
  25. package/dist/entities/content-tagged-place.entity.d.ts +9 -0
  26. package/dist/entities/content-tagged-place.entity.d.ts.map +1 -0
  27. package/dist/entities/content-tagged-place.entity.js +62 -0
  28. package/dist/entities/content-tagged-place.entity.js.map +1 -0
  29. package/dist/entities/content-tagged-user.entity.d.ts +9 -0
  30. package/dist/entities/content-tagged-user.entity.d.ts.map +1 -0
  31. package/dist/entities/content-tagged-user.entity.js +62 -0
  32. package/dist/entities/content-tagged-user.entity.js.map +1 -0
  33. package/dist/entities/follow.entity.d.ts +8 -0
  34. package/dist/entities/follow.entity.d.ts.map +1 -0
  35. package/dist/entities/follow.entity.js +55 -0
  36. package/dist/entities/follow.entity.js.map +1 -0
  37. package/dist/entities/friend-request.entity.d.ts +12 -0
  38. package/dist/entities/friend-request.entity.d.ts.map +1 -0
  39. package/dist/entities/friend-request.entity.js +87 -0
  40. package/dist/entities/friend-request.entity.js.map +1 -0
  41. package/dist/entities/friendship.entity.d.ts +12 -0
  42. package/dist/entities/friendship.entity.d.ts.map +1 -0
  43. package/dist/entities/friendship.entity.js +88 -0
  44. package/dist/entities/friendship.entity.js.map +1 -0
  45. package/dist/entities/post.entity.d.ts +14 -0
  46. package/dist/entities/post.entity.d.ts.map +1 -0
  47. package/dist/entities/post.entity.js +99 -0
  48. package/dist/entities/post.entity.js.map +1 -0
  49. package/dist/entities/reaction.entity.d.ts +11 -0
  50. package/dist/entities/reaction.entity.d.ts.map +1 -0
  51. package/dist/entities/reaction.entity.js +79 -0
  52. package/dist/entities/reaction.entity.js.map +1 -0
  53. package/dist/entities/reel.entity.d.ts +13 -0
  54. package/dist/entities/reel.entity.d.ts.map +1 -0
  55. package/dist/entities/reel.entity.js +94 -0
  56. package/dist/entities/reel.entity.js.map +1 -0
  57. package/dist/entities/save.entity.d.ts +10 -0
  58. package/dist/entities/save.entity.d.ts.map +1 -0
  59. package/dist/entities/save.entity.js +64 -0
  60. package/dist/entities/save.entity.js.map +1 -0
  61. package/dist/entities/story.entity.d.ts +13 -0
  62. package/dist/entities/story.entity.d.ts.map +1 -0
  63. package/dist/entities/story.entity.js +87 -0
  64. package/dist/entities/story.entity.js.map +1 -0
  65. package/dist/index.d.ts +35 -0
  66. package/dist/index.d.ts.map +1 -0
  67. package/dist/index.js +51 -0
  68. package/dist/index.js.map +1 -0
  69. package/dist/services/comment.service.d.ts +20 -0
  70. package/dist/services/comment.service.d.ts.map +1 -0
  71. package/dist/services/comment.service.js +74 -0
  72. package/dist/services/comment.service.js.map +1 -0
  73. package/dist/services/content-hashtag.service.d.ts +23 -0
  74. package/dist/services/content-hashtag.service.d.ts.map +1 -0
  75. package/dist/services/content-hashtag.service.js +84 -0
  76. package/dist/services/content-hashtag.service.js.map +1 -0
  77. package/dist/services/content-music.service.d.ts +26 -0
  78. package/dist/services/content-music.service.d.ts.map +1 -0
  79. package/dist/services/content-music.service.js +100 -0
  80. package/dist/services/content-music.service.js.map +1 -0
  81. package/dist/services/content-tagged-place.service.d.ts +16 -0
  82. package/dist/services/content-tagged-place.service.d.ts.map +1 -0
  83. package/dist/services/content-tagged-place.service.js +66 -0
  84. package/dist/services/content-tagged-place.service.js.map +1 -0
  85. package/dist/services/content-tagged-user.service.d.ts +16 -0
  86. package/dist/services/content-tagged-user.service.d.ts.map +1 -0
  87. package/dist/services/content-tagged-user.service.js +66 -0
  88. package/dist/services/content-tagged-user.service.js.map +1 -0
  89. package/dist/services/feed.service.d.ts +14 -0
  90. package/dist/services/feed.service.d.ts.map +1 -0
  91. package/dist/services/feed.service.js +135 -0
  92. package/dist/services/feed.service.js.map +1 -0
  93. package/dist/services/follow.service.d.ts +21 -0
  94. package/dist/services/follow.service.d.ts.map +1 -0
  95. package/dist/services/follow.service.js +78 -0
  96. package/dist/services/follow.service.js.map +1 -0
  97. package/dist/services/friend-request.service.d.ts +16 -0
  98. package/dist/services/friend-request.service.d.ts.map +1 -0
  99. package/dist/services/friend-request.service.js +106 -0
  100. package/dist/services/friend-request.service.js.map +1 -0
  101. package/dist/services/friendship.service.d.ts +17 -0
  102. package/dist/services/friendship.service.d.ts.map +1 -0
  103. package/dist/services/friendship.service.js +79 -0
  104. package/dist/services/friendship.service.js.map +1 -0
  105. package/dist/services/post.service.d.ts +10 -0
  106. package/dist/services/post.service.d.ts.map +1 -0
  107. package/dist/services/post.service.js +48 -0
  108. package/dist/services/post.service.js.map +1 -0
  109. package/dist/services/reaction.service.d.ts +19 -0
  110. package/dist/services/reaction.service.d.ts.map +1 -0
  111. package/dist/services/reaction.service.js +88 -0
  112. package/dist/services/reaction.service.js.map +1 -0
  113. package/dist/services/reel.service.d.ts +8 -0
  114. package/dist/services/reel.service.d.ts.map +1 -0
  115. package/dist/services/reel.service.js +34 -0
  116. package/dist/services/reel.service.js.map +1 -0
  117. package/dist/services/save.service.d.ts +17 -0
  118. package/dist/services/save.service.d.ts.map +1 -0
  119. package/dist/services/save.service.js +65 -0
  120. package/dist/services/save.service.js.map +1 -0
  121. package/dist/services/story.service.d.ts +14 -0
  122. package/dist/services/story.service.d.ts.map +1 -0
  123. package/dist/services/story.service.js +50 -0
  124. package/dist/services/story.service.js.map +1 -0
  125. package/dist/social-network.module.d.ts +3 -0
  126. package/dist/social-network.module.d.ts.map +1 -0
  127. package/dist/social-network.module.js +80 -0
  128. package/dist/social-network.module.js.map +1 -0
  129. package/dist/types/content-element.types.d.ts +84 -0
  130. package/dist/types/content-element.types.d.ts.map +1 -0
  131. package/dist/types/content-element.types.js +3 -0
  132. package/dist/types/content-element.types.js.map +1 -0
  133. package/dist/types/content-music.types.d.ts +8 -0
  134. package/dist/types/content-music.types.d.ts.map +1 -0
  135. package/dist/types/content-music.types.js +3 -0
  136. package/dist/types/content-music.types.js.map +1 -0
  137. package/dist/types/feed.types.d.ts +28 -0
  138. package/dist/types/feed.types.d.ts.map +1 -0
  139. package/dist/types/feed.types.js +3 -0
  140. package/dist/types/feed.types.js.map +1 -0
  141. package/package.json +37 -0
@@ -0,0 +1,8 @@
1
+ export declare class Follow {
2
+ id: string;
3
+ followerId: string;
4
+ followingId: string;
5
+ metadata: Record<string, unknown>;
6
+ createdAt: Date;
7
+ }
8
+ //# sourceMappingURL=follow.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"follow.entity.d.ts","sourceRoot":"","sources":["../../src/entities/follow.entity.ts"],"names":[],"mappings":"AASA,qBAEa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAIX,UAAU,EAAE,MAAM,CAAC;IAInB,WAAW,EAAE,MAAM,CAAC;IAIpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,55 @@
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.Follow = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ let Follow = class Follow {
16
+ id;
17
+ followerId;
18
+ followingId;
19
+ metadata;
20
+ createdAt;
21
+ };
22
+ exports.Follow = Follow;
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
25
+ __metadata("design:type", String)
26
+ ], Follow.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'uuid' }),
29
+ (0, typeorm_1.Index)(),
30
+ __metadata("design:type", String)
31
+ ], Follow.prototype, "followerId", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'uuid' }),
34
+ (0, typeorm_1.Index)(),
35
+ __metadata("design:type", String)
36
+ ], Follow.prototype, "followingId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], Follow.prototype, "metadata", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.CreateDateColumn)({
44
+ name: 'createdAt',
45
+ nullable: false,
46
+ type: 'timestamptz',
47
+ default: () => 'CURRENT_TIMESTAMP',
48
+ }),
49
+ __metadata("design:type", Date)
50
+ ], Follow.prototype, "createdAt", void 0);
51
+ exports.Follow = Follow = __decorate([
52
+ (0, typeorm_1.Entity)('social_follow'),
53
+ (0, typeorm_1.Index)(['followerId', 'followingId'], { unique: true })
54
+ ], Follow);
55
+ //# sourceMappingURL=follow.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"follow.entity.js","sourceRoot":"","sources":["../../src/entities/follow.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyD;AACzD,qCAMiB;AAIV,IAAM,MAAM,GAAZ,MAAM,MAAM;IAEjB,EAAE,CAAS;IAIX,UAAU,CAAS;IAInB,WAAW,CAAS;IAIpB,QAAQ,CAA0B;IAQlC,SAAS,CAAO;CACjB,CAAA;AAvBY,wBAAM;AAEjB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;kCACpB;AAIX;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;0CACW;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;2CACY;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACR;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;yCAAC;iBAtBL,MAAM;IAFlB,IAAA,gBAAM,EAAC,eAAe,CAAC;IACvB,IAAA,eAAK,EAAC,CAAC,YAAY,EAAE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC1C,MAAM,CAuBlB"}
@@ -0,0 +1,12 @@
1
+ import { FriendRequestStatus } from '../constants/social-network.constant';
2
+ export declare class FriendRequest {
3
+ id: string;
4
+ fromUserId: string;
5
+ toUserId: string;
6
+ status: FriendRequestStatus;
7
+ message: string;
8
+ metadata: Record<string, unknown>;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ }
12
+ //# sourceMappingURL=friend-request.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friend-request.entity.d.ts","sourceRoot":"","sources":["../../src/entities/friend-request.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,qBAEa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAC;IAMX,UAAU,EAAE,MAAM,CAAC;IAMnB,QAAQ,EAAE,MAAM,CAAC;IAQjB,MAAM,EAAE,mBAAmB,CAAC;IAK5B,OAAO,EAAE,MAAM,CAAC;IAIhB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,87 @@
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.FriendRequest = 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 FriendRequest = class FriendRequest {
17
+ id;
18
+ fromUserId;
19
+ toUserId;
20
+ status;
21
+ message;
22
+ metadata;
23
+ createdAt;
24
+ updatedAt;
25
+ };
26
+ exports.FriendRequest = FriendRequest;
27
+ __decorate([
28
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
29
+ __metadata("design:type", String)
30
+ ], FriendRequest.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ (0, typeorm_1.Column)({ type: 'uuid' }),
35
+ (0, typeorm_1.Index)(),
36
+ __metadata("design:type", String)
37
+ ], FriendRequest.prototype, "fromUserId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.IsNotEmpty)(),
41
+ (0, typeorm_1.Column)({ type: 'uuid' }),
42
+ (0, typeorm_1.Index)(),
43
+ __metadata("design:type", String)
44
+ ], FriendRequest.prototype, "toUserId", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsString)(),
47
+ (0, typeorm_1.Column)({
48
+ type: 'enum',
49
+ enum: social_network_constant_1.FriendRequestStatus,
50
+ default: social_network_constant_1.FriendRequestStatus.PENDING,
51
+ }),
52
+ __metadata("design:type", String)
53
+ ], FriendRequest.prototype, "status", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
58
+ __metadata("design:type", String)
59
+ ], FriendRequest.prototype, "message", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsOptional)(),
62
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], FriendRequest.prototype, "metadata", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.CreateDateColumn)({
67
+ name: 'createdAt',
68
+ nullable: false,
69
+ type: 'timestamptz',
70
+ default: () => 'CURRENT_TIMESTAMP',
71
+ }),
72
+ __metadata("design:type", Date)
73
+ ], FriendRequest.prototype, "createdAt", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.UpdateDateColumn)({
76
+ name: 'updatedAt',
77
+ nullable: false,
78
+ type: 'timestamptz',
79
+ default: () => 'CURRENT_TIMESTAMP',
80
+ }),
81
+ __metadata("design:type", Date)
82
+ ], FriendRequest.prototype, "updatedAt", void 0);
83
+ exports.FriendRequest = FriendRequest = __decorate([
84
+ (0, typeorm_1.Entity)('social_friend_request'),
85
+ (0, typeorm_1.Index)(['fromUserId', 'toUserId'], { unique: true })
86
+ ], FriendRequest);
87
+ //# sourceMappingURL=friend-request.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friend-request.entity.js","sourceRoot":"","sources":["../../src/entities/friend-request.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AACnE,qCAOiB;AAEjB,kFAA2E;AAIpE,IAAM,aAAa,GAAnB,MAAM,aAAa;IAExB,EAAE,CAAS;IAMX,UAAU,CAAS;IAMnB,QAAQ,CAAS;IAQjB,MAAM,CAAsB;IAK5B,OAAO,CAAS;IAIhB,QAAQ,CAA0B;IAQlC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AAhDY,sCAAa;AAExB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACpB;AAMX;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;iDACW;AAMnB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;+CACS;AAQjB;IANC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6CAAmB;QACzB,OAAO,EAAE,6CAAmB,CAAC,OAAO;KACrC,CAAC;;6CAC0B;AAK5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACzB;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;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;gDAAC;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;gDAAC;wBA/CL,aAAa;IAFzB,IAAA,gBAAM,EAAC,uBAAuB,CAAC;IAC/B,IAAA,eAAK,EAAC,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACvC,aAAa,CAgDzB"}
@@ -0,0 +1,12 @@
1
+ import { FriendshipStatus } from '../constants/social-network.constant';
2
+ export declare class Friendship {
3
+ id: string;
4
+ userId: string;
5
+ friendUserId: string;
6
+ status: FriendshipStatus;
7
+ blockedByUserId: string | null;
8
+ metadata: Record<string, unknown>;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ }
12
+ //# sourceMappingURL=friendship.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friendship.entity.d.ts","sourceRoot":"","sources":["../../src/entities/friendship.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,qBAGa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAC;IAMX,MAAM,EAAE,MAAM,CAAC;IAMf,YAAY,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,gBAAgB,CAAC;IAMzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,88 @@
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.Friendship = 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 Friendship = class Friendship {
17
+ id;
18
+ userId;
19
+ friendUserId;
20
+ status;
21
+ blockedByUserId;
22
+ metadata;
23
+ createdAt;
24
+ updatedAt;
25
+ };
26
+ exports.Friendship = Friendship;
27
+ __decorate([
28
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
29
+ __metadata("design:type", String)
30
+ ], Friendship.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ (0, typeorm_1.Column)({ type: 'uuid' }),
35
+ (0, typeorm_1.Index)(),
36
+ __metadata("design:type", String)
37
+ ], Friendship.prototype, "userId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.IsNotEmpty)(),
41
+ (0, typeorm_1.Column)({ type: 'uuid' }),
42
+ (0, typeorm_1.Index)(),
43
+ __metadata("design:type", String)
44
+ ], Friendship.prototype, "friendUserId", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsString)(),
47
+ (0, typeorm_1.Column)({
48
+ type: 'enum',
49
+ enum: social_network_constant_1.FriendshipStatus,
50
+ default: social_network_constant_1.FriendshipStatus.ACTIVE,
51
+ }),
52
+ __metadata("design:type", String)
53
+ ], Friendship.prototype, "status", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], Friendship.prototype, "blockedByUserId", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsOptional)(),
62
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], Friendship.prototype, "metadata", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.CreateDateColumn)({
67
+ name: 'createdAt',
68
+ nullable: false,
69
+ type: 'timestamptz',
70
+ default: () => 'CURRENT_TIMESTAMP',
71
+ }),
72
+ __metadata("design:type", Date)
73
+ ], Friendship.prototype, "createdAt", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.UpdateDateColumn)({
76
+ name: 'updatedAt',
77
+ nullable: false,
78
+ type: 'timestamptz',
79
+ default: () => 'CURRENT_TIMESTAMP',
80
+ }),
81
+ __metadata("design:type", Date)
82
+ ], Friendship.prototype, "updatedAt", void 0);
83
+ exports.Friendship = Friendship = __decorate([
84
+ (0, typeorm_1.Entity)('social_friendship'),
85
+ (0, typeorm_1.Index)(['userId', 'friendUserId'], { unique: true }),
86
+ (0, typeorm_1.Index)(['friendUserId', 'userId'], { unique: true })
87
+ ], Friendship);
88
+ //# sourceMappingURL=friendship.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"friendship.entity.js","sourceRoot":"","sources":["../../src/entities/friendship.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AACnE,qCAOiB;AAEjB,kFAAwE;AAKjE,IAAM,UAAU,GAAhB,MAAM,UAAU;IAErB,EAAE,CAAS;IAMX,MAAM,CAAS;IAMf,YAAY,CAAS;IAQrB,MAAM,CAAmB;IAMzB,eAAe,CAAgB;IAI/B,QAAQ,CAA0B;IAQlC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AAjDY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACpB;AAMX;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;0CACO;AAMf;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;gDACa;AAQrB;IANC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,0CAAgB;QACtB,OAAO,EAAE,0CAAgB,CAAC,MAAM;KACjC,CAAC;;0CACuB;AAMzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACV;AAI/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;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;6CAAC;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;6CAAC;qBAhDL,UAAU;IAHtB,IAAA,gBAAM,EAAC,mBAAmB,CAAC;IAC3B,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACnD,IAAA,eAAK,EAAC,CAAC,cAAc,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACvC,UAAU,CAiDtB"}
@@ -0,0 +1,14 @@
1
+ export declare class Post {
2
+ id: string;
3
+ userId: string;
4
+ caption: string;
5
+ mediaUrls: string[];
6
+ elements: Record<string, unknown>[];
7
+ location: string;
8
+ allowComments: boolean;
9
+ isArchived: boolean;
10
+ metadata: Record<string, unknown>;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ }
14
+ //# sourceMappingURL=post.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.entity.d.ts","sourceRoot":"","sources":["../../src/entities/post.entity.ts"],"names":[],"mappings":"AAgBA,qBACa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAMX,MAAM,EAAE,MAAM,CAAC;IAKf,OAAO,EAAE,MAAM,CAAC;IAMhB,SAAS,EAAE,MAAM,EAAE,CAAC;IASpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAKpC,QAAQ,EAAE,MAAM,CAAC;IAMjB,aAAa,EAAE,OAAO,CAAC;IAIvB,UAAU,EAAE,OAAO,CAAC;IAIpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,99 @@
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.Post = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ let Post = class Post {
16
+ id;
17
+ userId;
18
+ caption;
19
+ mediaUrls;
20
+ elements;
21
+ location;
22
+ allowComments;
23
+ isArchived;
24
+ metadata;
25
+ createdAt;
26
+ updatedAt;
27
+ };
28
+ exports.Post = Post;
29
+ __decorate([
30
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
31
+ __metadata("design:type", String)
32
+ ], Post.prototype, "id", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ (0, class_validator_1.IsNotEmpty)(),
36
+ (0, typeorm_1.Column)({ type: 'uuid' }),
37
+ (0, typeorm_1.Index)(),
38
+ __metadata("design:type", String)
39
+ ], Post.prototype, "userId", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsString)(),
42
+ (0, class_validator_1.IsOptional)(),
43
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
44
+ __metadata("design:type", String)
45
+ ], Post.prototype, "caption", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsArray)(),
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, typeorm_1.Column)({ type: 'jsonb', default: [] }),
50
+ __metadata("design:type", Array)
51
+ ], Post.prototype, "mediaUrls", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
55
+ __metadata("design:type", Array)
56
+ ], Post.prototype, "elements", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, typeorm_1.Column)({ nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], Post.prototype, "location", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsBoolean)(),
65
+ (0, typeorm_1.Column)({ default: true }),
66
+ __metadata("design:type", Boolean)
67
+ ], Post.prototype, "allowComments", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsBoolean)(),
70
+ (0, typeorm_1.Column)({ default: false }),
71
+ __metadata("design:type", Boolean)
72
+ ], Post.prototype, "isArchived", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
76
+ __metadata("design:type", Object)
77
+ ], Post.prototype, "metadata", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.CreateDateColumn)({
80
+ name: 'createdAt',
81
+ nullable: false,
82
+ type: 'timestamptz',
83
+ default: () => 'CURRENT_TIMESTAMP',
84
+ }),
85
+ __metadata("design:type", Date)
86
+ ], Post.prototype, "createdAt", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.UpdateDateColumn)({
89
+ name: 'updatedAt',
90
+ nullable: false,
91
+ type: 'timestamptz',
92
+ default: () => 'CURRENT_TIMESTAMP',
93
+ }),
94
+ __metadata("design:type", Date)
95
+ ], Post.prototype, "updatedAt", void 0);
96
+ exports.Post = Post = __decorate([
97
+ (0, typeorm_1.Entity)('social_post')
98
+ ], Post);
99
+ //# sourceMappingURL=post.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.entity.js","sourceRoot":"","sources":["../../src/entities/post.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,qCAOiB;AAGV,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,EAAE,CAAS;IAMX,MAAM,CAAS;IAKf,OAAO,CAAS;IAMhB,SAAS,CAAW;IASpB,QAAQ,CAA4B;IAKpC,QAAQ,CAAS;IAMjB,aAAa,CAAU;IAIvB,UAAU,CAAU;IAIpB,QAAQ,CAA0B;IAQlC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AAhEY,oBAAI;AAEf;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gCACpB;AAMX;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;oCACO;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACzB;AAMhB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;uCACnB;AASpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sCACnB;AAKpC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACV;AAMjB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACH;AAIvB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCACP;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACR;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;uCAAC;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;uCAAC;eA/DL,IAAI;IADhB,IAAA,gBAAM,EAAC,aAAa,CAAC;GACT,IAAI,CAgEhB"}
@@ -0,0 +1,11 @@
1
+ import { ContentTargetType, ReactionType } from '../constants/social-network.constant';
2
+ export declare class Reaction {
3
+ id: string;
4
+ userId: string;
5
+ targetType: ContentTargetType;
6
+ targetId: string;
7
+ reactionType: ReactionType;
8
+ metadata: Record<string, unknown>;
9
+ createdAt: Date;
10
+ }
11
+ //# sourceMappingURL=reaction.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reaction.entity.d.ts","sourceRoot":"","sources":["../../src/entities/reaction.entity.ts"],"names":[],"mappings":"AASA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACb,MAAM,sCAAsC,CAAC;AAE9C,qBAGa,QAAQ;IAEnB,EAAE,EAAE,MAAM,CAAC;IAMX,MAAM,EAAE,MAAM,CAAC;IAOf,UAAU,EAAE,iBAAiB,CAAC;IAK9B,QAAQ,EAAE,MAAM,CAAC;IAQjB,YAAY,EAAE,YAAY,CAAC;IAI3B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,79 @@
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.Reaction = 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 Reaction = class Reaction {
17
+ id;
18
+ userId;
19
+ targetType;
20
+ targetId;
21
+ reactionType;
22
+ metadata;
23
+ createdAt;
24
+ };
25
+ exports.Reaction = Reaction;
26
+ __decorate([
27
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
28
+ __metadata("design:type", String)
29
+ ], Reaction.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_validator_1.IsNotEmpty)(),
33
+ (0, typeorm_1.Column)({ type: 'uuid' }),
34
+ (0, typeorm_1.Index)(),
35
+ __metadata("design:type", String)
36
+ ], Reaction.prototype, "userId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ (0, typeorm_1.Column)({
40
+ type: 'enum',
41
+ enum: social_network_constant_1.ContentTargetType,
42
+ }),
43
+ __metadata("design:type", String)
44
+ ], Reaction.prototype, "targetType", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsNotEmpty)(),
48
+ (0, typeorm_1.Column)({ type: 'uuid' }),
49
+ __metadata("design:type", String)
50
+ ], Reaction.prototype, "targetId", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsString)(),
53
+ (0, typeorm_1.Column)({
54
+ type: 'enum',
55
+ enum: social_network_constant_1.ReactionType,
56
+ default: social_network_constant_1.ReactionType.LIKE,
57
+ }),
58
+ __metadata("design:type", String)
59
+ ], Reaction.prototype, "reactionType", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsOptional)(),
62
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
63
+ __metadata("design:type", Object)
64
+ ], Reaction.prototype, "metadata", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.CreateDateColumn)({
67
+ name: 'createdAt',
68
+ nullable: false,
69
+ type: 'timestamptz',
70
+ default: () => 'CURRENT_TIMESTAMP',
71
+ }),
72
+ __metadata("design:type", Date)
73
+ ], Reaction.prototype, "createdAt", void 0);
74
+ exports.Reaction = Reaction = __decorate([
75
+ (0, typeorm_1.Entity)('social_reaction'),
76
+ (0, typeorm_1.Index)(['userId', 'targetType', 'targetId'], { unique: true }),
77
+ (0, typeorm_1.Index)(['targetType', 'targetId'])
78
+ ], Reaction);
79
+ //# sourceMappingURL=reaction.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reaction.entity.js","sourceRoot":"","sources":["../../src/entities/reaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AACnE,qCAMiB;AAEjB,kFAG8C;AAKvC,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAEnB,EAAE,CAAS;IAMX,MAAM,CAAS;IAOf,UAAU,CAAoB;IAK9B,QAAQ,CAAS;IAQjB,YAAY,CAAe;IAI3B,QAAQ,CAA0B;IAQlC,SAAS,CAAO;CACjB,CAAA;AAzCY,4BAAQ;AAEnB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;oCACpB;AAMX;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;wCACO;AAOf;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,2CAAiB;KACxB,CAAC;;4CAC4B;AAK9B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACR;AAQjB;IANC,IAAA,0BAAQ,GAAE;IACV,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,sCAAY;QAClB,OAAO,EAAE,sCAAY,CAAC,IAAI;KAC3B,CAAC;;8CACyB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;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;2CAAC;mBAxCL,QAAQ;IAHpB,IAAA,gBAAM,EAAC,iBAAiB,CAAC;IACzB,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,eAAK,EAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;GACrB,QAAQ,CAyCpB"}
@@ -0,0 +1,13 @@
1
+ export declare class Reel {
2
+ id: string;
3
+ userId: string;
4
+ videoUrl: string;
5
+ thumbnailUrl: string;
6
+ caption: string;
7
+ elements: Record<string, unknown>[];
8
+ durationSeconds: number;
9
+ metadata: Record<string, unknown>;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ }
13
+ //# sourceMappingURL=reel.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reel.entity.d.ts","sourceRoot":"","sources":["../../src/entities/reel.entity.ts"],"names":[],"mappings":"AAgBA,qBACa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAMX,MAAM,EAAE,MAAM,CAAC;IAKf,QAAQ,EAAE,MAAM,CAAC;IAKjB,YAAY,EAAE,MAAM,CAAC;IAKrB,OAAO,EAAE,MAAM,CAAC;IAShB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAQpC,eAAe,EAAE,MAAM,CAAC;IAIxB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
@@ -0,0 +1,94 @@
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.Reel = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const typeorm_1 = require("typeorm");
15
+ let Reel = class Reel {
16
+ id;
17
+ userId;
18
+ videoUrl;
19
+ thumbnailUrl;
20
+ caption;
21
+ elements;
22
+ durationSeconds;
23
+ metadata;
24
+ createdAt;
25
+ updatedAt;
26
+ };
27
+ exports.Reel = Reel;
28
+ __decorate([
29
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
30
+ __metadata("design:type", String)
31
+ ], Reel.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
+ (0, typeorm_1.Index)(),
37
+ __metadata("design:type", String)
38
+ ], Reel.prototype, "userId", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsNotEmpty)(),
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", String)
44
+ ], Reel.prototype, "videoUrl", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, typeorm_1.Column)({ nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], Reel.prototype, "thumbnailUrl", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsString)(),
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], Reel.prototype, "caption", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsOptional)(),
59
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
60
+ __metadata("design:type", Array)
61
+ ], Reel.prototype, "elements", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsNumber)(),
64
+ (0, class_validator_1.Min)(0),
65
+ (0, typeorm_1.Column)({ type: 'float', default: 0 }),
66
+ __metadata("design:type", Number)
67
+ ], Reel.prototype, "durationSeconds", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
71
+ __metadata("design:type", Object)
72
+ ], Reel.prototype, "metadata", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.CreateDateColumn)({
75
+ name: 'createdAt',
76
+ nullable: false,
77
+ type: 'timestamptz',
78
+ default: () => 'CURRENT_TIMESTAMP',
79
+ }),
80
+ __metadata("design:type", Date)
81
+ ], Reel.prototype, "createdAt", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.UpdateDateColumn)({
84
+ name: 'updatedAt',
85
+ nullable: false,
86
+ type: 'timestamptz',
87
+ default: () => 'CURRENT_TIMESTAMP',
88
+ }),
89
+ __metadata("design:type", Date)
90
+ ], Reel.prototype, "updatedAt", void 0);
91
+ exports.Reel = Reel = __decorate([
92
+ (0, typeorm_1.Entity)('social_reel')
93
+ ], Reel);
94
+ //# sourceMappingURL=reel.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reel.entity.js","sourceRoot":"","sources":["../../src/entities/reel.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,qCAOiB;AAGV,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,EAAE,CAAS;IAMX,MAAM,CAAS;IAKf,QAAQ,CAAS;IAKjB,YAAY,CAAS;IAKrB,OAAO,CAAS;IAShB,QAAQ,CAA4B;IAQpC,eAAe,CAAS;IAIxB,QAAQ,CAA0B;IAQlC,SAAS,CAAO;IAQhB,SAAS,CAAO;CACjB,CAAA;AA7DY,oBAAI;AAEf;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gCACpB;AAMX;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,IAAA,eAAK,GAAE;;oCACO;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,GAAE;;sCACQ;AAKjB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACN;AAKrB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACzB;AAShB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sCACnB;AAQpC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACd;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACR;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;uCAAC;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;uCAAC;eA5DL,IAAI;IADhB,IAAA,gBAAM,EAAC,aAAa,CAAC;GACT,IAAI,CA6DhB"}
@@ -0,0 +1,10 @@
1
+ import { ContentTargetType } from '../constants/social-network.constant';
2
+ export declare class Save {
3
+ id: string;
4
+ userId: string;
5
+ targetType: ContentTargetType;
6
+ targetId: string;
7
+ metadata: Record<string, unknown>;
8
+ createdAt: Date;
9
+ }
10
+ //# sourceMappingURL=save.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save.entity.d.ts","sourceRoot":"","sources":["../../src/entities/save.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,qBAGa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;IAMf,UAAU,EAAE,iBAAiB,CAAC;IAG9B,QAAQ,EAAE,MAAM,CAAC;IAIjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQlC,SAAS,EAAE,IAAI,CAAC;CACjB"}