@lukiteam/luki-be-general 0.1.4 → 0.1.5
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/redis-key.d.ts +29 -0
- package/dist/constants/redis-key.js +33 -0
- package/dist/constants/redis-key.js.map +1 -0
- package/dist/index.d.ts +1 -46
- package/dist/index.js +2 -116
- package/dist/index.js.map +1 -1
- package/dist/mongo/index.d.ts +28 -2
- package/dist/mongo/index.js +2 -2
- package/dist/mongo/index.js.map +1 -1
- package/dist/mongo/schema/member-config.entity.d.ts +3 -3
- package/dist/mongo/schema/member-config.entity.js +19 -19
- package/dist/mongo/schema/member-config.entity.js.map +1 -1
- package/dist/mongo/schema/notification.entity.d.ts +2 -2
- package/dist/mongo/schema/notification.entity.js +17 -17
- package/dist/mongo/schema/notification.entity.js.map +1 -1
- package/dist/postgresql/index.d.ts +1 -2
- package/dist/postgresql/index.js +0 -2
- package/dist/postgresql/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -15
- package/dist/postgresql/entity/notification.entity.d.ts +0 -8
- package/dist/postgresql/entity/notification.entity.js +0 -42
- package/dist/postgresql/entity/notification.entity.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const REDIS_KEY: {
|
|
2
|
+
user: (userId: string | number) => string;
|
|
3
|
+
call_data_key: (uuid: string) => string;
|
|
4
|
+
call_data_user: (userId: string) => string;
|
|
5
|
+
call_data_user_heartbeat: (userId: string, uuid: string) => string;
|
|
6
|
+
matching_queue: () => string;
|
|
7
|
+
match_data: (uuid: string) => string;
|
|
8
|
+
turn_server: () => string;
|
|
9
|
+
publisher_missed_call: (memberId: string) => string;
|
|
10
|
+
user_online_reminder: (userId: number) => string;
|
|
11
|
+
token_list: (memberId: string) => string;
|
|
12
|
+
new_user_pass_check: (phoneNumber: string) => string;
|
|
13
|
+
system_settings: (key: string) => string;
|
|
14
|
+
all_publishers_db: string;
|
|
15
|
+
discovery_new_users_db: string;
|
|
16
|
+
discovery_verified_users_db: string;
|
|
17
|
+
publisher_param_list: (country: string, param: string) => string;
|
|
18
|
+
suggestion_param_list: (param: string) => string;
|
|
19
|
+
verify_param_list: (param: string) => string;
|
|
20
|
+
new_param_list: (param: string) => string;
|
|
21
|
+
suggestion_publishers_db: string;
|
|
22
|
+
discovery_param_list: (group: 'online' | 'new' | 'verify', role: 'users' | 'publishers', param: string) => string;
|
|
23
|
+
user_swipe_param: (userId: number, sortingKey: string) => string;
|
|
24
|
+
user_discovery_param: (userId: number, group: string, role: string) => string;
|
|
25
|
+
checkin_done: (memberId: number) => string;
|
|
26
|
+
checkin_last: (memberId: number) => string;
|
|
27
|
+
checkin_streak: (memberId: number) => string;
|
|
28
|
+
checkin_cycle: (memberId: number) => string;
|
|
29
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REDIS_KEY = void 0;
|
|
4
|
+
exports.REDIS_KEY = {
|
|
5
|
+
user: (userId) => `user:${userId}`,
|
|
6
|
+
call_data_key: (uuid) => `CALL:UUID_LIST:${uuid}`,
|
|
7
|
+
call_data_user: (userId) => `CALL:USER_LIST:${userId}`,
|
|
8
|
+
call_data_user_heartbeat: (userId, uuid) => `CALL:USER_LIST_HEARTBEAT:${userId}:${uuid}`,
|
|
9
|
+
matching_queue: () => `matching_queue`,
|
|
10
|
+
match_data: (uuid) => `match_data:${uuid}`,
|
|
11
|
+
turn_server: () => `turn_server`,
|
|
12
|
+
publisher_missed_call: (memberId) => `publisher_missed_call:${memberId}`,
|
|
13
|
+
user_online_reminder: (userId) => `user_online_reminder:${userId}`,
|
|
14
|
+
token_list: (memberId) => `token_list:${memberId}`,
|
|
15
|
+
new_user_pass_check: (phoneNumber) => `new_user_pass_check:${phoneNumber}`,
|
|
16
|
+
system_settings: (key) => `system_settings:${key}`,
|
|
17
|
+
all_publishers_db: `swipe:all_publishers_db`,
|
|
18
|
+
discovery_new_users_db: 'discovery:new_users_db',
|
|
19
|
+
discovery_verified_users_db: 'discovery:verified_users_db',
|
|
20
|
+
publisher_param_list: (country, param) => `swipe:${country}_publishers:${param}`,
|
|
21
|
+
suggestion_param_list: (param) => `swipe:suggestion:${param}`,
|
|
22
|
+
verify_param_list: (param) => `swipe:verify_publishers:${param}`,
|
|
23
|
+
new_param_list: (param) => `swipe:created_at_publishers:${param}`,
|
|
24
|
+
suggestion_publishers_db: 'swipe:suggestion_publishers_db',
|
|
25
|
+
discovery_param_list: (group, role, param) => `discovery:${group}_${role}:${param}`,
|
|
26
|
+
user_swipe_param: (userId, sortingKey) => `user_swipe_param:${userId}_${sortingKey}`,
|
|
27
|
+
user_discovery_param: (userId, group, role) => `user_discovery_param:${userId}:${group}_${role}`,
|
|
28
|
+
checkin_done: (memberId) => `checkin:done:${memberId}`,
|
|
29
|
+
checkin_last: (memberId) => `checkin:last:${memberId}`,
|
|
30
|
+
checkin_streak: (memberId) => `checkin:streak:${memberId}`,
|
|
31
|
+
checkin_cycle: (memberId) => `checkin:cycle:${memberId}`,
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=redis-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis-key.js","sourceRoot":"","sources":["../../src/constants/redis-key.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACrB,IAAI,EAAE,CAAC,MAAuB,EAAE,EAAE,CAAC,QAAQ,MAAM,EAAE;IACnD,aAAa,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,kBAAkB,IAAI,EAAE;IACzD,cAAc,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,kBAAkB,MAAM,EAAE;IAC9D,wBAAwB,EAAE,CAAC,MAAc,EAAE,IAAY,EAAE,EAAE,CAAC,4BAA4B,MAAM,IAAI,IAAI,EAAE;IACxG,cAAc,EAAE,GAAG,EAAE,CAAC,gBAA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H,YAAY,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,gBAAgB,QAAQ,EAAE;IAC9D,YAAY,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,gBAAgB,QAAQ,EAAE;IAC9D,cAAc,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,kBAAkB,QAAQ,EAAE;IAClE,aAAa,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,iBAAiB,QAAQ,EAAE;CACnE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,49 +7,4 @@ export * from './mongo/unit-of-work/unit-of-work.interface';
|
|
|
7
7
|
export * from './mongo/repositories/base.repository';
|
|
8
8
|
export * from './mongo/repositories/repository.factory';
|
|
9
9
|
export * from './mongo/unit-of-work/unit-of-work.module';
|
|
10
|
-
export
|
|
11
|
-
export { default as BlockedPhone } from './postgresql/entity/blocked-phone.entity';
|
|
12
|
-
export { default as CallHistory } from './postgresql/entity/call-history.entity';
|
|
13
|
-
export { default as CallHistoryDetail } from './postgresql/entity/call-history-detail.entity';
|
|
14
|
-
export { default as CoinsDefinition } from './postgresql/entity/coins-definition.entity';
|
|
15
|
-
export { default as FeedbackAndComplaint } from './postgresql/entity/feedback-and-complaint.entity';
|
|
16
|
-
export { default as MemberBankAccount } from './postgresql/entity/member-bank-account.entity';
|
|
17
|
-
export { default as MemberBlocked } from './postgresql/entity/member-blocked.entity';
|
|
18
|
-
export { default as MemberConfig } from './postgresql/entity/member-config.entity';
|
|
19
|
-
export { default as MemberConnections } from './postgresql/entity/member-connections.entity';
|
|
20
|
-
export { default as MemberFriends } from './postgresql/entity/member-friends.entity';
|
|
21
|
-
export { default as MemberLiked } from './postgresql/entity/member-liked.entity';
|
|
22
|
-
export { default as MemberMission } from './postgresql/entity/member-mission.entity';
|
|
23
|
-
export { default as MemberReminder } from './postgresql/entity/member-reminder.entity';
|
|
24
|
-
export { default as MemberVerification } from './postgresql/entity/member-verification.entity';
|
|
25
|
-
export { default as Member } from './postgresql/entity/member.entity';
|
|
26
|
-
export { default as Message } from './postgresql/entity/message.entity';
|
|
27
|
-
export { default as Mission } from './postgresql/entity/mission.entity';
|
|
28
|
-
export { default as Notification } from './postgresql/entity/notification.entity';
|
|
29
|
-
export { default as Payment } from './postgresql/entity/payment.entity';
|
|
30
|
-
export { default as ProductPurchase } from './postgresql/entity/product-purchase.entity';
|
|
31
|
-
export { default as Purchase } from './postgresql/entity/purchase.entity';
|
|
32
|
-
export { default as SwipeCountries } from './postgresql/entity/swipe-countries.entity';
|
|
33
|
-
export { default as SystemLogs } from './postgresql/entity/system-logs.entity';
|
|
34
|
-
export { default as SystemSettings } from './postgresql/entity/system-settings.entity';
|
|
35
|
-
export { default as WalletDetail } from './postgresql/entity/wallet-detail.entity';
|
|
36
|
-
export { default as Wallet } from './postgresql/entity/wallet.entity';
|
|
37
|
-
export { AgencyPublishers, AgencyPublishersSchema, } from './mongo/schema/agency-publishers.entity';
|
|
38
|
-
export { Agency, AgencySchema, } from './mongo/schema/agency.entity';
|
|
39
|
-
export { Contents, ContentsSchema, } from './mongo/schema/contents.entity';
|
|
40
|
-
export { DefinedTexts, DefinedTextsSchema, } from './mongo/schema/defined-texts.entity';
|
|
41
|
-
export { Highlights, HighlightsSchema, } from './mongo/schema/highlights.entity';
|
|
42
|
-
export { Language, LanguageSchema, } from './mongo/schema/language.entity';
|
|
43
|
-
export { MemberConfigs, MemberConfigSchema, } from './mongo/schema/member-config.entity';
|
|
44
|
-
export { MemberRoles, MemberRolesSchema, } from './mongo/schema/member-roles.entity';
|
|
45
|
-
export { Notifications, NotificationSchema, } from './mongo/schema/notification.entity';
|
|
46
|
-
export { PostComments, PostCommentSchema, } from './mongo/schema/post-comments.entity';
|
|
47
|
-
export { PostLikes, PostLikeSchema, } from './mongo/schema/post-likes.entity';
|
|
48
|
-
export { Posts, PostsSchema, } from './mongo/schema/posts.entity';
|
|
49
|
-
export { Rights, RightsSchema, } from './mongo/schema/rights.entity';
|
|
50
|
-
export { RolesRights, RolesRightsSchema, } from './mongo/schema/roles-rights.entity';
|
|
51
|
-
export { Roles, RolesSchema, } from './mongo/schema/roles.entity';
|
|
52
|
-
export { SpendLog, SpendLogSchema, } from './mongo/schema/spend-log.entity';
|
|
53
|
-
export { StoryPriorityLog, StoryPriorityLogSchema, } from './mongo/schema/story-priority-log.entity';
|
|
54
|
-
export { StorySeenBy, StorySeenBySchema, } from './mongo/schema/story-seen-by.entity';
|
|
55
|
-
export { SystemLog, SystemLogSchema, } from './mongo/schema/system-log.entity';
|
|
10
|
+
export * from './constants/redis-key';
|
package/dist/index.js
CHANGED
|
@@ -13,12 +13,8 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
21
|
-
exports.SystemLogSchema = exports.SystemLog = exports.StorySeenBySchema = exports.StorySeenBy = exports.StoryPriorityLogSchema = exports.StoryPriorityLog = exports.SpendLogSchema = exports.SpendLog = exports.RolesSchema = exports.Roles = exports.RolesRightsSchema = exports.RolesRights = exports.RightsSchema = exports.Rights = exports.PostsSchema = exports.Posts = exports.PostLikeSchema = void 0;
|
|
17
|
+
exports.MONGO_SCHEMAS = exports.POSTGRES_ENTITIES = void 0;
|
|
22
18
|
const index_1 = require("./postgresql/index");
|
|
23
19
|
Object.defineProperty(exports, "POSTGRES_ENTITIES", { enumerable: true, get: function () { return index_1.POSTGRES_ENTITIES; } });
|
|
24
20
|
const index_2 = require("./mongo/index");
|
|
@@ -28,115 +24,5 @@ __exportStar(require("./mongo/unit-of-work/unit-of-work.interface"), exports);
|
|
|
28
24
|
__exportStar(require("./mongo/repositories/base.repository"), exports);
|
|
29
25
|
__exportStar(require("./mongo/repositories/repository.factory"), exports);
|
|
30
26
|
__exportStar(require("./mongo/unit-of-work/unit-of-work.module"), exports);
|
|
31
|
-
|
|
32
|
-
Object.defineProperty(exports, "Banners", { enumerable: true, get: function () { return __importDefault(banners_entity_1).default; } });
|
|
33
|
-
var blocked_phone_entity_1 = require("./postgresql/entity/blocked-phone.entity");
|
|
34
|
-
Object.defineProperty(exports, "BlockedPhone", { enumerable: true, get: function () { return __importDefault(blocked_phone_entity_1).default; } });
|
|
35
|
-
var call_history_entity_1 = require("./postgresql/entity/call-history.entity");
|
|
36
|
-
Object.defineProperty(exports, "CallHistory", { enumerable: true, get: function () { return __importDefault(call_history_entity_1).default; } });
|
|
37
|
-
var call_history_detail_entity_1 = require("./postgresql/entity/call-history-detail.entity");
|
|
38
|
-
Object.defineProperty(exports, "CallHistoryDetail", { enumerable: true, get: function () { return __importDefault(call_history_detail_entity_1).default; } });
|
|
39
|
-
var coins_definition_entity_1 = require("./postgresql/entity/coins-definition.entity");
|
|
40
|
-
Object.defineProperty(exports, "CoinsDefinition", { enumerable: true, get: function () { return __importDefault(coins_definition_entity_1).default; } });
|
|
41
|
-
var feedback_and_complaint_entity_1 = require("./postgresql/entity/feedback-and-complaint.entity");
|
|
42
|
-
Object.defineProperty(exports, "FeedbackAndComplaint", { enumerable: true, get: function () { return __importDefault(feedback_and_complaint_entity_1).default; } });
|
|
43
|
-
var member_bank_account_entity_1 = require("./postgresql/entity/member-bank-account.entity");
|
|
44
|
-
Object.defineProperty(exports, "MemberBankAccount", { enumerable: true, get: function () { return __importDefault(member_bank_account_entity_1).default; } });
|
|
45
|
-
var member_blocked_entity_1 = require("./postgresql/entity/member-blocked.entity");
|
|
46
|
-
Object.defineProperty(exports, "MemberBlocked", { enumerable: true, get: function () { return __importDefault(member_blocked_entity_1).default; } });
|
|
47
|
-
var member_config_entity_1 = require("./postgresql/entity/member-config.entity");
|
|
48
|
-
Object.defineProperty(exports, "MemberConfig", { enumerable: true, get: function () { return __importDefault(member_config_entity_1).default; } });
|
|
49
|
-
var member_connections_entity_1 = require("./postgresql/entity/member-connections.entity");
|
|
50
|
-
Object.defineProperty(exports, "MemberConnections", { enumerable: true, get: function () { return __importDefault(member_connections_entity_1).default; } });
|
|
51
|
-
var member_friends_entity_1 = require("./postgresql/entity/member-friends.entity");
|
|
52
|
-
Object.defineProperty(exports, "MemberFriends", { enumerable: true, get: function () { return __importDefault(member_friends_entity_1).default; } });
|
|
53
|
-
var member_liked_entity_1 = require("./postgresql/entity/member-liked.entity");
|
|
54
|
-
Object.defineProperty(exports, "MemberLiked", { enumerable: true, get: function () { return __importDefault(member_liked_entity_1).default; } });
|
|
55
|
-
var member_mission_entity_1 = require("./postgresql/entity/member-mission.entity");
|
|
56
|
-
Object.defineProperty(exports, "MemberMission", { enumerable: true, get: function () { return __importDefault(member_mission_entity_1).default; } });
|
|
57
|
-
var member_reminder_entity_1 = require("./postgresql/entity/member-reminder.entity");
|
|
58
|
-
Object.defineProperty(exports, "MemberReminder", { enumerable: true, get: function () { return __importDefault(member_reminder_entity_1).default; } });
|
|
59
|
-
var member_verification_entity_1 = require("./postgresql/entity/member-verification.entity");
|
|
60
|
-
Object.defineProperty(exports, "MemberVerification", { enumerable: true, get: function () { return __importDefault(member_verification_entity_1).default; } });
|
|
61
|
-
var member_entity_1 = require("./postgresql/entity/member.entity");
|
|
62
|
-
Object.defineProperty(exports, "Member", { enumerable: true, get: function () { return __importDefault(member_entity_1).default; } });
|
|
63
|
-
var message_entity_1 = require("./postgresql/entity/message.entity");
|
|
64
|
-
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return __importDefault(message_entity_1).default; } });
|
|
65
|
-
var mission_entity_1 = require("./postgresql/entity/mission.entity");
|
|
66
|
-
Object.defineProperty(exports, "Mission", { enumerable: true, get: function () { return __importDefault(mission_entity_1).default; } });
|
|
67
|
-
var notification_entity_1 = require("./postgresql/entity/notification.entity");
|
|
68
|
-
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return __importDefault(notification_entity_1).default; } });
|
|
69
|
-
var payment_entity_1 = require("./postgresql/entity/payment.entity");
|
|
70
|
-
Object.defineProperty(exports, "Payment", { enumerable: true, get: function () { return __importDefault(payment_entity_1).default; } });
|
|
71
|
-
var product_purchase_entity_1 = require("./postgresql/entity/product-purchase.entity");
|
|
72
|
-
Object.defineProperty(exports, "ProductPurchase", { enumerable: true, get: function () { return __importDefault(product_purchase_entity_1).default; } });
|
|
73
|
-
var purchase_entity_1 = require("./postgresql/entity/purchase.entity");
|
|
74
|
-
Object.defineProperty(exports, "Purchase", { enumerable: true, get: function () { return __importDefault(purchase_entity_1).default; } });
|
|
75
|
-
var swipe_countries_entity_1 = require("./postgresql/entity/swipe-countries.entity");
|
|
76
|
-
Object.defineProperty(exports, "SwipeCountries", { enumerable: true, get: function () { return __importDefault(swipe_countries_entity_1).default; } });
|
|
77
|
-
var system_logs_entity_1 = require("./postgresql/entity/system-logs.entity");
|
|
78
|
-
Object.defineProperty(exports, "SystemLogs", { enumerable: true, get: function () { return __importDefault(system_logs_entity_1).default; } });
|
|
79
|
-
var system_settings_entity_1 = require("./postgresql/entity/system-settings.entity");
|
|
80
|
-
Object.defineProperty(exports, "SystemSettings", { enumerable: true, get: function () { return __importDefault(system_settings_entity_1).default; } });
|
|
81
|
-
var wallet_detail_entity_1 = require("./postgresql/entity/wallet-detail.entity");
|
|
82
|
-
Object.defineProperty(exports, "WalletDetail", { enumerable: true, get: function () { return __importDefault(wallet_detail_entity_1).default; } });
|
|
83
|
-
var wallet_entity_1 = require("./postgresql/entity/wallet.entity");
|
|
84
|
-
Object.defineProperty(exports, "Wallet", { enumerable: true, get: function () { return __importDefault(wallet_entity_1).default; } });
|
|
85
|
-
var agency_publishers_entity_1 = require("./mongo/schema/agency-publishers.entity");
|
|
86
|
-
Object.defineProperty(exports, "AgencyPublishers", { enumerable: true, get: function () { return agency_publishers_entity_1.AgencyPublishers; } });
|
|
87
|
-
Object.defineProperty(exports, "AgencyPublishersSchema", { enumerable: true, get: function () { return agency_publishers_entity_1.AgencyPublishersSchema; } });
|
|
88
|
-
var agency_entity_1 = require("./mongo/schema/agency.entity");
|
|
89
|
-
Object.defineProperty(exports, "Agency", { enumerable: true, get: function () { return agency_entity_1.Agency; } });
|
|
90
|
-
Object.defineProperty(exports, "AgencySchema", { enumerable: true, get: function () { return agency_entity_1.AgencySchema; } });
|
|
91
|
-
var contents_entity_1 = require("./mongo/schema/contents.entity");
|
|
92
|
-
Object.defineProperty(exports, "Contents", { enumerable: true, get: function () { return contents_entity_1.Contents; } });
|
|
93
|
-
Object.defineProperty(exports, "ContentsSchema", { enumerable: true, get: function () { return contents_entity_1.ContentsSchema; } });
|
|
94
|
-
var defined_texts_entity_1 = require("./mongo/schema/defined-texts.entity");
|
|
95
|
-
Object.defineProperty(exports, "DefinedTexts", { enumerable: true, get: function () { return defined_texts_entity_1.DefinedTexts; } });
|
|
96
|
-
Object.defineProperty(exports, "DefinedTextsSchema", { enumerable: true, get: function () { return defined_texts_entity_1.DefinedTextsSchema; } });
|
|
97
|
-
var highlights_entity_1 = require("./mongo/schema/highlights.entity");
|
|
98
|
-
Object.defineProperty(exports, "Highlights", { enumerable: true, get: function () { return highlights_entity_1.Highlights; } });
|
|
99
|
-
Object.defineProperty(exports, "HighlightsSchema", { enumerable: true, get: function () { return highlights_entity_1.HighlightsSchema; } });
|
|
100
|
-
var language_entity_1 = require("./mongo/schema/language.entity");
|
|
101
|
-
Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return language_entity_1.Language; } });
|
|
102
|
-
Object.defineProperty(exports, "LanguageSchema", { enumerable: true, get: function () { return language_entity_1.LanguageSchema; } });
|
|
103
|
-
var member_config_entity_2 = require("./mongo/schema/member-config.entity");
|
|
104
|
-
Object.defineProperty(exports, "MemberConfigs", { enumerable: true, get: function () { return member_config_entity_2.MemberConfigs; } });
|
|
105
|
-
Object.defineProperty(exports, "MemberConfigSchema", { enumerable: true, get: function () { return member_config_entity_2.MemberConfigSchema; } });
|
|
106
|
-
var member_roles_entity_1 = require("./mongo/schema/member-roles.entity");
|
|
107
|
-
Object.defineProperty(exports, "MemberRoles", { enumerable: true, get: function () { return member_roles_entity_1.MemberRoles; } });
|
|
108
|
-
Object.defineProperty(exports, "MemberRolesSchema", { enumerable: true, get: function () { return member_roles_entity_1.MemberRolesSchema; } });
|
|
109
|
-
var notification_entity_2 = require("./mongo/schema/notification.entity");
|
|
110
|
-
Object.defineProperty(exports, "Notifications", { enumerable: true, get: function () { return notification_entity_2.Notifications; } });
|
|
111
|
-
Object.defineProperty(exports, "NotificationSchema", { enumerable: true, get: function () { return notification_entity_2.NotificationSchema; } });
|
|
112
|
-
var post_comments_entity_1 = require("./mongo/schema/post-comments.entity");
|
|
113
|
-
Object.defineProperty(exports, "PostComments", { enumerable: true, get: function () { return post_comments_entity_1.PostComments; } });
|
|
114
|
-
Object.defineProperty(exports, "PostCommentSchema", { enumerable: true, get: function () { return post_comments_entity_1.PostCommentSchema; } });
|
|
115
|
-
var post_likes_entity_1 = require("./mongo/schema/post-likes.entity");
|
|
116
|
-
Object.defineProperty(exports, "PostLikes", { enumerable: true, get: function () { return post_likes_entity_1.PostLikes; } });
|
|
117
|
-
Object.defineProperty(exports, "PostLikeSchema", { enumerable: true, get: function () { return post_likes_entity_1.PostLikeSchema; } });
|
|
118
|
-
var posts_entity_1 = require("./mongo/schema/posts.entity");
|
|
119
|
-
Object.defineProperty(exports, "Posts", { enumerable: true, get: function () { return posts_entity_1.Posts; } });
|
|
120
|
-
Object.defineProperty(exports, "PostsSchema", { enumerable: true, get: function () { return posts_entity_1.PostsSchema; } });
|
|
121
|
-
var rights_entity_1 = require("./mongo/schema/rights.entity");
|
|
122
|
-
Object.defineProperty(exports, "Rights", { enumerable: true, get: function () { return rights_entity_1.Rights; } });
|
|
123
|
-
Object.defineProperty(exports, "RightsSchema", { enumerable: true, get: function () { return rights_entity_1.RightsSchema; } });
|
|
124
|
-
var roles_rights_entity_1 = require("./mongo/schema/roles-rights.entity");
|
|
125
|
-
Object.defineProperty(exports, "RolesRights", { enumerable: true, get: function () { return roles_rights_entity_1.RolesRights; } });
|
|
126
|
-
Object.defineProperty(exports, "RolesRightsSchema", { enumerable: true, get: function () { return roles_rights_entity_1.RolesRightsSchema; } });
|
|
127
|
-
var roles_entity_1 = require("./mongo/schema/roles.entity");
|
|
128
|
-
Object.defineProperty(exports, "Roles", { enumerable: true, get: function () { return roles_entity_1.Roles; } });
|
|
129
|
-
Object.defineProperty(exports, "RolesSchema", { enumerable: true, get: function () { return roles_entity_1.RolesSchema; } });
|
|
130
|
-
var spend_log_entity_1 = require("./mongo/schema/spend-log.entity");
|
|
131
|
-
Object.defineProperty(exports, "SpendLog", { enumerable: true, get: function () { return spend_log_entity_1.SpendLog; } });
|
|
132
|
-
Object.defineProperty(exports, "SpendLogSchema", { enumerable: true, get: function () { return spend_log_entity_1.SpendLogSchema; } });
|
|
133
|
-
var story_priority_log_entity_1 = require("./mongo/schema/story-priority-log.entity");
|
|
134
|
-
Object.defineProperty(exports, "StoryPriorityLog", { enumerable: true, get: function () { return story_priority_log_entity_1.StoryPriorityLog; } });
|
|
135
|
-
Object.defineProperty(exports, "StoryPriorityLogSchema", { enumerable: true, get: function () { return story_priority_log_entity_1.StoryPriorityLogSchema; } });
|
|
136
|
-
var story_seen_by_entity_1 = require("./mongo/schema/story-seen-by.entity");
|
|
137
|
-
Object.defineProperty(exports, "StorySeenBy", { enumerable: true, get: function () { return story_seen_by_entity_1.StorySeenBy; } });
|
|
138
|
-
Object.defineProperty(exports, "StorySeenBySchema", { enumerable: true, get: function () { return story_seen_by_entity_1.StorySeenBySchema; } });
|
|
139
|
-
var system_log_entity_1 = require("./mongo/schema/system-log.entity");
|
|
140
|
-
Object.defineProperty(exports, "SystemLog", { enumerable: true, get: function () { return system_log_entity_1.SystemLog; } });
|
|
141
|
-
Object.defineProperty(exports, "SystemLogSchema", { enumerable: true, get: function () { return system_log_entity_1.SystemLogSchema; } });
|
|
27
|
+
__exportStar(require("./constants/redis-key"), exports);
|
|
142
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8CAAuD;AAG9C,kGAHA,yBAAiB,OAGA;AAF1B,yCAA8C;AAGrC,8FAHA,qBAAa,OAGA;AAEtB,4EAA0D;AAC1D,8EAA4D;AAC5D,uEAAqD;AACrD,0EAAwD;AACxD,2EAAyD;AAEzD,wDAAsC"}
|
package/dist/mongo/index.d.ts
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
1
26
|
import { AgencyPublishers } from "./schema/agency-publishers.entity";
|
|
2
27
|
import { Contents } from "./schema/contents.entity";
|
|
3
28
|
import { DefinedTexts } from "./schema/defined-texts.entity";
|
|
4
29
|
import { Highlights } from "./schema/highlights.entity";
|
|
5
30
|
import { Language } from "./schema/language.entity";
|
|
6
|
-
import {
|
|
31
|
+
import { MemberConfig } from "./schema/member-config.entity";
|
|
7
32
|
import { MemberRoles } from "./schema/member-roles.entity";
|
|
33
|
+
import { Notification } from "./schema/notification.entity";
|
|
8
34
|
import { PostLikes } from "./schema/post-likes.entity";
|
|
9
35
|
import { Posts } from "./schema/posts.entity";
|
|
10
36
|
import { RolesRights } from "./schema/roles-rights.entity";
|
|
@@ -24,7 +50,7 @@ export declare const MONGO_SCHEMAS: ({
|
|
|
24
50
|
schema: import("mongoose").Schema<AgencyPublishers, import("mongoose").Model<AgencyPublishers, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AgencyPublishers>;
|
|
25
51
|
} | {
|
|
26
52
|
name: string;
|
|
27
|
-
schema: import("mongoose").Schema<
|
|
53
|
+
schema: import("mongoose").Schema<MemberConfig, import("mongoose").Model<MemberConfig, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MemberConfig>;
|
|
28
54
|
} | {
|
|
29
55
|
name: string;
|
|
30
56
|
schema: import("mongoose").Schema<MemberRoles, import("mongoose").Model<MemberRoles, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MemberRoles>;
|
package/dist/mongo/index.js
CHANGED
|
@@ -38,7 +38,7 @@ exports.MONGO_SCHEMAS = [
|
|
|
38
38
|
schema: agency_entity_1.AgencySchema,
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
name: member_config_entity_1.
|
|
41
|
+
name: member_config_entity_1.MemberConfig.name,
|
|
42
42
|
schema: member_config_entity_1.MemberConfigSchema,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -94,7 +94,7 @@ exports.MONGO_SCHEMAS = [
|
|
|
94
94
|
schema: language_entity_1.LanguageSchema,
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
|
-
name: notification_entity_1.
|
|
97
|
+
name: notification_entity_1.Notification.name,
|
|
98
98
|
schema: notification_entity_1.NotificationSchema,
|
|
99
99
|
}
|
|
100
100
|
];
|
package/dist/mongo/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mongo/index.ts"],"names":[],"mappings":";;;AAAA,gFAA6F;AAC7F,0DAA8D;AAC9D,8DAAoE;AACpE,wEAAiF;AACjF,kEAA0E;AAC1E,8DAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mongo/index.ts"],"names":[],"mappings":";;;AAAA,gFAA6F;AAC7F,0DAA8D;AAC9D,8DAAoE;AACpE,wEAAiF;AACjF,kEAA0E;AAC1E,8DAAoE;AACpE,wEAAiF;AACjF,sEAA8E;AAC9E,sEAAgF;AAChF,wEAAgF;AAChF,kEAAuE;AACvE,wDAA2D;AAC3D,0DAA8D;AAC9D,sEAA8E;AAC9E,wDAA2D;AAC3D,gEAAqE;AACrE,kFAA8F;AAC9F,wEAA+E;AAC/E,kEAAwE;AAE3D,QAAA,aAAa,GAAG;IAC3B;QACE,IAAI,EAAE,2BAAQ,CAAC,IAAI;QACnB,MAAM,EAAE,iCAAc;KACvB;IACD;QACE,IAAI,EAAE,6BAAS,CAAC,IAAI;QACpB,MAAM,EAAE,mCAAe;KACxB;IACD;QACE,IAAI,EAAE,2CAAgB,CAAC,I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
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
import { Document, Types } from 'mongoose';
|
|
26
|
-
export type MemberConfigDocument =
|
|
27
|
-
export declare class
|
|
26
|
+
export type MemberConfigDocument = MemberConfig & Document;
|
|
27
|
+
export declare class MemberConfig {
|
|
28
28
|
member_id: Types.ObjectId;
|
|
29
29
|
background_call: boolean;
|
|
30
30
|
device_type: string;
|
|
@@ -39,4 +39,4 @@ export declare class MemberConfigs {
|
|
|
39
39
|
firebase_token: string;
|
|
40
40
|
apns_token: string;
|
|
41
41
|
}
|
|
42
|
-
export declare const MemberConfigSchema: import("mongoose").Schema<
|
|
42
|
+
export declare const MemberConfigSchema: import("mongoose").Schema<MemberConfig, import("mongoose").Model<MemberConfig, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MemberConfig>;
|
|
@@ -9,69 +9,69 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MemberConfigSchema = exports.
|
|
12
|
+
exports.MemberConfigSchema = exports.MemberConfig = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
|
-
let
|
|
15
|
+
let MemberConfig = class MemberConfig {
|
|
16
16
|
};
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, mongoose_1.Prop)({ type: mongoose_2.Types.ObjectId, ref: 'Member', required: true, unique: true }),
|
|
19
19
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
20
|
-
],
|
|
20
|
+
], MemberConfig.prototype, "member_id", void 0);
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, mongoose_1.Prop)({ required: true }),
|
|
23
23
|
__metadata("design:type", Boolean)
|
|
24
|
-
],
|
|
24
|
+
], MemberConfig.prototype, "background_call", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, mongoose_1.Prop)({ required: true }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], MemberConfig.prototype, "device_type", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, mongoose_1.Prop)({ required: true }),
|
|
31
31
|
__metadata("design:type", Boolean)
|
|
32
|
-
],
|
|
32
|
+
], MemberConfig.prototype, "new_message_noti", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, mongoose_1.Prop)({ required: true }),
|
|
35
35
|
__metadata("design:type", Boolean)
|
|
36
|
-
],
|
|
36
|
+
], MemberConfig.prototype, "liked_noti", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, mongoose_1.Prop)({ required: true }),
|
|
39
39
|
__metadata("design:type", Boolean)
|
|
40
|
-
],
|
|
40
|
+
], MemberConfig.prototype, "online_reminder", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, mongoose_1.Prop)({ required: true }),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
|
-
],
|
|
44
|
+
], MemberConfig.prototype, "unique_id", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, mongoose_1.Prop)({ required: true }),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
|
-
],
|
|
48
|
+
], MemberConfig.prototype, "device_info", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, mongoose_1.Prop)({ default: "" }),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
|
-
],
|
|
52
|
+
], MemberConfig.prototype, "version", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, mongoose_1.Prop)({ required: true }),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
|
-
],
|
|
56
|
+
], MemberConfig.prototype, "jwt_token", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, mongoose_1.Prop)({ required: true }),
|
|
59
59
|
__metadata("design:type", String)
|
|
60
|
-
],
|
|
60
|
+
], MemberConfig.prototype, "language", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, mongoose_1.Prop)({ required: true }),
|
|
63
63
|
__metadata("design:type", String)
|
|
64
|
-
],
|
|
64
|
+
], MemberConfig.prototype, "firebase_token", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, mongoose_1.Prop)({ required: true }),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
69
|
-
|
|
68
|
+
], MemberConfig.prototype, "apns_token", void 0);
|
|
69
|
+
MemberConfig = __decorate([
|
|
70
70
|
(0, mongoose_1.Schema)({
|
|
71
71
|
timestamps: true,
|
|
72
72
|
collection: 'MemberConfig'
|
|
73
73
|
})
|
|
74
|
-
],
|
|
75
|
-
exports.
|
|
76
|
-
exports.MemberConfigSchema = mongoose_1.SchemaFactory.createForClass(
|
|
74
|
+
], MemberConfig);
|
|
75
|
+
exports.MemberConfig = MemberConfig;
|
|
76
|
+
exports.MemberConfigSchema = mongoose_1.SchemaFactory.createForClass(MemberConfig);
|
|
77
77
|
//# sourceMappingURL=member-config.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member-config.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/member-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAA2C;AAQpC,IAAM,
|
|
1
|
+
{"version":3,"file":"member-config.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/member-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAA2C;AAQpC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAuCxB,CAAA;AAtCG;IAAC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,gBAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,I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|
|
|
26
26
|
import { EnumDeliveryStatus, EnumNotificationTimeType, EnumRoutine, EnumStatus } from '../../models/enum/index';
|
|
27
27
|
import { Contents } from './contents.entity';
|
|
28
28
|
import { FilterDto } from './filter.dto';
|
|
29
|
-
export type NotificationDocument =
|
|
30
|
-
export declare class
|
|
29
|
+
export type NotificationDocument = Notification & Document;
|
|
30
|
+
export declare class Notification {
|
|
31
31
|
type: EnumNotificationTimeType;
|
|
32
32
|
filter: FilterDto[];
|
|
33
33
|
routine: EnumRoutine;
|
|
@@ -9,65 +9,65 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.NotificationSchema = exports.
|
|
12
|
+
exports.NotificationSchema = exports.Notification = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const index_1 = require("../../models/enum/index");
|
|
15
|
-
let
|
|
15
|
+
let Notification = class Notification {
|
|
16
16
|
};
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, mongoose_1.Prop)({ required: true }),
|
|
19
19
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
20
|
+
], Notification.prototype, "type", void 0);
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, mongoose_1.Prop)(),
|
|
23
23
|
__metadata("design:type", Array)
|
|
24
|
-
],
|
|
24
|
+
], Notification.prototype, "filter", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, mongoose_1.Prop)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], Notification.prototype, "routine", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, mongoose_1.Prop)({ required: true }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], Notification.prototype, "status", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, mongoose_1.Prop)({ required: true }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
36
|
+
], Notification.prototype, "delivery_status", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, mongoose_1.Prop)(),
|
|
39
39
|
__metadata("design:type", Number)
|
|
40
|
-
],
|
|
40
|
+
], Notification.prototype, "successCount", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, mongoose_1.Prop)({ required: true }),
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
|
-
],
|
|
44
|
+
], Notification.prototype, "failedCount", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, mongoose_1.Prop)(),
|
|
47
47
|
__metadata("design:type", Array)
|
|
48
|
-
],
|
|
48
|
+
], Notification.prototype, "contents", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, mongoose_1.Prop)(),
|
|
51
51
|
__metadata("design:type", Number)
|
|
52
|
-
],
|
|
52
|
+
], Notification.prototype, "hour", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, mongoose_1.Prop)(),
|
|
55
55
|
__metadata("design:type", Number)
|
|
56
|
-
],
|
|
56
|
+
], Notification.prototype, "minute", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, mongoose_1.Prop)(),
|
|
59
59
|
__metadata("design:type", Date)
|
|
60
|
-
],
|
|
60
|
+
], Notification.prototype, "createdAt", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, mongoose_1.Prop)(),
|
|
63
63
|
__metadata("design:type", Date)
|
|
64
|
-
],
|
|
65
|
-
|
|
64
|
+
], Notification.prototype, "updatedAt", void 0);
|
|
65
|
+
Notification = __decorate([
|
|
66
66
|
(0, mongoose_1.Schema)({
|
|
67
67
|
timestamps: true,
|
|
68
68
|
collection: 'Notification'
|
|
69
69
|
})
|
|
70
|
-
],
|
|
71
|
-
exports.
|
|
70
|
+
], Notification);
|
|
71
|
+
exports.Notification = Notification;
|
|
72
72
|
exports.NotificationSchema = mongoose_1.SchemaFactory.createForClass(Notification);
|
|
73
73
|
//# sourceMappingURL=notification.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,mDAAgH;AASzG,IAAM,
|
|
1
|
+
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/mongo/schema/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAE/D,mDAAgH;AASzG,IAAM,YAAY,GAAlB,MAAM,YAAY;CAqCxB,CAAA;AAnCG;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACM;AAE/B;IAAC,IAAA,eAAI,GAAE;;4CACa;AAEpB;IAAC,IAAA,eAAI,GAAE;;6CACc;AAErB;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACN;AAEnB;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACW;AAEpC;IAAC,IAAA,eAAI,GAAE;;kDACe;AAEtB;IAAC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAErB;IAAC,IAAA,eAAI,GAAE;;8CACc;AAErB;IAAC,IAAA,eAAI,GAAE;;0CACM;AAEb;IAAC,IAAA,eAAI,GAAE;;4CACQ;AAEf;IAAC,IAAA,eAAI,GAAE;8BACK,IAAI;+CAAC;AAEjB;IAAC,IAAA,eAAI,GAAE;8BACK,IAAI;+CAAC;AApCR,YAAY;IAJxB,IAAA,iBAAM,EAAC;QACJ,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,cAAc;KAC7B,CAAC;GACW,YAAY,CAqCxB;AArCY,oCAAY;AAuCZ,QAAA,kBAAkB,GAAG,wBAAa,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -16,7 +16,6 @@ import MemberVerification from "./entity/member-verification.entity";
|
|
|
16
16
|
import Member from "./entity/member.entity";
|
|
17
17
|
import Message from "./entity/message.entity";
|
|
18
18
|
import Mission from "./entity/mission.entity";
|
|
19
|
-
import Notification from "./entity/notification.entity";
|
|
20
19
|
import Payment from "./entity/payment.entity";
|
|
21
20
|
import ProductPurchase from "./entity/product-purchase.entity";
|
|
22
21
|
import Purchase from "./entity/purchase.entity";
|
|
@@ -25,4 +24,4 @@ import SystemLogs from "./entity/system-logs.entity";
|
|
|
25
24
|
import SystemSettings from "./entity/system-settings.entity";
|
|
26
25
|
import WalletDetail from "./entity/wallet-detail.entity";
|
|
27
26
|
import Wallet from "./entity/wallet.entity";
|
|
28
|
-
export declare const POSTGRES_ENTITIES: (typeof Banners | typeof BlockedPhone | typeof
|
|
27
|
+
export declare const POSTGRES_ENTITIES: (typeof Banners | typeof BlockedPhone | typeof CallHistory | typeof CallHistoryDetail | typeof CoinsDefinition | typeof FeedbackAndComplaint | typeof MemberBankAccount | typeof MemberBlocked | typeof MemberConfig | typeof MemberConnections | typeof MemberFriends | typeof MemberLiked | typeof MemberMission | typeof MemberReminder | typeof MemberVerification | typeof Member | typeof Message | typeof Mission | typeof Payment | typeof ProductPurchase | typeof Purchase | typeof SwipeCountries | typeof SystemLogs | typeof SystemSettings | typeof WalletDetail | typeof Wallet)[];
|
package/dist/postgresql/index.js
CHANGED
|
@@ -22,7 +22,6 @@ const member_verification_entity_1 = __importDefault(require("./entity/member-ve
|
|
|
22
22
|
const member_entity_1 = __importDefault(require("./entity/member.entity"));
|
|
23
23
|
const message_entity_1 = __importDefault(require("./entity/message.entity"));
|
|
24
24
|
const mission_entity_1 = __importDefault(require("./entity/mission.entity"));
|
|
25
|
-
const notification_entity_1 = __importDefault(require("./entity/notification.entity"));
|
|
26
25
|
const payment_entity_1 = __importDefault(require("./entity/payment.entity"));
|
|
27
26
|
const product_purchase_entity_1 = __importDefault(require("./entity/product-purchase.entity"));
|
|
28
27
|
const purchase_entity_1 = __importDefault(require("./entity/purchase.entity"));
|
|
@@ -50,7 +49,6 @@ exports.POSTGRES_ENTITIES = [
|
|
|
50
49
|
member_entity_1.default,
|
|
51
50
|
message_entity_1.default,
|
|
52
51
|
mission_entity_1.default,
|
|
53
|
-
notification_entity_1.default,
|
|
54
52
|
payment_entity_1.default,
|
|
55
53
|
product_purchase_entity_1.default,
|
|
56
54
|
purchase_entity_1.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/postgresql/index.ts"],"names":[],"mappings":";;;;;;AAAA,6EAA8C;AAC9C,yFAAyD;AACzD,qGAAoE;AACpE,uFAAuD;AACvD,+FAA+D;AAC/D,2GAA0E;AAC1E,qGAAoE;AACpE,2FAA2D;AAC3D,yFAAyD;AACzD,mGAAmE;AACnE,2FAA2D;AAC3D,uFAAuD;AACvD,2FAA2D;AAC3D,6FAA6D;AAC7D,qGAAqE;AACrE,2EAA4C;AAC5C,6EAA8C;AAC9C,6EAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/postgresql/index.ts"],"names":[],"mappings":";;;;;;AAAA,6EAA8C;AAC9C,yFAAyD;AACzD,qGAAoE;AACpE,uFAAuD;AACvD,+FAA+D;AAC/D,2GAA0E;AAC1E,qGAAoE;AACpE,2FAA2D;AAC3D,yFAAyD;AACzD,mGAAmE;AACnE,2FAA2D;AAC3D,uFAAuD;AACvD,2FAA2D;AAC3D,6FAA6D;AAC7D,qGAAqE;AACrE,2EAA4C;AAC5C,6EAA8C;AAC9C,6EAA8C;AAC9C,6EAA8C;AAC9C,+FAA+D;AAC/D,+EAAgD;AAChD,6FAA6D;AAC7D,qFAAqD;AACrD,6FAA6D;AAC7D,yFAAyD;AACzD,2EAA4C;AAE/B,QAAA,iBAAiB,GAAG;IAC/B,wBAAO;IACP,8BAAY;IACZ,6BAAW;IACX,oCAAiB;IACjB,iCAAe;IACf,uCAAoB;IACpB,oCAAiB;IACjB,+BAAa;IACb,8BAAY;IACZ,mCAAiB;IACjB,+BAAa;IACb,6BAAW;IACX,+BAAa;IACb,gCAAc;IACd,oCAAkB;IAClB,uBAAM;IACN,wBAAO;IACP,wBAAO;IACP,wBAAO;IACP,iCAAe;IACf,yBAAQ;IACR,gCAAc;IACd,4BAAU;IACV,gCAAc;IACd,8BAAY;IACZ,uBAAM;CACP,CAAC"}
|