@kipicore/dbcore 1.1.83 → 1.1.84
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,22 +1,28 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
2
|
import { USER_TYPES, COMMAN_STATUS } from '../constants/app';
|
|
3
3
|
import { IDefaultAttributes } from './commonInterface';
|
|
4
|
-
export interface
|
|
5
|
-
mobileSequenceNumber: number;
|
|
4
|
+
export interface IWebModuleList {
|
|
6
5
|
webSequenceNumber: number;
|
|
7
6
|
moduleName: string;
|
|
8
7
|
webConfig: string;
|
|
9
|
-
mobileConfig: string;
|
|
10
8
|
webStatus: COMMAN_STATUS;
|
|
11
|
-
mobileStatus: COMMAN_STATUS;
|
|
12
9
|
}
|
|
13
|
-
export interface
|
|
10
|
+
export interface IMobileModuleList {
|
|
14
11
|
mobileSequenceNumber: number;
|
|
12
|
+
moduleName: string;
|
|
13
|
+
mobileConfig: string;
|
|
14
|
+
mobileStatus: COMMAN_STATUS;
|
|
15
|
+
}
|
|
16
|
+
export interface IWebQuickLinkList {
|
|
15
17
|
webSequenceNumber: number;
|
|
16
18
|
moduleName: string;
|
|
17
19
|
webRoute: string;
|
|
18
|
-
mobileRoute: string;
|
|
19
20
|
webStatus: COMMAN_STATUS;
|
|
21
|
+
}
|
|
22
|
+
export interface IMobileQuickLinkList {
|
|
23
|
+
mobileSequenceNumber: number;
|
|
24
|
+
moduleName: string;
|
|
25
|
+
mobileRoute: string;
|
|
20
26
|
mobileStatus: COMMAN_STATUS;
|
|
21
27
|
}
|
|
22
28
|
export interface IDashboardManagementAttributes extends IDefaultAttributes, Document {
|
|
@@ -25,6 +31,8 @@ export interface IDashboardManagementAttributes extends IDefaultAttributes, Docu
|
|
|
25
31
|
userId: string;
|
|
26
32
|
instituteId: string;
|
|
27
33
|
userType: USER_TYPES;
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
webModuleList: IWebModuleList[];
|
|
35
|
+
mobileModuleList: IMobileModuleList[];
|
|
36
|
+
webQuickLinkList: IWebQuickLinkList[];
|
|
37
|
+
mobileQuickLinkList: IMobileQuickLinkList[];
|
|
30
38
|
}
|
|
@@ -35,11 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
37
|
const app_1 = require("../../constants/app");
|
|
38
|
-
const
|
|
39
|
-
mobileSequenceNumber: {
|
|
40
|
-
type: Number,
|
|
41
|
-
required: false,
|
|
42
|
-
},
|
|
38
|
+
const webModuleSchema = new mongoose_1.Schema({
|
|
43
39
|
webSequenceNumber: {
|
|
44
40
|
type: Number,
|
|
45
41
|
required: false,
|
|
@@ -52,16 +48,26 @@ const DashboardManagementSchema = new mongoose_1.Schema({
|
|
|
52
48
|
type: String,
|
|
53
49
|
required: false,
|
|
54
50
|
},
|
|
55
|
-
mobileConfig: {
|
|
56
|
-
type: String,
|
|
57
|
-
required: false,
|
|
58
|
-
},
|
|
59
51
|
webStatus: {
|
|
60
52
|
type: String,
|
|
61
53
|
enum: Object.values(app_1.COMMAN_STATUS),
|
|
62
54
|
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
63
55
|
required: false,
|
|
64
56
|
},
|
|
57
|
+
}, { _id: false });
|
|
58
|
+
const mobileModuleSchema = new mongoose_1.Schema({
|
|
59
|
+
mobileSequenceNumber: {
|
|
60
|
+
type: Number,
|
|
61
|
+
required: false,
|
|
62
|
+
},
|
|
63
|
+
moduleName: {
|
|
64
|
+
type: String,
|
|
65
|
+
required: false,
|
|
66
|
+
},
|
|
67
|
+
mobileConfig: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false,
|
|
70
|
+
},
|
|
65
71
|
mobileStatus: {
|
|
66
72
|
type: String,
|
|
67
73
|
enum: Object.values(app_1.COMMAN_STATUS),
|
|
@@ -69,11 +75,7 @@ const DashboardManagementSchema = new mongoose_1.Schema({
|
|
|
69
75
|
required: false,
|
|
70
76
|
},
|
|
71
77
|
}, { _id: false });
|
|
72
|
-
const
|
|
73
|
-
mobileSequenceNumber: {
|
|
74
|
-
type: Number,
|
|
75
|
-
required: false,
|
|
76
|
-
},
|
|
78
|
+
const webQuickLinkListSchema = new mongoose_1.Schema({
|
|
77
79
|
webSequenceNumber: {
|
|
78
80
|
type: Number,
|
|
79
81
|
required: false,
|
|
@@ -86,16 +88,26 @@ const quickLinkListSchema = new mongoose_1.Schema({
|
|
|
86
88
|
type: String,
|
|
87
89
|
required: false,
|
|
88
90
|
},
|
|
89
|
-
mobileRoute: {
|
|
90
|
-
type: String,
|
|
91
|
-
required: false,
|
|
92
|
-
},
|
|
93
91
|
webStatus: {
|
|
94
92
|
type: String,
|
|
95
93
|
enum: Object.values(app_1.COMMAN_STATUS),
|
|
96
94
|
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
97
95
|
required: false,
|
|
98
96
|
},
|
|
97
|
+
}, { _id: false });
|
|
98
|
+
const mobileQuickLinkListSchema = new mongoose_1.Schema({
|
|
99
|
+
mobileSequenceNumber: {
|
|
100
|
+
type: Number,
|
|
101
|
+
required: false,
|
|
102
|
+
},
|
|
103
|
+
moduleName: {
|
|
104
|
+
type: String,
|
|
105
|
+
required: false,
|
|
106
|
+
},
|
|
107
|
+
mobileRoute: {
|
|
108
|
+
type: String,
|
|
109
|
+
required: false,
|
|
110
|
+
},
|
|
99
111
|
mobileStatus: {
|
|
100
112
|
type: String,
|
|
101
113
|
enum: Object.values(app_1.COMMAN_STATUS),
|
|
@@ -121,12 +133,20 @@ const DashboardManagementModelSchema = new mongoose_1.Schema({
|
|
|
121
133
|
enum: Object.values(app_1.USER_TYPES),
|
|
122
134
|
required: false,
|
|
123
135
|
},
|
|
124
|
-
|
|
125
|
-
type: [
|
|
136
|
+
webModuleList: {
|
|
137
|
+
type: [webModuleSchema],
|
|
138
|
+
required: false,
|
|
139
|
+
},
|
|
140
|
+
webQuickLinkList: {
|
|
141
|
+
type: [webQuickLinkListSchema],
|
|
142
|
+
required: false,
|
|
143
|
+
},
|
|
144
|
+
mobileModuleList: {
|
|
145
|
+
type: [mobileModuleSchema],
|
|
126
146
|
required: false,
|
|
127
147
|
},
|
|
128
|
-
|
|
129
|
-
type: [
|
|
148
|
+
mobileQuickLinkList: {
|
|
149
|
+
type: [mobileQuickLinkListSchema],
|
|
130
150
|
required: false,
|
|
131
151
|
},
|
|
132
152
|
createdBy: {
|
package/package.json
CHANGED