@kipicore/dbcore 1.1.441 → 1.1.443

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.
@@ -1,11 +1,14 @@
1
1
  import { Document } from 'mongoose';
2
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[];
10
13
  appType: APP_TYPE[];
11
14
  type: COMMUNITY_TYPE;
@@ -13,4 +16,5 @@ export interface ICommunityGroupModelAttributes extends IDefaultAttributes, Docu
13
16
  bannerId?: string;
14
17
  imgDeletedDays: number;
15
18
  joinMemberAuto: boolean;
19
+ maxFileSize: number;
16
20
  }
@@ -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,9 @@ const communityGroupSchema = new mongoose_1.Schema({
59
60
  imgDeletedDays: {
60
61
  type: Number,
61
62
  },
63
+ maxFileSize: {
64
+ type: Number,
65
+ },
62
66
  joinMemberAuto: {
63
67
  type: Boolean,
64
68
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.441",
3
+ "version": "1.1.443",
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",