@kohost/api-client 3.0.0-beta.6 → 3.0.0-beta.61

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.
Files changed (256) hide show
  1. package/README.md +71 -0
  2. package/dist/cjs/AMQPClient/index.js +291 -0
  3. package/dist/cjs/{Client.js → Client/index.js} +2074 -962
  4. package/dist/cjs/Commands/CheckInReservationCommand.js +19 -0
  5. package/dist/cjs/Commands/Command.js +34 -0
  6. package/dist/cjs/Commands/CreateImageUploadEndpointCommand.js +17 -0
  7. package/dist/cjs/Commands/CreateShortLinkCommand.js +20 -0
  8. package/dist/cjs/Commands/DiscoverReservationRoomTypeUpsellOptionsCommand.js +20 -0
  9. package/dist/cjs/Commands/DiscoverReservationsCommand.js +20 -0
  10. package/dist/cjs/Commands/DiscoverRoomTypesCommand.js +19 -0
  11. package/dist/cjs/Commands/DiscoverRoomsCommand.js +37 -0
  12. package/dist/cjs/Commands/DiscoverUsersCommand.js +19 -0
  13. package/dist/cjs/Commands/GetMobileKeyCommand.js +24 -0
  14. package/dist/cjs/Commands/GetProductsCommand.js +17 -0
  15. package/dist/cjs/Commands/OCRDocumentCommand.js +15 -0
  16. package/dist/cjs/Commands/SellProductsCommand.js +17 -0
  17. package/dist/cjs/Commands/SendEmailCommand.js +24 -0
  18. package/dist/cjs/Commands/SendSMSCommand.js +21 -0
  19. package/dist/cjs/Commands/SetAlarmCommand.js +17 -0
  20. package/dist/cjs/Commands/SetCourtesyCommand.js +17 -0
  21. package/dist/cjs/Commands/SetDimmerCommand.js +17 -0
  22. package/dist/cjs/Commands/SetLockCommand.js +17 -0
  23. package/dist/cjs/Commands/SetMediaCommand.js +17 -0
  24. package/dist/cjs/Commands/SetSceneCommand.js +17 -0
  25. package/dist/cjs/Commands/SetSwitchCommand.js +17 -0
  26. package/dist/cjs/Commands/SetThermostatCommand.js +17 -0
  27. package/dist/cjs/Commands/SetWindowCoveringCommand.js +17 -0
  28. package/dist/cjs/Commands/UpdateReservationCommand.js +19 -0
  29. package/dist/cjs/Commands/UpdateUserCommand.js +41 -0
  30. package/dist/cjs/Commands/UploadImageCommand.js +17 -0
  31. package/dist/cjs/Commands/index.js +55 -0
  32. package/dist/cjs/Errors/AppError.js +8 -0
  33. package/dist/cjs/Errors/AuthenticationError.js +9 -0
  34. package/dist/cjs/Errors/AuthorizationError.js +9 -0
  35. package/dist/cjs/Errors/ConflictError.js +9 -0
  36. package/dist/cjs/Errors/DeviceCommError.js +9 -0
  37. package/dist/cjs/Errors/LoginError.js +9 -0
  38. package/dist/cjs/Errors/NotFoundError.js +9 -0
  39. package/dist/cjs/Errors/RequestError.js +9 -0
  40. package/dist/cjs/Errors/SystemCommError.js +9 -0
  41. package/dist/cjs/Errors/TokenExpiredError.js +9 -0
  42. package/dist/cjs/Errors/UnprocessableRequestError.js +9 -0
  43. package/dist/cjs/Errors/ValidationError.js +9 -0
  44. package/dist/cjs/Errors/index.js +16 -0
  45. package/dist/cjs/Events/ApplicationInUseEvent.js +17 -0
  46. package/dist/cjs/Events/ApplicationOutOfUseEvent.js +17 -0
  47. package/dist/cjs/Events/EmailEvent.js +18 -0
  48. package/dist/cjs/Events/Event.js +55 -0
  49. package/dist/cjs/Events/SMSEvent.js +18 -0
  50. package/dist/cjs/Events/SMSSentEvent.js +17 -0
  51. package/dist/cjs/Events/SceneSetEvent.js +17 -0
  52. package/dist/cjs/Events/ShortLinkCreatedEvent.js +17 -0
  53. package/dist/cjs/Events/SystemAlarmUpdatedEvent.js +17 -0
  54. package/dist/cjs/Events/SystemCameraUpdatedEvent.js +17 -0
  55. package/dist/cjs/Events/SystemCategoryUpdatedEvent.js +17 -0
  56. package/dist/cjs/Events/SystemCourtesyUpdatedEvent.js +17 -0
  57. package/dist/cjs/Events/SystemDimmerUpdatedEvent.js +17 -0
  58. package/dist/cjs/Events/SystemGatewayUpdatedEvent.js +17 -0
  59. package/dist/cjs/Events/SystemLockUpdatedEvent.js +17 -0
  60. package/dist/cjs/Events/SystemMediaSourceUpdatedEvent.js +17 -0
  61. package/dist/cjs/Events/SystemMotionSensorUpdatedEvent.js +17 -0
  62. package/dist/cjs/Events/SystemProductUpdatedEvent.js +17 -0
  63. package/dist/cjs/Events/SystemReservationUpdatedEvent.js +17 -0
  64. package/dist/cjs/Events/SystemSceneControllerUpdatedEvent.js +17 -0
  65. package/dist/cjs/Events/SystemSpaceUpdatedEvent.js +17 -0
  66. package/dist/cjs/Events/SystemSwitchUpdatedEvent.js +17 -0
  67. package/dist/cjs/Events/SystemThermostatUpdatedEvent.js +17 -0
  68. package/dist/cjs/Events/SystemUserUpdatedEvent.js +17 -0
  69. package/dist/cjs/Events/SystemWindowCoveringUpdatedEvent.js +17 -0
  70. package/dist/cjs/Events/index.js +54 -0
  71. package/dist/cjs/Models/Alarm.js +35 -0
  72. package/dist/cjs/Models/Camera.js +35 -0
  73. package/dist/cjs/Models/Category.js +36 -0
  74. package/dist/cjs/Models/Courtesy.js +39 -0
  75. package/dist/cjs/Models/Credential.js +35 -0
  76. package/dist/cjs/Models/Dimmer.js +61 -0
  77. package/dist/cjs/Models/DiscoveredDevice.js +36 -0
  78. package/dist/cjs/Models/EmailMessage.js +35 -0
  79. package/dist/cjs/Models/EnergyReport.js +35 -0
  80. package/dist/cjs/Models/EnergyReportShard.js +35 -0
  81. package/dist/cjs/Models/Gateway.js +35 -0
  82. package/dist/cjs/Models/Identification.js +38 -0
  83. package/dist/cjs/Models/Kohost.js +96 -0
  84. package/dist/cjs/Models/Lock.js +39 -0
  85. package/dist/cjs/Models/MediaFile.js +48 -0
  86. package/dist/cjs/Models/MediaSource.js +35 -0
  87. package/dist/cjs/Models/MotionSensor.js +35 -0
  88. package/dist/cjs/Models/Notification.js +34 -0
  89. package/dist/cjs/Models/Order.js +97 -0
  90. package/dist/cjs/Models/Organization.js +34 -0
  91. package/dist/cjs/Models/Product.js +35 -0
  92. package/dist/cjs/Models/Property.js +34 -0
  93. package/dist/cjs/Models/Reservation.js +114 -0
  94. package/dist/cjs/Models/Room.js +218 -0
  95. package/dist/cjs/Models/Scene.js +169 -0
  96. package/dist/cjs/Models/ShortLink.js +35 -0
  97. package/dist/cjs/Models/SmsMessage.js +35 -0
  98. package/dist/cjs/Models/Space.js +97 -0
  99. package/dist/cjs/Models/Switch.js +39 -0
  100. package/dist/cjs/Models/SystemUser.js +55 -0
  101. package/dist/cjs/Models/Thermostat.js +86 -0
  102. package/dist/cjs/Models/Ticket.js +112 -0
  103. package/dist/cjs/Models/User.js +115 -0
  104. package/dist/cjs/Models/WindowCovering.js +55 -0
  105. package/dist/cjs/Models/index.js +72 -0
  106. package/dist/cjs/SocketIoClient/index.js +74 -0
  107. package/dist/cjs/defs/deviceTypes.js +15 -0
  108. package/dist/cjs/defs/formalDeviceTypes.js +6 -0
  109. package/dist/cjs/defs/index.js +11 -0
  110. package/dist/cjs/{index.cjs.js → index.js} +7 -1
  111. package/dist/cjs/schemas/AlarmSchema.d.ts +153 -0
  112. package/dist/cjs/schemas/CameraSchema.d.ts +145 -0
  113. package/dist/cjs/schemas/CategorySchema.d.ts +84 -0
  114. package/dist/cjs/schemas/CourtesySchema.d.ts +143 -0
  115. package/dist/cjs/schemas/CredentialSchema.d.ts +24 -0
  116. package/dist/cjs/schemas/DefinitionsSchema.d.ts +10 -0
  117. package/dist/cjs/schemas/DimmerSchema.d.ts +143 -0
  118. package/dist/cjs/schemas/DiscoveredDeviceSchema.d.ts +39 -0
  119. package/dist/cjs/schemas/EmailMessageSchema.d.ts +52 -0
  120. package/dist/cjs/schemas/EnergyReportSchema.d.ts +57 -0
  121. package/dist/cjs/schemas/EnergyReportShardSchema.d.ts +61 -0
  122. package/dist/cjs/schemas/GatewaySchema.d.ts +140 -0
  123. package/dist/cjs/schemas/IdentificationSchema.d.ts +48 -0
  124. package/dist/cjs/schemas/LockSchema.d.ts +143 -0
  125. package/dist/cjs/schemas/MediaFileSchema.d.ts +46 -0
  126. package/dist/cjs/schemas/MediaSourceSchema.d.ts +240 -0
  127. package/dist/cjs/schemas/MotionSensorSchema.d.ts +139 -0
  128. package/dist/cjs/schemas/NotificationSchema.d.ts +57 -0
  129. package/dist/cjs/schemas/OrderSchema.d.ts +91 -0
  130. package/dist/cjs/schemas/OrganizationSchema.d.ts +33 -0
  131. package/dist/cjs/schemas/PaymentSchema.d.ts +36 -0
  132. package/dist/cjs/schemas/ProductSchema.d.ts +68 -0
  133. package/dist/cjs/schemas/PropertySchema.d.ts +120 -0
  134. package/dist/cjs/schemas/ReservationSchema.d.ts +105 -0
  135. package/dist/cjs/schemas/RoomSchema.d.ts +1065 -0
  136. package/dist/cjs/schemas/SceneSchema.d.ts +57 -0
  137. package/dist/cjs/schemas/ShortLinkSchema.d.ts +23 -0
  138. package/dist/cjs/schemas/SmsMessageSchema.d.ts +43 -0
  139. package/dist/cjs/schemas/SpaceSchema.d.ts +61 -0
  140. package/dist/cjs/schemas/SwitchSchema.d.ts +143 -0
  141. package/dist/cjs/schemas/SystemUserSchema.d.ts +187 -0
  142. package/dist/cjs/schemas/ThermostatSchema.d.ts +173 -0
  143. package/dist/cjs/schemas/TicketSchema.d.ts +91 -0
  144. package/dist/cjs/schemas/UserSchema.d.ts +269 -0
  145. package/dist/cjs/schemas/WindowCoveringSchema.d.ts +142 -0
  146. package/dist/cjs/schemas/alarm.json +89 -0
  147. package/dist/cjs/schemas/camera.json +50 -0
  148. package/dist/cjs/schemas/category.json +42 -0
  149. package/dist/cjs/schemas/courtesy.json +49 -0
  150. package/dist/cjs/schemas/credential.json +37 -0
  151. package/dist/cjs/schemas/definitions.json +194 -0
  152. package/dist/cjs/schemas/dimmer.json +46 -0
  153. package/dist/cjs/schemas/discoveredDevice.json +31 -0
  154. package/dist/cjs/schemas/emailMessage.json +71 -0
  155. package/dist/cjs/schemas/energyReport.json +86 -0
  156. package/dist/cjs/schemas/energyReportShard.json +75 -0
  157. package/dist/cjs/schemas/gateway.json +35 -0
  158. package/dist/cjs/schemas/identification.json +61 -0
  159. package/dist/cjs/schemas/lock.json +45 -0
  160. package/dist/cjs/schemas/mediaFile.json +70 -0
  161. package/dist/cjs/schemas/mediaSource.json +187 -0
  162. package/dist/cjs/schemas/motionSensor.json +32 -0
  163. package/dist/cjs/schemas/notification.json +29 -0
  164. package/dist/cjs/schemas/order.json +182 -0
  165. package/dist/cjs/schemas/organization.json +36 -0
  166. package/dist/cjs/schemas/payment.json +47 -0
  167. package/dist/cjs/schemas/product.json +41 -0
  168. package/dist/cjs/schemas/property.json +309 -0
  169. package/dist/cjs/schemas/reservation.json +141 -0
  170. package/dist/cjs/schemas/room.json +98 -0
  171. package/dist/cjs/schemas/scene.json +121 -0
  172. package/dist/cjs/schemas/shortLink.json +30 -0
  173. package/dist/cjs/schemas/smsMessage.json +61 -0
  174. package/dist/cjs/schemas/space.json +124 -0
  175. package/dist/cjs/schemas/switch.json +45 -0
  176. package/dist/cjs/schemas/systemUser.json +95 -0
  177. package/dist/cjs/schemas/thermostat.json +153 -0
  178. package/dist/cjs/schemas/ticket.json +141 -0
  179. package/dist/cjs/schemas/user.json +152 -0
  180. package/dist/cjs/schemas/windowCovering.json +43 -0
  181. package/dist/cjs/utils/errorFactory.js +8 -0
  182. package/dist/cjs/utils/eventFactory.js +10 -0
  183. package/dist/cjs/utils/getDeviceTypes.js +7 -0
  184. package/dist/cjs/utils/getFormalDeviceType.js +5 -0
  185. package/dist/cjs/utils/index.js +11 -0
  186. package/dist/cjs/utils/schema.js +25 -0
  187. package/dist/esm/Client.js +2423 -1175
  188. package/dist/esm/Client.js.map +4 -4
  189. package/dist/esm/Commands.js +498 -73
  190. package/dist/esm/Commands.js.map +3 -3
  191. package/dist/esm/Errors.js +53 -0
  192. package/dist/esm/Errors.js.map +3 -3
  193. package/dist/esm/Events.js +314 -63
  194. package/dist/esm/Events.js.map +3 -3
  195. package/dist/esm/Models.js +3872 -1179
  196. package/dist/esm/Models.js.map +4 -4
  197. package/dist/esm/SocketIoClient.js +4748 -0
  198. package/dist/esm/SocketIoClient.js.map +7 -0
  199. package/dist/esm/defs.js +407 -279
  200. package/dist/esm/defs.js.map +4 -4
  201. package/dist/esm/index.js +17 -10
  202. package/dist/esm/utils.js +763 -85
  203. package/dist/esm/utils.js.map +3 -3
  204. package/dist/useCases/{AdminUpdateProperty.js → AdminUpdateCustomer.js} +2 -2
  205. package/dist/useCases/AssignSpaceToReservation.js +32 -0
  206. package/dist/useCases/BatchNotifyCheckIn.js +32 -0
  207. package/dist/useCases/CreateImageUploadEndpoint.js +32 -0
  208. package/dist/useCases/{CreateSource.js → CreateMediaSource.js} +2 -2
  209. package/dist/useCases/{AdminListCustomers.js → CreateOrganization.js} +3 -3
  210. package/dist/useCases/{AdminCreateProperty.js → CreateProperty.js} +2 -2
  211. package/dist/useCases/CreateSpaceType.js +32 -0
  212. package/dist/useCases/DeleteMediaFile.js +32 -0
  213. package/dist/useCases/{DeleteSource.js → DeleteMediaSource.js} +2 -2
  214. package/dist/useCases/DeleteSpaceType.js +32 -0
  215. package/dist/useCases/DescribeLockCredential.js +32 -0
  216. package/dist/useCases/{DescribeIntegration.js → DescribeMediaSource.js} +3 -3
  217. package/dist/useCases/DescribeMyAccessCredentials.js +32 -0
  218. package/dist/useCases/{AdminDescribeProperty.js → DescribeOrganization.js} +2 -2
  219. package/dist/useCases/DescribeProduct.js +32 -0
  220. package/dist/useCases/{ListIntegrations.js → DescribeProperty.js} +3 -3
  221. package/dist/useCases/DescribeReservationEarlyCheckInProducts.js +32 -0
  222. package/dist/useCases/DescribeReservationRoomUpgrades.js +32 -0
  223. package/dist/useCases/{DeleteIntegration.js → DescribeSpaceType.js} +2 -2
  224. package/dist/useCases/ListMediaSources.js +32 -0
  225. package/dist/useCases/{LoginGateway.js → ListMyOrders.js} +3 -3
  226. package/dist/useCases/{AdminListProperties.js → ListMyTickets.js} +2 -2
  227. package/dist/useCases/ListOrders.js +32 -0
  228. package/dist/useCases/{UpdateIntegration.js → ListOrganizations.js} +4 -4
  229. package/dist/useCases/ListProperties.js +32 -0
  230. package/dist/useCases/ListScenes.js +32 -0
  231. package/dist/useCases/ListSpaceTypes.js +32 -0
  232. package/dist/useCases/ListTeam.js +32 -0
  233. package/dist/useCases/ListUserOrders.js +32 -0
  234. package/dist/useCases/ListUserSpaces.js +32 -0
  235. package/dist/useCases/LogoutUser.js +32 -0
  236. package/dist/useCases/PurchaseReservationEarlyCheckInProducts.js +32 -0
  237. package/dist/useCases/{CreateIntegrationDeviceMapEntry.js → PurchaseReservationRoomUpgrades.js} +2 -2
  238. package/dist/useCases/RequestLoginLink.js +1 -1
  239. package/dist/useCases/{CreateIntegration.js → RequestMyKeyToken.js} +2 -2
  240. package/dist/useCases/RequestPWAToken.js +32 -0
  241. package/dist/useCases/SendCheckInSMS.js +32 -0
  242. package/dist/useCases/{SetSource.js → SetDimmer.js} +2 -2
  243. package/dist/useCases/{DescribeSource.js → SetMediaSource.js} +3 -3
  244. package/dist/useCases/{UpdateSource.js → SetRoomScene.js} +3 -3
  245. package/dist/useCases/SetSpaceScene.js +32 -0
  246. package/dist/useCases/UpdateMediaSource.js +32 -0
  247. package/dist/useCases/UpdateProperty.js +32 -0
  248. package/dist/useCases/UpdateSpaceType.js +32 -0
  249. package/dist/useCases/{ListSources.js → UploadImage.js} +4 -4
  250. package/package.json +36 -10
  251. package/dist/cjs/Commands.js +0 -568
  252. package/dist/cjs/Errors.js +0 -174
  253. package/dist/cjs/Events.js +0 -375
  254. package/dist/cjs/Models.js +0 -3582
  255. package/dist/cjs/defs.js +0 -175
  256. package/dist/cjs/utils.js +0 -246
@@ -1,4 +1,6 @@
1
+ var __defProp = Object.defineProperty;
1
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
2
4
  var __commonJS = (cb, mod) => function __require() {
3
5
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
6
  };
@@ -7,6 +9,9 @@ var __commonJS = (cb, mod) => function __require() {
7
9
  var require_Command = __commonJS({
8
10
  "src/Commands/Command.js"(exports, module) {
9
11
  var Command = class {
12
+ static {
13
+ __name(this, "Command");
14
+ }
10
15
  constructor(data) {
11
16
  this.data = {};
12
17
  if (!data)
@@ -29,9 +34,6 @@ var require_Command = __commonJS({
29
34
  get exchange() {
30
35
  return "Commands";
31
36
  }
32
- get replyTo() {
33
- return "amq.rabbitmq.reply-to";
34
- }
35
37
  build() {
36
38
  return { data: { ...this.data } };
37
39
  }
@@ -40,11 +42,36 @@ var require_Command = __commonJS({
40
42
  }
41
43
  });
42
44
 
45
+ // src/Commands/SetSceneCommand.js
46
+ var require_SetSceneCommand = __commonJS({
47
+ "src/Commands/SetSceneCommand.js"(exports, module) {
48
+ var Command = require_Command();
49
+ var SetSceneCommand = class extends Command {
50
+ static {
51
+ __name(this, "SetSceneCommand");
52
+ }
53
+ constructor({ id, devices, ...rest }) {
54
+ super({ id, devices, ...rest });
55
+ }
56
+ get name() {
57
+ return "SetScene";
58
+ }
59
+ get routingKey() {
60
+ return `scene.${this.data.id}.set`;
61
+ }
62
+ };
63
+ module.exports = SetSceneCommand;
64
+ }
65
+ });
66
+
43
67
  // src/Commands/SetAlarmCommand.js
44
68
  var require_SetAlarmCommand = __commonJS({
45
69
  "src/Commands/SetAlarmCommand.js"(exports, module) {
46
70
  var Command = require_Command();
47
71
  var SetAlarmCommand = class extends Command {
72
+ static {
73
+ __name(this, "SetAlarmCommand");
74
+ }
48
75
  constructor({ id, zones, areas }) {
49
76
  super({ id, zones, areas });
50
77
  }
@@ -54,9 +81,6 @@ var require_SetAlarmCommand = __commonJS({
54
81
  get routingKey() {
55
82
  return `alarm.${this.data.id}.set`;
56
83
  }
57
- get replyTo() {
58
- return "system.response.devices";
59
- }
60
84
  };
61
85
  module.exports = SetAlarmCommand;
62
86
  }
@@ -67,6 +91,9 @@ var require_SetDimmerCommand = __commonJS({
67
91
  "src/Commands/SetDimmerCommand.js"(exports, module) {
68
92
  var Command = require_Command();
69
93
  var SetDimmerCommand = class extends Command {
94
+ static {
95
+ __name(this, "SetDimmerCommand");
96
+ }
70
97
  constructor({ id, level }) {
71
98
  super({ id, level });
72
99
  }
@@ -76,9 +103,6 @@ var require_SetDimmerCommand = __commonJS({
76
103
  get routingKey() {
77
104
  return `dimmer.${this.data.id}.set`;
78
105
  }
79
- get replyTo() {
80
- return "system.response.devices";
81
- }
82
106
  };
83
107
  module.exports = SetDimmerCommand;
84
108
  }
@@ -89,6 +113,9 @@ var require_SetSwitchCommand = __commonJS({
89
113
  "src/Commands/SetSwitchCommand.js"(exports, module) {
90
114
  var Command = require_Command();
91
115
  var SetSwitchCommand = class extends Command {
116
+ static {
117
+ __name(this, "SetSwitchCommand");
118
+ }
92
119
  constructor({ id, state }) {
93
120
  super({ id, state });
94
121
  }
@@ -98,9 +125,6 @@ var require_SetSwitchCommand = __commonJS({
98
125
  get routingKey() {
99
126
  return `switch.${this.data.id}.set`;
100
127
  }
101
- get replyTo() {
102
- return "system.response.devices";
103
- }
104
128
  };
105
129
  module.exports = SetSwitchCommand;
106
130
  }
@@ -111,6 +135,9 @@ var require_SetThermostatCommand = __commonJS({
111
135
  "src/Commands/SetThermostatCommand.js"(exports, module) {
112
136
  var Command = require_Command();
113
137
  var SetThermostatCommand = class extends Command {
138
+ static {
139
+ __name(this, "SetThermostatCommand");
140
+ }
114
141
  constructor({ id, setpoints, hvacMode, fanMode }) {
115
142
  super({ id, setpoints, hvacMode, fanMode });
116
143
  }
@@ -120,9 +147,6 @@ var require_SetThermostatCommand = __commonJS({
120
147
  get routingKey() {
121
148
  return `thermostat.${this.data.id}.set`;
122
149
  }
123
- get replyTo() {
124
- return "system.response.devices";
125
- }
126
150
  };
127
151
  module.exports = SetThermostatCommand;
128
152
  }
@@ -133,6 +157,9 @@ var require_SetLockCommand = __commonJS({
133
157
  "src/Commands/SetLockCommand.js"(exports, module) {
134
158
  var Command = require_Command();
135
159
  var SetLockCommand = class extends Command {
160
+ static {
161
+ __name(this, "SetLockCommand");
162
+ }
136
163
  constructor({ id, state }) {
137
164
  super({ id, state });
138
165
  }
@@ -142,41 +169,19 @@ var require_SetLockCommand = __commonJS({
142
169
  get routingKey() {
143
170
  return `lock.${this.data.id}.set`;
144
171
  }
145
- get replyTo() {
146
- return "system.response.devices";
147
- }
148
172
  };
149
173
  module.exports = SetLockCommand;
150
174
  }
151
175
  });
152
176
 
153
- // src/Commands/SetSceneControllerCommand.js
154
- var require_SetSceneControllerCommand = __commonJS({
155
- "src/Commands/SetSceneControllerCommand.js"(exports, module) {
156
- var Command = require_Command();
157
- var SetSceneControllerCommand = class extends Command {
158
- constructor({ id, scene }) {
159
- super({ id, scene });
160
- }
161
- get name() {
162
- return "SetSceneController";
163
- }
164
- get routingKey() {
165
- return `sceneController.${this.data.id}.set`;
166
- }
167
- get replyTo() {
168
- return "system.response.devices";
169
- }
170
- };
171
- module.exports = SetSceneControllerCommand;
172
- }
173
- });
174
-
175
177
  // src/Commands/SetWindowCoveringCommand.js
176
178
  var require_SetWindowCoveringCommand = __commonJS({
177
179
  "src/Commands/SetWindowCoveringCommand.js"(exports, module) {
178
180
  var Command = require_Command();
179
181
  var SetWindowCoveringCommand = class extends Command {
182
+ static {
183
+ __name(this, "SetWindowCoveringCommand");
184
+ }
180
185
  constructor({ id, position }) {
181
186
  super({ id, position });
182
187
  }
@@ -186,9 +191,6 @@ var require_SetWindowCoveringCommand = __commonJS({
186
191
  get routingKey() {
187
192
  return `windowCovering.${this.data.id}.set`;
188
193
  }
189
- get replyTo() {
190
- return "system.response.devices";
191
- }
192
194
  };
193
195
  module.exports = SetWindowCoveringCommand;
194
196
  }
@@ -199,6 +201,9 @@ var require_SetCourtesyCommand = __commonJS({
199
201
  "src/Commands/SetCourtesyCommand.js"(exports, module) {
200
202
  var Command = require_Command();
201
203
  var SetCourtesyCommand = class extends Command {
204
+ static {
205
+ __name(this, "SetCourtesyCommand");
206
+ }
202
207
  constructor({ id, state }) {
203
208
  super({ id, state });
204
209
  }
@@ -208,19 +213,41 @@ var require_SetCourtesyCommand = __commonJS({
208
213
  get routingKey() {
209
214
  return `courtesy.${this.data.id}.set`;
210
215
  }
211
- get replyTo() {
212
- return "system.response.devices";
213
- }
214
216
  };
215
217
  module.exports = SetCourtesyCommand;
216
218
  }
217
219
  });
218
220
 
221
+ // src/Commands/SetMediaCommand.js
222
+ var require_SetMediaCommand = __commonJS({
223
+ "src/Commands/SetMediaCommand.js"(exports, module) {
224
+ var Command = require_Command();
225
+ var SetMediaCommand = class extends Command {
226
+ static {
227
+ __name(this, "SetMediaCommand");
228
+ }
229
+ constructor({ id, command, ...rest }) {
230
+ super({ id, command, ...rest });
231
+ }
232
+ get name() {
233
+ return "SetMedia";
234
+ }
235
+ get routingKey() {
236
+ return `mediaSource.${this.data.id}.set`;
237
+ }
238
+ };
239
+ module.exports = SetMediaCommand;
240
+ }
241
+ });
242
+
219
243
  // src/Commands/DiscoverUsersCommand.js
220
244
  var require_DiscoverUsersCommand = __commonJS({
221
245
  "src/Commands/DiscoverUsersCommand.js"(exports, module) {
222
246
  var Command = require_Command();
223
247
  var DiscoverUsersCommand = class extends Command {
248
+ static {
249
+ __name(this, "DiscoverUsersCommand");
250
+ }
224
251
  constructor({ id }) {
225
252
  super({ id });
226
253
  }
@@ -228,10 +255,11 @@ var require_DiscoverUsersCommand = __commonJS({
228
255
  return "DiscoverUsers";
229
256
  }
230
257
  get routingKey() {
231
- return `users.${this.data.id}.get`;
232
- }
233
- get replyTo() {
234
- return "system.response.users";
258
+ if (typeof this.data.id === "string")
259
+ return `users.${this.data.id}.get`;
260
+ if (Array.isArray(this.data.id))
261
+ return "users.batch.get";
262
+ return "users.get";
235
263
  }
236
264
  };
237
265
  module.exports = DiscoverUsersCommand;
@@ -242,6 +270,9 @@ var require_DiscoverUsersCommand = __commonJS({
242
270
  var require_AppError = __commonJS({
243
271
  "src/Errors/AppError.js"(exports, module) {
244
272
  module.exports = class AppError extends Error {
273
+ static {
274
+ __name(this, "AppError");
275
+ }
245
276
  constructor(message = "Internal Server Error", options) {
246
277
  super(message, options);
247
278
  this.type = this.constructor.name;
@@ -257,6 +288,9 @@ var require_RequestError = __commonJS({
257
288
  "src/Errors/RequestError.js"(exports, module) {
258
289
  var AppError = require_AppError();
259
290
  module.exports = class RequestError extends AppError {
291
+ static {
292
+ __name(this, "RequestError");
293
+ }
260
294
  constructor(message = "Bad Request", options = {}) {
261
295
  super(message, options);
262
296
  this.statusCode = 400;
@@ -272,9 +306,10 @@ var require_OCRDocumentCommand = __commonJS({
272
306
  var Command = require_Command();
273
307
  var RequestError = require_RequestError();
274
308
  var OCRDocumentCommand = class extends Command {
309
+ static {
310
+ __name(this, "OCRDocumentCommand");
311
+ }
275
312
  constructor({ type, image }) {
276
- if (!type)
277
- throw new RequestError("document type is required");
278
313
  if (!image)
279
314
  throw new RequestError("document image is required");
280
315
  super({ type, image });
@@ -282,9 +317,6 @@ var require_OCRDocumentCommand = __commonJS({
282
317
  get name() {
283
318
  return "OCRDocument";
284
319
  }
285
- get routingKey() {
286
- return `document.${this.data.type}.ocr`;
287
- }
288
320
  };
289
321
  module.exports = OCRDocumentCommand;
290
322
  }
@@ -296,6 +328,9 @@ var require_CheckInReservationCommand = __commonJS({
296
328
  var Command = require_Command();
297
329
  var RequestError = require_RequestError();
298
330
  var CheckInReservationCommand = class extends Command {
331
+ static {
332
+ __name(this, "CheckInReservationCommand");
333
+ }
299
334
  constructor({ id }) {
300
335
  if (!id)
301
336
  throw new RequestError("document type is required");
@@ -307,28 +342,59 @@ var require_CheckInReservationCommand = __commonJS({
307
342
  get routingKey() {
308
343
  return `reservation.${this.data.id}.checkin`;
309
344
  }
310
- get replyTo() {
311
- return "system.response.reservations";
312
- }
313
345
  };
314
346
  module.exports = CheckInReservationCommand;
315
347
  }
316
348
  });
317
349
 
350
+ // src/Commands/SendEmailCommand.js
351
+ var require_SendEmailCommand = __commonJS({
352
+ "src/Commands/SendEmailCommand.js"(exports, module) {
353
+ var Command = require_Command();
354
+ var RequestError = require_RequestError();
355
+ var SendEmailCommand = class extends Command {
356
+ static {
357
+ __name(this, "SendEmailCommand");
358
+ }
359
+ constructor({ text, html, to, from, subject, ...rest }) {
360
+ if (!to)
361
+ throw new RequestError("email to is required");
362
+ if (!from)
363
+ throw new RequestError("email from is required");
364
+ if (!subject)
365
+ throw new RequestError("email subject is required");
366
+ if (!text && !html)
367
+ throw new RequestError("email text or html is required");
368
+ super({ text, html, to, from, subject, ...rest });
369
+ }
370
+ get name() {
371
+ return "SendEmail";
372
+ }
373
+ get routingKey() {
374
+ return "comm.email.send";
375
+ }
376
+ };
377
+ module.exports = SendEmailCommand;
378
+ }
379
+ });
380
+
318
381
  // src/Commands/SendSMSCommand.js
319
382
  var require_SendSMSCommand = __commonJS({
320
383
  "src/Commands/SendSMSCommand.js"(exports, module) {
321
384
  var Command = require_Command();
322
385
  var RequestError = require_RequestError();
323
386
  var SendSMSCommand = class extends Command {
324
- constructor({ body, to, from, metaData }) {
387
+ static {
388
+ __name(this, "SendSMSCommand");
389
+ }
390
+ constructor({ id, body, to, from, ...rest }) {
325
391
  if (!body)
326
392
  throw new RequestError("sms body is required");
327
393
  if (!to)
328
394
  throw new RequestError("sms to is required");
329
395
  if (!from)
330
396
  throw new RequestError("sms from is required");
331
- super({ body, to, from, metaData });
397
+ super({ id, body, to, from, ...rest });
332
398
  }
333
399
  get name() {
334
400
  return "SendSMS";
@@ -346,6 +412,9 @@ var require_AuthenticationError = __commonJS({
346
412
  "src/Errors/AuthenticationError.js"(exports, module) {
347
413
  var AppError = require_AppError();
348
414
  module.exports = class AuthenticationError extends AppError {
415
+ static {
416
+ __name(this, "AuthenticationError");
417
+ }
349
418
  constructor(message = "Authentication Error", options = {}) {
350
419
  super(message, options);
351
420
  this.statusCode = 401;
@@ -360,6 +429,9 @@ var require_AuthorizationError = __commonJS({
360
429
  "src/Errors/AuthorizationError.js"(exports, module) {
361
430
  var AppError = require_AppError();
362
431
  module.exports = class AuthorizationError extends AppError {
432
+ static {
433
+ __name(this, "AuthorizationError");
434
+ }
363
435
  constructor(message = "Authorization Error", options = {}) {
364
436
  super(message, options);
365
437
  this.statusCode = 403;
@@ -369,11 +441,31 @@ var require_AuthorizationError = __commonJS({
369
441
  }
370
442
  });
371
443
 
444
+ // src/Errors/ConflictError.js
445
+ var require_ConflictError = __commonJS({
446
+ "src/Errors/ConflictError.js"(exports, module) {
447
+ var AppError = require_AppError();
448
+ module.exports = class ConflictError extends AppError {
449
+ static {
450
+ __name(this, "ConflictError");
451
+ }
452
+ constructor(message = "Bad Request", options = {}) {
453
+ super(message, options);
454
+ this.statusCode = 409;
455
+ Object.setPrototypeOf(this, ConflictError.prototype);
456
+ }
457
+ };
458
+ }
459
+ });
460
+
372
461
  // src/Errors/DeviceCommError.js
373
462
  var require_DeviceCommError = __commonJS({
374
463
  "src/Errors/DeviceCommError.js"(exports, module) {
375
464
  var AppError = require_AppError();
376
465
  module.exports = class DeviceCommError extends AppError {
466
+ static {
467
+ __name(this, "DeviceCommError");
468
+ }
377
469
  constructor(message = "Device Communication Error", options = {}) {
378
470
  super(message, options);
379
471
  this.statusCode = 503;
@@ -388,6 +480,9 @@ var require_LoginError = __commonJS({
388
480
  "src/Errors/LoginError.js"(exports, module) {
389
481
  var AppError = require_AppError();
390
482
  module.exports = class LoginError extends AppError {
483
+ static {
484
+ __name(this, "LoginError");
485
+ }
391
486
  constructor(message = "Invalid Login information provided", options = {}) {
392
487
  super(message, options);
393
488
  this.statusCode = 401;
@@ -402,6 +497,9 @@ var require_NotFoundError = __commonJS({
402
497
  "src/Errors/NotFoundError.js"(exports, module) {
403
498
  var AppError = require_AppError();
404
499
  module.exports = class NotFoundError extends AppError {
500
+ static {
501
+ __name(this, "NotFoundError");
502
+ }
405
503
  constructor(message = "Resource Not Found", options = {}) {
406
504
  super(message, options);
407
505
  this.statusCode = 404;
@@ -416,6 +514,9 @@ var require_SystemCommError = __commonJS({
416
514
  "src/Errors/SystemCommError.js"(exports, module) {
417
515
  var AppError = require_AppError();
418
516
  module.exports = class SystemCommError extends AppError {
517
+ static {
518
+ __name(this, "SystemCommError");
519
+ }
419
520
  constructor(message = "System Communication Error", options = {}) {
420
521
  super(message, options);
421
522
  this.statusCode = 503;
@@ -430,6 +531,9 @@ var require_TokenExpiredError = __commonJS({
430
531
  "src/Errors/TokenExpiredError.js"(exports, module) {
431
532
  var AppError = require_AppError();
432
533
  module.exports = class TokenExpiredError extends AppError {
534
+ static {
535
+ __name(this, "TokenExpiredError");
536
+ }
433
537
  constructor(message = "Token Expired", options = {}) {
434
538
  super(message, options);
435
539
  this.statusCode = 401;
@@ -444,6 +548,9 @@ var require_UnprocessableRequestError = __commonJS({
444
548
  "src/Errors/UnprocessableRequestError.js"(exports, module) {
445
549
  var AppError = require_AppError();
446
550
  module.exports = class UnprocessableRequestError extends AppError {
551
+ static {
552
+ __name(this, "UnprocessableRequestError");
553
+ }
447
554
  constructor(message = "Unprocessable Request Error", options = {}) {
448
555
  super(message, options);
449
556
  this.statusCode = 422;
@@ -458,6 +565,9 @@ var require_ValidationError = __commonJS({
458
565
  "src/Errors/ValidationError.js"(exports, module) {
459
566
  var AppError = require_AppError();
460
567
  module.exports = class ValidationError extends AppError {
568
+ static {
569
+ __name(this, "ValidationError");
570
+ }
461
571
  constructor(message = "Validation Error", options = {}) {
462
572
  super(message, options);
463
573
  this.statusCode = 400;
@@ -474,6 +584,7 @@ var require_Errors = __commonJS({
474
584
  AppError: require_AppError(),
475
585
  AuthenticationError: require_AuthenticationError(),
476
586
  AuthorizationError: require_AuthorizationError(),
587
+ ConflictError: require_ConflictError(),
477
588
  DeviceCommError: require_DeviceCommError(),
478
589
  LoginError: require_LoginError(),
479
590
  NotFoundError: require_NotFoundError(),
@@ -493,11 +604,14 @@ var require_DiscoverReservationsCommand = __commonJS({
493
604
  var { RequestError } = require_Errors();
494
605
  var Command = require_Command();
495
606
  var DiscoverReservationsCommand = class extends Command {
607
+ static {
608
+ __name(this, "DiscoverReservationsCommand");
609
+ }
496
610
  constructor(options) {
497
611
  if (!options)
498
612
  throw new RequestError("options are required");
499
- const { id, startDate, endDate, status } = options;
500
- super({ id, startDate, endDate, status });
613
+ const { id, startDate, endDate, status, ...rest } = options;
614
+ super({ id, startDate, endDate, status, ...rest });
501
615
  }
502
616
  get name() {
503
617
  return "DiscoverReservations";
@@ -505,68 +619,379 @@ var require_DiscoverReservationsCommand = __commonJS({
505
619
  get routingKey() {
506
620
  return "reservation.discover";
507
621
  }
508
- get replyTo() {
509
- return "system.response.reservations";
510
- }
511
622
  };
512
623
  module.exports = DiscoverReservationsCommand;
513
624
  }
514
625
  });
515
626
 
627
+ // src/Commands/DiscoverReservationRoomTypeUpsellOptionsCommand.js
628
+ var require_DiscoverReservationRoomTypeUpsellOptionsCommand = __commonJS({
629
+ "src/Commands/DiscoverReservationRoomTypeUpsellOptionsCommand.js"(exports, module) {
630
+ var { RequestError } = require_Errors();
631
+ var Command = require_Command();
632
+ var DiscoverReservationRoomTypeUpsellOptionsCommand = class extends Command {
633
+ static {
634
+ __name(this, "DiscoverReservationRoomTypeUpsellOptionsCommand");
635
+ }
636
+ constructor(options) {
637
+ if (!options)
638
+ throw new RequestError("options are required");
639
+ const { id, ...rest } = options;
640
+ super({ id, ...rest });
641
+ }
642
+ get name() {
643
+ return "DiscoverReservationRoomTypeUpsellOptions";
644
+ }
645
+ get routingKey() {
646
+ return "reservation.discoverRoomUpsells";
647
+ }
648
+ };
649
+ module.exports = DiscoverReservationRoomTypeUpsellOptionsCommand;
650
+ }
651
+ });
652
+
516
653
  // src/Commands/DiscoverRoomsCommand.js
517
654
  var require_DiscoverRoomsCommand = __commonJS({
518
655
  "src/Commands/DiscoverRoomsCommand.js"(exports, module) {
519
656
  var Command = require_Command();
520
657
  var DiscoverRoomsCommand = class extends Command {
658
+ static {
659
+ __name(this, "DiscoverRoomsCommand");
660
+ }
661
+ constructor({
662
+ id,
663
+ types,
664
+ categories,
665
+ startDate,
666
+ endDate,
667
+ serviceStatus,
668
+ housekeepingStatus,
669
+ ...rest
670
+ }) {
671
+ super({
672
+ id,
673
+ types,
674
+ categories,
675
+ startDate,
676
+ endDate,
677
+ serviceStatus,
678
+ housekeepingStatus,
679
+ ...rest
680
+ });
681
+ }
682
+ get name() {
683
+ return "DiscoverRooms";
684
+ }
685
+ get routingKey() {
686
+ if (typeof this.data.id === "string")
687
+ return `rooms.${this.data.id}.get`;
688
+ if (Array.isArray(this.data.id))
689
+ return "rooms.batch.get";
690
+ return "rooms.get";
691
+ }
692
+ };
693
+ module.exports = DiscoverRoomsCommand;
694
+ }
695
+ });
696
+
697
+ // src/Commands/DiscoverRoomTypesCommand.js
698
+ var require_DiscoverRoomTypesCommand = __commonJS({
699
+ "src/Commands/DiscoverRoomTypesCommand.js"(exports, module) {
700
+ var Command = require_Command();
701
+ var DiscoverRoomTypesCommand = class extends Command {
702
+ static {
703
+ __name(this, "DiscoverRoomTypesCommand");
704
+ }
521
705
  constructor({ id }) {
522
706
  super({ id });
523
707
  }
524
708
  get name() {
525
- return "DiscoverRooms";
709
+ return "DiscoverRoomTypes";
526
710
  }
527
711
  get routingKey() {
528
- return `rooms.${this.data.id}.get`;
712
+ if (typeof this.data.id === "string")
713
+ return `rooms.${this.data.id}.get`;
714
+ if (Array.isArray(this.data.id))
715
+ return "rooms.batch.get";
716
+ return "rooms.get";
529
717
  }
530
- get replyTo() {
531
- return "system.response.users";
718
+ };
719
+ module.exports = DiscoverRoomTypesCommand;
720
+ }
721
+ });
722
+
723
+ // src/Commands/CreateShortLinkCommand.js
724
+ var require_CreateShortLinkCommand = __commonJS({
725
+ "src/Commands/CreateShortLinkCommand.js"(exports, module) {
726
+ var Command = require_Command();
727
+ var RequestError = require_RequestError();
728
+ var CreateShortLinkCommand = class extends Command {
729
+ static {
730
+ __name(this, "CreateShortLinkCommand");
731
+ }
732
+ constructor({ title, destination }) {
733
+ if (!title)
734
+ throw new RequestError("title is required");
735
+ if (!destination)
736
+ throw new RequestError("destination to is required");
737
+ super({ title, destination });
738
+ }
739
+ get name() {
740
+ return "CreateShortLink";
741
+ }
742
+ get routingKey() {
743
+ return "comm.shortlink.create";
532
744
  }
533
745
  };
534
- module.exports = DiscoverRoomsCommand;
746
+ module.exports = CreateShortLinkCommand;
747
+ }
748
+ });
749
+
750
+ // src/Commands/UpdateReservationCommand.js
751
+ var require_UpdateReservationCommand = __commonJS({
752
+ "src/Commands/UpdateReservationCommand.js"(exports, module) {
753
+ var Command = require_Command();
754
+ var RequestError = require_RequestError();
755
+ var UpdateReservationCommand = class extends Command {
756
+ static {
757
+ __name(this, "UpdateReservationCommand");
758
+ }
759
+ constructor({ id, ...rest }) {
760
+ if (!id)
761
+ throw new RequestError("document type is required");
762
+ super({ id, ...rest });
763
+ }
764
+ get name() {
765
+ return "UpdateReservation";
766
+ }
767
+ get routingKey() {
768
+ return `reservation.${this.data.id}.update`;
769
+ }
770
+ };
771
+ module.exports = UpdateReservationCommand;
772
+ }
773
+ });
774
+
775
+ // src/Commands/UpdateUserCommand.js
776
+ var require_UpdateUserCommand = __commonJS({
777
+ "src/Commands/UpdateUserCommand.js"(exports, module) {
778
+ var Command = require_Command();
779
+ var RequestError = require_RequestError();
780
+ var UpdateUserCommand = class extends Command {
781
+ static {
782
+ __name(this, "UpdateUserCommand");
783
+ }
784
+ constructor({
785
+ id,
786
+ email,
787
+ phone,
788
+ identification,
789
+ address,
790
+ note,
791
+ nationality,
792
+ file,
793
+ payment,
794
+ ...rest
795
+ }) {
796
+ if (!id)
797
+ throw new RequestError("document type is required");
798
+ super({
799
+ id,
800
+ email,
801
+ phone,
802
+ identification,
803
+ address,
804
+ note,
805
+ nationality,
806
+ file,
807
+ payment,
808
+ ...rest
809
+ });
810
+ }
811
+ get name() {
812
+ return "UpdateUser";
813
+ }
814
+ get routingKey() {
815
+ return `user.${this.data.id}.update`;
816
+ }
817
+ };
818
+ module.exports = UpdateUserCommand;
819
+ }
820
+ });
821
+
822
+ // src/Commands/GetMobileKeyCommand.js
823
+ var require_GetMobileKeyCommand = __commonJS({
824
+ "src/Commands/GetMobileKeyCommand.js"(exports, module) {
825
+ var Command = require_Command();
826
+ var GetMobileKeyCommand = class extends Command {
827
+ static {
828
+ __name(this, "GetMobileKeyCommand");
829
+ }
830
+ constructor({
831
+ id,
832
+ phone,
833
+ beginDateTime,
834
+ endDateTime,
835
+ keyToReplace,
836
+ ...rest
837
+ }) {
838
+ super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });
839
+ }
840
+ get name() {
841
+ return "GetMobileKey";
842
+ }
843
+ get routingKey() {
844
+ return `lock.${this.data.id}.set`;
845
+ }
846
+ };
847
+ module.exports = GetMobileKeyCommand;
848
+ }
849
+ });
850
+
851
+ // src/Commands/CreateImageUploadEndpointCommand.js
852
+ var require_CreateImageUploadEndpointCommand = __commonJS({
853
+ "src/Commands/CreateImageUploadEndpointCommand.js"(exports, module) {
854
+ var Command = require_Command();
855
+ var CreateImageUploadEndpointCommand = class extends Command {
856
+ static {
857
+ __name(this, "CreateImageUploadEndpointCommand");
858
+ }
859
+ constructor({ id, expires, ...rest }) {
860
+ super({ id, expires, ...rest });
861
+ }
862
+ get name() {
863
+ return "CreateImageUploadEndpoint";
864
+ }
865
+ get routingKey() {
866
+ return "image.createUploadEndpoint";
867
+ }
868
+ };
869
+ module.exports = CreateImageUploadEndpointCommand;
870
+ }
871
+ });
872
+
873
+ // src/Commands/UploadImageCommand.js
874
+ var require_UploadImageCommand = __commonJS({
875
+ "src/Commands/UploadImageCommand.js"(exports, module) {
876
+ var Command = require_Command();
877
+ var UploadImageCommand = class extends Command {
878
+ static {
879
+ __name(this, "UploadImageCommand");
880
+ }
881
+ constructor({ id, url, file, ...rest }) {
882
+ super({ id, url, file, ...rest });
883
+ }
884
+ get name() {
885
+ return "UploadImage";
886
+ }
887
+ get routingKey() {
888
+ return `image.${this.data.id}.upload`;
889
+ }
890
+ };
891
+ module.exports = UploadImageCommand;
892
+ }
893
+ });
894
+
895
+ // src/Commands/GetProductsCommand.js
896
+ var require_GetProductsCommand = __commonJS({
897
+ "src/Commands/GetProductsCommand.js"(exports, module) {
898
+ var Command = require_Command();
899
+ var GetProductsCommand = class extends Command {
900
+ static {
901
+ __name(this, "GetProductsCommand");
902
+ }
903
+ constructor({ id, externalSystemId, ...rest }) {
904
+ super({ id, externalSystemId, ...rest });
905
+ }
906
+ get name() {
907
+ return "GetProducts";
908
+ }
909
+ get routingKey() {
910
+ return `product.${this.data.id}.get`;
911
+ }
912
+ };
913
+ module.exports = GetProductsCommand;
914
+ }
915
+ });
916
+
917
+ // src/Commands/SellProductsCommand.js
918
+ var require_SellProductsCommand = __commonJS({
919
+ "src/Commands/SellProductsCommand.js"(exports, module) {
920
+ var Command = require_Command();
921
+ var SellProductsCommand = class extends Command {
922
+ static {
923
+ __name(this, "SellProductsCommand");
924
+ }
925
+ constructor({ reservationId, userId, products, ...rest }) {
926
+ super({ reservationId, userId, products, ...rest });
927
+ }
928
+ get name() {
929
+ return "SellProducts";
930
+ }
931
+ get routingKey() {
932
+ return `product.${this.data.id}.sell`;
933
+ }
934
+ };
935
+ module.exports = SellProductsCommand;
535
936
  }
536
937
  });
537
938
 
538
939
  // src/Commands/index.js
539
940
  var require_Commands = __commonJS({
540
941
  "src/Commands/index.js"(exports, module) {
942
+ var SetSceneCommand = require_SetSceneCommand();
541
943
  var SetAlarmCommand = require_SetAlarmCommand();
542
944
  var SetDimmerCommand = require_SetDimmerCommand();
543
945
  var SetSwitchCommand = require_SetSwitchCommand();
544
946
  var SetThermostatCommand = require_SetThermostatCommand();
545
947
  var SetLockCommand = require_SetLockCommand();
546
- var SetSceneControllerCommand = require_SetSceneControllerCommand();
547
948
  var SetWindowCoveringCommand = require_SetWindowCoveringCommand();
548
949
  var SetCourtesyCommand = require_SetCourtesyCommand();
950
+ var SetMediaCommand = require_SetMediaCommand();
549
951
  var DiscoverUsersCommand = require_DiscoverUsersCommand();
550
952
  var OCRDocumentCommand = require_OCRDocumentCommand();
551
953
  var CheckInReservationCommand = require_CheckInReservationCommand();
954
+ var SendEmailCommand = require_SendEmailCommand();
552
955
  var SendSMSCommand = require_SendSMSCommand();
553
956
  var DiscoverReservationsCommand = require_DiscoverReservationsCommand();
957
+ var DiscoverReservationRoomTypeUpsellOptionsCommand = require_DiscoverReservationRoomTypeUpsellOptionsCommand();
554
958
  var DiscoverRoomsCommand = require_DiscoverRoomsCommand();
959
+ var DiscoverRoomTypesCommand = require_DiscoverRoomTypesCommand();
960
+ var CreateShortLinkCommand = require_CreateShortLinkCommand();
961
+ var UpdateReservationCommand = require_UpdateReservationCommand();
962
+ var UpdateUserCommand = require_UpdateUserCommand();
963
+ var GetMobileKeyCommand = require_GetMobileKeyCommand();
964
+ var CreateImageUploadEndpointCommand = require_CreateImageUploadEndpointCommand();
965
+ var UploadImageCommand = require_UploadImageCommand();
966
+ var GetProductsCommand = require_GetProductsCommand();
967
+ var SellProductsCommand = require_SellProductsCommand();
555
968
  module.exports = {
969
+ SetSceneCommand,
556
970
  SetAlarmCommand,
557
971
  SetDimmerCommand,
558
972
  SetSwitchCommand,
559
973
  SetThermostatCommand,
560
974
  SetLockCommand,
561
- SetSceneControllerCommand,
562
975
  SetWindowCoveringCommand,
563
976
  SetCourtesyCommand,
977
+ SetMediaCommand,
564
978
  OCRDocumentCommand,
565
979
  DiscoverUsersCommand,
566
980
  CheckInReservationCommand,
567
981
  SendSMSCommand,
982
+ SendEmailCommand,
568
983
  DiscoverReservationsCommand,
569
- DiscoverRoomsCommand
984
+ DiscoverReservationRoomTypeUpsellOptionsCommand,
985
+ DiscoverRoomsCommand,
986
+ DiscoverRoomTypesCommand,
987
+ CreateShortLinkCommand,
988
+ UpdateReservationCommand,
989
+ UpdateUserCommand,
990
+ GetMobileKeyCommand,
991
+ CreateImageUploadEndpointCommand,
992
+ UploadImageCommand,
993
+ GetProductsCommand,
994
+ SellProductsCommand
570
995
  };
571
996
  }
572
997
  });