@lukiteam/luki-be-general 0.1.3 → 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.
@@ -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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B,EAAE,CAAC,MAAc,EAAE,KAAa,EAAE,IAAY,EAAE,EAAE,CAAC,wBAAwB,MAAM,IAAI,KAAK,IAAI,IAAI,EAAE;IAExH,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,3 +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 * from './constants/redis-key';
package/dist/index.js CHANGED
@@ -24,4 +24,5 @@ __exportStar(require("./mongo/unit-of-work/unit-of-work.interface"), exports);
24
24
  __exportStar(require("./mongo/repositories/base.repository"), exports);
25
25
  __exportStar(require("./mongo/repositories/repository.factory"), exports);
26
26
  __exportStar(require("./mongo/unit-of-work/unit-of-work.module"), exports);
27
+ __exportStar(require("./constants/redis-key"), exports);
27
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":";;;;;;;;;;;;;;;;;AAAA,8CAAuD;AAG9C,kGAHA,yBAAiB,OAGA;AAF1B,yCAA8C;AAGrC,8FAHA,qBAAa,OAGA;AAEtB,4EAA0D;AAC1D,8EAA4D;AAC5D,uEAAqD;AACrD,0EAAwD;AACxD,2EAAyD"}
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"}
@@ -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 CallHistoryDetail | typeof MemberConfig | typeof Wallet | typeof MemberLiked | typeof Member | typeof MemberBlocked | typeof MemberBankAccount | typeof Purchase | typeof MemberConnections | typeof CallHistory | typeof CoinsDefinition | typeof FeedbackAndComplaint | typeof MemberFriends | typeof MemberMission | typeof MemberReminder | typeof MemberVerification | typeof Message | typeof Mission | typeof Notification | typeof Payment | typeof ProductPurchase | typeof SwipeCountries | typeof SystemLogs | typeof SystemSettings | typeof WalletDetail)[];
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)[];
@@ -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,uFAAwD;AACxD,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,6BAAY;IACZ,wBAAO;IACP,iCAAe;IACf,yBAAQ;IACR,gCAAc;IACd,4BAAU;IACV,gCAAc;IACd,8BAAY;IACZ,uBAAM;CACP,CAAC"}
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"}