dt-common-device 4.0.7 → 5.0.0
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/alerts/Alert.service.d.ts +1 -1
- package/dist/audit/AuditUtils.d.ts +26 -2
- package/dist/audit/AuditUtils.js +255 -32
- package/dist/audit/IAuditProperties.d.ts +32 -0
- package/dist/audit/IAuditProperties.js +13 -0
- package/dist/audit/PushAudit.d.ts +5 -0
- package/dist/audit/PushAudit.js +16 -0
- package/dist/audit/index.d.ts +2 -0
- package/dist/audit/index.js +18 -0
- package/dist/config/config.d.ts +10 -3
- package/dist/config/config.js +120 -47
- package/dist/config/config.types.d.ts +1 -8
- package/dist/config/constants.d.ts +49 -0
- package/dist/config/constants.js +64 -0
- package/dist/db/db.d.ts +2 -0
- package/dist/db/db.js +23 -1
- package/dist/entities/accessGroup/AccessGroup.repository.d.ts +5 -0
- package/dist/entities/accessGroup/AccessGroup.repository.js +72 -0
- package/dist/entities/accessGroup/AccessGroup.service.d.ts +5 -0
- package/dist/{device/local/repository/Connection.repository.js → entities/accessGroup/AccessGroup.service.js} +50 -37
- package/dist/entities/accessGroup/IAccessGroup.d.ts +14 -0
- package/dist/entities/accessGroup/index.d.ts +2 -0
- package/dist/entities/accessGroup/index.js +18 -0
- package/dist/{admin → entities/admin}/Admin.repository.js +4 -4
- package/dist/{connection → entities/connection}/Connection.repository.js +1 -1
- package/dist/{device → entities/device}/local/repository/Device.repository.d.ts +1 -0
- package/dist/{device → entities/device}/local/repository/Device.repository.js +20 -3
- package/dist/{device → entities/device}/local/repository/Hub.repository.js +3 -3
- package/dist/{device → entities/device}/local/repository/Schedule.repository.js +2 -2
- package/dist/{device → entities/device}/local/services/Device.service.d.ts +10 -9
- package/dist/{device → entities/device}/local/services/Device.service.js +10 -4
- package/dist/entities/guest/Guest.repository.d.ts +6 -0
- package/dist/entities/guest/Guest.repository.js +74 -0
- package/dist/entities/guest/Guest.service.d.ts +6 -0
- package/dist/entities/guest/Guest.service.js +104 -0
- package/dist/entities/guest/IGuest.d.ts +12 -0
- package/dist/entities/guest/index.d.ts +2 -0
- package/dist/entities/guest/index.js +18 -0
- package/dist/{property → entities/property}/Property.repository.js +1 -1
- package/dist/entities/schedules/ISchedule.d.ts +14 -0
- package/dist/entities/schedules/Schedule.repository.d.ts +6 -0
- package/dist/entities/schedules/Schedule.repository.js +74 -0
- package/dist/entities/schedules/Schedule.service.d.ts +6 -0
- package/dist/entities/schedules/Schedule.service.js +104 -0
- package/dist/entities/schedules/index.d.ts +2 -0
- package/dist/entities/schedules/index.js +18 -0
- package/dist/{user → entities/user}/User.repository.js +2 -2
- package/dist/{user → entities/user}/User.service.js +3 -0
- package/dist/entities/zone/IZone.d.ts +10 -0
- package/dist/entities/zone/Zone.repository.d.ts +6 -0
- package/dist/{device/local/repository/Property.repository.js → entities/zone/Zone.repository.js} +14 -32
- package/dist/entities/zone/Zone.service.d.ts +6 -0
- package/dist/entities/zone/Zone.service.js +104 -0
- package/dist/entities/zone/index.d.ts +2 -0
- package/dist/entities/zone/index.js +18 -0
- package/dist/events/BaseEventHandler.d.ts +3 -3
- package/dist/events/BaseEventHandler.js +1 -1
- package/dist/events/DeviceEventHandler.d.ts +1 -1
- package/dist/events/DeviceEventHandler.js +4 -3
- package/dist/events/EventHandler.d.ts +10 -9
- package/dist/events/EventHandler.js +50 -9
- package/dist/events/InternalEventSubscription.js +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +10 -8
- package/dist/issues/Issue.service.d.ts +1 -1
- package/dist/microservice/MicroServiceFactory.d.ts +1 -1
- package/dist/microservice/MicroServiceFactory.js +1 -1
- package/dist/utils/http.utils.d.ts +1 -2
- package/dist/utils/http.utils.js +5 -27
- package/package.json +1 -1
- package/dist/audit/AuditProperties.d.ts +0 -16
- package/dist/device/cloud/entities/CloudConnection.d.ts +0 -6
- package/dist/device/cloud/entities/CloudConnection.js +0 -6
- package/dist/device/cloud/interfaces/ICloudConnection.d.ts +0 -5
- package/dist/device/cloud/interfaces/IConnectionService.d.ts +0 -7
- package/dist/device/cloud/interfaces/IDeviceService.d.ts +0 -8
- package/dist/device/cloud/interfaces/IHubService.d.ts +0 -5
- package/dist/device/cloud/interfaces/IHubService.js +0 -2
- package/dist/device/cloud/services/CloudDevice.service.d.ts +0 -5
- package/dist/device/cloud/services/CloudDevice.service.js +0 -9
- package/dist/device/cloud/services/Connection.service.d.ts +0 -8
- package/dist/device/cloud/services/Connection.service.js +0 -6
- package/dist/device/cloud/services/index.d.ts +0 -2
- package/dist/device/cloud/services/index.js +0 -18
- package/dist/device/cloud/types.d.ts +0 -52
- package/dist/device/cloud/types.js +0 -15
- package/dist/device/local/entities/AlertBuilder.d.ts +0 -87
- package/dist/device/local/entities/AlertBuilder.example.d.ts +0 -11
- package/dist/device/local/entities/AlertBuilder.example.js +0 -117
- package/dist/device/local/entities/AlertBuilder.js +0 -179
- package/dist/device/local/entities/IssueBuilder.d.ts +0 -109
- package/dist/device/local/entities/IssueBuilder.example.d.ts +0 -16
- package/dist/device/local/entities/IssueBuilder.example.js +0 -196
- package/dist/device/local/entities/IssueBuilder.js +0 -237
- package/dist/device/local/entities/index.d.ts +0 -2
- package/dist/device/local/entities/index.js +0 -7
- package/dist/device/local/events/EventHandler.d.ts +0 -11
- package/dist/device/local/events/EventHandler.js +0 -86
- package/dist/device/local/events/Events.d.ts +0 -75
- package/dist/device/local/events/Events.js +0 -78
- package/dist/device/local/events/index.d.ts +0 -2
- package/dist/device/local/events/index.js +0 -7
- package/dist/device/local/handler/EventHandler.d.ts +0 -7
- package/dist/device/local/handler/EventHandler.js +0 -44
- package/dist/device/local/interfaces/IConnection.d.ts +0 -26
- package/dist/device/local/interfaces/IConnection.js +0 -14
- package/dist/device/local/interfaces/IHub.d.ts +0 -46
- package/dist/device/local/interfaces/IHub.js +0 -2
- package/dist/device/local/models/Alert.model.d.ts +0 -28
- package/dist/device/local/models/Alert.model.js +0 -222
- package/dist/device/local/models/Issue.model.d.ts +0 -28
- package/dist/device/local/models/Issue.model.js +0 -260
- package/dist/device/local/repository/Alert.repository.d.ts +0 -106
- package/dist/device/local/repository/Alert.repository.js +0 -374
- package/dist/device/local/repository/Connection.repository.d.ts +0 -8
- package/dist/device/local/repository/Issue.repository.d.ts +0 -113
- package/dist/device/local/repository/Issue.repository.js +0 -401
- package/dist/device/local/repository/Property.repository.d.ts +0 -8
- package/dist/device/local/services/Alert.service.d.ts +0 -137
- package/dist/device/local/services/Alert.service.js +0 -475
- package/dist/device/local/services/AlertService.example.d.ts +0 -55
- package/dist/device/local/services/AlertService.example.js +0 -148
- package/dist/device/local/services/Connection.service.d.ts +0 -8
- package/dist/device/local/services/Connection.service.js +0 -32
- package/dist/device/local/services/Issue.service.d.ts +0 -168
- package/dist/device/local/services/Issue.service.js +0 -642
- package/dist/device/local/services/IssueService.example.d.ts +0 -68
- package/dist/device/local/services/IssueService.example.js +0 -177
- package/dist/device/local/services/Property.service.d.ts +0 -8
- package/dist/device/local/services/Property.service.js +0 -36
- package/dist/property/IProperty.d.ts +0 -29
- package/dist/property/IProperty.js +0 -2
- package/dist/queue/interfaces/IHttpRequestJob.d.ts +0 -9
- package/dist/queue/interfaces/IHttpRequestJob.js +0 -2
- package/dist/types/alert.types.d.ts +0 -57
- package/dist/types/alert.types.js +0 -22
- package/dist/types/config.types.d.ts +0 -19
- package/dist/types/config.types.js +0 -2
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.js +0 -19
- package/dist/types/issue.types.d.ts +0 -90
- package/dist/types/issue.types.js +0 -40
- package/dist/utils/http-utils.d.ts +0 -13
- package/dist/utils/http-utils.js +0 -117
- /package/dist/{audit/AuditProperties.js → entities/accessGroup/IAccessGroup.js} +0 -0
- /package/dist/{admin → entities/admin}/Admin.repository.d.ts +0 -0
- /package/dist/{admin → entities/admin}/Admin.service.d.ts +0 -0
- /package/dist/{admin → entities/admin}/Admin.service.js +0 -0
- /package/dist/{admin → entities/admin}/index.d.ts +0 -0
- /package/dist/{admin → entities/admin}/index.js +0 -0
- /package/dist/{connection → entities/connection}/Connection.repository.d.ts +0 -0
- /package/dist/{connection → entities/connection}/Connection.service.d.ts +0 -0
- /package/dist/{connection → entities/connection}/Connection.service.js +0 -0
- /package/dist/{connection → entities/connection}/IConnection.d.ts +0 -0
- /package/dist/{connection → entities/connection}/IConnection.js +0 -0
- /package/dist/{connection → entities/connection}/index.d.ts +0 -0
- /package/dist/{connection → entities/connection}/index.js +0 -0
- /package/dist/{device → entities/device}/cloud/entities/CloudDevice.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/entities/CloudDevice.js +0 -0
- /package/dist/{device → entities/device}/cloud/entities/CloudDeviceService.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/entities/CloudDeviceService.js +0 -0
- /package/dist/{device → entities/device}/cloud/entities/DeviceFactory.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/entities/DeviceFactory.js +0 -0
- /package/dist/{device → entities/device}/cloud/entities/index.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/entities/index.js +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/ICloudDevice.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/ICloudDevice.js +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/ICloudDeviceService.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/ICloudDeviceService.js +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/IDeviceFactory.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/IDeviceFactory.js +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/IRawDataTransformer.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/IRawDataTransformer.js +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/IRawDevice.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/IRawDevice.js +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/index.d.ts +0 -0
- /package/dist/{device → entities/device}/cloud/interfaces/index.js +0 -0
- /package/dist/{device → entities/device}/local/interfaces/IDevice.d.ts +0 -0
- /package/dist/{device → entities/device}/local/interfaces/IDevice.js +0 -0
- /package/dist/{device → entities/device}/local/interfaces/IDtDevice.d.ts +0 -0
- /package/dist/{device → entities/device}/local/interfaces/IDtDevice.js +0 -0
- /package/dist/{device → entities/device}/local/interfaces/ISchedule.d.ts +0 -0
- /package/dist/{device → entities/device}/local/interfaces/ISchedule.js +0 -0
- /package/dist/{device → entities/device}/local/interfaces/index.d.ts +0 -0
- /package/dist/{device → entities/device}/local/interfaces/index.js +0 -0
- /package/dist/{device → entities/device}/local/repository/Hub.repository.d.ts +0 -0
- /package/dist/{device → entities/device}/local/repository/Schedule.repository.d.ts +0 -0
- /package/dist/{device → entities/device}/local/services/Hub.service.d.ts +0 -0
- /package/dist/{device → entities/device}/local/services/Hub.service.js +0 -0
- /package/dist/{device → entities/device}/local/services/Schedule.service.d.ts +0 -0
- /package/dist/{device → entities/device}/local/services/Schedule.service.js +0 -0
- /package/dist/{device → entities/device}/local/services/index.d.ts +0 -0
- /package/dist/{device → entities/device}/local/services/index.js +0 -0
- /package/dist/{device/cloud/interfaces/ICloudConnection.js → entities/guest/IGuest.js} +0 -0
- /package/dist/{pms → entities/pms}/IPms.d.ts +0 -0
- /package/dist/{pms → entities/pms}/IPms.js +0 -0
- /package/dist/{pms → entities/pms}/index.d.ts +0 -0
- /package/dist/{pms → entities/pms}/index.js +0 -0
- /package/dist/{device/local/interfaces → entities/property}/IProperty.d.ts +0 -0
- /package/dist/{device/local/interfaces → entities/property}/IProperty.js +0 -0
- /package/dist/{property → entities/property}/Property.repository.d.ts +0 -0
- /package/dist/{property → entities/property}/Property.service.d.ts +0 -0
- /package/dist/{property → entities/property}/Property.service.js +0 -0
- /package/dist/{property → entities/property}/index.d.ts +0 -0
- /package/dist/{property → entities/property}/index.js +0 -0
- /package/dist/{device/cloud/interfaces/IConnectionService.js → entities/schedules/ISchedule.js} +0 -0
- /package/dist/{user → entities/user}/IUser.d.ts +0 -0
- /package/dist/{user → entities/user}/IUser.js +0 -0
- /package/dist/{user → entities/user}/User.repository.d.ts +0 -0
- /package/dist/{user → entities/user}/User.service.d.ts +0 -0
- /package/dist/{device/cloud/interfaces/IDeviceService.js → entities/zone/IZone.js} +0 -0
|
@@ -73,9 +73,9 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
73
73
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
74
|
exports.AdminRepository = void 0;
|
|
75
75
|
const typedi_1 = __importStar(require("typedi"));
|
|
76
|
-
const utils_1 = require("
|
|
76
|
+
const utils_1 = require("../../utils");
|
|
77
77
|
const Device_repository_1 = require("../device/local/repository/Device.repository");
|
|
78
|
-
const db_1 = require("
|
|
78
|
+
const db_1 = require("../../db/db");
|
|
79
79
|
const interfaces_1 = require("../device/cloud/interfaces");
|
|
80
80
|
let AdminRepository = (() => {
|
|
81
81
|
let _classDecorators = [(0, typedi_1.Service)()];
|
|
@@ -84,7 +84,7 @@ let AdminRepository = (() => {
|
|
|
84
84
|
let _classThis;
|
|
85
85
|
var AdminRepository = _classThis = class {
|
|
86
86
|
constructor() {
|
|
87
|
-
this.axiosInstance = (0, utils_1.
|
|
87
|
+
this.axiosInstance = (0, utils_1.getAdminServiceAxiosInstance)();
|
|
88
88
|
this.deviceRepository = typedi_1.default.get(Device_repository_1.DeviceRepository);
|
|
89
89
|
this.postgres = (0, db_1.getPostgresClient)();
|
|
90
90
|
}
|
|
@@ -147,7 +147,7 @@ let AdminRepository = (() => {
|
|
|
147
147
|
return [];
|
|
148
148
|
const deviecDetail = await this.deviceRepository.queryDevices({
|
|
149
149
|
zoneIds: _zoneIds,
|
|
150
|
-
excludeDeviceType: interfaces_1.DeviceType.HUB
|
|
150
|
+
excludeDeviceType: interfaces_1.DeviceType.HUB,
|
|
151
151
|
});
|
|
152
152
|
const _collectionZone = collectionZone.map((e) => {
|
|
153
153
|
const zones = e.zoneIds;
|
|
@@ -39,7 +39,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.ConnectionRepository = void 0;
|
|
42
|
-
const db_1 = require("
|
|
42
|
+
const db_1 = require("../../db");
|
|
43
43
|
const typedi_1 = require("typedi");
|
|
44
44
|
let ConnectionRepository = (() => {
|
|
45
45
|
let _classDecorators = [(0, typedi_1.Service)()];
|
|
@@ -7,6 +7,7 @@ export declare class DeviceRepository {
|
|
|
7
7
|
createDevice(body: IDevice): Promise<IDevice>;
|
|
8
8
|
getDevice(deviceId: string, withHubDetails?: boolean): Promise<IDevice>;
|
|
9
9
|
updateDevice(deviceId: string, body: any): Promise<IDevice>;
|
|
10
|
+
updateDevices(query: any, updateData: any): Promise<any>;
|
|
10
11
|
deleteDevice(deviceId: string): Promise<void>;
|
|
11
12
|
getDevices(deviceIds: string[], withHubDetails?: boolean): Promise<IDevice[]>;
|
|
12
13
|
getPropertyDevices(propertyId: string, selectDeviceId?: boolean, type?: string, withHubDetails?: boolean): Promise<IDevice[]>;
|
|
@@ -39,10 +39,10 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.DeviceRepository = void 0;
|
|
42
|
-
const config_1 = require("
|
|
43
|
-
const db_1 = require("
|
|
42
|
+
const config_1 = require("../../../../config/config");
|
|
43
|
+
const db_1 = require("../../../../db");
|
|
44
44
|
const typedi_1 = require("typedi");
|
|
45
|
-
const http_utils_1 = require("
|
|
45
|
+
const http_utils_1 = require("../../../../utils/http.utils");
|
|
46
46
|
let DeviceRepository = (() => {
|
|
47
47
|
let _classDecorators = [(0, typedi_1.Service)()];
|
|
48
48
|
let _classDescriptor;
|
|
@@ -83,6 +83,19 @@ let DeviceRepository = (() => {
|
|
|
83
83
|
throw new Error(`Failed to update device: ${error.message || "Unknown error"}`);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
+
async updateDevices(query, updateData) {
|
|
87
|
+
try {
|
|
88
|
+
const response = await this.axiosInstance.put(`/devices/updateMany`, {
|
|
89
|
+
query,
|
|
90
|
+
updateData,
|
|
91
|
+
});
|
|
92
|
+
return response.data;
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
(0, config_1.getConfig)().LOGGER.error("Failed to update devices:", error);
|
|
96
|
+
throw new Error(`Failed to update devices: ${error.message}`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
86
99
|
async deleteDevice(deviceId) {
|
|
87
100
|
try {
|
|
88
101
|
await this.axiosInstance.delete(`/devices/${deviceId}`);
|
|
@@ -170,14 +183,18 @@ let DeviceRepository = (() => {
|
|
|
170
183
|
}
|
|
171
184
|
}
|
|
172
185
|
async setStatusMany(query, newStatus) {
|
|
186
|
+
console.log("SetStatusMany query:------------", query);
|
|
187
|
+
console.log("SetStatusMany newStatus:------------", newStatus);
|
|
173
188
|
try {
|
|
174
189
|
const response = await this.axiosInstance.put(`/devices/statusMany`, {
|
|
175
190
|
query,
|
|
176
191
|
status: newStatus,
|
|
177
192
|
});
|
|
193
|
+
console.log("SetStatusMany response:------------", response);
|
|
178
194
|
return response.data;
|
|
179
195
|
}
|
|
180
196
|
catch (error) {
|
|
197
|
+
console.log("SetStatusMany error:------------", error);
|
|
181
198
|
(0, config_1.getConfig)().LOGGER.error(`Failed to set status for multiple devices: ${error.message}`);
|
|
182
199
|
throw new Error(`Failed to set status for multiple devices: ${error.message}`);
|
|
183
200
|
}
|
|
@@ -39,10 +39,10 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.HubRepository = void 0;
|
|
42
|
-
const config_1 = require("
|
|
43
|
-
const db_1 = require("
|
|
42
|
+
const config_1 = require("../../../../config/config");
|
|
43
|
+
const db_1 = require("../../../../db");
|
|
44
44
|
const typedi_1 = require("typedi");
|
|
45
|
-
const http_utils_1 = require("
|
|
45
|
+
const http_utils_1 = require("../../../../utils/http.utils");
|
|
46
46
|
let HubRepository = (() => {
|
|
47
47
|
let _classDecorators = [(0, typedi_1.Service)()];
|
|
48
48
|
let _classDescriptor;
|
|
@@ -40,8 +40,8 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.ScheduleRepository = void 0;
|
|
42
42
|
const typedi_1 = require("typedi");
|
|
43
|
-
const http_utils_1 = require("
|
|
44
|
-
const config_1 = require("
|
|
43
|
+
const http_utils_1 = require("../../../../utils/http.utils");
|
|
44
|
+
const config_1 = require("../../../../config/config");
|
|
45
45
|
let ScheduleRepository = (() => {
|
|
46
46
|
let _classDecorators = [(0, typedi_1.Service)()];
|
|
47
47
|
let _classDescriptor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IDevice, IStatus, IStatusQuery } from "../interfaces";
|
|
2
|
-
import { Source } from "
|
|
3
|
-
import {
|
|
2
|
+
import { Source } from "../../../../constants/Service";
|
|
3
|
+
import { IAuditProperties } from "../../../../audit/IAuditProperties";
|
|
4
4
|
export declare class LocalDeviceService {
|
|
5
5
|
private readonly eventHandler;
|
|
6
6
|
private readonly deviceRepository;
|
|
@@ -13,23 +13,24 @@ export declare class LocalDeviceService {
|
|
|
13
13
|
getDevices(deviceIds: string[], withHubDetails?: boolean): Promise<IDevice[]>;
|
|
14
14
|
getPropertyDevices(propertyId: string, selectDeviceId?: boolean, type?: string, withHubDetails?: boolean): Promise<IDevice[]>;
|
|
15
15
|
getPropertyDeviceIds(propertyId: string, selectDeviceId: boolean | undefined, type: string): Promise<any>;
|
|
16
|
-
updateDevice(deviceId: string, body: any, auditBody:
|
|
17
|
-
|
|
16
|
+
updateDevice(deviceId: string, body: any, auditBody: IAuditProperties): Promise<any>;
|
|
17
|
+
updateDevices(query: any, updateData: any): Promise<any>;
|
|
18
|
+
deleteDevice(deviceId: string, auditBody: IAuditProperties): Promise<any>;
|
|
18
19
|
getState(deviceId: string): Promise<any>;
|
|
19
|
-
setState(deviceId: string, newState: any, auditProperties:
|
|
20
|
+
setState(deviceId: string, newState: any, auditProperties: IAuditProperties): Promise<void>;
|
|
20
21
|
getStatus(deviceId: string): Promise<Record<string, any>>;
|
|
21
|
-
setStatus(deviceId: string, newStatus: IStatus, source: Source, auditBody:
|
|
22
|
-
setStatusMany(query: IStatusQuery, newStatus: IStatus, source: Source, auditBody:
|
|
22
|
+
setStatus(deviceId: string, newStatus: IStatus, source: Source, auditBody: IAuditProperties, reason?: string): Promise<void>;
|
|
23
|
+
setStatusMany(query: IStatusQuery, newStatus: IStatus, source: Source, auditBody: IAuditProperties): Promise<void>;
|
|
23
24
|
private handleOfflineStatus;
|
|
24
25
|
private handleOnlineStatus;
|
|
25
26
|
private getDeviceBaseline;
|
|
26
27
|
getBatteryLevel(deviceId: string): Promise<Record<string, any>>;
|
|
27
|
-
setBatteryLevel(deviceId: string, batteryLevel: number, source: Source, auditBody:
|
|
28
|
+
setBatteryLevel(deviceId: string, batteryLevel: number, source: Source, auditBody: IAuditProperties): Promise<void>;
|
|
28
29
|
private shouldUpdateBatteryLevel;
|
|
29
30
|
private getPropertyBatteryThreshold;
|
|
30
31
|
private checkForDeviceMalfunctions;
|
|
31
32
|
getMetaData(deviceId: string): Promise<any>;
|
|
32
|
-
setMetaData(deviceId: string, metaData: Record<string, any>, auditBody:
|
|
33
|
+
setMetaData(deviceId: string, metaData: Record<string, any>, auditBody: IAuditProperties): Promise<any>;
|
|
33
34
|
getDevicesByZone(zoneId: string): Promise<import("../interfaces").IDtDevice[]>;
|
|
34
35
|
getDevicesByAccessGroup(accessGroupId: string): Promise<import("../interfaces").IDtDevice[]>;
|
|
35
36
|
querySelect(query: any, fields: string[]): Promise<any>;
|
|
@@ -42,13 +42,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
exports.LocalDeviceService = void 0;
|
|
45
|
-
const EventHandler_1 = require("
|
|
45
|
+
const EventHandler_1 = require("../../../../events/EventHandler");
|
|
46
46
|
const lodash_1 = require("lodash");
|
|
47
47
|
const Device_repository_1 = require("../repository/Device.repository");
|
|
48
48
|
const typedi_1 = __importDefault(require("typedi"));
|
|
49
|
-
const Alert_service_1 = require("
|
|
50
|
-
const Issue_service_1 = require("
|
|
51
|
-
const config_1 = require("
|
|
49
|
+
const Alert_service_1 = require("../../../../alerts/Alert.service");
|
|
50
|
+
const Issue_service_1 = require("../../../../issues/Issue.service");
|
|
51
|
+
const config_1 = require("../../../../config/config");
|
|
52
52
|
const typedi_2 = require("typedi");
|
|
53
53
|
let LocalDeviceService = (() => {
|
|
54
54
|
let _classDecorators = [(0, typedi_2.Service)()];
|
|
@@ -100,6 +100,12 @@ let LocalDeviceService = (() => {
|
|
|
100
100
|
await this.deviceRepository.updateDevice(deviceId, body);
|
|
101
101
|
return await this.eventHandler.onDeviceUpdate(deviceId, body, auditBody);
|
|
102
102
|
}
|
|
103
|
+
async updateDevices(query, updateData) {
|
|
104
|
+
if (!query || !updateData) {
|
|
105
|
+
throw new Error("Query and update data are required");
|
|
106
|
+
}
|
|
107
|
+
return await this.deviceRepository.updateDevices(query, updateData);
|
|
108
|
+
}
|
|
103
109
|
async deleteDevice(deviceId, auditBody) {
|
|
104
110
|
if (!deviceId) {
|
|
105
111
|
throw new Error("Device ID is required");
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
+
var _, done = false;
|
|
8
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
+
var context = {};
|
|
10
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
+
if (kind === "accessor") {
|
|
15
|
+
if (result === void 0) continue;
|
|
16
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
+
}
|
|
21
|
+
else if (_ = accept(result)) {
|
|
22
|
+
if (kind === "field") initializers.unshift(_);
|
|
23
|
+
else descriptor[key] = _;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
+
done = true;
|
|
28
|
+
};
|
|
29
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
+
var useValue = arguments.length > 2;
|
|
31
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
+
}
|
|
34
|
+
return useValue ? value : void 0;
|
|
35
|
+
};
|
|
36
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.GuestRepository = void 0;
|
|
42
|
+
const db_1 = require("../../db");
|
|
43
|
+
const typedi_1 = require("typedi");
|
|
44
|
+
let GuestRepository = (() => {
|
|
45
|
+
let _classDecorators = [(0, typedi_1.Service)()];
|
|
46
|
+
let _classDescriptor;
|
|
47
|
+
let _classExtraInitializers = [];
|
|
48
|
+
let _classThis;
|
|
49
|
+
var GuestRepository = _classThis = class {
|
|
50
|
+
constructor() {
|
|
51
|
+
this.pmsPostgres = (0, db_1.getPmsPostgresClient)();
|
|
52
|
+
}
|
|
53
|
+
async getGuest(guestId) {
|
|
54
|
+
try {
|
|
55
|
+
const guest = await this.pmsPostgres.query(`SELECT * FROM dt_guests WHERE "id" = $1`, [guestId]);
|
|
56
|
+
return guest.rows[0];
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
console.error("Error in getGuest:", error);
|
|
60
|
+
throw new Error("Failed to get guest");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
__setFunctionName(_classThis, "GuestRepository");
|
|
65
|
+
(() => {
|
|
66
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
67
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
68
|
+
GuestRepository = _classThis = _classDescriptor.value;
|
|
69
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
70
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
71
|
+
})();
|
|
72
|
+
return GuestRepository = _classThis;
|
|
73
|
+
})();
|
|
74
|
+
exports.GuestRepository = GuestRepository;
|
|
@@ -0,0 +1,104 @@
|
|
|
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 __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
19
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
20
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
21
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
22
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
23
|
+
var _, done = false;
|
|
24
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
25
|
+
var context = {};
|
|
26
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
27
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
28
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
29
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
30
|
+
if (kind === "accessor") {
|
|
31
|
+
if (result === void 0) continue;
|
|
32
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
33
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
34
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
35
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
36
|
+
}
|
|
37
|
+
else if (_ = accept(result)) {
|
|
38
|
+
if (kind === "field") initializers.unshift(_);
|
|
39
|
+
else descriptor[key] = _;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
43
|
+
done = true;
|
|
44
|
+
};
|
|
45
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
46
|
+
var useValue = arguments.length > 2;
|
|
47
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
48
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
49
|
+
}
|
|
50
|
+
return useValue ? value : void 0;
|
|
51
|
+
};
|
|
52
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
53
|
+
var ownKeys = function(o) {
|
|
54
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
55
|
+
var ar = [];
|
|
56
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
57
|
+
return ar;
|
|
58
|
+
};
|
|
59
|
+
return ownKeys(o);
|
|
60
|
+
};
|
|
61
|
+
return function (mod) {
|
|
62
|
+
if (mod && mod.__esModule) return mod;
|
|
63
|
+
var result = {};
|
|
64
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
65
|
+
__setModuleDefault(result, mod);
|
|
66
|
+
return result;
|
|
67
|
+
};
|
|
68
|
+
})();
|
|
69
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
70
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
71
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
72
|
+
};
|
|
73
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
+
exports.GuestService = void 0;
|
|
75
|
+
const Guest_repository_1 = require("./Guest.repository");
|
|
76
|
+
const typedi_1 = __importStar(require("typedi"));
|
|
77
|
+
let GuestService = (() => {
|
|
78
|
+
let _classDecorators = [(0, typedi_1.Service)()];
|
|
79
|
+
let _classDescriptor;
|
|
80
|
+
let _classExtraInitializers = [];
|
|
81
|
+
let _classThis;
|
|
82
|
+
var GuestService = _classThis = class {
|
|
83
|
+
constructor() {
|
|
84
|
+
// Use dependency injection instead of creating new instance
|
|
85
|
+
this.guestRepository = typedi_1.default.get(Guest_repository_1.GuestRepository);
|
|
86
|
+
}
|
|
87
|
+
async getGuest(guestId) {
|
|
88
|
+
if (!guestId) {
|
|
89
|
+
throw new Error("Guest ID is required");
|
|
90
|
+
}
|
|
91
|
+
return await this.guestRepository.getGuest(guestId);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
__setFunctionName(_classThis, "GuestService");
|
|
95
|
+
(() => {
|
|
96
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
97
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
98
|
+
GuestService = _classThis = _classDescriptor.value;
|
|
99
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
100
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
101
|
+
})();
|
|
102
|
+
return GuestService = _classThis;
|
|
103
|
+
})();
|
|
104
|
+
exports.GuestService = GuestService;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./IGuest"), exports);
|
|
18
|
+
__exportStar(require("./Guest.service"), exports);
|
|
@@ -39,7 +39,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.PropertyRepository = void 0;
|
|
42
|
-
const db_1 = require("
|
|
42
|
+
const db_1 = require("../../db");
|
|
43
43
|
const typedi_1 = require("typedi");
|
|
44
44
|
let PropertyRepository = (() => {
|
|
45
45
|
let _classDecorators = [(0, typedi_1.Service)()];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ISchedule {
|
|
2
|
+
id: string;
|
|
3
|
+
propertyId: string;
|
|
4
|
+
referenceId: string;
|
|
5
|
+
startTime: string;
|
|
6
|
+
endTime: string;
|
|
7
|
+
source: string;
|
|
8
|
+
status: string;
|
|
9
|
+
isExpired: boolean;
|
|
10
|
+
isDeleted: boolean;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
+
var _, done = false;
|
|
8
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
+
var context = {};
|
|
10
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
+
if (kind === "accessor") {
|
|
15
|
+
if (result === void 0) continue;
|
|
16
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
+
}
|
|
21
|
+
else if (_ = accept(result)) {
|
|
22
|
+
if (kind === "field") initializers.unshift(_);
|
|
23
|
+
else descriptor[key] = _;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
+
done = true;
|
|
28
|
+
};
|
|
29
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
+
var useValue = arguments.length > 2;
|
|
31
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
+
}
|
|
34
|
+
return useValue ? value : void 0;
|
|
35
|
+
};
|
|
36
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.ScheduleRepository = void 0;
|
|
42
|
+
const db_1 = require("../../db");
|
|
43
|
+
const typedi_1 = require("typedi");
|
|
44
|
+
let ScheduleRepository = (() => {
|
|
45
|
+
let _classDecorators = [(0, typedi_1.Service)()];
|
|
46
|
+
let _classDescriptor;
|
|
47
|
+
let _classExtraInitializers = [];
|
|
48
|
+
let _classThis;
|
|
49
|
+
var ScheduleRepository = _classThis = class {
|
|
50
|
+
constructor() {
|
|
51
|
+
this.pmsPostgres = (0, db_1.getPmsPostgresClient)();
|
|
52
|
+
}
|
|
53
|
+
async getSchedule(scheduleId) {
|
|
54
|
+
try {
|
|
55
|
+
const schedule = await this.pmsPostgres.query(`SELECT * FROM dt_schedules WHERE "id" = $1`, [scheduleId]);
|
|
56
|
+
return schedule.rows[0];
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
console.error("Error in getSchedule:", error);
|
|
60
|
+
throw new Error("Failed to get schedule");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
__setFunctionName(_classThis, "ScheduleRepository");
|
|
65
|
+
(() => {
|
|
66
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
67
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
68
|
+
ScheduleRepository = _classThis = _classDescriptor.value;
|
|
69
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
70
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
71
|
+
})();
|
|
72
|
+
return ScheduleRepository = _classThis;
|
|
73
|
+
})();
|
|
74
|
+
exports.ScheduleRepository = ScheduleRepository;
|