@kipicore/dbcore 1.1.67 → 1.1.69

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.
@@ -1081,3 +1081,10 @@ export declare enum ENTITY_WISE_CALENDAR_ERROR_MESSAGES {
1081
1081
  DELETE_FAIL = "Unable to delete Entity Wise Calendar Data!",
1082
1082
  NOT_FOUND = "Unable to find Entity Wise Calendar Data!"
1083
1083
  }
1084
+ export declare enum WORK_OFF_DAYS_ERROR_MESSAGES {
1085
+ CREATE_FAIL = "Unable to save Work Off Days Data!",
1086
+ GET_FAIL = "Unable to retrieve Work Off Days Data!",
1087
+ UPDATE_FAIL = "Unable to update Work Off Days Data!",
1088
+ DELETE_FAIL = "Unable to delete Work Off Days Data!",
1089
+ NOT_FOUND = "Unable to find Work Off Days Data!"
1090
+ }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FILE_STORAGE_ERROR_MESSAGES = exports.EXAM_HAS_ANSWER_SHEET_ERROR_MESSAGES = exports.EXAM_ERROR_MESSAGES = exports.ANNOUCEMENT_ERROR_MESSAGES = exports.PARENTS_ERROR_MESSAGES = exports.USER_INSTITUTE_META_ERROR_MESSAGES = exports.INSTITUTE_ENTITY_ERROR_MESSAGES = exports.INSTITUTE_ENTITY_TYPE_ERROR_MESSAGES = exports.INSTITUTE_ERROR_MESSAGES = exports.MODULE_ERROR_MESSAGES = exports.ROLE_ERROR_MESSAGES = exports.TYPE_MANAGEMENT_ERROR_MESSAGES = exports.CLASSROOM_ERROR_MESSAGES = exports.BATCH_ERROR_MESSAGES = exports.ACADEMIC_CALENDAR_ERROR_MESSAGES = exports.EVENT_ERROR_MESSAGES = exports.HOLIDAY_ERROR_MESSAGES = exports.USER_HAS_ROLL_NUMBER_ERROR_MESSAGES = exports.USER_HAS_OFFER_ERROR_MESSAGES = exports.FEE_REMINDER_ERROR_MESSAGES = exports.FEE_REMINDER_SETTING_ERROR_MESSAGES = exports.FEEREMINDER_ERROR_MESSAGES = exports.FEESCOLLECTION_ERROR_MESSAGES = exports.USER_FEE_TYPE_ERROR_MESSAGES = exports.SCHOOL_FEE_ERROR_MESSAGES = exports.FEE_TYPE_ERROR_MESSAGES = exports.FACILITY_ERROR_MESSAGES = exports.OFFER_ERROR_MESSAGES = exports.INVENTORY_HISTORY_ERROR_MESSAGES = exports.PAYMENT_TERMS_ERROR_MESSAGES = exports.INVENTORY_ERROR_MESSAGES = exports.CATEGORY_ERROR_MESSAGES = exports.USER_HAS_INVENTORY_ERROR_MESSAGES = exports.SUBJECT_HAS_FEE_ERROR_MESSAGES = exports.FEE_HISTORY_ERROR_MESSAGES = exports.MASTER_LEAVE_ERROR_MESSAGES = exports.LEAVE_ERROR_MESSAGES = exports.SUBSCRIPTION_ERROR_MESSAGES = exports.FEEDBACK_ERROR_MESSAGES = exports.SCHOOL_FEES_COLLECTION_ERROR_MESSAGES = exports.ACCOUNT_RECEIPT_ERROR_MESSAGES = exports.SCHOOL_SHIFT_ERROR_MESSAGES = exports.BANK_ACCOUNT_DETAILS_ERROR_MESSAGES = exports.INFORMATION_SUPPORT_ERROR_MESSAGES = exports.INQUIRY_ERROR_MESSAGES = exports.APPROVE_REQUEST_ERROR_MESSAGES = exports.BANNER_ERROR_MESSAGES = exports.USER_FEE_TYPE_ACCOUNT_ERROR_MESSAGES = exports.USER_ERROR_MESSAGES = exports.ERROR_MESSAGES = void 0;
4
4
  exports.WALLET_ERROR_MESSAGES = exports.REPLACE_TEACHER_ERROR_MESSAGES = exports.CERTIFICATES_HISTORY_ERROR_MESSAGES = exports.CERTIFICATES_MANAGEMENT_ERROR_MESSAGES = exports.DASHBOARD_MANAGEMENT_ERROR_MESSAGES = exports.PDC_HISTORY_ERROR_MESSAGES = exports.COLUMN_ERROR_MESSAGES = exports.INVOICE_ERROR_MESSAGES = exports.PRODUCT_ERROR_MESSAGES = exports.SUB_CATEGORY_ERROR_MESSAGES = exports.VENDOR_MANAGEMENT_ERROR_MESSAGES = exports.COIN_PURCHASE_OFFER_ERROR_MESSAGES = exports.SYLLABUS_ERROR_MESSAGES = exports.DAILY_BOOK_ERROR_MESSAGES = exports.USER_HAS_HOME_WORK_ERROR_MESSAGES = exports.HOME_WORK_ERROR_MESSAGES = exports.CLOUD_STORAGE_ERROR_MESSAGES = exports.SUBSCRIPTION_PLAN_ERROR_MESSAGES = exports.FLOOR_MANAGEMENT_ERROR_MESSAGES = exports.SIGNED_URL_ERROR_MESSAGES = exports.CAREER_ERROR_MESSAGES = exports.RULES_REGULATION_ERROR_MESSAGES = exports.NOTIFICATION_ERROR_MESSAGES = exports.PHOTO_GALLERY_ERROR_MESSAGES = exports.CONTACT_FEED_BACK_ERROR_MESSAGES = exports.GENERATE_ID_CARD_ERROR_MESSAGES = exports.VEHICLE_ERROR_MESSAGES = exports.BATCH_SUBJECT_PROJECT_ASSESSMENT_ERROR_MESSAGES = exports.USER_BOOK_ASSESSMENT_ERROR_MESSAGES = exports.BATCH_SUBJECT_BOOK_ASSESSMENT_ERROR_MESSAGES = exports.TASK_MANAGEMENT_ERROR_MESSAGES = exports.EXAM_GROUP_ERROR_MESSAGES = exports.USER_PAYOUT_HISTORY_ERROR_MESSAGES = exports.USER_PAYOUT_ERROR_MESSAGES = exports.SUBJECT_INDEX_ERROR_MESSAGES = exports.TESTIMONIAL_ERROR_MESSAGES = exports.DRIVER_ERROR_MESSAGES = exports.BLOG_ERROR_MESSAGES = exports.VIDEO_ANALYST_ERROR_MESSAGES = exports.PDC_CHEQUE_ERROR_MESSAGES = exports.GREETING_ERROR_MESSAGES = exports.USER_HAS_COURSE_ERROR_MESSAGES = exports.COURSE_ERROR_MESSAGES = exports.TO_DO_ERROR_MESSAGES = exports.SLOT_ERROR_MESSAGES = exports.TRIP_ERROR_MESSAGES = exports.LECTURE_ERROR_MESSAGES = exports.WORKING_DAYS_ERROR_MESSAGES = exports.USER_SCHOOL_METADATA_ERROR_MESSAGES = exports.ATTENDANCE_ERROR_MESSAGES = void 0;
5
- exports.ENTITY_WISE_CALENDAR_ERROR_MESSAGES = exports.CAMPUS_ERROR_MESSAGES = exports.CANTEEN_ERROR_MESSAGES = exports.LOST_FOUND_ITEM_ERROR_MESSAGES = exports.PAYMENT_TRANSACTION_ERROR_MESSAGES = exports.USER_REQUIRED_STEPS_ERROR_MESSAGES = exports.JOB_APPLY_ERROR_MESSAGES = exports.ENTITY_GROUP_ERROR_MESSAGES = exports.USER_HAS_STORAGE_ERROR_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_ERROR_MESSAGES = exports.WALLET_TRANSACTION_ERROR_MESSAGES = exports.WALLET_HISTORY_ERROR_MESSAGES = void 0;
5
+ exports.WORK_OFF_DAYS_ERROR_MESSAGES = exports.ENTITY_WISE_CALENDAR_ERROR_MESSAGES = exports.CAMPUS_ERROR_MESSAGES = exports.CANTEEN_ERROR_MESSAGES = exports.LOST_FOUND_ITEM_ERROR_MESSAGES = exports.PAYMENT_TRANSACTION_ERROR_MESSAGES = exports.USER_REQUIRED_STEPS_ERROR_MESSAGES = exports.JOB_APPLY_ERROR_MESSAGES = exports.ENTITY_GROUP_ERROR_MESSAGES = exports.USER_HAS_STORAGE_ERROR_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_ERROR_MESSAGES = exports.WALLET_TRANSACTION_ERROR_MESSAGES = exports.WALLET_HISTORY_ERROR_MESSAGES = void 0;
6
6
  var ERROR_MESSAGES;
7
7
  (function (ERROR_MESSAGES) {
8
8
  ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save data in DB!";
@@ -1196,3 +1196,11 @@ var ENTITY_WISE_CALENDAR_ERROR_MESSAGES;
1196
1196
  ENTITY_WISE_CALENDAR_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete Entity Wise Calendar Data!";
1197
1197
  ENTITY_WISE_CALENDAR_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find Entity Wise Calendar Data!";
1198
1198
  })(ENTITY_WISE_CALENDAR_ERROR_MESSAGES || (exports.ENTITY_WISE_CALENDAR_ERROR_MESSAGES = ENTITY_WISE_CALENDAR_ERROR_MESSAGES = {}));
1199
+ var WORK_OFF_DAYS_ERROR_MESSAGES;
1200
+ (function (WORK_OFF_DAYS_ERROR_MESSAGES) {
1201
+ WORK_OFF_DAYS_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save Work Off Days Data!";
1202
+ WORK_OFF_DAYS_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve Work Off Days Data!";
1203
+ WORK_OFF_DAYS_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update Work Off Days Data!";
1204
+ WORK_OFF_DAYS_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete Work Off Days Data!";
1205
+ WORK_OFF_DAYS_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find Work Off Days Data!";
1206
+ })(WORK_OFF_DAYS_ERROR_MESSAGES || (exports.WORK_OFF_DAYS_ERROR_MESSAGES = WORK_OFF_DAYS_ERROR_MESSAGES = {}));
@@ -24,7 +24,8 @@ export declare enum USER_SUCCESS_MESSAGES {
24
24
  TEACHER_ADDED_SUCCESS = "Teacher file processed successfully",
25
25
  STUDENT_ADDED_SUCCESS = "Student file processed successfully",
26
26
  USER_DATA_WITH_PARENTS_UPDATE_SUCCESS = "User data with parents updated successfully",
27
- SWITCH_USER_SUCCESS = "User switched successfully"
27
+ SWITCH_USER_SUCCESS = "User switched successfully",
28
+ GET_BIRTHDAY_LIST = "User Birthday list retrieved successfully"
28
29
  }
29
30
  export declare enum BANNER_SUCCESS_MESSAGES {
30
31
  CREATE_SUCCESS = "Banner created successfully",
@@ -713,7 +714,8 @@ export declare enum CAMPUS_SUCCESS_MESSAGES {
713
714
  CREATE_SUCCESS = "Campus created successfully",
714
715
  GET_SUCCESS = "Campus retrieved successfully",
715
716
  UPDATE_SUCCESS = "Campus updated successfully",
716
- DELETE_SUCCESS = "Campus deleted successfully"
717
+ DELETE_SUCCESS = "Campus deleted successfully",
718
+ ADD_CAMPUS_ID = "Campus id added successfully"
717
719
  }
718
720
  export declare enum ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES {
719
721
  CREATE_SUCCESS = "Entity Wise Calendar created successfully",
@@ -721,3 +723,9 @@ export declare enum ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES {
721
723
  UPDATE_SUCCESS = "Entity Wise Calendar updated successfully",
722
724
  DELETE_SUCCESS = "Entity Wise Calendar deleted successfully"
723
725
  }
726
+ export declare enum WORK_OFF_DAYS_SUCCESS_MESSAGES {
727
+ CREATE_SUCCESS = "Work Off Days created successfully",
728
+ GET_SUCCESS = "Work Off Days retrieved successfully",
729
+ UPDATE_SUCCESS = "Work Off Days updated successfully",
730
+ DELETE_SUCCESS = "Work Off Days deleted successfully"
731
+ }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ANNOUCEMENT_SUCCESS_MESSAGES = exports.TYPE_MANAGEMENT_SUCCESS_MESSAGES = exports.PARENTS_SUCCESS_MESSAGES = exports.USER_INSTITUTE_META_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_TYPE_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_SUCCESS_MESSAGES = exports.WORKING_DAYS_SUCCESS_MESSAGES = exports.INSTITUTE_SUCCESS_MESSAGES = exports.MODULE_SUCCESS_MESSAGES = exports.ROLE_SUCCESS_MESSAGES = exports.CLASSROOM_SUCCESS_MESSAGES = exports.BATCH_SUCCESS_MESSAGES = exports.ACADEMIC_CALENDAR_SUCCESS_MESSAGES = exports.EVENT_SUCCESS_MESSAGES = exports.HOLIDAY_SUCCESS_MESSAGES = exports.USER_HAS_ROLL_NUMBER_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_SUCCESS_MESSAGES = exports.FEE_REMINDER_SETTING_SUCCESS_MESSAGES = exports.FEEREMINDER_SUCCESS_MESSAGES = exports.FEESCOLLECTION_SUCCESS_MESSAGES = exports.OFFER_SUCCESS_MESSAGES = exports.CATEGORY_SUCCESS_MESSAGES = exports.INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.INVENTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_SUCCESS_MESSAGES = exports.SUBJECT_HAS_FEE_SUCCESS_MESSAGES = exports.FEE_HISTORY_SUCCESS_MESSAGES = exports.MASTER_LEAVE_SUCCESS_MESSAGES = exports.LEAVE_SUCCESS_MESSAGES = exports.PAYMENT_TERMS_SUCCESS_MESSAGES = exports.FACILITY_SUCCESS_MESSAGES = exports.FEE_REMINDER_SUCCESS_MESSAGES = exports.SCHOOL_SHIFT_SUCCESS_MESSAGES = exports.SUBSCRIPTION_SUCCESS_MESSAGES = exports.BANK_ACCOUNT_DETAILS_SUCCESS_MESSAGES = exports.ACCOUNT_RECEIPT_SUCCESS_MESSAGES = exports.FEE_TYPE_SUCCESS_MESSAGES = exports.FEEDBACK_SUCCESS_MESSAGES = exports.INFORMATION_SUPPORT_SUCCESS_MESSAGES = exports.INQUIRY_SUCCESS_MESSAGES = exports.FEE_SUCCESS_MESSAGES = exports.SCHOOL_FEES_COLLECTION_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_ACCOUNT_SUCCESS_MESSAGES = exports.ADMIN_SUCCESS_MESSAGES = exports.APPROVE_REQUEST_SUCCESS_MESSAGES = exports.BANNER_SUCCESS_MESSAGES = exports.USER_SUCCESS_MESSAGES = exports.SUCCESS_MESSAGES = void 0;
4
4
  exports.CERTIFICATES_HISTORY_SUCCESS_MESSAGES = exports.CERTIFICATES_MANAGEMENT_SUCCESS_MESSAGES = exports.DASHBOARD_MANAGEMENT_SUCCESS_MESSAGES = exports.PDC_HISTORY_SUCCESS_MESSAGES = exports.COLUMN_SUCCESS_MESSAGES = exports.INVOICE_SUCCESS_MESSAGES = exports.PRODUCT_SUCCESS_MESSAGES = exports.SUB_CATEGORY_SUCCESS_MESSAGES = exports.VENDOR_MANAGEMENT_SUCCESS_MESSAGES = exports.COIN_PURCHASE_OFFER_SUCCESS_MESSAGES = exports.SYLLABUS_SUCCESS_MESSAGES = exports.DAILY_BOOK_SUCCESS_MESSAGES = exports.USER_HAS_HOME_WORK_SUCCESS_MESSAGES = exports.HOME_WORK_SUCCESS_MESSAGES = exports.CLOUD_STORAGE_SUCCESS_MESSAGES = exports.SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.FLOOR_MANAGEMENT_SUCCESS_MESSAGES = exports.CAREER_SUCCESS_MESSAGES = exports.RULE_REGULATION_SUCCESS_MESSAGES = exports.CUSTOME_NOTIFICATION_SUCCESS_MESSAGES = exports.NOTIFICATION_SUCCESS_MESSAGES = exports.PHOTO_GALLERY_SUCCESS_MESSAGES = exports.CONTACT_FEED_BACK_SUCCESS_MESSAGES = exports.GENERATE_ID_CARD_SUCCESS_MESSAGES = exports.VEHICLE_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_PROJECT_ASSESSMENT_SUCCESS_MESSAGES = exports.USER_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.TASK_MANAGEMENT_SUCCESS_MESSAGES = exports.EXAM_GROUP_SUCCESS_MESSAGES = exports.PLANNER_SUCCESS_MESSAGES = exports.USER_PAYOUT_HISTORY_SUCCESS_MESSAGES = exports.USER_PAYOUT_SUCCESS_MESSAGES = exports.SUBJECT_INDEX_SUCCESS_MESSAGES = exports.DRIVER_SUCCESS_MESSAGES = exports.BLOG_SUCCESS_MESSAGES = exports.VIDEO_ANALYST_SUCCESS_MESSAGES = exports.TESTIMONIAL_SUCCESS_MESSAGES = exports.PDC_CHEQUE_SUCCESS_MESSAGES = exports.GREETING_SUCCESS_MESSAGES = exports.USER_HAS_COURSE_SUCCESS_MESSAGES = exports.COURSE_SUCCESS_MESSAGES = exports.TO_DO_SUCCESS_MESSAGES = exports.SLOT_SUCCESS_MESSAGES = exports.TRIP_SUCCESS_MESSAGES = exports.LECTURE_SUCCESS_MESSAGES = exports.USER_SCHOOL_METADATA_SUCCESS_MESSAGES = exports.ATTENDANCE_SUCCESS_MESSAGES = exports.EXAM_HAS_ANSWER_SHEET_SUCCESS_MESSAGES = exports.EXAM_SUCCESS_MESSAGES = void 0;
5
- exports.ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES = exports.CAMPUS_SUCCESS_MESSAGES = exports.CANTEEN_SUCCESS_MESSAGES = exports.LOST_FOUND_ITEM_SUCCESS_MESSAGES = exports.PAYMENT_TRANSACTION_SUCCESS_MESSAGES = exports.USER_REQUIRED_STEPS_SUCCESS_MESSAGES = exports.JOB_APPLY_SUCCESS_MESSAGES = exports.ENTITY_GROUP_SUCCESS_MESSAGES = exports.USER_HAS_STORAGE_SUCCESS_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.WALLET_TRANSACTION_SUCCESS_MESSAGES = exports.WALLET_HISTORY_SUCCESS_MESSAGES = exports.WALLET_SUCCESS_MESSAGES = exports.REPLACE_TEACHER_SUCCESS_MESSAGES = void 0;
5
+ exports.WORK_OFF_DAYS_SUCCESS_MESSAGES = exports.ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES = exports.CAMPUS_SUCCESS_MESSAGES = exports.CANTEEN_SUCCESS_MESSAGES = exports.LOST_FOUND_ITEM_SUCCESS_MESSAGES = exports.PAYMENT_TRANSACTION_SUCCESS_MESSAGES = exports.USER_REQUIRED_STEPS_SUCCESS_MESSAGES = exports.JOB_APPLY_SUCCESS_MESSAGES = exports.ENTITY_GROUP_SUCCESS_MESSAGES = exports.USER_HAS_STORAGE_SUCCESS_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.WALLET_TRANSACTION_SUCCESS_MESSAGES = exports.WALLET_HISTORY_SUCCESS_MESSAGES = exports.WALLET_SUCCESS_MESSAGES = exports.REPLACE_TEACHER_SUCCESS_MESSAGES = void 0;
6
6
  var SUCCESS_MESSAGES;
7
7
  (function (SUCCESS_MESSAGES) {
8
8
  SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Resource created successfully";
@@ -31,6 +31,7 @@ var USER_SUCCESS_MESSAGES;
31
31
  USER_SUCCESS_MESSAGES["STUDENT_ADDED_SUCCESS"] = "Student file processed successfully";
32
32
  USER_SUCCESS_MESSAGES["USER_DATA_WITH_PARENTS_UPDATE_SUCCESS"] = "User data with parents updated successfully";
33
33
  USER_SUCCESS_MESSAGES["SWITCH_USER_SUCCESS"] = "User switched successfully";
34
+ USER_SUCCESS_MESSAGES["GET_BIRTHDAY_LIST"] = "User Birthday list retrieved successfully";
34
35
  })(USER_SUCCESS_MESSAGES || (exports.USER_SUCCESS_MESSAGES = USER_SUCCESS_MESSAGES = {}));
35
36
  var BANNER_SUCCESS_MESSAGES;
36
37
  (function (BANNER_SUCCESS_MESSAGES) {
@@ -831,6 +832,7 @@ var CAMPUS_SUCCESS_MESSAGES;
831
832
  CAMPUS_SUCCESS_MESSAGES["GET_SUCCESS"] = "Campus retrieved successfully";
832
833
  CAMPUS_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Campus updated successfully";
833
834
  CAMPUS_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Campus deleted successfully";
835
+ CAMPUS_SUCCESS_MESSAGES["ADD_CAMPUS_ID"] = "Campus id added successfully";
834
836
  })(CAMPUS_SUCCESS_MESSAGES || (exports.CAMPUS_SUCCESS_MESSAGES = CAMPUS_SUCCESS_MESSAGES = {}));
835
837
  var ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES;
836
838
  (function (ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES) {
@@ -839,3 +841,10 @@ var ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES;
839
841
  ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Entity Wise Calendar updated successfully";
840
842
  ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Entity Wise Calendar deleted successfully";
841
843
  })(ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES || (exports.ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES = ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES = {}));
844
+ var WORK_OFF_DAYS_SUCCESS_MESSAGES;
845
+ (function (WORK_OFF_DAYS_SUCCESS_MESSAGES) {
846
+ WORK_OFF_DAYS_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Work Off Days created successfully";
847
+ WORK_OFF_DAYS_SUCCESS_MESSAGES["GET_SUCCESS"] = "Work Off Days retrieved successfully";
848
+ WORK_OFF_DAYS_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Work Off Days updated successfully";
849
+ WORK_OFF_DAYS_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Work Off Days deleted successfully";
850
+ })(WORK_OFF_DAYS_SUCCESS_MESSAGES || (exports.WORK_OFF_DAYS_SUCCESS_MESSAGES = WORK_OFF_DAYS_SUCCESS_MESSAGES = {}));
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any): Promise<void>;
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const tableName = 'work_off_days';
4
+ const tableExists = await queryInterface
5
+ .describeTable(tableName)
6
+ .then(() => true)
7
+ .catch(() => false);
8
+ if (!tableExists) {
9
+ await queryInterface.createTable(tableName, {
10
+ id: {
11
+ type: Sequelize.UUID,
12
+ defaultValue: Sequelize.UUIDV4,
13
+ allowNull: false,
14
+ primaryKey: true,
15
+ },
16
+ offDayPattern: {
17
+ type: Sequelize.ARRAY(Sequelize.INTEGER),
18
+ defaultValue: [],
19
+ allowNull: true,
20
+ },
21
+ userType: {
22
+ type: Sequelize.STRING,
23
+ defaultValue: 'TEACHER',
24
+ allowNull: true,
25
+ },
26
+ academicCalendarId: {
27
+ type: Sequelize.UUID,
28
+ field: 'academic_calendar_id',
29
+ allowNull: true,
30
+ },
31
+ slotId: {
32
+ type: Sequelize.UUID,
33
+ field: 'slot_id',
34
+ allowNull: true,
35
+ },
36
+ userId: {
37
+ type: Sequelize.UUID,
38
+ field: 'user_id',
39
+ allowNull: true,
40
+ },
41
+ entityId: {
42
+ type: Sequelize.UUID,
43
+ field: 'entity_id',
44
+ allowNull: true,
45
+ },
46
+ workingDayId: {
47
+ type: Sequelize.UUID,
48
+ field: 'working_day_id',
49
+ allowNull: true,
50
+ },
51
+ instituteId: {
52
+ type: DataTypes.UUID,
53
+ field: 'institute_id',
54
+ allowNull: true,
55
+ },
56
+ createdBy: {
57
+ type: Sequelize.UUID,
58
+ allowNull: true,
59
+ field: 'created_by',
60
+ },
61
+ updatedBy: {
62
+ type: Sequelize.UUID,
63
+ allowNull: true,
64
+ field: 'updated_by',
65
+ },
66
+ deletedBy: {
67
+ type: Sequelize.UUID,
68
+ allowNull: true,
69
+ field: 'deleted_by',
70
+ },
71
+ createdAt: {
72
+ type: Sequelize.DATE,
73
+ allowNull: true,
74
+ field: 'created_at',
75
+ },
76
+ updatedAt: {
77
+ type: Sequelize.DATE,
78
+ allowNull: true,
79
+ field: 'updated_at',
80
+ },
81
+ deletedAt: {
82
+ type: Sequelize.DATE,
83
+ allowNull: true,
84
+ field: 'deleted_at',
85
+ },
86
+ });
87
+ }
88
+ else {
89
+ const tableDefinition = await queryInterface.describeTable(tableName);
90
+ const columnsToAdd = {
91
+ id: {
92
+ type: Sequelize.UUID,
93
+ defaultValue: Sequelize.UUIDV4,
94
+ allowNull: false,
95
+ primaryKey: true,
96
+ },
97
+ offDayPattern: {
98
+ type: Sequelize.ARRAY(Sequelize.INTEGER),
99
+ defaultValue: [],
100
+ allowNull: true,
101
+ },
102
+ userType: {
103
+ type: Sequelize.STRING,
104
+ defaultValue: 'TEACHER',
105
+ allowNull: true,
106
+ },
107
+ academicCalendarId: {
108
+ type: Sequelize.UUID,
109
+ field: 'academic_calendar_id',
110
+ allowNull: true,
111
+ },
112
+ slotId: {
113
+ type: Sequelize.UUID,
114
+ field: 'slot_id',
115
+ allowNull: true,
116
+ },
117
+ userId: {
118
+ type: Sequelize.UUID,
119
+ field: 'user_id',
120
+ allowNull: true,
121
+ },
122
+ entityId: {
123
+ type: Sequelize.UUID,
124
+ field: 'entity_id',
125
+ allowNull: true,
126
+ },
127
+ workingDayId: {
128
+ type: Sequelize.UUID,
129
+ field: 'working_day_id',
130
+ allowNull: true,
131
+ },
132
+ instituteId: {
133
+ type: DataTypes.UUID,
134
+ field: 'institute_id',
135
+ allowNull: true,
136
+ },
137
+ createdBy: {
138
+ type: Sequelize.UUID,
139
+ allowNull: true,
140
+ field: 'created_by',
141
+ },
142
+ updatedBy: {
143
+ type: Sequelize.UUID,
144
+ allowNull: true,
145
+ field: 'updated_by',
146
+ },
147
+ deletedBy: {
148
+ type: Sequelize.UUID,
149
+ allowNull: true,
150
+ field: 'deleted_by',
151
+ },
152
+ createdAt: {
153
+ type: Sequelize.DATE,
154
+ allowNull: true,
155
+ field: 'created_at',
156
+ },
157
+ updatedAt: {
158
+ type: Sequelize.DATE,
159
+ allowNull: true,
160
+ field: 'updated_at',
161
+ },
162
+ deletedAt: {
163
+ type: Sequelize.DATE,
164
+ allowNull: true,
165
+ field: 'deleted_at',
166
+ },
167
+ };
168
+ for (const column of Object.keys(columnsToAdd)) {
169
+ const columnToAdd = columnsToAdd[column];
170
+ const tableColumn = columnToAdd.field || column;
171
+ if (!tableDefinition[tableColumn]) {
172
+ await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
173
+ }
174
+ }
175
+ }
176
+ };
177
+ const down = async (queryInterface) => {
178
+ const tableName = 'work_off_days';
179
+ const tableExists = await queryInterface
180
+ .describeTable(tableName)
181
+ .then(() => true)
182
+ .catch(() => false);
183
+ if (tableExists) {
184
+ await queryInterface.dropTable(tableName);
185
+ }
186
+ };
187
+ module.exports = {
188
+ up,
189
+ down,
190
+ };
@@ -139,3 +139,4 @@ export * from './lostFoundItemInterface';
139
139
  export * from './canteenInterface';
140
140
  export * from './campusInterface';
141
141
  export * from './entityWiseCalendarInterface';
142
+ export * from './workOffDaysInterface';
@@ -155,3 +155,4 @@ __exportStar(require("./lostFoundItemInterface"), exports);
155
155
  __exportStar(require("./canteenInterface"), exports);
156
156
  __exportStar(require("./campusInterface"), exports);
157
157
  __exportStar(require("./entityWiseCalendarInterface"), exports);
158
+ __exportStar(require("./workOffDaysInterface"), exports);
@@ -0,0 +1,13 @@
1
+ import { USER_TYPES } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface IWorkOffDaysModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ offDayPattern?: number[];
6
+ userType: USER_TYPES;
7
+ entityId: string;
8
+ userId?: string;
9
+ slotId: string;
10
+ workingDayId?: string;
11
+ academicCalendarId?: string;
12
+ instituteId?: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -107,3 +107,4 @@ export { default as WorkingShiftModel } from './workingShiftModel';
107
107
  export { default as LostFoundItemModel } from './lostFoundItemModel';
108
108
  export { default as CampusModel } from './campusModel';
109
109
  export { default as EntityWiseCalendarModel } from './entityWiseCalendarModel';
110
+ export { default as WorkOffDaysModel } from './workOffDaysModel';
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.OfferModel = exports.ModuleModel = exports.ModuleFeatureModel = exports.MasterLeaveModel = exports.LectureModel = exports.LectureHistoryModel = exports.InventoryModel = exports.InventoryHistoryModel = exports.InstituteSubscriptionPlanModel = exports.InstituteModel = exports.InstituteEntityTypeModel = exports.InstituteEntityModel = exports.HomeWorkModel = exports.GreetingsModel = exports.FloorManagementModel = exports.FileStorageModel = exports.FeesCollectionModel = exports.FeeTypeModel = exports.FeeTypeHasTermsModel = exports.FeeReminderSettingModel = exports.FeeReminderModel = exports.FeeHistoryModel = exports.FeeHistoryDetailsModel = exports.FeatureActionModel = exports.FacilityModel = exports.EntityGroupModel = exports.DriverModel = exports.CourseModel = exports.CourseHasVisitorsModel = exports.CountryModel = exports.ContactFeedBackModel = exports.CoinPurchaseOfferModel = exports.CloudStorageModel = exports.ClassRoomModel = exports.CityModel = exports.CategoriesModel = exports.BookAssessmentDateModel = exports.BatchSubjectProjectAssessmentModel = exports.BatchSubjectBookAssessmentModel = exports.BatchModel = exports.BannerModel = exports.BankAccountDetailsModel = exports.AreaModel = exports.AnnouncementModel = exports.AccountHasReceiptDetailsModel = exports.AcademicCalendarModel = exports.SubCategoriesModel = exports.Sequelize = exports.db = exports.sequelize = void 0;
7
7
  exports.VendorManagementModel = exports.VehicleModel = exports.UserRequiredStepsModel = exports.UserProjectAssessmentOptionModel = exports.UserPayoutModel = exports.UserPayoutHistoryModel = exports.UserPayoutDetailsModel = exports.UserModel = exports.UserLeaveRequestModel = exports.UserHasSubjectFeeModel = exports.UserHasStorageModel = exports.UserHasRollNumberModel = exports.UserHasRoleModel = exports.UserHasParentModel = exports.UserHasOfferModel = exports.UserHasLeaveModel = exports.UserHasLeaveHistoryModel = exports.UserHasInventoryModel = exports.UserHasInventoryHistoryModel = exports.UserHasHomeWorkModel = exports.UserHasFileModel = exports.UserHasFeeTermsModel = exports.UserHasDeviceModel = exports.UserHasCourseModel = exports.UserHasBatchModel = exports.UserHasAnnouncementModel = exports.UserFeeTypeModel = exports.UserFeeTypeByAccountModel = exports.UserBookAssessmentModel = exports.TypeManagementModel = exports.TripModel = exports.TokenModel = exports.ToDoModel = exports.TestimonialModel = exports.SyllabusModel = exports.SubjectHasPayFeeHistoryModel = exports.SubjectHasFeeModel = exports.StateModel = exports.SlotModel = exports.SendNotificationModel = exports.SchoolOfferModel = exports.SchoolFeeCollectionModel = exports.RulesRegulationModel = exports.RoleModel = exports.ProjectAssessmentOptionModel = exports.ProductModel = exports.PincodeModel = exports.PdcHistoryModel = exports.PdcChequeModel = exports.PaymentTermsModel = void 0;
8
- exports.EntityWiseCalendarModel = exports.CampusModel = exports.LostFoundItemModel = exports.WorkingShiftModel = exports.WorkingDayModel = exports.WalletModel = exports.WalletHistoryModel = void 0;
8
+ exports.WorkOffDaysModel = exports.EntityWiseCalendarModel = exports.CampusModel = exports.LostFoundItemModel = exports.WorkingShiftModel = exports.WorkingDayModel = exports.WalletModel = exports.WalletHistoryModel = void 0;
9
9
  /* eslint-disable @typescript-eslint/no-explicit-any */
10
10
  const sequelize_1 = require("sequelize");
11
11
  Object.defineProperty(exports, "Sequelize", { enumerable: true, get: function () { return sequelize_1.Sequelize; } });
@@ -309,3 +309,5 @@ var campusModel_1 = require("./campusModel");
309
309
  Object.defineProperty(exports, "CampusModel", { enumerable: true, get: function () { return __importDefault(campusModel_1).default; } });
310
310
  var entityWiseCalendarModel_1 = require("./entityWiseCalendarModel");
311
311
  Object.defineProperty(exports, "EntityWiseCalendarModel", { enumerable: true, get: function () { return __importDefault(entityWiseCalendarModel_1).default; } });
312
+ var workOffDaysModel_1 = require("./workOffDaysModel");
313
+ Object.defineProperty(exports, "WorkOffDaysModel", { enumerable: true, get: function () { return __importDefault(workOffDaysModel_1).default; } });
@@ -34,7 +34,7 @@ declare class InstituteModel extends Model<IInstituteAttributes, TInstituteCreat
34
34
  district?: string;
35
35
  plannerSyncStatus: PLANNER_SYNC_STATUS;
36
36
  pdfId?: string;
37
- campusId: string;
37
+ campusId?: string;
38
38
  createdBy: string;
39
39
  updatedBy: string;
40
40
  deletedBy: string;
@@ -0,0 +1,23 @@
1
+ import { Model } from 'sequelize';
2
+ import { IWorkOffDaysModelAttributes } from '../../interfaces/workOffDaysInterface';
3
+ import { USER_TYPES } from '../../constants/app';
4
+ import { TIWorkOffDaysModelCreationAttributes } from '../../types/workOffDaysType';
5
+ declare class WorkOffDaysModel extends Model<IWorkOffDaysModelAttributes, TIWorkOffDaysModelCreationAttributes> {
6
+ id: string;
7
+ userType: USER_TYPES;
8
+ offDayPattern?: number[];
9
+ entityId?: string;
10
+ slotId?: string;
11
+ workingDayId?: string;
12
+ userId?: string;
13
+ academicCalendarId?: string;
14
+ instituteId?: string;
15
+ createdBy: string;
16
+ updatedBy: string;
17
+ deletedBy: string;
18
+ readonly createdAt: Date;
19
+ readonly updatedAt: Date;
20
+ readonly deletedAt?: Date;
21
+ static associate(models: any): void;
22
+ }
23
+ export default WorkOffDaysModel;
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const sequelize_1 = require("sequelize");
4
+ const index_1 = require("./index");
5
+ const app_1 = require("../../constants/app");
6
+ class WorkOffDaysModel extends sequelize_1.Model {
7
+ static associate(models) {
8
+ const { UserModel, SlotModel, AcademicCalendarModel, InstituteEntityModel, WorkingDayModel, InstituteModel } = models;
9
+ WorkOffDaysModel.belongsTo(UserModel, {
10
+ foreignKey: {
11
+ name: 'createdBy',
12
+ allowNull: true,
13
+ field: 'created_by',
14
+ },
15
+ as: 'createdByUser',
16
+ });
17
+ WorkOffDaysModel.belongsTo(UserModel, {
18
+ foreignKey: {
19
+ name: 'updatedBy',
20
+ allowNull: true,
21
+ field: 'updated_by',
22
+ },
23
+ as: 'updatedByUser',
24
+ });
25
+ WorkOffDaysModel.belongsTo(UserModel, {
26
+ foreignKey: {
27
+ name: 'deletedBy',
28
+ allowNull: true,
29
+ field: 'deleted_by',
30
+ },
31
+ as: 'deletedByUser',
32
+ });
33
+ WorkOffDaysModel.belongsTo(SlotModel, {
34
+ foreignKey: { name: 'slotId', field: 'slot_id' },
35
+ as: 'WorkOffDaysSlot',
36
+ });
37
+ SlotModel.hasMany(WorkOffDaysModel, {
38
+ foreignKey: { name: 'slotId', field: 'slot_id' },
39
+ as: 'slotHasWorkOffDays',
40
+ });
41
+ WorkOffDaysModel.belongsTo(AcademicCalendarModel, {
42
+ foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
43
+ as: 'academicCalendarWorkOffDays',
44
+ });
45
+ AcademicCalendarModel.hasMany(WorkOffDaysModel, {
46
+ foreignKey: { name: 'academicCalendarId', field: 'academic_calendar_id' },
47
+ as: 'academicCalendarHasWorkOffDays',
48
+ });
49
+ WorkOffDaysModel.belongsTo(InstituteEntityModel, {
50
+ foreignKey: { name: 'entityId', field: 'entity_id' },
51
+ as: 'WorkOffDaysEntity',
52
+ });
53
+ InstituteEntityModel.hasMany(WorkOffDaysModel, {
54
+ foreignKey: { name: 'entityId', field: 'entity_id' },
55
+ as: 'WorkOffDaysHasEntity',
56
+ });
57
+ WorkOffDaysModel.belongsTo(WorkingDayModel, {
58
+ foreignKey: { name: 'workingDayId', field: 'working_day_id' },
59
+ as: 'WorkOffDaysWorkingDay',
60
+ });
61
+ WorkingDayModel.hasMany(WorkOffDaysModel, {
62
+ foreignKey: { name: 'workingDayId', field: 'working_day_id' },
63
+ as: 'WorkOffDaysHasWorkingDay',
64
+ });
65
+ WorkOffDaysModel.belongsTo(UserModel, {
66
+ foreignKey: { name: 'userId', field: 'user_id' },
67
+ as: 'WorkOffDaysUser',
68
+ });
69
+ UserModel.hasMany(WorkOffDaysModel, {
70
+ foreignKey: { name: 'userId', field: 'user_id' },
71
+ as: 'WorkOffDaysHasUser',
72
+ });
73
+ WorkOffDaysModel.belongsTo(InstituteModel, {
74
+ foreignKey: { name: 'instituteId', field: 'institute_id' },
75
+ as: 'workOffDaysInstitute',
76
+ });
77
+ InstituteModel.hasMany(WorkOffDaysModel, {
78
+ foreignKey: { name: 'instituteId', field: 'institute_id' },
79
+ as: 'instituteHasWorkOffDays',
80
+ });
81
+ }
82
+ }
83
+ WorkOffDaysModel.init({
84
+ id: {
85
+ type: sequelize_1.DataTypes.UUID,
86
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
87
+ allowNull: false,
88
+ primaryKey: true,
89
+ },
90
+ userType: {
91
+ type: sequelize_1.DataTypes.STRING,
92
+ defaultValue: app_1.USER_TYPES.TEACHER,
93
+ allowNull: true,
94
+ },
95
+ offDayPattern: {
96
+ type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.INTEGER),
97
+ defaultValue: [],
98
+ allowNull: true,
99
+ },
100
+ academicCalendarId: {
101
+ type: sequelize_1.DataTypes.UUID,
102
+ field: 'academic_calendar_id',
103
+ allowNull: true,
104
+ },
105
+ slotId: {
106
+ type: sequelize_1.DataTypes.UUID,
107
+ field: 'slot_id',
108
+ allowNull: true,
109
+ },
110
+ entityId: {
111
+ type: sequelize_1.DataTypes.UUID,
112
+ field: 'entity_id',
113
+ allowNull: true,
114
+ },
115
+ userId: {
116
+ type: sequelize_1.DataTypes.UUID,
117
+ field: 'user_id',
118
+ allowNull: true,
119
+ },
120
+ workingDayId: {
121
+ type: sequelize_1.DataTypes.UUID,
122
+ field: 'working_day_id',
123
+ allowNull: true,
124
+ },
125
+ instituteId: {
126
+ type: sequelize_1.DataTypes.UUID,
127
+ field: 'institute_id',
128
+ allowNull: true,
129
+ }
130
+ }, {
131
+ modelName: 'WorkOffDays',
132
+ tableName: 'work_off_days',
133
+ timestamps: true,
134
+ sequelize: index_1.sequelize,
135
+ });
136
+ exports.default = WorkOffDaysModel;
@@ -131,3 +131,4 @@ export * from './lostFoundItemType';
131
131
  export * from './canteenType';
132
132
  export * from './campusType';
133
133
  export * from './entityWiseCalendarType';
134
+ export * from './workOffDaysType';
@@ -147,3 +147,4 @@ __exportStar(require("./lostFoundItemType"), exports);
147
147
  __exportStar(require("./canteenType"), exports);
148
148
  __exportStar(require("./campusType"), exports);
149
149
  __exportStar(require("./entityWiseCalendarType"), exports);
150
+ __exportStar(require("./workOffDaysType"), exports);
@@ -0,0 +1,2 @@
1
+ import { IWorkOffDaysModelAttributes } from '../interfaces/workOffDaysInterface';
2
+ export type TIWorkOffDaysModelCreationAttributes = Partial<IWorkOffDaysModelAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.67",
3
+ "version": "1.1.69",
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",