@kipicore/dbcore 1.1.83 → 1.1.85

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,22 +2,16 @@ 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
- mobileSequenceNumber: number;
6
- webSequenceNumber: number;
5
+ sequenceNumber: number;
7
6
  moduleName: string;
8
- webConfig: string;
9
- mobileConfig: string;
10
- webStatus: COMMAN_STATUS;
11
- mobileStatus: COMMAN_STATUS;
7
+ config: string;
8
+ status: COMMAN_STATUS;
12
9
  }
13
10
  export interface IQuickLinkList {
14
- mobileSequenceNumber: number;
15
- webSequenceNumber: number;
11
+ sequenceNumber: number;
16
12
  moduleName: string;
17
- webRoute: string;
18
- mobileRoute: string;
19
- webStatus: COMMAN_STATUS;
20
- mobileStatus: COMMAN_STATUS;
13
+ route: string;
14
+ status: COMMAN_STATUS;
21
15
  }
22
16
  export interface IDashboardManagementAttributes extends IDefaultAttributes, Document {
23
17
  id: string;
@@ -26,5 +20,7 @@ export interface IDashboardManagementAttributes extends IDefaultAttributes, Docu
26
20
  instituteId: string;
27
21
  userType: USER_TYPES;
28
22
  moduleList: IModuleList[];
29
- quickLinkList: IModuleList[];
23
+ mobileModuleList: IModuleList[];
24
+ webQuickLinkList: IQuickLinkList[];
25
+ mobileQuickLinkList: IQuickLinkList[];
30
26
  }
@@ -36,11 +36,7 @@ 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
- mobileSequenceNumber: {
40
- type: Number,
41
- required: false,
42
- },
43
- webSequenceNumber: {
39
+ sequenceNumber: {
44
40
  type: Number,
45
41
  required: false,
46
42
  },
@@ -48,21 +44,11 @@ const DashboardManagementSchema = new mongoose_1.Schema({
48
44
  type: String,
49
45
  required: false,
50
46
  },
51
- webConfig: {
47
+ config: {
52
48
  type: String,
53
49
  required: false,
54
50
  },
55
- mobileConfig: {
56
- type: String,
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: {
51
+ status: {
66
52
  type: String,
67
53
  enum: Object.values(app_1.COMMAN_STATUS),
68
54
  default: app_1.COMMAN_STATUS.ACTIVE,
@@ -70,11 +56,7 @@ const DashboardManagementSchema = new mongoose_1.Schema({
70
56
  },
71
57
  }, { _id: false });
72
58
  const quickLinkListSchema = new mongoose_1.Schema({
73
- mobileSequenceNumber: {
74
- type: Number,
75
- required: false,
76
- },
77
- webSequenceNumber: {
59
+ sequenceNumber: {
78
60
  type: Number,
79
61
  required: false,
80
62
  },
@@ -82,21 +64,11 @@ const quickLinkListSchema = new mongoose_1.Schema({
82
64
  type: String,
83
65
  required: false,
84
66
  },
85
- webRoute: {
86
- type: String,
87
- required: false,
88
- },
89
- mobileRoute: {
90
- type: String,
91
- required: false,
92
- },
93
- webStatus: {
67
+ route: {
94
68
  type: String,
95
- enum: Object.values(app_1.COMMAN_STATUS),
96
- default: app_1.COMMAN_STATUS.ACTIVE,
97
69
  required: false,
98
70
  },
99
- mobileStatus: {
71
+ status: {
100
72
  type: String,
101
73
  enum: Object.values(app_1.COMMAN_STATUS),
102
74
  default: app_1.COMMAN_STATUS.ACTIVE,
@@ -121,11 +93,15 @@ const DashboardManagementModelSchema = new mongoose_1.Schema({
121
93
  enum: Object.values(app_1.USER_TYPES),
122
94
  required: false,
123
95
  },
124
- moduleList: {
96
+ webQuickLinkList: {
97
+ type: [quickLinkListSchema],
98
+ required: false,
99
+ },
100
+ mobileModuleList: {
125
101
  type: [DashboardManagementSchema],
126
102
  required: false,
127
103
  },
128
- quickLinkList: {
104
+ mobileQuickLinkList: {
129
105
  type: [quickLinkListSchema],
130
106
  required: false,
131
107
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.83",
3
+ "version": "1.1.85",
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",