@kipicore/dbcore 1.1.440 → 1.1.442

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.
@@ -823,7 +823,8 @@ export declare enum SOCKET_EVENTS {
823
823
  COMMUNITY_GROUP_JOIN = "COMMUNITY_GROUP_JOIN",
824
824
  COMMUNITY_LEAVE_GROUP = "COMMUNITY_LEAVE_GROUP",
825
825
  COMMUNITY_UNREAD_UPDATE = "COMMUNITY_UNREAD_UPDATE",
826
- COMMUNITY_SEND_MESSAGE = "COMMUNITY_SEND_MESSAGE"
826
+ COMMUNITY_SEND_MESSAGE = "COMMUNITY_SEND_MESSAGE",
827
+ COMMUNITY_NEW_MESSAGE = "COMMUNITY_NEW_MESSAGE"
827
828
  }
828
829
  export declare enum HOME_WORK_STATUS {
829
830
  COMPLETED = "COMPLETED",
@@ -1041,6 +1041,7 @@ var SOCKET_EVENTS;
1041
1041
  SOCKET_EVENTS["COMMUNITY_LEAVE_GROUP"] = "COMMUNITY_LEAVE_GROUP";
1042
1042
  SOCKET_EVENTS["COMMUNITY_UNREAD_UPDATE"] = "COMMUNITY_UNREAD_UPDATE";
1043
1043
  SOCKET_EVENTS["COMMUNITY_SEND_MESSAGE"] = "COMMUNITY_SEND_MESSAGE";
1044
+ SOCKET_EVENTS["COMMUNITY_NEW_MESSAGE"] = "COMMUNITY_NEW_MESSAGE";
1044
1045
  })(SOCKET_EVENTS || (exports.SOCKET_EVENTS = SOCKET_EVENTS = {}));
1045
1046
  var HOME_WORK_STATUS;
1046
1047
  (function (HOME_WORK_STATUS) {
@@ -1,14 +1,19 @@
1
1
  import { Document } from 'mongoose';
2
- import { COMMUNITY_TYPE, USER_TYPES } from '../constants/app';
2
+ import { APP_TYPE, COMMUNITY_TYPE, USER_TYPES } from '../constants/app';
3
3
  import { IDefaultAttributes } from './commonInterface';
4
+ export interface entitiesList {
5
+ entityId: string[];
6
+ }
4
7
  export interface ICommunityGroupModelAttributes extends IDefaultAttributes, Document {
5
8
  id: string;
6
9
  name: string;
7
10
  description?: string;
8
- entityIds: string[];
11
+ entityIds: entitiesList[];
9
12
  userTypes: USER_TYPES[];
13
+ appType: APP_TYPE[];
10
14
  type: COMMUNITY_TYPE;
11
15
  iconId: string;
12
- bannerId: string;
16
+ bannerId?: string;
13
17
  imgDeletedDays: number;
18
+ joinMemberAuto: boolean;
14
19
  }
@@ -7,5 +7,5 @@ export interface ICommunityMessageAttributes extends IDefaultAttributes, Documen
7
7
  text: string;
8
8
  sendTime: Date;
9
9
  mediaUrl?: string;
10
- fileId: string;
10
+ fileId?: string;
11
11
  }
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const mongoose_1 = __importStar(require("mongoose"));
37
+ const entitiesListSchema = new mongoose_1.Schema({ entityId: { type: [String] } });
37
38
  const communityGroupSchema = new mongoose_1.Schema({
38
39
  name: {
39
40
  type: String,
@@ -48,7 +49,7 @@ const communityGroupSchema = new mongoose_1.Schema({
48
49
  type: [String],
49
50
  },
50
51
  entityIds: {
51
- type: [String],
52
+ type: [entitiesListSchema],
52
53
  },
53
54
  iconId: {
54
55
  type: String,
@@ -59,6 +60,12 @@ const communityGroupSchema = new mongoose_1.Schema({
59
60
  imgDeletedDays: {
60
61
  type: Number,
61
62
  },
63
+ joinMemberAuto: {
64
+ type: Boolean,
65
+ },
66
+ appType: {
67
+ type: [String],
68
+ },
62
69
  createdBy: {
63
70
  type: String,
64
71
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.440",
3
+ "version": "1.1.442",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",