@kohost/api-client 3.0.0-beta.66 → 3.0.0-beta.68
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/cjs/Commands/DiscoverCategoriesCommand.js +20 -0
- package/dist/cjs/Commands/DiscoverUsersCommand.js +2 -2
- package/dist/cjs/Commands/index.js +2 -2
- package/dist/cjs/schemas/ReservationSchema.d.ts +8 -6
- package/dist/cjs/schemas/SystemUserSchema.d.ts +8 -0
- package/dist/cjs/schemas/UserSchema.d.ts +9 -6
- package/dist/cjs/schemas/definitions.json +21 -0
- package/dist/cjs/schemas/reservation.json +1 -17
- package/dist/cjs/schemas/systemUser.json +3 -0
- package/dist/cjs/schemas/user.json +3 -0
- package/dist/esm/Commands.js +16 -16
- package/dist/esm/Commands.js.map +3 -3
- package/dist/esm/Models.js +28 -17
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/utils.js +21 -0
- package/dist/esm/utils.js.map +2 -2
- package/package.json +1 -1
- package/dist/cjs/Commands/DiscoverRoomTypesCommand.js +0 -19
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const Command = require("./Command");
|
|
2
|
+
|
|
3
|
+
class DiscoverCategoriesCommand extends Command {
|
|
4
|
+
constructor({ id, ...rest }) {
|
|
5
|
+
super({ id, ...rest });
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
get name() {
|
|
9
|
+
return "DiscoverCategories";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
get routingKey() {
|
|
13
|
+
if (typeof this.data.id === "string")
|
|
14
|
+
return `categories.${this.data.id}.get`;
|
|
15
|
+
if (Array.isArray(this.data.id)) return "categories.batch.get";
|
|
16
|
+
return "categories.get";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
module.exports = DiscoverCategoriesCommand;
|
|
@@ -15,7 +15,7 @@ const SendSMSCommand = require("./SendSMSCommand");
|
|
|
15
15
|
const DiscoverReservationsCommand = require("./DiscoverReservationsCommand");
|
|
16
16
|
const DiscoverReservationSpaceCategoryAvailabilitiesCommand = require("./DiscoverReservationSpaceCategoryAvailabilitiesCommand");
|
|
17
17
|
const DiscoverRoomsCommand = require("./DiscoverRoomsCommand");
|
|
18
|
-
const
|
|
18
|
+
const DiscoverCategoriesCommand = require("./DiscoverCategoriesCommand");
|
|
19
19
|
const CreateShortLinkCommand = require("./CreateShortLinkCommand");
|
|
20
20
|
const UpdateReservationCommand = require("./UpdateReservationCommand");
|
|
21
21
|
const UpdateUserCommand = require("./UpdateUserCommand");
|
|
@@ -43,7 +43,7 @@ module.exports = {
|
|
|
43
43
|
DiscoverReservationsCommand,
|
|
44
44
|
DiscoverReservationSpaceCategoryAvailabilitiesCommand,
|
|
45
45
|
DiscoverRoomsCommand,
|
|
46
|
-
|
|
46
|
+
DiscoverCategoriesCommand,
|
|
47
47
|
CreateShortLinkCommand,
|
|
48
48
|
UpdateReservationCommand,
|
|
49
49
|
UpdateUserCommand,
|
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
export type Revenue = {
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
date?: string;
|
|
12
|
+
price?: number;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}[];
|
|
8
15
|
export type UpdatedAt =
|
|
9
16
|
| string
|
|
10
17
|
| {
|
|
@@ -83,12 +90,7 @@ export interface Reservation {
|
|
|
83
90
|
unit?: "night" | "stay" | "hour";
|
|
84
91
|
[k: string]: unknown;
|
|
85
92
|
}[];
|
|
86
|
-
revenue?:
|
|
87
|
-
date?: string;
|
|
88
|
-
amount?: number;
|
|
89
|
-
type?: "service" | "product";
|
|
90
|
-
[k: string]: unknown;
|
|
91
|
-
}[];
|
|
93
|
+
revenue?: Revenue;
|
|
92
94
|
rateSuppressed?: boolean;
|
|
93
95
|
payment?: string;
|
|
94
96
|
company?: string;
|
|
@@ -18,6 +18,13 @@ export type Identification2 =
|
|
|
18
18
|
| {
|
|
19
19
|
[k: string]: unknown;
|
|
20
20
|
};
|
|
21
|
+
export type Revenue = {
|
|
22
|
+
id?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
date?: string;
|
|
25
|
+
price?: number;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}[];
|
|
21
28
|
export type CreatedAt =
|
|
22
29
|
| string
|
|
23
30
|
| {
|
|
@@ -77,6 +84,7 @@ export interface SystemUser {
|
|
|
77
84
|
files?: MediaFile[];
|
|
78
85
|
identifications?: Identification[];
|
|
79
86
|
payments?: Payment[];
|
|
87
|
+
revenue?: Revenue;
|
|
80
88
|
createdAt?: CreatedAt;
|
|
81
89
|
updatedAt?: UpdatedAt;
|
|
82
90
|
systemData?: SystemData;
|
|
@@ -18,6 +18,13 @@ export type Identification2 =
|
|
|
18
18
|
| {
|
|
19
19
|
[k: string]: unknown;
|
|
20
20
|
};
|
|
21
|
+
export type Revenue = {
|
|
22
|
+
id?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
date?: string;
|
|
25
|
+
price?: number;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}[];
|
|
21
28
|
export type UpdatedAt =
|
|
22
29
|
| string
|
|
23
30
|
| {
|
|
@@ -70,6 +77,7 @@ export interface User {
|
|
|
70
77
|
};
|
|
71
78
|
reservations?: Reservation[];
|
|
72
79
|
spaceName?: string;
|
|
80
|
+
revenue?: Revenue;
|
|
73
81
|
createdAt?: CreatedAt;
|
|
74
82
|
updatedAt?: UpdatedAt;
|
|
75
83
|
systemData?: SystemData[];
|
|
@@ -250,12 +258,7 @@ export interface Reservation {
|
|
|
250
258
|
unit?: "night" | "stay" | "hour";
|
|
251
259
|
[k: string]: unknown;
|
|
252
260
|
}[];
|
|
253
|
-
revenue?:
|
|
254
|
-
date?: string;
|
|
255
|
-
amount?: number;
|
|
256
|
-
type?: "service" | "product";
|
|
257
|
-
[k: string]: unknown;
|
|
258
|
-
}[];
|
|
261
|
+
revenue?: Revenue;
|
|
259
262
|
rateSuppressed?: boolean;
|
|
260
263
|
payment?: string;
|
|
261
264
|
company?: string;
|
|
@@ -189,6 +189,27 @@
|
|
|
189
189
|
"watts": {
|
|
190
190
|
"type": "number",
|
|
191
191
|
"minimum": 0
|
|
192
|
+
},
|
|
193
|
+
"revenue": {
|
|
194
|
+
"type": "array",
|
|
195
|
+
"items": {
|
|
196
|
+
"type": "object",
|
|
197
|
+
"properties": {
|
|
198
|
+
"id": {
|
|
199
|
+
"$ref": "definitions.json#/definitions/id"
|
|
200
|
+
},
|
|
201
|
+
"name": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"date": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"format": "date-time"
|
|
207
|
+
},
|
|
208
|
+
"price": {
|
|
209
|
+
"type": "number"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
192
213
|
}
|
|
193
214
|
}
|
|
194
215
|
}
|
|
@@ -98,23 +98,7 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"revenue": {
|
|
101
|
-
"
|
|
102
|
-
"items": {
|
|
103
|
-
"type": "object",
|
|
104
|
-
"properties": {
|
|
105
|
-
"date": {
|
|
106
|
-
"type": "string",
|
|
107
|
-
"format": "date-time"
|
|
108
|
-
},
|
|
109
|
-
"amount": {
|
|
110
|
-
"type": "number"
|
|
111
|
-
},
|
|
112
|
-
"type": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"enum": ["service", "product"]
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
101
|
+
"$ref": "definitions.json#/definitions/revenue"
|
|
118
102
|
},
|
|
119
103
|
"rateSuppressed": {
|
|
120
104
|
"type": "boolean"
|
package/dist/esm/Commands.js
CHANGED
|
@@ -248,8 +248,8 @@ var require_DiscoverUsersCommand = __commonJS({
|
|
|
248
248
|
static {
|
|
249
249
|
__name(this, "DiscoverUsersCommand");
|
|
250
250
|
}
|
|
251
|
-
constructor({ id }) {
|
|
252
|
-
super({ id });
|
|
251
|
+
constructor({ id, ...rest }) {
|
|
252
|
+
super({ id, ...rest });
|
|
253
253
|
}
|
|
254
254
|
get name() {
|
|
255
255
|
return "DiscoverUsers";
|
|
@@ -694,29 +694,29 @@ var require_DiscoverRoomsCommand = __commonJS({
|
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
696
|
|
|
697
|
-
// src/Commands/
|
|
698
|
-
var
|
|
699
|
-
"src/Commands/
|
|
697
|
+
// src/Commands/DiscoverCategoriesCommand.js
|
|
698
|
+
var require_DiscoverCategoriesCommand = __commonJS({
|
|
699
|
+
"src/Commands/DiscoverCategoriesCommand.js"(exports, module) {
|
|
700
700
|
var Command = require_Command();
|
|
701
|
-
var
|
|
701
|
+
var DiscoverCategoriesCommand = class extends Command {
|
|
702
702
|
static {
|
|
703
|
-
__name(this, "
|
|
703
|
+
__name(this, "DiscoverCategoriesCommand");
|
|
704
704
|
}
|
|
705
|
-
constructor({ id }) {
|
|
706
|
-
super({ id });
|
|
705
|
+
constructor({ id, ...rest }) {
|
|
706
|
+
super({ id, ...rest });
|
|
707
707
|
}
|
|
708
708
|
get name() {
|
|
709
|
-
return "
|
|
709
|
+
return "DiscoverCategories";
|
|
710
710
|
}
|
|
711
711
|
get routingKey() {
|
|
712
712
|
if (typeof this.data.id === "string")
|
|
713
|
-
return `
|
|
713
|
+
return `categories.${this.data.id}.get`;
|
|
714
714
|
if (Array.isArray(this.data.id))
|
|
715
|
-
return "
|
|
716
|
-
return "
|
|
715
|
+
return "categories.batch.get";
|
|
716
|
+
return "categories.get";
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
|
-
module.exports =
|
|
719
|
+
module.exports = DiscoverCategoriesCommand;
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
|
|
@@ -956,7 +956,7 @@ var require_Commands = __commonJS({
|
|
|
956
956
|
var DiscoverReservationsCommand = require_DiscoverReservationsCommand();
|
|
957
957
|
var DiscoverReservationSpaceCategoryAvailabilitiesCommand = require_DiscoverReservationSpaceCategoryAvailabilitiesCommand();
|
|
958
958
|
var DiscoverRoomsCommand = require_DiscoverRoomsCommand();
|
|
959
|
-
var
|
|
959
|
+
var DiscoverCategoriesCommand = require_DiscoverCategoriesCommand();
|
|
960
960
|
var CreateShortLinkCommand = require_CreateShortLinkCommand();
|
|
961
961
|
var UpdateReservationCommand = require_UpdateReservationCommand();
|
|
962
962
|
var UpdateUserCommand = require_UpdateUserCommand();
|
|
@@ -983,7 +983,7 @@ var require_Commands = __commonJS({
|
|
|
983
983
|
DiscoverReservationsCommand,
|
|
984
984
|
DiscoverReservationSpaceCategoryAvailabilitiesCommand,
|
|
985
985
|
DiscoverRoomsCommand,
|
|
986
|
-
|
|
986
|
+
DiscoverCategoriesCommand,
|
|
987
987
|
CreateShortLinkCommand,
|
|
988
988
|
UpdateReservationCommand,
|
|
989
989
|
UpdateUserCommand,
|
package/dist/esm/Commands.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/Commands/Command.js", "../../src/Commands/SetSceneCommand.js", "../../src/Commands/SetAlarmCommand.js", "../../src/Commands/SetDimmerCommand.js", "../../src/Commands/SetSwitchCommand.js", "../../src/Commands/SetThermostatCommand.js", "../../src/Commands/SetLockCommand.js", "../../src/Commands/SetWindowCoveringCommand.js", "../../src/Commands/SetCourtesyCommand.js", "../../src/Commands/SetMediaCommand.js", "../../src/Commands/DiscoverUsersCommand.js", "../../src/Errors/AppError.js", "../../src/Errors/RequestError.js", "../../src/Commands/OCRDocumentCommand.js", "../../src/Commands/CheckInReservationCommand.js", "../../src/Commands/SendEmailCommand.js", "../../src/Commands/SendSMSCommand.js", "../../src/Errors/AuthenticationError.js", "../../src/Errors/AuthorizationError.js", "../../src/Errors/ConflictError.js", "../../src/Errors/DeviceCommError.js", "../../src/Errors/LoginError.js", "../../src/Errors/NotFoundError.js", "../../src/Errors/SystemCommError.js", "../../src/Errors/TokenExpiredError.js", "../../src/Errors/UnprocessableRequestError.js", "../../src/Errors/ValidationError.js", "../../src/Errors/index.js", "../../src/Commands/DiscoverReservationsCommand.js", "../../src/Commands/DiscoverReservationSpaceCategoryAvailabilitiesCommand.js", "../../src/Commands/DiscoverRoomsCommand.js", "../../src/Commands/
|
|
4
|
-
"sourcesContent": ["class Command {\n constructor(data) {\n this.data = {};\n if (!data) throw new Error(\"Command data is required\");\n if (typeof data !== \"object\")\n throw new Error(\"Command data must be an object\");\n\n for (const key in data) {\n this.data[key] = data[key];\n }\n }\n\n get name() {\n throw new Error(\"Command name is required\");\n }\n\n get type() {\n return \"Command\";\n }\n\n get routingKey() {\n return \"\";\n }\n\n get exchange() {\n return \"Commands\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n\nmodule.exports = Command;\n", "const Command = require(\"./Command\");\n\nclass SetSceneCommand extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n\n get routingKey() {\n return `scene.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSceneCommand;\n", "const Command = require(\"./Command\");\n\nclass SetAlarmCommand extends Command {\n constructor({ id, zones, areas }) {\n super({ id, zones, areas });\n }\n\n get name() {\n return \"SetAlarm\";\n }\n\n get routingKey() {\n return `alarm.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetAlarmCommand;\n", "const Command = require(\"./Command\");\n\nclass SetDimmerCommand extends Command {\n constructor({ id, level }) {\n super({ id, level });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n\n get routingKey() {\n return `dimmer.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetDimmerCommand;\n", "const Command = require(\"./Command\");\n\nclass SetSwitchCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n\n get routingKey() {\n return `switch.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSwitchCommand;\n", "const Command = require(\"./Command\");\n\nclass SetThermostatCommand extends Command {\n constructor({ id, setpoints, hvacMode, fanMode }) {\n super({ id, setpoints, hvacMode, fanMode });\n }\n\n get name() {\n return \"SetThermostat\";\n }\n\n get routingKey() {\n return `thermostat.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetThermostatCommand;\n", "const Command = require(\"./Command\");\n\nclass SetLockCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetLock\";\n }\n\n get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetLockCommand;\n", "const Command = require(\"./Command\");\n\nclass SetWindowCoveringCommand extends Command {\n constructor({ id, position }) {\n super({ id, position });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n\n get routingKey() {\n return `windowCovering.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetWindowCoveringCommand;\n", "const Command = require(\"./Command\");\n\nclass SetCourtesyCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n\n get routingKey() {\n return `courtesy.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetCourtesyCommand;\n", "const Command = require(\"./Command\");\n\nclass SetMediaCommand extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n\n get routingKey() {\n return `mediaSource.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetMediaCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverUsersCommand extends Command {\n constructor({ id }) {\n super({ id });\n }\n\n get name() {\n return \"DiscoverUsers\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `users.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"users.batch.get\";\n return \"users.get\";\n }\n}\n\nmodule.exports = DiscoverUsersCommand;\n", "module.exports = class AppError extends Error {\n constructor(message = \"Internal Server Error\", options) {\n super(message, options);\n this.type = this.constructor.name;\n this.statusCode = 500;\n Object.setPrototypeOf(this, AppError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n};\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass OCRDocumentCommand extends Command {\n constructor({ type, image }) {\n if (!image) throw new RequestError(\"document image is required\");\n super({ type, image });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n\nmodule.exports = OCRDocumentCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CheckInReservationCommand extends Command {\n constructor({ id }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({ id });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.checkin`;\n }\n}\n\nmodule.exports = CheckInReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendEmailCommand extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n if (!to) throw new RequestError(\"email to is required\");\n if (!from) throw new RequestError(\"email from is required\");\n if (!subject) throw new RequestError(\"email subject is required\");\n if (!text && !html)\n throw new RequestError(\"email text or html is required\");\n\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n\n get routingKey() {\n return \"comm.email.send\";\n }\n}\n\nmodule.exports = SendEmailCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendSMSCommand extends Command {\n constructor({ id, body, to, from, ...rest }) {\n if (!body) throw new RequestError(\"sms body is required\");\n if (!to) throw new RequestError(\"sms to is required\");\n if (!from) throw new RequestError(\"sms from is required\");\n super({ id, body, to, from, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n\n get routingKey() {\n return \"comm.sms.send\";\n }\n}\n\nmodule.exports = SendSMSCommand;\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n};\n", "const Errors = {\n AppError: require(\"./AppError\"),\n AuthenticationError: require(\"./AuthenticationError\"),\n AuthorizationError: require(\"./AuthorizationError\"),\n ConflictError: require(\"./ConflictError\"),\n DeviceCommError: require(\"./DeviceCommError\"),\n LoginError: require(\"./LoginError\"),\n NotFoundError: require(\"./NotFoundError\"),\n RequestError: require(\"./RequestError\"),\n SystemCommError: require(\"./SystemCommError\"),\n TokenExpiredError: require(\"./TokenExpiredError\"),\n UnprocessableRequestError: require(\"./UnprocessableRequestError\"),\n ValidationError: require(\"./ValidationError\"),\n};\n\nmodule.exports = Errors;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationsCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"DiscoverReservations\";\n }\n\n get routingKey() {\n return \"reservation.discover\";\n }\n}\n\nmodule.exports = DiscoverReservationsCommand;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationSpaceCategoryAvailabilitiesCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverReservationSpaceCategoryAvailabilities\";\n }\n\n get routingKey() {\n return \"reservation.discoverRoomUpsells\";\n }\n}\n\nmodule.exports = DiscoverReservationSpaceCategoryAvailabilitiesCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverRoomsCommand extends Command {\n constructor({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest\n }) {\n super({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest,\n });\n }\n\n get name() {\n return \"DiscoverRooms\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `rooms.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"rooms.batch.get\";\n return \"rooms.get\";\n }\n}\n\nmodule.exports = DiscoverRoomsCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverRoomTypesCommand extends Command {\n constructor({ id }) {\n super({ id });\n }\n\n get name() {\n return \"DiscoverRoomTypes\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `rooms.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"rooms.batch.get\";\n return \"rooms.get\";\n }\n}\n\nmodule.exports = DiscoverRoomTypesCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CreateShortLinkCommand extends Command {\n constructor({ title, destination }) {\n if (!title) throw new RequestError(\"title is required\");\n if (!destination) throw new RequestError(\"destination to is required\");\n super({ title, destination });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n\n get routingKey() {\n return \"comm.shortlink.create\";\n }\n}\n\nmodule.exports = CreateShortLinkCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateReservationCommand extends Command {\n constructor({ id, ...rest }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateUserCommand extends Command {\n constructor({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest\n }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest,\n });\n }\n\n get name() {\n return \"UpdateUser\";\n }\n\n get routingKey() {\n return `user.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateUserCommand;\n", "const Command = require(\"./Command\");\n\nclass GetMobileKeyCommand extends Command {\n constructor({\n id,\n phone,\n beginDateTime,\n endDateTime,\n keyToReplace,\n ...rest\n }) {\n super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });\n }\n\n get name() {\n return \"GetMobileKey\";\n }\n\n get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = GetMobileKeyCommand;\n", "const Command = require(\"./Command\");\n\nclass CreateImageUploadEndpointCommand extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n\n get routingKey() {\n return \"image.createUploadEndpoint\";\n }\n}\n\nmodule.exports = CreateImageUploadEndpointCommand;\n", "const Command = require(\"./Command\");\n\nclass UploadImageCommand extends Command {\n constructor({ id, url, file, ...rest }) {\n super({ id, url, file, ...rest });\n }\n\n get name() {\n return \"UploadImage\";\n }\n\n get routingKey() {\n return `image.${this.data.id}.upload`;\n }\n}\n\nmodule.exports = UploadImageCommand;\n", "const Command = require(\"./Command\");\n\nclass GetProductsCommand extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n\n get routingKey() {\n return `product.${this.data.id}.get`;\n }\n}\n\nmodule.exports = GetProductsCommand;\n", "const Command = require(\"./Command\");\n\nclass SellProductsCommand extends Command {\n constructor({ reservationId, userId, products, ...rest }) {\n super({ reservationId, userId, products, ...rest });\n }\n\n get name() {\n return \"SellProducts\";\n }\n\n get routingKey() {\n return `product.${this.data.id}.sell`;\n }\n}\n\nmodule.exports = SellProductsCommand;\n", "const SetSceneCommand = require(\"./SetSceneCommand\");\nconst SetAlarmCommand = require(\"./SetAlarmCommand\");\nconst SetDimmerCommand = require(\"./SetDimmerCommand\");\nconst SetSwitchCommand = require(\"./SetSwitchCommand\");\nconst SetThermostatCommand = require(\"./SetThermostatCommand\");\nconst SetLockCommand = require(\"./SetLockCommand\");\nconst SetWindowCoveringCommand = require(\"./SetWindowCoveringCommand\");\nconst SetCourtesyCommand = require(\"./SetCourtesyCommand\");\nconst SetMediaCommand = require(\"./SetMediaCommand\");\nconst DiscoverUsersCommand = require(\"./DiscoverUsersCommand\");\nconst OCRDocumentCommand = require(\"./OCRDocumentCommand\");\nconst CheckInReservationCommand = require(\"./CheckInReservationCommand\");\nconst SendEmailCommand = require(\"./SendEmailCommand\");\nconst SendSMSCommand = require(\"./SendSMSCommand\");\nconst DiscoverReservationsCommand = require(\"./DiscoverReservationsCommand\");\nconst DiscoverReservationSpaceCategoryAvailabilitiesCommand = require(\"./DiscoverReservationSpaceCategoryAvailabilitiesCommand\");\nconst DiscoverRoomsCommand = require(\"./DiscoverRoomsCommand\");\nconst DiscoverRoomTypesCommand = require(\"./DiscoverRoomTypesCommand\");\nconst CreateShortLinkCommand = require(\"./CreateShortLinkCommand\");\nconst UpdateReservationCommand = require(\"./UpdateReservationCommand\");\nconst UpdateUserCommand = require(\"./UpdateUserCommand\");\nconst GetMobileKeyCommand = require(\"./GetMobileKeyCommand\");\nconst CreateImageUploadEndpointCommand = require(\"./CreateImageUploadEndpointCommand\");\nconst UploadImageCommand = require(\"./UploadImageCommand\");\nconst GetProductsCommand = require(\"./GetProductsCommand\");\nconst SellProductsCommand = require(\"./SellProductsCommand\");\n\nmodule.exports = {\n SetSceneCommand,\n SetAlarmCommand,\n SetDimmerCommand,\n SetSwitchCommand,\n SetThermostatCommand,\n SetLockCommand,\n SetWindowCoveringCommand,\n SetCourtesyCommand,\n SetMediaCommand,\n OCRDocumentCommand,\n DiscoverUsersCommand,\n CheckInReservationCommand,\n SendSMSCommand,\n SendEmailCommand,\n DiscoverReservationsCommand,\n DiscoverReservationSpaceCategoryAvailabilitiesCommand,\n DiscoverRoomsCommand,\n DiscoverRoomTypesCommand,\n CreateShortLinkCommand,\n UpdateReservationCommand,\n UpdateUserCommand,\n GetMobileKeyCommand,\n CreateImageUploadEndpointCommand,\n UploadImageCommand,\n GetProductsCommand,\n SellProductsCommand,\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAM,UAAN,MAAc;AAAA,MAAd,OAAc;AAAA;AAAA;AAAA,MACZ,YAAY,MAAM;AAChB,aAAK,OAAO,CAAC;AACb,YAAI,CAAC;AAAM,gBAAM,IAAI,MAAM,0BAA0B;AACrD,YAAI,OAAO,SAAS;AAClB,gBAAM,IAAI,MAAM,gCAAgC;AAElD,mBAAW,OAAO,MAAM;AACtB,eAAK,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,QAC3B;AAAA,MACF;AAAA,MAEA,IAAI,OAAO;AACT,cAAM,IAAI,MAAM,0BAA0B;AAAA,MAC5C;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,aAAa;AACf,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,WAAW;AACb,eAAO;AAAA,MACT;AAAA,MAEA,QAAQ;AACN,eAAO,EAAE,MAAM,EAAE,GAAG,KAAK,KAAK,EAAE;AAAA,MAClC;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACjCjB;AAAA;AAAA,QAAM,UAAU;AAEhB,QAAM,kBAAN,cAA8B,QAAQ;AAAA,MAFtC,OAEsC;AAAA;AAAA;AAAA,MACpC,YAAY,EAAE,IAAI,SAAS,GAAG,KAAK,GAAG;AACpC,cAAM,EAAE,IAAI,SAAS,GAAG,KAAK,CAAC;AAAA,MAChC;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAE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AAM,sBAAsB;AAC5B,QAAM,mCAAmC;AACzC,QAAM,qBAAqB;AAC3B,QAAM,qBAAqB;AAC3B,QAAM,sBAAsB;AAE5B,WAAO,UAAU;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA;",
|
|
3
|
+
"sources": ["../../src/Commands/Command.js", "../../src/Commands/SetSceneCommand.js", "../../src/Commands/SetAlarmCommand.js", "../../src/Commands/SetDimmerCommand.js", "../../src/Commands/SetSwitchCommand.js", "../../src/Commands/SetThermostatCommand.js", "../../src/Commands/SetLockCommand.js", "../../src/Commands/SetWindowCoveringCommand.js", "../../src/Commands/SetCourtesyCommand.js", "../../src/Commands/SetMediaCommand.js", "../../src/Commands/DiscoverUsersCommand.js", "../../src/Errors/AppError.js", "../../src/Errors/RequestError.js", "../../src/Commands/OCRDocumentCommand.js", "../../src/Commands/CheckInReservationCommand.js", "../../src/Commands/SendEmailCommand.js", "../../src/Commands/SendSMSCommand.js", "../../src/Errors/AuthenticationError.js", "../../src/Errors/AuthorizationError.js", "../../src/Errors/ConflictError.js", "../../src/Errors/DeviceCommError.js", "../../src/Errors/LoginError.js", "../../src/Errors/NotFoundError.js", "../../src/Errors/SystemCommError.js", "../../src/Errors/TokenExpiredError.js", "../../src/Errors/UnprocessableRequestError.js", "../../src/Errors/ValidationError.js", "../../src/Errors/index.js", "../../src/Commands/DiscoverReservationsCommand.js", "../../src/Commands/DiscoverReservationSpaceCategoryAvailabilitiesCommand.js", "../../src/Commands/DiscoverRoomsCommand.js", "../../src/Commands/DiscoverCategoriesCommand.js", "../../src/Commands/CreateShortLinkCommand.js", "../../src/Commands/UpdateReservationCommand.js", "../../src/Commands/UpdateUserCommand.js", "../../src/Commands/GetMobileKeyCommand.js", "../../src/Commands/CreateImageUploadEndpointCommand.js", "../../src/Commands/UploadImageCommand.js", "../../src/Commands/GetProductsCommand.js", "../../src/Commands/SellProductsCommand.js", "../../src/Commands/index.js"],
|
|
4
|
+
"sourcesContent": ["class Command {\n constructor(data) {\n this.data = {};\n if (!data) throw new Error(\"Command data is required\");\n if (typeof data !== \"object\")\n throw new Error(\"Command data must be an object\");\n\n for (const key in data) {\n this.data[key] = data[key];\n }\n }\n\n get name() {\n throw new Error(\"Command name is required\");\n }\n\n get type() {\n return \"Command\";\n }\n\n get routingKey() {\n return \"\";\n }\n\n get exchange() {\n return \"Commands\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n\nmodule.exports = Command;\n", "const Command = require(\"./Command\");\n\nclass SetSceneCommand extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n\n get routingKey() {\n return `scene.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSceneCommand;\n", "const Command = require(\"./Command\");\n\nclass SetAlarmCommand extends Command {\n constructor({ id, zones, areas }) {\n super({ id, zones, areas });\n }\n\n get name() {\n return \"SetAlarm\";\n }\n\n get routingKey() {\n return `alarm.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetAlarmCommand;\n", "const Command = require(\"./Command\");\n\nclass SetDimmerCommand extends Command {\n constructor({ id, level }) {\n super({ id, level });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n\n get routingKey() {\n return `dimmer.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetDimmerCommand;\n", "const Command = require(\"./Command\");\n\nclass SetSwitchCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n\n get routingKey() {\n return `switch.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetSwitchCommand;\n", "const Command = require(\"./Command\");\n\nclass SetThermostatCommand extends Command {\n constructor({ id, setpoints, hvacMode, fanMode }) {\n super({ id, setpoints, hvacMode, fanMode });\n }\n\n get name() {\n return \"SetThermostat\";\n }\n\n get routingKey() {\n return `thermostat.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetThermostatCommand;\n", "const Command = require(\"./Command\");\n\nclass SetLockCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetLock\";\n }\n\n get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetLockCommand;\n", "const Command = require(\"./Command\");\n\nclass SetWindowCoveringCommand extends Command {\n constructor({ id, position }) {\n super({ id, position });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n\n get routingKey() {\n return `windowCovering.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetWindowCoveringCommand;\n", "const Command = require(\"./Command\");\n\nclass SetCourtesyCommand extends Command {\n constructor({ id, state }) {\n super({ id, state });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n\n get routingKey() {\n return `courtesy.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetCourtesyCommand;\n", "const Command = require(\"./Command\");\n\nclass SetMediaCommand extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n\n get routingKey() {\n return `mediaSource.${this.data.id}.set`;\n }\n}\n\nmodule.exports = SetMediaCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverUsersCommand extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverUsers\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `users.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"users.batch.get\";\n return \"users.get\";\n }\n}\n\nmodule.exports = DiscoverUsersCommand;\n", "module.exports = class AppError extends Error {\n constructor(message = \"Internal Server Error\", options) {\n super(message, options);\n this.type = this.constructor.name;\n this.statusCode = 500;\n Object.setPrototypeOf(this, AppError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n};\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass OCRDocumentCommand extends Command {\n constructor({ type, image }) {\n if (!image) throw new RequestError(\"document image is required\");\n super({ type, image });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n\nmodule.exports = OCRDocumentCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CheckInReservationCommand extends Command {\n constructor({ id }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({ id });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.checkin`;\n }\n}\n\nmodule.exports = CheckInReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendEmailCommand extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n if (!to) throw new RequestError(\"email to is required\");\n if (!from) throw new RequestError(\"email from is required\");\n if (!subject) throw new RequestError(\"email subject is required\");\n if (!text && !html)\n throw new RequestError(\"email text or html is required\");\n\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n\n get routingKey() {\n return \"comm.email.send\";\n }\n}\n\nmodule.exports = SendEmailCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass SendSMSCommand extends Command {\n constructor({ id, body, to, from, ...rest }) {\n if (!body) throw new RequestError(\"sms body is required\");\n if (!to) throw new RequestError(\"sms to is required\");\n if (!from) throw new RequestError(\"sms from is required\");\n super({ id, body, to, from, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n\n get routingKey() {\n return \"comm.sms.send\";\n }\n}\n\nmodule.exports = SendSMSCommand;\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n};\n", "const AppError = require(\"./AppError\");\n\nmodule.exports = class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n};\n", "const Errors = {\n AppError: require(\"./AppError\"),\n AuthenticationError: require(\"./AuthenticationError\"),\n AuthorizationError: require(\"./AuthorizationError\"),\n ConflictError: require(\"./ConflictError\"),\n DeviceCommError: require(\"./DeviceCommError\"),\n LoginError: require(\"./LoginError\"),\n NotFoundError: require(\"./NotFoundError\"),\n RequestError: require(\"./RequestError\"),\n SystemCommError: require(\"./SystemCommError\"),\n TokenExpiredError: require(\"./TokenExpiredError\"),\n UnprocessableRequestError: require(\"./UnprocessableRequestError\"),\n ValidationError: require(\"./ValidationError\"),\n};\n\nmodule.exports = Errors;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationsCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"DiscoverReservations\";\n }\n\n get routingKey() {\n return \"reservation.discover\";\n }\n}\n\nmodule.exports = DiscoverReservationsCommand;\n", "const { RequestError } = require(\"../Errors\");\nconst Command = require(\"./Command\");\n\nclass DiscoverReservationSpaceCategoryAvailabilitiesCommand extends Command {\n constructor(options) {\n if (!options) throw new RequestError(\"options are required\");\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverReservationSpaceCategoryAvailabilities\";\n }\n\n get routingKey() {\n return \"reservation.discoverRoomUpsells\";\n }\n}\n\nmodule.exports = DiscoverReservationSpaceCategoryAvailabilitiesCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverRoomsCommand extends Command {\n constructor({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest\n }) {\n super({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest,\n });\n }\n\n get name() {\n return \"DiscoverRooms\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\") return `rooms.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"rooms.batch.get\";\n return \"rooms.get\";\n }\n}\n\nmodule.exports = DiscoverRoomsCommand;\n", "const Command = require(\"./Command\");\n\nclass DiscoverCategoriesCommand extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"DiscoverCategories\";\n }\n\n get routingKey() {\n if (typeof this.data.id === \"string\")\n return `categories.${this.data.id}.get`;\n if (Array.isArray(this.data.id)) return \"categories.batch.get\";\n return \"categories.get\";\n }\n}\n\nmodule.exports = DiscoverCategoriesCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass CreateShortLinkCommand extends Command {\n constructor({ title, destination }) {\n if (!title) throw new RequestError(\"title is required\");\n if (!destination) throw new RequestError(\"destination to is required\");\n super({ title, destination });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n\n get routingKey() {\n return \"comm.shortlink.create\";\n }\n}\n\nmodule.exports = CreateShortLinkCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateReservationCommand extends Command {\n constructor({ id, ...rest }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n\n get routingKey() {\n return `reservation.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateReservationCommand;\n", "const Command = require(\"./Command\");\nconst RequestError = require(\"../Errors/RequestError\");\n\nclass UpdateUserCommand extends Command {\n constructor({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest\n }) {\n if (!id) throw new RequestError(\"document type is required\");\n super({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest,\n });\n }\n\n get name() {\n return \"UpdateUser\";\n }\n\n get routingKey() {\n return `user.${this.data.id}.update`;\n }\n}\n\nmodule.exports = UpdateUserCommand;\n", "const Command = require(\"./Command\");\n\nclass GetMobileKeyCommand extends Command {\n constructor({\n id,\n phone,\n beginDateTime,\n endDateTime,\n keyToReplace,\n ...rest\n }) {\n super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });\n }\n\n get name() {\n return \"GetMobileKey\";\n }\n\n get routingKey() {\n return `lock.${this.data.id}.set`;\n }\n}\n\nmodule.exports = GetMobileKeyCommand;\n", "const Command = require(\"./Command\");\n\nclass CreateImageUploadEndpointCommand extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n\n get routingKey() {\n return \"image.createUploadEndpoint\";\n }\n}\n\nmodule.exports = CreateImageUploadEndpointCommand;\n", "const Command = require(\"./Command\");\n\nclass UploadImageCommand extends Command {\n constructor({ id, url, file, ...rest }) {\n super({ id, url, file, ...rest });\n }\n\n get name() {\n return \"UploadImage\";\n }\n\n get routingKey() {\n return `image.${this.data.id}.upload`;\n }\n}\n\nmodule.exports = UploadImageCommand;\n", "const Command = require(\"./Command\");\n\nclass GetProductsCommand extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n\n get routingKey() {\n return `product.${this.data.id}.get`;\n }\n}\n\nmodule.exports = GetProductsCommand;\n", "const Command = require(\"./Command\");\n\nclass SellProductsCommand extends Command {\n constructor({ reservationId, userId, products, ...rest }) {\n super({ reservationId, userId, products, ...rest });\n }\n\n get name() {\n return \"SellProducts\";\n }\n\n get routingKey() {\n return `product.${this.data.id}.sell`;\n }\n}\n\nmodule.exports = SellProductsCommand;\n", "const SetSceneCommand = require(\"./SetSceneCommand\");\nconst SetAlarmCommand = require(\"./SetAlarmCommand\");\nconst SetDimmerCommand = require(\"./SetDimmerCommand\");\nconst SetSwitchCommand = require(\"./SetSwitchCommand\");\nconst SetThermostatCommand = require(\"./SetThermostatCommand\");\nconst SetLockCommand = require(\"./SetLockCommand\");\nconst SetWindowCoveringCommand = require(\"./SetWindowCoveringCommand\");\nconst SetCourtesyCommand = require(\"./SetCourtesyCommand\");\nconst SetMediaCommand = require(\"./SetMediaCommand\");\nconst DiscoverUsersCommand = require(\"./DiscoverUsersCommand\");\nconst OCRDocumentCommand = require(\"./OCRDocumentCommand\");\nconst CheckInReservationCommand = require(\"./CheckInReservationCommand\");\nconst SendEmailCommand = require(\"./SendEmailCommand\");\nconst SendSMSCommand = require(\"./SendSMSCommand\");\nconst DiscoverReservationsCommand = require(\"./DiscoverReservationsCommand\");\nconst DiscoverReservationSpaceCategoryAvailabilitiesCommand = require(\"./DiscoverReservationSpaceCategoryAvailabilitiesCommand\");\nconst DiscoverRoomsCommand = require(\"./DiscoverRoomsCommand\");\nconst DiscoverCategoriesCommand = require(\"./DiscoverCategoriesCommand\");\nconst CreateShortLinkCommand = require(\"./CreateShortLinkCommand\");\nconst UpdateReservationCommand = require(\"./UpdateReservationCommand\");\nconst UpdateUserCommand = require(\"./UpdateUserCommand\");\nconst GetMobileKeyCommand = require(\"./GetMobileKeyCommand\");\nconst CreateImageUploadEndpointCommand = require(\"./CreateImageUploadEndpointCommand\");\nconst UploadImageCommand = require(\"./UploadImageCommand\");\nconst GetProductsCommand = require(\"./GetProductsCommand\");\nconst SellProductsCommand = require(\"./SellProductsCommand\");\n\nmodule.exports = {\n SetSceneCommand,\n SetAlarmCommand,\n SetDimmerCommand,\n SetSwitchCommand,\n SetThermostatCommand,\n SetLockCommand,\n SetWindowCoveringCommand,\n SetCourtesyCommand,\n SetMediaCommand,\n OCRDocumentCommand,\n DiscoverUsersCommand,\n CheckInReservationCommand,\n SendSMSCommand,\n SendEmailCommand,\n DiscoverReservationsCommand,\n DiscoverReservationSpaceCategoryAvailabilitiesCommand,\n DiscoverRoomsCommand,\n DiscoverCategoriesCommand,\n CreateShortLinkCommand,\n UpdateReservationCommand,\n UpdateUserCommand,\n GetMobileKeyCommand,\n CreateImageUploadEndpointCommand,\n UploadImageCommand,\n GetProductsCommand,\n SellProductsCommand,\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAM,UAAN,MAAc;AAAA,MAAd,OAAc;AAAA;AAAA;AAAA,MACZ,YAAY,MAAM;AAChB,aAAK,OAAO,CAAC;AACb,YAAI,CAAC;AAAM,gBAAM,IAAI,MAAM,0BAA0B;AACrD,YAAI,OAAO,SAAS;AAClB,gBAAM,IAAI,MAAM,gCAAgC;AAElD,mBAAW,OAAO,MAAM;AACtB,eAAK,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,QAC3B;AAAA,MACF;AAAA,MAEA,IAAI,OAAO;AACT,cAAM,IAAI,MAAM,0BAA0B;AAAA,MAC5C;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,aAAa;AACf,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,WAAW;AACb,eAAO;AAAA,MACT;AAAA,MAEA,QAAQ;AACN,eAAO,EAAE,MAAM,EAAE,GAAG,KAAK,KAAK,EAAE;AAAA,MAClC;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACjCjB;AAAA;AAAA,QAAM,UAAU;AAEhB,QAAM,kBAAN,cAA8B,QAAQ;AAAA,MAFtC,OAEsC;AAAA;AAAA;AAAA,MACpC,YAAY,EAAE,IAAI,SAAS,GAAG,KAAK,GAAG;AACpC,cAAM,EAAE,IAAI,SAAS,GAAG,KAAK,CAAC;AAAA,MAChC;AAAA,MAEA,IAAI,OAAO;AACT,eAAO;AAAA,MACT;AAAA,MAEA,IAAI,aAAa;AACf,eAAO,SAAS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C,QAAM,oBAAoB;AAC1B,QAAM,sBAAsB;AAC5B,QAAM,mCAAmC;AACzC,QAAM,qBAAqB;AAC3B,QAAM,qBAAqB;AAC3B,QAAM,sBAAsB;AAE5B,WAAO,UAAU;AAAA,MACf;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/Models.js
CHANGED
|
@@ -7648,6 +7648,27 @@ var require_definitions = __commonJS({
|
|
|
7648
7648
|
watts: {
|
|
7649
7649
|
type: "number",
|
|
7650
7650
|
minimum: 0
|
|
7651
|
+
},
|
|
7652
|
+
revenue: {
|
|
7653
|
+
type: "array",
|
|
7654
|
+
items: {
|
|
7655
|
+
type: "object",
|
|
7656
|
+
properties: {
|
|
7657
|
+
id: {
|
|
7658
|
+
$ref: "definitions.json#/definitions/id"
|
|
7659
|
+
},
|
|
7660
|
+
name: {
|
|
7661
|
+
type: "string"
|
|
7662
|
+
},
|
|
7663
|
+
date: {
|
|
7664
|
+
type: "string",
|
|
7665
|
+
format: "date-time"
|
|
7666
|
+
},
|
|
7667
|
+
price: {
|
|
7668
|
+
type: "number"
|
|
7669
|
+
}
|
|
7670
|
+
}
|
|
7671
|
+
}
|
|
7651
7672
|
}
|
|
7652
7673
|
}
|
|
7653
7674
|
};
|
|
@@ -7783,23 +7804,7 @@ var require_reservation = __commonJS({
|
|
|
7783
7804
|
}
|
|
7784
7805
|
},
|
|
7785
7806
|
revenue: {
|
|
7786
|
-
|
|
7787
|
-
items: {
|
|
7788
|
-
type: "object",
|
|
7789
|
-
properties: {
|
|
7790
|
-
date: {
|
|
7791
|
-
type: "string",
|
|
7792
|
-
format: "date-time"
|
|
7793
|
-
},
|
|
7794
|
-
amount: {
|
|
7795
|
-
type: "number"
|
|
7796
|
-
},
|
|
7797
|
-
type: {
|
|
7798
|
-
type: "string",
|
|
7799
|
-
enum: ["service", "product"]
|
|
7800
|
-
}
|
|
7801
|
-
}
|
|
7802
|
-
}
|
|
7807
|
+
$ref: "definitions.json#/definitions/revenue"
|
|
7803
7808
|
},
|
|
7804
7809
|
rateSuppressed: {
|
|
7805
7810
|
type: "boolean"
|
|
@@ -9427,6 +9432,9 @@ var require_user = __commonJS({
|
|
|
9427
9432
|
spaceName: {
|
|
9428
9433
|
type: "string"
|
|
9429
9434
|
},
|
|
9435
|
+
revenue: {
|
|
9436
|
+
$ref: "definitions.json#/definitions/revenue"
|
|
9437
|
+
},
|
|
9430
9438
|
createdAt: {
|
|
9431
9439
|
$ref: "definitions.json#/definitions/createdAt"
|
|
9432
9440
|
},
|
|
@@ -9734,6 +9742,9 @@ var require_systemUser = __commonJS({
|
|
|
9734
9742
|
$ref: "payment.json#"
|
|
9735
9743
|
}
|
|
9736
9744
|
},
|
|
9745
|
+
revenue: {
|
|
9746
|
+
$ref: "definitions.json#/definitions/revenue"
|
|
9747
|
+
},
|
|
9737
9748
|
createdAt: {
|
|
9738
9749
|
$ref: "definitions.json#/definitions/createdAt"
|
|
9739
9750
|
},
|