@kipicore/dbcore 1.1.82 → 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.
- package/dist/constants/errorMessages.d.ts +2 -2
- package/dist/constants/errorMessages.js +1 -1
- package/dist/constants/successMessages.d.ts +2 -3
- package/dist/constants/successMessages.js +2 -3
- package/dist/interfaces/dashboardManagementInterface.d.ts +16 -8
- package/dist/models/mongodb/dashboardManagementModel.js +42 -22
- package/package.json +1 -1
|
@@ -1104,11 +1104,11 @@ export declare enum ADDITIONAL_DETAIL_ERROR_MESSAGES {
|
|
|
1104
1104
|
NOT_FOUND = "Unable to find Additional detail!"
|
|
1105
1105
|
}
|
|
1106
1106
|
export declare enum B_DAY_WISH_ERROR_MESSAGES {
|
|
1107
|
-
CREATE_FAIL = "Unable to save Birthday Wish data!",
|
|
1108
1107
|
GET_FAIL = "Unable to retrieve Birthday Wish data!",
|
|
1109
1108
|
UPDATE_FAIL = "Unable to update Birthday Wish data!",
|
|
1110
1109
|
DELETE_FAIL = "Unable to delete Birthday Wish data!",
|
|
1111
|
-
NOT_FOUND = "Unable to find Birthday Wish data!"
|
|
1110
|
+
NOT_FOUND = "Unable to find Birthday Wish data!",
|
|
1111
|
+
AlREADY_WISH = "You have already wished this user today!"
|
|
1112
1112
|
}
|
|
1113
1113
|
export declare enum THEME_ERROR_MESSAGES {
|
|
1114
1114
|
CREATE_FAIL = "Unable to save Theme data!",
|
|
@@ -1223,11 +1223,11 @@ var ADDITIONAL_DETAIL_ERROR_MESSAGES;
|
|
|
1223
1223
|
})(ADDITIONAL_DETAIL_ERROR_MESSAGES || (exports.ADDITIONAL_DETAIL_ERROR_MESSAGES = ADDITIONAL_DETAIL_ERROR_MESSAGES = {}));
|
|
1224
1224
|
var B_DAY_WISH_ERROR_MESSAGES;
|
|
1225
1225
|
(function (B_DAY_WISH_ERROR_MESSAGES) {
|
|
1226
|
-
B_DAY_WISH_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save Birthday Wish data!";
|
|
1227
1226
|
B_DAY_WISH_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve Birthday Wish data!";
|
|
1228
1227
|
B_DAY_WISH_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update Birthday Wish data!";
|
|
1229
1228
|
B_DAY_WISH_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete Birthday Wish data!";
|
|
1230
1229
|
B_DAY_WISH_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find Birthday Wish data!";
|
|
1230
|
+
B_DAY_WISH_ERROR_MESSAGES["AlREADY_WISH"] = "You have already wished this user today!";
|
|
1231
1231
|
})(B_DAY_WISH_ERROR_MESSAGES || (exports.B_DAY_WISH_ERROR_MESSAGES = B_DAY_WISH_ERROR_MESSAGES = {}));
|
|
1232
1232
|
var THEME_ERROR_MESSAGES;
|
|
1233
1233
|
(function (THEME_ERROR_MESSAGES) {
|
|
@@ -742,9 +742,8 @@ export declare enum ADDITIONAL_DETAIL_SUCCESS_MESSAGES {
|
|
|
742
742
|
DELETE_SUCCESS = "Additional detail deleted successfully"
|
|
743
743
|
}
|
|
744
744
|
export declare enum B_DAY_WISH_SUCCESS_MESSAGES {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
UPDATE_SUCCESS = "Birthday Wish updated successfully!",
|
|
745
|
+
GET_SUCCESS = "Birthday Wishes retrieved successfully!",
|
|
746
|
+
UPDATE_SUCCESS = "Birthday Wished successfully!",
|
|
748
747
|
DELETE_SUCCESS = "Birthday Wish deleted successfully!"
|
|
749
748
|
}
|
|
750
749
|
export declare enum THEME_SUCCESS_MESSAGES {
|
|
@@ -864,9 +864,8 @@ var ADDITIONAL_DETAIL_SUCCESS_MESSAGES;
|
|
|
864
864
|
})(ADDITIONAL_DETAIL_SUCCESS_MESSAGES || (exports.ADDITIONAL_DETAIL_SUCCESS_MESSAGES = ADDITIONAL_DETAIL_SUCCESS_MESSAGES = {}));
|
|
865
865
|
var B_DAY_WISH_SUCCESS_MESSAGES;
|
|
866
866
|
(function (B_DAY_WISH_SUCCESS_MESSAGES) {
|
|
867
|
-
B_DAY_WISH_SUCCESS_MESSAGES["
|
|
868
|
-
B_DAY_WISH_SUCCESS_MESSAGES["
|
|
869
|
-
B_DAY_WISH_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Birthday Wish updated successfully!";
|
|
867
|
+
B_DAY_WISH_SUCCESS_MESSAGES["GET_SUCCESS"] = "Birthday Wishes retrieved successfully!";
|
|
868
|
+
B_DAY_WISH_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Birthday Wished successfully!";
|
|
870
869
|
B_DAY_WISH_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Birthday Wish deleted successfully!";
|
|
871
870
|
})(B_DAY_WISH_SUCCESS_MESSAGES || (exports.B_DAY_WISH_SUCCESS_MESSAGES = B_DAY_WISH_SUCCESS_MESSAGES = {}));
|
|
872
871
|
var THEME_SUCCESS_MESSAGES;
|
|
@@ -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