@kipicore/dbcore 1.1.81 → 1.1.83
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/bDayWishInterface.d.ts +1 -0
- package/dist/models/mongodb/bDayWishModel.js +1 -0
- 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;
|
|
@@ -42,6 +42,7 @@ const userSchema = new mongoose_1.Schema({
|
|
|
42
42
|
const bDayWishModelSchema = new mongoose_1.Schema({
|
|
43
43
|
instituteId: { type: String, required: true },
|
|
44
44
|
userIds: { type: [userSchema], default: [] },
|
|
45
|
+
userId: { type: String, required: true },
|
|
45
46
|
date: { type: Date, required: true },
|
|
46
47
|
createdBy: { type: String, required: false },
|
|
47
48
|
updatedBy: { type: String, required: false },
|
package/package.json
CHANGED