@kipicore/dbcore 1.1.54 → 1.1.55

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.
@@ -2,13 +2,23 @@ import { Document } from 'mongoose';
2
2
  import { USER_TYPES, COMMAN_STATUS } from '../constants/app';
3
3
  import { IDefaultAttributes } from './commonInterface';
4
4
  export interface IModuleList {
5
- sequenceNumber: number;
5
+ mobileSequenceNumber: number;
6
+ webSequenceNumber: number;
6
7
  moduleName: string;
7
8
  webConfig: string;
8
9
  mobileConfig: string;
9
10
  webStatus: COMMAN_STATUS;
10
11
  mobileStatus: COMMAN_STATUS;
11
12
  }
13
+ export interface IQuickLinkList {
14
+ mobileSequenceNumber: number;
15
+ webSequenceNumber: number;
16
+ moduleName: string;
17
+ webRoute: string;
18
+ mobileRoute: string;
19
+ webStatus: COMMAN_STATUS;
20
+ mobileStatus: COMMAN_STATUS;
21
+ }
12
22
  export interface IDashboardManagementAttributes extends IDefaultAttributes, Document {
13
23
  id: string;
14
24
  isDefault: boolean;
@@ -16,4 +26,5 @@ export interface IDashboardManagementAttributes extends IDefaultAttributes, Docu
16
26
  instituteId: string;
17
27
  userType: USER_TYPES;
18
28
  moduleList: IModuleList[];
29
+ quickLinkList: IModuleList[];
19
30
  }
@@ -36,9 +36,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const mongoose_1 = __importStar(require("mongoose"));
37
37
  const app_1 = require("../../constants/app");
38
38
  const DashboardManagementSchema = new mongoose_1.Schema({
39
- sequenceNumber: {
39
+ mobileSequenceNumber: {
40
40
  type: Number,
41
- required: true,
41
+ required: false,
42
+ },
43
+ webSequenceNumber: {
44
+ type: Number,
45
+ required: false,
42
46
  },
43
47
  moduleName: {
44
48
  type: String,
@@ -46,11 +50,45 @@ const DashboardManagementSchema = new mongoose_1.Schema({
46
50
  },
47
51
  webConfig: {
48
52
  type: String,
49
- required: true,
53
+ required: false,
50
54
  },
51
55
  mobileConfig: {
52
56
  type: String,
53
- required: true,
57
+ required: false,
58
+ },
59
+ webStatus: {
60
+ type: String,
61
+ enum: Object.values(app_1.COMMAN_STATUS),
62
+ default: app_1.COMMAN_STATUS.ACTIVE,
63
+ required: false,
64
+ },
65
+ mobileStatus: {
66
+ type: String,
67
+ enum: Object.values(app_1.COMMAN_STATUS),
68
+ default: app_1.COMMAN_STATUS.ACTIVE,
69
+ required: false,
70
+ },
71
+ }, { _id: false });
72
+ const quickLinkListSchema = new mongoose_1.Schema({
73
+ mobileSequenceNumber: {
74
+ type: Number,
75
+ required: false,
76
+ },
77
+ webSequenceNumber: {
78
+ type: Number,
79
+ required: false,
80
+ },
81
+ moduleName: {
82
+ type: String,
83
+ required: false,
84
+ },
85
+ webRoute: {
86
+ type: String,
87
+ required: false,
88
+ },
89
+ mobileRoute: {
90
+ type: String,
91
+ required: false,
54
92
  },
55
93
  webStatus: {
56
94
  type: String,
@@ -85,7 +123,11 @@ const DashboardManagementModelSchema = new mongoose_1.Schema({
85
123
  },
86
124
  moduleList: {
87
125
  type: [DashboardManagementSchema],
88
- required: true,
126
+ required: false,
127
+ },
128
+ quickLinkList: {
129
+ type: [quickLinkListSchema],
130
+ required: false,
89
131
  },
90
132
  createdBy: {
91
133
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
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",