dt-common-device 13.3.2 → 13.3.4
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.
|
@@ -25,7 +25,8 @@ export declare enum AlertType {
|
|
|
25
25
|
GUEST_LOCK_FIRST_ACCESS = "GUEST_LOCK_FIRST_ACCESS",
|
|
26
26
|
DEVICE_ONLINE = "DEVICE_ONLINE",
|
|
27
27
|
ZONE_NOT_MAPPED_TO_ACCESS_GROUP = "ZONE_NOT_MAPPED_TO_ACCESS_GROUP",
|
|
28
|
-
INCORRECT_CODE_USED = "INCORRECT_CODE_USED"
|
|
28
|
+
INCORRECT_CODE_USED = "INCORRECT_CODE_USED",
|
|
29
|
+
RESERVATION_INACTIVE_ACCESSGROUP = "RESERVATION_INACTIVE_ACCESSGROUP"
|
|
29
30
|
}
|
|
30
31
|
export declare const AlertDescriptions: {
|
|
31
32
|
ACCOUNT_NEW_DEVICE: string;
|
|
@@ -42,6 +43,7 @@ export declare const AlertDescriptions: {
|
|
|
42
43
|
DEVICE_ONLINE: string;
|
|
43
44
|
ZONE_NOT_MAPPED_TO_ACCESS_GROUP: string;
|
|
44
45
|
INCORRECT_CODE_USED: string;
|
|
46
|
+
RESERVATION_INACTIVE_ACCESSGROUP: string;
|
|
45
47
|
};
|
|
46
48
|
export interface AlertDocument {
|
|
47
49
|
_id: string;
|
|
@@ -31,6 +31,7 @@ var AlertType;
|
|
|
31
31
|
AlertType["DEVICE_ONLINE"] = "DEVICE_ONLINE";
|
|
32
32
|
AlertType["ZONE_NOT_MAPPED_TO_ACCESS_GROUP"] = "ZONE_NOT_MAPPED_TO_ACCESS_GROUP";
|
|
33
33
|
AlertType["INCORRECT_CODE_USED"] = "INCORRECT_CODE_USED";
|
|
34
|
+
AlertType["RESERVATION_INACTIVE_ACCESSGROUP"] = "RESERVATION_INACTIVE_ACCESSGROUP";
|
|
34
35
|
})(AlertType || (exports.AlertType = AlertType = {}));
|
|
35
36
|
exports.AlertDescriptions = {
|
|
36
37
|
[AlertType.ACCOUNT_NEW_DEVICE]: "The alert is raised when system detects a new device in the device cloud account.",
|
|
@@ -47,6 +48,7 @@ exports.AlertDescriptions = {
|
|
|
47
48
|
[AlertType.DEVICE_ONLINE]: "The alert is raised when device comes online.",
|
|
48
49
|
[AlertType.ZONE_NOT_MAPPED_TO_ACCESS_GROUP]: "The alert is raised when a zone is not mapped to an access group.",
|
|
49
50
|
[AlertType.INCORRECT_CODE_USED]: "The alert is raised when user uses the incorrect code on the device.",
|
|
51
|
+
[AlertType.RESERVATION_INACTIVE_ACCESSGROUP]: "The alert is raised when a reservation is received for an inactive access group.",
|
|
50
52
|
};
|
|
51
53
|
// Re-export EntityType from issue.types.ts to avoid duplication
|
|
52
54
|
var issue_types_1 = require("../issues/issue.types");
|
|
@@ -1,4 +1,20 @@
|
|
|
1
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
|
+
});
|
|
2
18
|
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
19
|
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
20
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
@@ -33,18 +49,31 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
33
49
|
}
|
|
34
50
|
return useValue ? value : void 0;
|
|
35
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
|
+
})();
|
|
36
69
|
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
70
|
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
71
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
39
72
|
};
|
|
40
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
-
};
|
|
43
73
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
74
|
exports.QueueService = void 0;
|
|
45
|
-
const typedi_1 = require("typedi");
|
|
75
|
+
const typedi_1 = __importStar(require("typedi"));
|
|
46
76
|
const HybridHttpQueue_1 = require("../entities/HybridHttpQueue");
|
|
47
|
-
const typedi_2 = __importDefault(require("typedi"));
|
|
48
77
|
let QueueService = (() => {
|
|
49
78
|
let _classDecorators = [(0, typedi_1.Service)()];
|
|
50
79
|
let _classDescriptor;
|
|
@@ -53,7 +82,7 @@ let QueueService = (() => {
|
|
|
53
82
|
var QueueService = _classThis = class {
|
|
54
83
|
constructor() {
|
|
55
84
|
// Use dependency injection instead of creating new instance
|
|
56
|
-
this.hybridQueue =
|
|
85
|
+
this.hybridQueue = typedi_1.default.get(HybridHttpQueue_1.HybridHttpQueue);
|
|
57
86
|
}
|
|
58
87
|
async request(options) {
|
|
59
88
|
return this.hybridQueue.request(options);
|
|
@@ -94,13 +94,13 @@ class RateLimitUtils {
|
|
|
94
94
|
maxTimeoutWindowMs: 120000,
|
|
95
95
|
});
|
|
96
96
|
configs.set(constants_1.CONNECTION_PROVIDERS.SALTOKS, {
|
|
97
|
-
maxRequests:
|
|
97
|
+
maxRequests: 30,
|
|
98
98
|
windowMs: 60000,
|
|
99
99
|
provider: constants_1.CONNECTION_PROVIDERS.SALTOKS,
|
|
100
100
|
maxTimeoutWindowMs: 120000,
|
|
101
101
|
});
|
|
102
102
|
configs.set(constants_1.CONNECTION_PROVIDERS.SALTOSPACE, {
|
|
103
|
-
maxRequests:
|
|
103
|
+
maxRequests: 30,
|
|
104
104
|
windowMs: 60000,
|
|
105
105
|
provider: constants_1.CONNECTION_PROVIDERS.SALTOSPACE,
|
|
106
106
|
maxTimeoutWindowMs: 120000,
|