@kipicore/dbcore 1.1.596 → 1.1.598
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/app.d.ts +66 -1
- package/dist/constants/app.js +82 -5
- package/dist/constants/errorMessages.d.ts +3 -0
- package/dist/constants/errorMessages.js +5 -1
- package/dist/constants/successMessages.d.ts +4 -0
- package/dist/constants/successMessages.js +6 -1
- package/dist/db/psql/migrations/20260618075917-refund_collection.d.ts +2 -0
- package/dist/db/psql/migrations/20260618075917-refund_collection.js +198 -0
- package/dist/db/psql/migrations/20260618092516-rename_storage_timestamps_to_snake_case.d.ts +2 -0
- package/dist/db/psql/migrations/20260618092516-rename_storage_timestamps_to_snake_case.js +46 -0
- package/dist/db/psql/migrations/20260619043000-add_rms_phase4_5_models.d.ts +2 -0
- package/dist/db/psql/migrations/20260619043000-add_rms_phase4_5_models.js +100 -0
- package/dist/interfaces/index.d.ts +10 -0
- package/dist/interfaces/index.js +10 -0
- package/dist/interfaces/refundInterface.d.ts +14 -0
- package/dist/interfaces/refundInterface.js +2 -0
- package/dist/interfaces/rmsAmcContractInterface.d.ts +25 -0
- package/dist/interfaces/rmsAmcContractInterface.js +2 -0
- package/dist/interfaces/rmsBudgetInterface.d.ts +13 -0
- package/dist/interfaces/rmsBudgetInterface.js +2 -0
- package/dist/interfaces/rmsDigitalResourceAccessInterface.d.ts +11 -0
- package/dist/interfaces/rmsDigitalResourceAccessInterface.js +2 -0
- package/dist/interfaces/rmsDigitalResourceInterface.d.ts +14 -0
- package/dist/interfaces/rmsDigitalResourceInterface.js +2 -0
- package/dist/interfaces/rmsExpenseEntryInterface.d.ts +14 -0
- package/dist/interfaces/rmsExpenseEntryInterface.js +2 -0
- package/dist/interfaces/rmsFacilityBookingInterface.d.ts +15 -0
- package/dist/interfaces/rmsFacilityBookingInterface.js +2 -0
- package/dist/interfaces/rmsFacilityInterface.d.ts +12 -0
- package/dist/interfaces/rmsFacilityInterface.js +2 -0
- package/dist/interfaces/rmsMaintenanceActivityInterface.d.ts +12 -0
- package/dist/interfaces/rmsMaintenanceActivityInterface.js +2 -0
- package/dist/interfaces/rmsMaintenanceTicketInterface.d.ts +18 -0
- package/dist/interfaces/rmsMaintenanceTicketInterface.js +2 -0
- package/dist/models/mongodb/index.d.ts +3 -0
- package/dist/models/mongodb/index.js +7 -1
- package/dist/models/mongodb/rmsAmcContractModel.d.ts +4 -0
- package/dist/models/mongodb/rmsAmcContractModel.js +105 -0
- package/dist/models/mongodb/rmsDigitalResourceAccessModel.d.ts +4 -0
- package/dist/models/mongodb/rmsDigitalResourceAccessModel.js +71 -0
- package/dist/models/mongodb/rmsDigitalResourceModel.d.ts +4 -0
- package/dist/models/mongodb/rmsDigitalResourceModel.js +81 -0
- package/dist/models/psql/index.d.ts +7 -0
- package/dist/models/psql/index.js +15 -1
- package/dist/models/psql/refundModel.d.ts +24 -0
- package/dist/models/psql/refundModel.js +95 -0
- package/dist/models/psql/rmsBudgetModel.d.ts +23 -0
- package/dist/models/psql/rmsBudgetModel.js +35 -0
- package/dist/models/psql/rmsExpenseEntryModel.d.ts +24 -0
- package/dist/models/psql/rmsExpenseEntryModel.js +37 -0
- package/dist/models/psql/rmsFacilityBookingModel.d.ts +25 -0
- package/dist/models/psql/rmsFacilityBookingModel.js +41 -0
- package/dist/models/psql/rmsFacilityModel.d.ts +22 -0
- package/dist/models/psql/rmsFacilityModel.js +33 -0
- package/dist/models/psql/rmsMaintenanceActivityModel.d.ts +22 -0
- package/dist/models/psql/rmsMaintenanceActivityModel.js +36 -0
- package/dist/models/psql/rmsMaintenanceTicketModel.d.ts +28 -0
- package/dist/models/psql/rmsMaintenanceTicketModel.js +46 -0
- package/dist/types/index.d.ts +11 -1
- package/dist/types/index.js +11 -1
- package/dist/types/refundType.d.ts +3 -0
- package/dist/types/refundType.js +12 -0
- package/dist/types/rmsAmcContractType.d.ts +2 -0
- package/dist/types/rmsAmcContractType.js +2 -0
- package/dist/types/rmsAuditLogType.d.ts +1 -2
- package/dist/types/rmsBudgetType.d.ts +3 -0
- package/dist/types/rmsBudgetType.js +2 -0
- package/dist/types/rmsDigitalResourceAccessType.d.ts +2 -0
- package/dist/types/rmsDigitalResourceAccessType.js +2 -0
- package/dist/types/rmsDigitalResourceType.d.ts +2 -0
- package/dist/types/rmsDigitalResourceType.js +2 -0
- package/dist/types/rmsExpenseEntryType.d.ts +3 -0
- package/dist/types/rmsExpenseEntryType.js +2 -0
- package/dist/types/rmsFacilityBookingType.d.ts +3 -0
- package/dist/types/rmsFacilityBookingType.js +2 -0
- package/dist/types/rmsFacilityType.d.ts +3 -0
- package/dist/types/rmsFacilityType.js +2 -0
- package/dist/types/rmsMaintenanceActivityType.d.ts +3 -0
- package/dist/types/rmsMaintenanceActivityType.js +2 -0
- package/dist/types/rmsMaintenanceTicketType.d.ts +3 -0
- package/dist/types/rmsMaintenanceTicketType.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
module.exports = {
|
|
3
|
+
up: async (queryInterface, Sequelize) => {
|
|
4
|
+
const defaultColumns = {
|
|
5
|
+
id: { type: Sequelize.UUID, defaultValue: Sequelize.UUIDV4, allowNull: true, primaryKey: true },
|
|
6
|
+
institute_id: { type: Sequelize.UUID, allowNull: true },
|
|
7
|
+
created_by: { type: Sequelize.UUID, allowNull: true },
|
|
8
|
+
updated_by: { type: Sequelize.UUID, allowNull: true },
|
|
9
|
+
deleted_by: { type: Sequelize.UUID, allowNull: true },
|
|
10
|
+
created_at: { type: Sequelize.DATE, allowNull: true },
|
|
11
|
+
updated_at: { type: Sequelize.DATE, allowNull: true },
|
|
12
|
+
};
|
|
13
|
+
// Maintenance Tickets
|
|
14
|
+
await queryInterface.createTable('rms_maintenance_tickets', {
|
|
15
|
+
...defaultColumns,
|
|
16
|
+
resource_id: { type: Sequelize.UUID, allowNull: true }, // generic resource link
|
|
17
|
+
asset_id: { type: Sequelize.UUID, allowNull: true }, // specific asset link
|
|
18
|
+
facility_id: { type: Sequelize.UUID, allowNull: true },
|
|
19
|
+
reported_by: { type: Sequelize.UUID, allowNull: true },
|
|
20
|
+
assigned_to: { type: Sequelize.UUID, allowNull: true },
|
|
21
|
+
issue_description: { type: Sequelize.TEXT, allowNull: true },
|
|
22
|
+
priority: { type: Sequelize.STRING, allowNull: true },
|
|
23
|
+
status: { type: Sequelize.STRING, allowNull: true },
|
|
24
|
+
expected_completion_date: { type: Sequelize.DATE, allowNull: true },
|
|
25
|
+
actual_completion_date: { type: Sequelize.DATE, allowNull: true },
|
|
26
|
+
resolution_notes: { type: Sequelize.TEXT, allowNull: true },
|
|
27
|
+
cost: { type: Sequelize.DECIMAL(10, 2), allowNull: true },
|
|
28
|
+
deleted_at: { type: Sequelize.DATE, allowNull: true },
|
|
29
|
+
});
|
|
30
|
+
// Maintenance Activities
|
|
31
|
+
await queryInterface.createTable('rms_maintenance_activities', {
|
|
32
|
+
...defaultColumns,
|
|
33
|
+
ticket_id: { type: Sequelize.UUID, allowNull: true },
|
|
34
|
+
performed_by: { type: Sequelize.UUID, allowNull: true },
|
|
35
|
+
activity_date: { type: Sequelize.DATE, allowNull: true },
|
|
36
|
+
description: { type: Sequelize.TEXT, allowNull: true },
|
|
37
|
+
parts_replaced: { type: Sequelize.ARRAY(Sequelize.STRING), allowNull: true }, // updated from TEXT to ARRAY
|
|
38
|
+
time_spent_hours: { type: Sequelize.DECIMAL(5, 2), allowNull: true },
|
|
39
|
+
cost: { type: Sequelize.DECIMAL(10, 2), allowNull: true },
|
|
40
|
+
});
|
|
41
|
+
// Facilities
|
|
42
|
+
await queryInterface.createTable('rms_facilities', {
|
|
43
|
+
...defaultColumns,
|
|
44
|
+
facility_name: { type: Sequelize.STRING, allowNull: true },
|
|
45
|
+
facility_type: { type: Sequelize.STRING, allowNull: true },
|
|
46
|
+
capacity: { type: Sequelize.INTEGER, allowNull: true },
|
|
47
|
+
location_id: { type: Sequelize.UUID, allowNull: true },
|
|
48
|
+
amenities: { type: Sequelize.ARRAY(Sequelize.STRING), allowNull: true },
|
|
49
|
+
status: { type: Sequelize.STRING, allowNull: true },
|
|
50
|
+
deleted_at: { type: Sequelize.DATE, allowNull: true },
|
|
51
|
+
});
|
|
52
|
+
// Facility Bookings
|
|
53
|
+
await queryInterface.createTable('rms_facility_bookings', {
|
|
54
|
+
...defaultColumns,
|
|
55
|
+
facility_id: { type: Sequelize.UUID, allowNull: true },
|
|
56
|
+
booked_by: { type: Sequelize.UUID, allowNull: true },
|
|
57
|
+
purpose: { type: Sequelize.TEXT, allowNull: true },
|
|
58
|
+
start_time: { type: Sequelize.DATE, allowNull: true },
|
|
59
|
+
end_time: { type: Sequelize.DATE, allowNull: true },
|
|
60
|
+
attendees_count: { type: Sequelize.INTEGER, allowNull: true },
|
|
61
|
+
status: { type: Sequelize.STRING, allowNull: true },
|
|
62
|
+
approved_by: { type: Sequelize.UUID, allowNull: true },
|
|
63
|
+
rejection_reason: { type: Sequelize.TEXT, allowNull: true },
|
|
64
|
+
deleted_at: { type: Sequelize.DATE, allowNull: true },
|
|
65
|
+
});
|
|
66
|
+
// Budgets
|
|
67
|
+
await queryInterface.createTable('rms_budgets', {
|
|
68
|
+
...defaultColumns,
|
|
69
|
+
department_id: { type: Sequelize.UUID, allowNull: true },
|
|
70
|
+
financial_year: { type: Sequelize.STRING, allowNull: true },
|
|
71
|
+
budget_category: { type: Sequelize.STRING, allowNull: true },
|
|
72
|
+
allocated_amount: { type: Sequelize.DECIMAL(12, 2), allowNull: true },
|
|
73
|
+
consumed_amount: { type: Sequelize.DECIMAL(12, 2), allowNull: true, },
|
|
74
|
+
status: { type: Sequelize.STRING, allowNull: true },
|
|
75
|
+
remarks: { type: Sequelize.TEXT, allowNull: true },
|
|
76
|
+
deleted_at: { type: Sequelize.DATE, allowNull: true },
|
|
77
|
+
});
|
|
78
|
+
// Expense Entries
|
|
79
|
+
await queryInterface.createTable('rms_expense_entries', {
|
|
80
|
+
...defaultColumns,
|
|
81
|
+
budget_id: { type: Sequelize.UUID, allowNull: true },
|
|
82
|
+
expense_type: { type: Sequelize.STRING, allowNull: true },
|
|
83
|
+
amount: { type: Sequelize.DECIMAL(12, 2), allowNull: true },
|
|
84
|
+
expense_date: { type: Sequelize.DATE, allowNull: true },
|
|
85
|
+
reference_id: { type: Sequelize.STRING, allowNull: true },
|
|
86
|
+
reference_type: { type: Sequelize.STRING, allowNull: true },
|
|
87
|
+
description: { type: Sequelize.TEXT, allowNull: true },
|
|
88
|
+
approved_by: { type: Sequelize.UUID, allowNull: true },
|
|
89
|
+
deleted_at: { type: Sequelize.DATE, allowNull: true },
|
|
90
|
+
});
|
|
91
|
+
},
|
|
92
|
+
down: async (queryInterface) => {
|
|
93
|
+
await queryInterface.dropTable('rms_expense_entries');
|
|
94
|
+
await queryInterface.dropTable('rms_budgets');
|
|
95
|
+
await queryInterface.dropTable('rms_facility_bookings');
|
|
96
|
+
await queryInterface.dropTable('rms_facilities');
|
|
97
|
+
await queryInterface.dropTable('rms_maintenance_activities');
|
|
98
|
+
await queryInterface.dropTable('rms_maintenance_tickets');
|
|
99
|
+
}
|
|
100
|
+
};
|
|
@@ -72,6 +72,15 @@ export * from './replaceTeacherInterface';
|
|
|
72
72
|
export * from './roleInterface';
|
|
73
73
|
export * from './rulesRegulationInterface';
|
|
74
74
|
export * from './schoolOfferInterface';
|
|
75
|
+
export * from './rmsMaintenanceTicketInterface';
|
|
76
|
+
export * from './rmsMaintenanceActivityInterface';
|
|
77
|
+
export * from './rmsAmcContractInterface';
|
|
78
|
+
export * from './rmsFacilityInterface';
|
|
79
|
+
export * from './rmsFacilityBookingInterface';
|
|
80
|
+
export * from './rmsDigitalResourceInterface';
|
|
81
|
+
export * from './rmsDigitalResourceAccessInterface';
|
|
82
|
+
export * from './rmsBudgetInterface';
|
|
83
|
+
export * from './rmsExpenseEntryInterface';
|
|
75
84
|
export * from './sendNotificationInerface';
|
|
76
85
|
export * from './slotInterface';
|
|
77
86
|
export * from './stateInterface';
|
|
@@ -230,3 +239,4 @@ export * from './rmsStorageInterface';
|
|
|
230
239
|
export * from './rmsAssetTransactionInterface';
|
|
231
240
|
export * from './rmsResourceDetailsInterface';
|
|
232
241
|
export * from './userFinalResultInterface';
|
|
242
|
+
export * from './refundInterface';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -88,6 +88,15 @@ __exportStar(require("./replaceTeacherInterface"), exports);
|
|
|
88
88
|
__exportStar(require("./roleInterface"), exports);
|
|
89
89
|
__exportStar(require("./rulesRegulationInterface"), exports);
|
|
90
90
|
__exportStar(require("./schoolOfferInterface"), exports);
|
|
91
|
+
__exportStar(require("./rmsMaintenanceTicketInterface"), exports);
|
|
92
|
+
__exportStar(require("./rmsMaintenanceActivityInterface"), exports);
|
|
93
|
+
__exportStar(require("./rmsAmcContractInterface"), exports);
|
|
94
|
+
__exportStar(require("./rmsFacilityInterface"), exports);
|
|
95
|
+
__exportStar(require("./rmsFacilityBookingInterface"), exports);
|
|
96
|
+
__exportStar(require("./rmsDigitalResourceInterface"), exports);
|
|
97
|
+
__exportStar(require("./rmsDigitalResourceAccessInterface"), exports);
|
|
98
|
+
__exportStar(require("./rmsBudgetInterface"), exports);
|
|
99
|
+
__exportStar(require("./rmsExpenseEntryInterface"), exports);
|
|
91
100
|
__exportStar(require("./sendNotificationInerface"), exports);
|
|
92
101
|
__exportStar(require("./slotInterface"), exports);
|
|
93
102
|
__exportStar(require("./stateInterface"), exports);
|
|
@@ -246,3 +255,4 @@ __exportStar(require("./rmsStorageInterface"), exports);
|
|
|
246
255
|
__exportStar(require("./rmsAssetTransactionInterface"), exports);
|
|
247
256
|
__exportStar(require("./rmsResourceDetailsInterface"), exports);
|
|
248
257
|
__exportStar(require("./userFinalResultInterface"), exports);
|
|
258
|
+
__exportStar(require("./refundInterface"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PAYMENT_TYPE, REFUND_ENTITY_TYPE, REFUND_STATUS } from '../constants';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface IRefundCollectionModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
academicCalendarId: string;
|
|
6
|
+
instituteId: string;
|
|
7
|
+
status: REFUND_STATUS;
|
|
8
|
+
refundEntityType: REFUND_ENTITY_TYPE;
|
|
9
|
+
paymentType: PAYMENT_TYPE;
|
|
10
|
+
refundEntityId: string;
|
|
11
|
+
refundedBy: string;
|
|
12
|
+
refundedAt: Date;
|
|
13
|
+
refundAmount: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
import { RMS_AMC_CONTRACT_STATUS, RMS_AMC_SERVICE_STATUS } from '../constants';
|
|
4
|
+
export interface IAmcServiceRecord {
|
|
5
|
+
nextServiceDueDate?: Date | null;
|
|
6
|
+
serviceDate?: Date | null;
|
|
7
|
+
status?: RMS_AMC_SERVICE_STATUS | null;
|
|
8
|
+
serviceDoneDate?: Date | null;
|
|
9
|
+
deliveryManName?: string | null;
|
|
10
|
+
deliveryManNumber?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface IRmsAmcContractAttributes extends IDefaultAttributes, Document {
|
|
13
|
+
id: string;
|
|
14
|
+
instituteId: string;
|
|
15
|
+
vendorId: string;
|
|
16
|
+
recourseId?: string | null;
|
|
17
|
+
contractTitle: string;
|
|
18
|
+
contractNumber: string;
|
|
19
|
+
startDate: Date;
|
|
20
|
+
endDate: Date;
|
|
21
|
+
cost: number;
|
|
22
|
+
servicesList?: IAmcServiceRecord[] | null;
|
|
23
|
+
status: RMS_AMC_CONTRACT_STATUS;
|
|
24
|
+
termsAndConditions?: string | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RMS_BUDGET_STATUS } from '../constants';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface IRmsBudgetAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
instituteId: string;
|
|
6
|
+
departmentId?: string | null;
|
|
7
|
+
financialYear: string;
|
|
8
|
+
budgetCategory: string;
|
|
9
|
+
allocatedAmount: number;
|
|
10
|
+
consumedAmount: number;
|
|
11
|
+
status: RMS_BUDGET_STATUS;
|
|
12
|
+
remarks?: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface IRmsDigitalResourceAccessAttributes extends IDefaultAttributes, Document {
|
|
4
|
+
id: string;
|
|
5
|
+
instituteId: string;
|
|
6
|
+
digitalResourceId: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
accessGrantedAt: Date;
|
|
9
|
+
accessRevokedAt?: Date | null;
|
|
10
|
+
status: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
import { RMS_DIGITAL_STATUS } from '../constants/app';
|
|
4
|
+
export interface IRmsDigitalResourceAttributes extends IDefaultAttributes, Document {
|
|
5
|
+
id: string;
|
|
6
|
+
instituteId: string;
|
|
7
|
+
title: string;
|
|
8
|
+
type: string;
|
|
9
|
+
authorOrPublisher?: string | null;
|
|
10
|
+
fileStorageId?: string | null;
|
|
11
|
+
url?: string | null;
|
|
12
|
+
status: RMS_DIGITAL_STATUS;
|
|
13
|
+
expiryDate?: Date | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
2
|
+
import { RMS_EXPENSE_TYPE } from '../constants/app';
|
|
3
|
+
export interface IRmsExpenseEntryAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
instituteId: string;
|
|
6
|
+
budgetId?: string | null;
|
|
7
|
+
expenseType: RMS_EXPENSE_TYPE;
|
|
8
|
+
amount: number;
|
|
9
|
+
expenseDate: Date;
|
|
10
|
+
referenceId?: string | null;
|
|
11
|
+
referenceType?: string | null;
|
|
12
|
+
description: string;
|
|
13
|
+
approvedBy?: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
2
|
+
import { RMS_BOOKING_STATUS } from '../constants/app';
|
|
3
|
+
export interface IRmsFacilityBookingAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
instituteId: string;
|
|
6
|
+
facilityId: string;
|
|
7
|
+
bookedBy: string;
|
|
8
|
+
purpose: string;
|
|
9
|
+
startTime: Date;
|
|
10
|
+
endTime: Date;
|
|
11
|
+
attendeesCount?: number | null;
|
|
12
|
+
status: RMS_BOOKING_STATUS;
|
|
13
|
+
approvedBy?: string | null;
|
|
14
|
+
rejectionReason?: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RMS_FACILITY_STATUS } from '../constants';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface IRmsFacilityAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
instituteId: string;
|
|
6
|
+
facilityName: string;
|
|
7
|
+
facilityType?: string;
|
|
8
|
+
capacity?: number | null;
|
|
9
|
+
locationId?: string | null;
|
|
10
|
+
amenities?: string[] | null;
|
|
11
|
+
status: RMS_FACILITY_STATUS;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
2
|
+
export interface IRmsMaintenanceActivityAttributes extends IDefaultAttributes {
|
|
3
|
+
id: string;
|
|
4
|
+
instituteId: string;
|
|
5
|
+
ticketId: string;
|
|
6
|
+
performedBy: string;
|
|
7
|
+
activityDate: Date;
|
|
8
|
+
description: string;
|
|
9
|
+
partsReplaced?: string[] | null;
|
|
10
|
+
timeSpentHours?: number | null;
|
|
11
|
+
cost?: number | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
2
|
+
import { RMS_TICKET_STATUS, RMS_TICKET_PRIORITY } from '../constants/app';
|
|
3
|
+
export interface IRmsMaintenanceTicketAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
instituteId: string;
|
|
6
|
+
resourceId?: string | null;
|
|
7
|
+
assetId?: string | null;
|
|
8
|
+
facilityId?: string | null;
|
|
9
|
+
reportedBy: string;
|
|
10
|
+
assignedTo?: string | null;
|
|
11
|
+
issueDescription: string;
|
|
12
|
+
priority: RMS_TICKET_PRIORITY;
|
|
13
|
+
status: RMS_TICKET_STATUS;
|
|
14
|
+
expectedCompletionDate?: Date | null;
|
|
15
|
+
actualCompletionDate?: Date | null;
|
|
16
|
+
resolutionNotes?: string | null;
|
|
17
|
+
cost?: number | null;
|
|
18
|
+
}
|
|
@@ -72,4 +72,7 @@ export { default as PastYearRecordTopperModel } from './pastYearRecordTopperMode
|
|
|
72
72
|
export { default as OnlineLectureModel } from './onlineLectureModel';
|
|
73
73
|
export { default as RmsAuditLogModel } from './rmsAuditLogModel';
|
|
74
74
|
export { default as RmsResourceDetailsModel } from './rmsResourceDetailsModel';
|
|
75
|
+
export { default as RmsAmcContractModel } from './rmsAmcContractModel';
|
|
76
|
+
export { default as RmsDigitalResourceModel } from './rmsDigitalResourceModel';
|
|
77
|
+
export { default as RmsDigitalResourceAccessModel } from './rmsDigitalResourceAccessModel';
|
|
75
78
|
export { default as UserFinalResultModel } from './userFinalResultModel';
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PollSelectionModel = exports.CreatePollModel = exports.SheetFieldMappingModel = exports.FileUploadUserDetails = exports.CompetitionUsersModel = exports.CompetitionGroupModel = exports.CompetitionModel = exports.CampusCarnivalModel = exports.AppointmentHistoryModel = exports.AppointmentModel = exports.SeatingArrangementModel = exports.AssignFileModel = exports.ThemeModel = exports.BDayWishModel = exports.AdditionalDetailModel = exports.CanteenModel = exports.WalletTransactionModel = exports.VideoAnalystModel = exports.UserSchoolMetaModel = exports.UserInstituteMetaModel = exports.UserDetailsModel = exports.UniqueNumberCounterModel = exports.TaskManagementModel = exports.SubscriptionPlanModel = exports.SubjectIndexModel = exports.ReplaceTeacherModel = exports.PlannerModel = exports.PhotosGalleryModel = exports.JobApplyModel = exports.InvoiceModel = exports.InquiryModel = exports.InformationSupportModel = exports.HolidayModel = exports.GenerateIdCardModel = exports.FeedBackModel = exports.FeeReminderTypeModel = exports.ExamModel = exports.ExamHasAnswerSheetModel = exports.ExamGroupModel = exports.EventModel = exports.DashboardManagementModel = exports.DailyBookModel = exports.ColumnModel = exports.CertificatesManagementModel = exports.CertificatesHistoryModel = exports.CareerModel = exports.BlogModel = exports.AttendanceModel = exports.ApprovalRequestModel = exports.connectMongoDb = void 0;
|
|
7
|
-
exports.UserFinalResultModel = exports.RmsResourceDetailsModel = exports.RmsAuditLogModel = exports.OnlineLectureModel = exports.PastYearRecordTopperModel = exports.FeeSubmissionModel = exports.AdvertisementModel = exports.RoleHasPermissionModel = exports.CommunityMessageModel = exports.CommunityGroupMemberModel = exports.CommunityGroupModel = exports.OfferAndDiscountModel = exports.SubscriptionConfigurationModel = exports.ModulePriceModel = exports.PdcChequeConfigurationModel = exports.FinalMarkSheetModel = exports.MarkSheetConfigurationModel = exports.AppAnalyticsEventModel = exports.GrantAndDonationModel = exports.TicketRaiseModel = exports.EducationOfficerModel = exports.InstituteFeeModel = exports.SchoolFee1Model = exports.FeeConfigModel = exports.EventTemplatesModel = void 0;
|
|
7
|
+
exports.UserFinalResultModel = exports.RmsDigitalResourceAccessModel = exports.RmsDigitalResourceModel = exports.RmsAmcContractModel = exports.RmsResourceDetailsModel = exports.RmsAuditLogModel = exports.OnlineLectureModel = exports.PastYearRecordTopperModel = exports.FeeSubmissionModel = exports.AdvertisementModel = exports.RoleHasPermissionModel = exports.CommunityMessageModel = exports.CommunityGroupMemberModel = exports.CommunityGroupModel = exports.OfferAndDiscountModel = exports.SubscriptionConfigurationModel = exports.ModulePriceModel = exports.PdcChequeConfigurationModel = exports.FinalMarkSheetModel = exports.MarkSheetConfigurationModel = exports.AppAnalyticsEventModel = exports.GrantAndDonationModel = exports.TicketRaiseModel = exports.EducationOfficerModel = exports.InstituteFeeModel = exports.SchoolFee1Model = exports.FeeConfigModel = exports.EventTemplatesModel = void 0;
|
|
8
8
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
9
9
|
const env_1 = require("../../configs/env");
|
|
10
10
|
const transformIdInQueryPlugin_1 = __importDefault(require("./plugin/transformIdInQueryPlugin"));
|
|
@@ -171,5 +171,11 @@ var rmsAuditLogModel_1 = require("./rmsAuditLogModel");
|
|
|
171
171
|
Object.defineProperty(exports, "RmsAuditLogModel", { enumerable: true, get: function () { return __importDefault(rmsAuditLogModel_1).default; } });
|
|
172
172
|
var rmsResourceDetailsModel_1 = require("./rmsResourceDetailsModel");
|
|
173
173
|
Object.defineProperty(exports, "RmsResourceDetailsModel", { enumerable: true, get: function () { return __importDefault(rmsResourceDetailsModel_1).default; } });
|
|
174
|
+
var rmsAmcContractModel_1 = require("./rmsAmcContractModel");
|
|
175
|
+
Object.defineProperty(exports, "RmsAmcContractModel", { enumerable: true, get: function () { return __importDefault(rmsAmcContractModel_1).default; } });
|
|
176
|
+
var rmsDigitalResourceModel_1 = require("./rmsDigitalResourceModel");
|
|
177
|
+
Object.defineProperty(exports, "RmsDigitalResourceModel", { enumerable: true, get: function () { return __importDefault(rmsDigitalResourceModel_1).default; } });
|
|
178
|
+
var rmsDigitalResourceAccessModel_1 = require("./rmsDigitalResourceAccessModel");
|
|
179
|
+
Object.defineProperty(exports, "RmsDigitalResourceAccessModel", { enumerable: true, get: function () { return __importDefault(rmsDigitalResourceAccessModel_1).default; } });
|
|
174
180
|
var userFinalResultModel_1 = require("./userFinalResultModel");
|
|
175
181
|
Object.defineProperty(exports, "UserFinalResultModel", { enumerable: true, get: function () { return __importDefault(userFinalResultModel_1).default; } });
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
+
const AmcServiceRecordSchema = new mongoose_1.Schema({
|
|
38
|
+
nextServiceDueDate: { type: Date, required: false },
|
|
39
|
+
serviceDate: { type: Date, required: false },
|
|
40
|
+
status: { type: String, required: false },
|
|
41
|
+
serviceDoneDate: { type: Date, required: false },
|
|
42
|
+
deliveryManName: { type: String, required: false },
|
|
43
|
+
deliveryManNumber: { type: String, required: false },
|
|
44
|
+
}, { _id: false });
|
|
45
|
+
const RmsAmcContractSchema = new mongoose_1.Schema({
|
|
46
|
+
instituteId: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: true,
|
|
49
|
+
},
|
|
50
|
+
vendorId: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: true,
|
|
53
|
+
},
|
|
54
|
+
recourseId: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: false,
|
|
57
|
+
},
|
|
58
|
+
contractTitle: {
|
|
59
|
+
type: String,
|
|
60
|
+
required: true,
|
|
61
|
+
},
|
|
62
|
+
contractNumber: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: true,
|
|
65
|
+
},
|
|
66
|
+
startDate: {
|
|
67
|
+
type: Date,
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
endDate: {
|
|
71
|
+
type: Date,
|
|
72
|
+
required: true,
|
|
73
|
+
},
|
|
74
|
+
cost: {
|
|
75
|
+
type: Number,
|
|
76
|
+
required: true,
|
|
77
|
+
},
|
|
78
|
+
servicesList: {
|
|
79
|
+
type: [AmcServiceRecordSchema],
|
|
80
|
+
required: false,
|
|
81
|
+
default: [],
|
|
82
|
+
},
|
|
83
|
+
status: {
|
|
84
|
+
type: String,
|
|
85
|
+
required: true,
|
|
86
|
+
},
|
|
87
|
+
termsAndConditions: {
|
|
88
|
+
type: String,
|
|
89
|
+
required: false,
|
|
90
|
+
},
|
|
91
|
+
createdBy: {
|
|
92
|
+
type: String,
|
|
93
|
+
},
|
|
94
|
+
updatedBy: {
|
|
95
|
+
type: String,
|
|
96
|
+
},
|
|
97
|
+
deletedBy: {
|
|
98
|
+
type: String,
|
|
99
|
+
},
|
|
100
|
+
}, {
|
|
101
|
+
timestamps: true,
|
|
102
|
+
versionKey: false,
|
|
103
|
+
});
|
|
104
|
+
const RmsAmcContractModel = mongoose_1.default.model('rms_amc_contract', RmsAmcContractSchema);
|
|
105
|
+
exports.default = RmsAmcContractModel;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Model } from 'mongoose';
|
|
2
|
+
import { IRmsDigitalResourceAccessAttributes } from '../../interfaces/rmsDigitalResourceAccessInterface';
|
|
3
|
+
declare const RmsDigitalResourceAccessModel: Model<IRmsDigitalResourceAccessAttributes>;
|
|
4
|
+
export default RmsDigitalResourceAccessModel;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
+
const RmsDigitalResourceAccessSchema = new mongoose_1.Schema({
|
|
38
|
+
instituteId: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: true,
|
|
41
|
+
},
|
|
42
|
+
digitalResourceId: {
|
|
43
|
+
type: String,
|
|
44
|
+
required: true,
|
|
45
|
+
},
|
|
46
|
+
userId: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: true,
|
|
49
|
+
},
|
|
50
|
+
accessGrantedAt: {
|
|
51
|
+
type: Date,
|
|
52
|
+
required: false,
|
|
53
|
+
default: Date.now,
|
|
54
|
+
},
|
|
55
|
+
accessRevokedAt: {
|
|
56
|
+
type: Date,
|
|
57
|
+
required: false,
|
|
58
|
+
},
|
|
59
|
+
status: {
|
|
60
|
+
type: String,
|
|
61
|
+
required: true,
|
|
62
|
+
},
|
|
63
|
+
createdBy: { type: String },
|
|
64
|
+
updatedBy: { type: String },
|
|
65
|
+
deletedBy: { type: String },
|
|
66
|
+
}, {
|
|
67
|
+
timestamps: true,
|
|
68
|
+
versionKey: false,
|
|
69
|
+
});
|
|
70
|
+
const RmsDigitalResourceAccessModel = mongoose_1.default.model('rms_digital_resource_access', RmsDigitalResourceAccessSchema);
|
|
71
|
+
exports.default = RmsDigitalResourceAccessModel;
|