@kohost/api-client 3.2.14 → 3.3.0-beta.1
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/AMQPClient/index.js +1 -45
- package/dist/cjs/Commands/{CheckInReservationCommand.js → CheckInReservation.js} +2 -6
- package/dist/cjs/Commands/{CheckOutReservationCommand.js → CheckOutReservation.js} +2 -6
- package/dist/cjs/Commands/Command.js +5 -7
- package/dist/cjs/Commands/{CreateImageUploadEndpointCommand.js → CreateImageUploadEndpoint.js} +2 -6
- package/dist/cjs/Commands/{CreateShortLinkCommand.js → CreateShortLink.js} +0 -4
- package/dist/cjs/Commands/GetCategories.js +13 -0
- package/dist/cjs/Commands/{GetMobileKeyCommand.js → GetMobileKey.js} +2 -6
- package/dist/cjs/Commands/GetProducts.js +13 -0
- package/dist/cjs/Commands/GetReservationSpaceCategoryAvailabilities.js +16 -0
- package/dist/cjs/Commands/{DiscoverReservationsCommand.js → GetReservations.js} +3 -7
- package/dist/cjs/Commands/{DiscoverRoomsCommand.js → GetRooms.js} +3 -9
- package/dist/cjs/Commands/GetUsers.js +13 -0
- package/dist/cjs/Commands/{OCRDocumentCommand.js → OCRDocument.js} +2 -2
- package/dist/cjs/Commands/{SellProductsCommand.js → SellProducts.js} +2 -6
- package/dist/cjs/Commands/{SendEmailCommand.js → SendEmail.js} +2 -6
- package/dist/cjs/Commands/{SendSMSCommand.js → SendSMS.js} +2 -6
- package/dist/cjs/Commands/{SetAlarmCommand.js → SetAlarm.js} +2 -6
- package/dist/cjs/Commands/{SetCourtesyCommand.js → SetCourtesy.js} +2 -6
- package/dist/cjs/Commands/{SetDimmerCommand.js → SetDimmer.js} +2 -6
- package/dist/cjs/Commands/{SetLockCommand.js → SetLock.js} +2 -6
- package/dist/cjs/Commands/{SetMediaCommand.js → SetMedia.js} +2 -6
- package/dist/cjs/Commands/{SetSceneCommand.js → SetScene.js} +2 -6
- package/dist/cjs/Commands/{SetSwitchCommand.js → SetSwitch.js} +2 -6
- package/dist/cjs/Commands/{SetThermostatCommand.js → SetThermostat.js} +2 -6
- package/dist/cjs/Commands/{SetWindowCoveringCommand.js → SetWindowCovering.js} +2 -6
- package/dist/cjs/Commands/{UpdateReservationCommand.js → UpdateReservation.js} +2 -6
- package/dist/cjs/Commands/{UpdateUserCommand.js → UpdateUser.js} +2 -6
- package/dist/cjs/Commands/{UploadImageCommand.js → UploadImage.js} +2 -6
- package/dist/cjs/Commands/index.js +56 -54
- package/dist/cjs/Events/ApplicationInUse.js +22 -0
- package/dist/cjs/Events/ApplicationOutOfUse.js +22 -0
- package/dist/cjs/Events/EmailEvent.js +3 -4
- package/dist/cjs/Events/Event.js +17 -28
- package/dist/cjs/Events/ReservationCheckedIn.js +17 -0
- package/dist/cjs/Events/ReservationCheckedOut.js +17 -0
- package/dist/cjs/Events/SMSEvent.js +3 -4
- package/dist/cjs/Events/SceneSet.js +17 -0
- package/dist/cjs/Events/ShortLinkCreated.js +17 -0
- package/dist/cjs/Events/SystemAlarmUpdated.js +17 -0
- package/dist/cjs/Events/SystemCameraUpdated.js +17 -0
- package/dist/cjs/Events/SystemCategoryUpdated.js +17 -0
- package/dist/cjs/Events/SystemCourtesyUpdated.js +17 -0
- package/dist/cjs/Events/SystemCredentialUpdated.js +17 -0
- package/dist/cjs/Events/SystemDimmerUpdated.js +17 -0
- package/dist/cjs/Events/SystemEntityDeleted.js +17 -0
- package/dist/cjs/Events/SystemGatewayUpdated.js +17 -0
- package/dist/cjs/Events/SystemLockUpdated.js +17 -0
- package/dist/cjs/Events/SystemMediaSourceUpdated.js +17 -0
- package/dist/cjs/Events/SystemMotionSensorUpdated.js +17 -0
- package/dist/cjs/Events/SystemOrganizationUpdated.js +17 -0
- package/dist/cjs/Events/SystemProductUpdated.js +17 -0
- package/dist/cjs/Events/SystemPropertyUpdated.js +17 -0
- package/dist/cjs/Events/SystemReservationUpdated.js +17 -0
- package/dist/cjs/Events/SystemSpaceUpdated.js +17 -0
- package/dist/cjs/Events/SystemSwitchUpdated.js +17 -0
- package/dist/cjs/Events/SystemThermostatUpdated.js +17 -0
- package/dist/cjs/Events/SystemUserUpdated.js +17 -0
- package/dist/cjs/Events/SystemWindowCoveringUpdated.js +17 -0
- package/dist/cjs/Events/index.js +53 -55
- package/dist/cjs/defs/amqpExchanges.js +46 -0
- package/dist/cjs/schemas/AlarmSchema.d.ts +1 -0
- package/dist/cjs/schemas/CameraSchema.d.ts +1 -0
- package/dist/cjs/schemas/CategorySchema.d.ts +1 -0
- package/dist/cjs/schemas/CourtesySchema.d.ts +1 -0
- package/dist/cjs/schemas/CredentialSchema.d.ts +1 -0
- package/dist/cjs/schemas/DimmerSchema.d.ts +1 -0
- package/dist/cjs/schemas/GatewaySchema.d.ts +1 -0
- package/dist/cjs/schemas/LockSchema.d.ts +1 -0
- package/dist/cjs/schemas/MediaSourceSchema.d.ts +1 -0
- package/dist/cjs/schemas/MotionSensorSchema.d.ts +1 -0
- package/dist/cjs/schemas/ProductSchema.d.ts +1 -0
- package/dist/cjs/schemas/ReservationSchema.d.ts +1 -0
- package/dist/cjs/schemas/RoomSchema.d.ts +10 -0
- package/dist/cjs/schemas/SpaceSchema.d.ts +1 -0
- package/dist/cjs/schemas/SwitchSchema.d.ts +1 -0
- package/dist/cjs/schemas/SystemUserSchema.d.ts +1 -0
- package/dist/cjs/schemas/ThermostatSchema.d.ts +1 -0
- package/dist/cjs/schemas/UserSchema.d.ts +1 -0
- package/dist/cjs/schemas/WindowCoveringSchema.d.ts +1 -0
- package/dist/cjs/schemas/definitions.json +1 -0
- package/dist/esm/Commands.js +276 -324
- package/dist/esm/Commands.js.map +3 -3
- package/dist/esm/Events.js +387 -472
- package/dist/esm/Events.js.map +3 -3
- package/dist/esm/Models.js +21 -10
- package/dist/esm/Models.js.map +3 -3
- package/dist/esm/SocketIoClient.js +18 -18
- package/dist/esm/SocketIoClient.js.map +3 -3
- package/dist/esm/utils.js +21 -10
- package/dist/esm/utils.js.map +3 -3
- package/package.json +1 -24
- package/dist/cjs/Commands/DiscoverCategoriesCommand.js +0 -20
- package/dist/cjs/Commands/DiscoverProductsCommand.js +0 -27
- package/dist/cjs/Commands/DiscoverReservationSpaceCategoryAvailabilitiesCommand.js +0 -20
- package/dist/cjs/Commands/DiscoverUsersCommand.js +0 -19
- package/dist/cjs/Events/ApplicationInUseEvent.js +0 -25
- package/dist/cjs/Events/ApplicationOutOfUseEvent.js +0 -25
- package/dist/cjs/Events/ReservationCheckInEvent.js +0 -23
- package/dist/cjs/Events/ReservationCheckOutEvent.js +0 -23
- package/dist/cjs/Events/SMSSentEvent.js +0 -17
- package/dist/cjs/Events/SceneSetEvent.js +0 -17
- package/dist/cjs/Events/ShortLinkCreatedEvent.js +0 -17
- package/dist/cjs/Events/SystemAlarmUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemCameraUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemCategoryUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemCourtesyUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemCredentialUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemDimmerUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemEntityDeletedEvent.js +0 -17
- package/dist/cjs/Events/SystemGatewayUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemLockUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemMediaSourceUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemMotionSensorUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemOrganizationUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemProductUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemPropertyUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemReservationUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemSceneControllerUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemSpaceUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemSwitchUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemThermostatUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemUserUpdatedEvent.js +0 -17
- package/dist/cjs/Events/SystemWindowCoveringUpdatedEvent.js +0 -17
package/dist/esm/Commands.js
CHANGED
|
@@ -5,9 +5,61 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
5
5
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
+
// src/defs/amqpExchanges.js
|
|
9
|
+
var require_amqpExchanges = __commonJS({
|
|
10
|
+
"src/defs/amqpExchanges.js"(exports, module) {
|
|
11
|
+
var exchanges = {
|
|
12
|
+
// routes commands based on `command-name` header and in many cases `property-id` header
|
|
13
|
+
Commands: {
|
|
14
|
+
name: "kohost.commands",
|
|
15
|
+
type: "headers",
|
|
16
|
+
options: {
|
|
17
|
+
durable: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
CommandResponses: {
|
|
21
|
+
name: "kohost.commandResponses",
|
|
22
|
+
type: "topic",
|
|
23
|
+
options: {
|
|
24
|
+
durable: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
// routes events based on routing keys
|
|
28
|
+
DriverEvents: {
|
|
29
|
+
name: "kohost.events.drivers",
|
|
30
|
+
type: "topic",
|
|
31
|
+
options: {
|
|
32
|
+
durable: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
AppEvents: {
|
|
36
|
+
name: "kohost.events.app",
|
|
37
|
+
type: "topic",
|
|
38
|
+
options: {
|
|
39
|
+
durable: true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
Direct: {
|
|
43
|
+
name: "kohost.direct",
|
|
44
|
+
type: "direct",
|
|
45
|
+
options: {
|
|
46
|
+
durable: true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
// dead letter exchange
|
|
50
|
+
dlx: {
|
|
51
|
+
name: "kohost.dlx",
|
|
52
|
+
type: "direct"
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
module.exports = exchanges;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
8
59
|
// src/Commands/Command.js
|
|
9
60
|
var require_Command = __commonJS({
|
|
10
61
|
"src/Commands/Command.js"(exports, module) {
|
|
62
|
+
var exchanges = require_amqpExchanges();
|
|
11
63
|
var Command = class {
|
|
12
64
|
static {
|
|
13
65
|
__name(this, "Command");
|
|
@@ -25,14 +77,11 @@ var require_Command = __commonJS({
|
|
|
25
77
|
get name() {
|
|
26
78
|
throw new Error("Command name is required");
|
|
27
79
|
}
|
|
28
|
-
get type() {
|
|
80
|
+
static get type() {
|
|
29
81
|
return "Command";
|
|
30
82
|
}
|
|
31
|
-
get
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
get exchange() {
|
|
35
|
-
return "Commands";
|
|
83
|
+
static get exchange() {
|
|
84
|
+
return exchanges.Commands.name;
|
|
36
85
|
}
|
|
37
86
|
build() {
|
|
38
87
|
return { data: { ...this.data } };
|
|
@@ -42,13 +91,13 @@ var require_Command = __commonJS({
|
|
|
42
91
|
}
|
|
43
92
|
});
|
|
44
93
|
|
|
45
|
-
// src/Commands/
|
|
46
|
-
var
|
|
47
|
-
"src/Commands/
|
|
94
|
+
// src/Commands/SetScene.js
|
|
95
|
+
var require_SetScene = __commonJS({
|
|
96
|
+
"src/Commands/SetScene.js"(exports, module) {
|
|
48
97
|
var Command = require_Command();
|
|
49
|
-
var
|
|
98
|
+
var SetScene = class extends Command {
|
|
50
99
|
static {
|
|
51
|
-
__name(this, "
|
|
100
|
+
__name(this, "SetScene");
|
|
52
101
|
}
|
|
53
102
|
constructor({ id, devices, ...rest }) {
|
|
54
103
|
super({ id, devices, ...rest });
|
|
@@ -56,21 +105,18 @@ var require_SetSceneCommand = __commonJS({
|
|
|
56
105
|
get name() {
|
|
57
106
|
return "SetScene";
|
|
58
107
|
}
|
|
59
|
-
get routingKey() {
|
|
60
|
-
return `scene.${this.data.id}.set`;
|
|
61
|
-
}
|
|
62
108
|
};
|
|
63
|
-
module.exports =
|
|
109
|
+
module.exports = SetScene;
|
|
64
110
|
}
|
|
65
111
|
});
|
|
66
112
|
|
|
67
|
-
// src/Commands/
|
|
68
|
-
var
|
|
69
|
-
"src/Commands/
|
|
113
|
+
// src/Commands/SetAlarm.js
|
|
114
|
+
var require_SetAlarm = __commonJS({
|
|
115
|
+
"src/Commands/SetAlarm.js"(exports, module) {
|
|
70
116
|
var Command = require_Command();
|
|
71
|
-
var
|
|
117
|
+
var SetAlarm = class extends Command {
|
|
72
118
|
static {
|
|
73
|
-
__name(this, "
|
|
119
|
+
__name(this, "SetAlarm");
|
|
74
120
|
}
|
|
75
121
|
constructor({ id, zones, areas, code, ...rest }) {
|
|
76
122
|
super({ id, zones, areas, code, ...rest });
|
|
@@ -78,21 +124,18 @@ var require_SetAlarmCommand = __commonJS({
|
|
|
78
124
|
get name() {
|
|
79
125
|
return "SetAlarm";
|
|
80
126
|
}
|
|
81
|
-
get routingKey() {
|
|
82
|
-
return `alarm.${this.data.id}.set`;
|
|
83
|
-
}
|
|
84
127
|
};
|
|
85
|
-
module.exports =
|
|
128
|
+
module.exports = SetAlarm;
|
|
86
129
|
}
|
|
87
130
|
});
|
|
88
131
|
|
|
89
|
-
// src/Commands/
|
|
90
|
-
var
|
|
91
|
-
"src/Commands/
|
|
132
|
+
// src/Commands/SetDimmer.js
|
|
133
|
+
var require_SetDimmer = __commonJS({
|
|
134
|
+
"src/Commands/SetDimmer.js"(exports, module) {
|
|
92
135
|
var Command = require_Command();
|
|
93
|
-
var
|
|
136
|
+
var SetDimmer = class extends Command {
|
|
94
137
|
static {
|
|
95
|
-
__name(this, "
|
|
138
|
+
__name(this, "SetDimmer");
|
|
96
139
|
}
|
|
97
140
|
constructor({ id, level, ...rest }) {
|
|
98
141
|
super({ id, level, ...rest });
|
|
@@ -100,21 +143,18 @@ var require_SetDimmerCommand = __commonJS({
|
|
|
100
143
|
get name() {
|
|
101
144
|
return "SetDimmer";
|
|
102
145
|
}
|
|
103
|
-
get routingKey() {
|
|
104
|
-
return `dimmer.${this.data.id}.set`;
|
|
105
|
-
}
|
|
106
146
|
};
|
|
107
|
-
module.exports =
|
|
147
|
+
module.exports = SetDimmer;
|
|
108
148
|
}
|
|
109
149
|
});
|
|
110
150
|
|
|
111
|
-
// src/Commands/
|
|
112
|
-
var
|
|
113
|
-
"src/Commands/
|
|
151
|
+
// src/Commands/SetSwitch.js
|
|
152
|
+
var require_SetSwitch = __commonJS({
|
|
153
|
+
"src/Commands/SetSwitch.js"(exports, module) {
|
|
114
154
|
var Command = require_Command();
|
|
115
|
-
var
|
|
155
|
+
var SetSwitch = class extends Command {
|
|
116
156
|
static {
|
|
117
|
-
__name(this, "
|
|
157
|
+
__name(this, "SetSwitch");
|
|
118
158
|
}
|
|
119
159
|
constructor({ id, state, ...rest }) {
|
|
120
160
|
super({ id, state, ...rest });
|
|
@@ -122,21 +162,18 @@ var require_SetSwitchCommand = __commonJS({
|
|
|
122
162
|
get name() {
|
|
123
163
|
return "SetSwitch";
|
|
124
164
|
}
|
|
125
|
-
get routingKey() {
|
|
126
|
-
return `switch.${this.data.id}.set`;
|
|
127
|
-
}
|
|
128
165
|
};
|
|
129
|
-
module.exports =
|
|
166
|
+
module.exports = SetSwitch;
|
|
130
167
|
}
|
|
131
168
|
});
|
|
132
169
|
|
|
133
|
-
// src/Commands/
|
|
134
|
-
var
|
|
135
|
-
"src/Commands/
|
|
170
|
+
// src/Commands/SetThermostat.js
|
|
171
|
+
var require_SetThermostat = __commonJS({
|
|
172
|
+
"src/Commands/SetThermostat.js"(exports, module) {
|
|
136
173
|
var Command = require_Command();
|
|
137
|
-
var
|
|
174
|
+
var SetThermostat = class extends Command {
|
|
138
175
|
static {
|
|
139
|
-
__name(this, "
|
|
176
|
+
__name(this, "SetThermostat");
|
|
140
177
|
}
|
|
141
178
|
constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {
|
|
142
179
|
super({ id, setpoints, hvacMode, fanMode, ...rest });
|
|
@@ -144,21 +181,18 @@ var require_SetThermostatCommand = __commonJS({
|
|
|
144
181
|
get name() {
|
|
145
182
|
return "SetThermostat";
|
|
146
183
|
}
|
|
147
|
-
get routingKey() {
|
|
148
|
-
return `thermostat.${this.data.id}.set`;
|
|
149
|
-
}
|
|
150
184
|
};
|
|
151
|
-
module.exports =
|
|
185
|
+
module.exports = SetThermostat;
|
|
152
186
|
}
|
|
153
187
|
});
|
|
154
188
|
|
|
155
|
-
// src/Commands/
|
|
156
|
-
var
|
|
157
|
-
"src/Commands/
|
|
189
|
+
// src/Commands/SetLock.js
|
|
190
|
+
var require_SetLock = __commonJS({
|
|
191
|
+
"src/Commands/SetLock.js"(exports, module) {
|
|
158
192
|
var Command = require_Command();
|
|
159
|
-
var
|
|
193
|
+
var SetLock = class extends Command {
|
|
160
194
|
static {
|
|
161
|
-
__name(this, "
|
|
195
|
+
__name(this, "SetLock");
|
|
162
196
|
}
|
|
163
197
|
constructor({ id, state, ...rest }) {
|
|
164
198
|
super({ id, state, ...rest });
|
|
@@ -166,21 +200,18 @@ var require_SetLockCommand = __commonJS({
|
|
|
166
200
|
get name() {
|
|
167
201
|
return "SetLock";
|
|
168
202
|
}
|
|
169
|
-
get routingKey() {
|
|
170
|
-
return `lock.${this.data.id}.set`;
|
|
171
|
-
}
|
|
172
203
|
};
|
|
173
|
-
module.exports =
|
|
204
|
+
module.exports = SetLock;
|
|
174
205
|
}
|
|
175
206
|
});
|
|
176
207
|
|
|
177
|
-
// src/Commands/
|
|
178
|
-
var
|
|
179
|
-
"src/Commands/
|
|
208
|
+
// src/Commands/SetWindowCovering.js
|
|
209
|
+
var require_SetWindowCovering = __commonJS({
|
|
210
|
+
"src/Commands/SetWindowCovering.js"(exports, module) {
|
|
180
211
|
var Command = require_Command();
|
|
181
|
-
var
|
|
212
|
+
var SetWindowCovering = class extends Command {
|
|
182
213
|
static {
|
|
183
|
-
__name(this, "
|
|
214
|
+
__name(this, "SetWindowCovering");
|
|
184
215
|
}
|
|
185
216
|
constructor({ id, position, ...rest }) {
|
|
186
217
|
super({ id, position, ...rest });
|
|
@@ -188,21 +219,18 @@ var require_SetWindowCoveringCommand = __commonJS({
|
|
|
188
219
|
get name() {
|
|
189
220
|
return "SetWindowCovering";
|
|
190
221
|
}
|
|
191
|
-
get routingKey() {
|
|
192
|
-
return `windowCovering.${this.data.id}.set`;
|
|
193
|
-
}
|
|
194
222
|
};
|
|
195
|
-
module.exports =
|
|
223
|
+
module.exports = SetWindowCovering;
|
|
196
224
|
}
|
|
197
225
|
});
|
|
198
226
|
|
|
199
|
-
// src/Commands/
|
|
200
|
-
var
|
|
201
|
-
"src/Commands/
|
|
227
|
+
// src/Commands/SetCourtesy.js
|
|
228
|
+
var require_SetCourtesy = __commonJS({
|
|
229
|
+
"src/Commands/SetCourtesy.js"(exports, module) {
|
|
202
230
|
var Command = require_Command();
|
|
203
|
-
var
|
|
231
|
+
var SetCourtesy = class extends Command {
|
|
204
232
|
static {
|
|
205
|
-
__name(this, "
|
|
233
|
+
__name(this, "SetCourtesy");
|
|
206
234
|
}
|
|
207
235
|
constructor({ id, state, ...rest }) {
|
|
208
236
|
super({ id, state, ...rest });
|
|
@@ -210,21 +238,18 @@ var require_SetCourtesyCommand = __commonJS({
|
|
|
210
238
|
get name() {
|
|
211
239
|
return "SetCourtesy";
|
|
212
240
|
}
|
|
213
|
-
get routingKey() {
|
|
214
|
-
return `courtesy.${this.data.id}.set`;
|
|
215
|
-
}
|
|
216
241
|
};
|
|
217
|
-
module.exports =
|
|
242
|
+
module.exports = SetCourtesy;
|
|
218
243
|
}
|
|
219
244
|
});
|
|
220
245
|
|
|
221
|
-
// src/Commands/
|
|
222
|
-
var
|
|
223
|
-
"src/Commands/
|
|
246
|
+
// src/Commands/SetMedia.js
|
|
247
|
+
var require_SetMedia = __commonJS({
|
|
248
|
+
"src/Commands/SetMedia.js"(exports, module) {
|
|
224
249
|
var Command = require_Command();
|
|
225
|
-
var
|
|
250
|
+
var SetMedia = class extends Command {
|
|
226
251
|
static {
|
|
227
|
-
__name(this, "
|
|
252
|
+
__name(this, "SetMedia");
|
|
228
253
|
}
|
|
229
254
|
constructor({ id, command, ...rest }) {
|
|
230
255
|
super({ id, command, ...rest });
|
|
@@ -232,37 +257,27 @@ var require_SetMediaCommand = __commonJS({
|
|
|
232
257
|
get name() {
|
|
233
258
|
return "SetMedia";
|
|
234
259
|
}
|
|
235
|
-
get routingKey() {
|
|
236
|
-
return `mediaSource.${this.data.id}.set`;
|
|
237
|
-
}
|
|
238
260
|
};
|
|
239
|
-
module.exports =
|
|
261
|
+
module.exports = SetMedia;
|
|
240
262
|
}
|
|
241
263
|
});
|
|
242
264
|
|
|
243
|
-
// src/Commands/
|
|
244
|
-
var
|
|
245
|
-
"src/Commands/
|
|
265
|
+
// src/Commands/GetUsers.js
|
|
266
|
+
var require_GetUsers = __commonJS({
|
|
267
|
+
"src/Commands/GetUsers.js"(exports, module) {
|
|
246
268
|
var Command = require_Command();
|
|
247
|
-
var
|
|
269
|
+
var GetUsers = class extends Command {
|
|
248
270
|
static {
|
|
249
|
-
__name(this, "
|
|
271
|
+
__name(this, "GetUsers");
|
|
250
272
|
}
|
|
251
273
|
constructor({ id, ...rest }) {
|
|
252
274
|
super({ id, ...rest });
|
|
253
275
|
}
|
|
254
276
|
get name() {
|
|
255
|
-
return "
|
|
256
|
-
}
|
|
257
|
-
get routingKey() {
|
|
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";
|
|
277
|
+
return "GetUsers";
|
|
263
278
|
}
|
|
264
279
|
};
|
|
265
|
-
module.exports =
|
|
280
|
+
module.exports = GetUsers;
|
|
266
281
|
}
|
|
267
282
|
});
|
|
268
283
|
|
|
@@ -302,14 +317,14 @@ var require_RequestError = __commonJS({
|
|
|
302
317
|
}
|
|
303
318
|
});
|
|
304
319
|
|
|
305
|
-
// src/Commands/
|
|
306
|
-
var
|
|
307
|
-
"src/Commands/
|
|
320
|
+
// src/Commands/OCRDocument.js
|
|
321
|
+
var require_OCRDocument = __commonJS({
|
|
322
|
+
"src/Commands/OCRDocument.js"(exports, module) {
|
|
308
323
|
var Command = require_Command();
|
|
309
324
|
var RequestError = require_RequestError();
|
|
310
|
-
var
|
|
325
|
+
var OCRDocument = class extends Command {
|
|
311
326
|
static {
|
|
312
|
-
__name(this, "
|
|
327
|
+
__name(this, "OCRDocument");
|
|
313
328
|
}
|
|
314
329
|
constructor({ type, image, ...rest }) {
|
|
315
330
|
if (!image)
|
|
@@ -320,18 +335,18 @@ var require_OCRDocumentCommand = __commonJS({
|
|
|
320
335
|
return "OCRDocument";
|
|
321
336
|
}
|
|
322
337
|
};
|
|
323
|
-
module.exports =
|
|
338
|
+
module.exports = OCRDocument;
|
|
324
339
|
}
|
|
325
340
|
});
|
|
326
341
|
|
|
327
|
-
// src/Commands/
|
|
328
|
-
var
|
|
329
|
-
"src/Commands/
|
|
342
|
+
// src/Commands/CheckInReservation.js
|
|
343
|
+
var require_CheckInReservation = __commonJS({
|
|
344
|
+
"src/Commands/CheckInReservation.js"(exports, module) {
|
|
330
345
|
var Command = require_Command();
|
|
331
346
|
var RequestError = require_RequestError();
|
|
332
|
-
var
|
|
347
|
+
var CheckInReservation = class extends Command {
|
|
333
348
|
static {
|
|
334
|
-
__name(this, "
|
|
349
|
+
__name(this, "CheckInReservation");
|
|
335
350
|
}
|
|
336
351
|
constructor({ id, ...rest }) {
|
|
337
352
|
if (!id)
|
|
@@ -341,22 +356,19 @@ var require_CheckInReservationCommand = __commonJS({
|
|
|
341
356
|
get name() {
|
|
342
357
|
return "CheckInReservation";
|
|
343
358
|
}
|
|
344
|
-
get routingKey() {
|
|
345
|
-
return `reservation.${this.data.id}.checkin`;
|
|
346
|
-
}
|
|
347
359
|
};
|
|
348
|
-
module.exports =
|
|
360
|
+
module.exports = CheckInReservation;
|
|
349
361
|
}
|
|
350
362
|
});
|
|
351
363
|
|
|
352
|
-
// src/Commands/
|
|
353
|
-
var
|
|
354
|
-
"src/Commands/
|
|
364
|
+
// src/Commands/CheckOutReservation.js
|
|
365
|
+
var require_CheckOutReservation = __commonJS({
|
|
366
|
+
"src/Commands/CheckOutReservation.js"(exports, module) {
|
|
355
367
|
var Command = require_Command();
|
|
356
368
|
var RequestError = require_RequestError();
|
|
357
|
-
var
|
|
369
|
+
var CheckOutReservation = class extends Command {
|
|
358
370
|
static {
|
|
359
|
-
__name(this, "
|
|
371
|
+
__name(this, "CheckOutReservation");
|
|
360
372
|
}
|
|
361
373
|
constructor({ reservationId, userId, ...rest }) {
|
|
362
374
|
if (!reservationId)
|
|
@@ -368,22 +380,19 @@ var require_CheckOutReservationCommand = __commonJS({
|
|
|
368
380
|
get name() {
|
|
369
381
|
return "CheckOutReservation";
|
|
370
382
|
}
|
|
371
|
-
get routingKey() {
|
|
372
|
-
return `reservation.${this.data.id}.checkout`;
|
|
373
|
-
}
|
|
374
383
|
};
|
|
375
|
-
module.exports =
|
|
384
|
+
module.exports = CheckOutReservation;
|
|
376
385
|
}
|
|
377
386
|
});
|
|
378
387
|
|
|
379
|
-
// src/Commands/
|
|
380
|
-
var
|
|
381
|
-
"src/Commands/
|
|
388
|
+
// src/Commands/SendEmail.js
|
|
389
|
+
var require_SendEmail = __commonJS({
|
|
390
|
+
"src/Commands/SendEmail.js"(exports, module) {
|
|
382
391
|
var Command = require_Command();
|
|
383
392
|
var RequestError = require_RequestError();
|
|
384
|
-
var
|
|
393
|
+
var SendEmail = class extends Command {
|
|
385
394
|
static {
|
|
386
|
-
__name(this, "
|
|
395
|
+
__name(this, "SendEmail");
|
|
387
396
|
}
|
|
388
397
|
constructor({ text, html, to, from, subject, ...rest }) {
|
|
389
398
|
if (!to)
|
|
@@ -399,22 +408,19 @@ var require_SendEmailCommand = __commonJS({
|
|
|
399
408
|
get name() {
|
|
400
409
|
return "SendEmail";
|
|
401
410
|
}
|
|
402
|
-
get routingKey() {
|
|
403
|
-
return "comm.email.send";
|
|
404
|
-
}
|
|
405
411
|
};
|
|
406
|
-
module.exports =
|
|
412
|
+
module.exports = SendEmail;
|
|
407
413
|
}
|
|
408
414
|
});
|
|
409
415
|
|
|
410
|
-
// src/Commands/
|
|
411
|
-
var
|
|
412
|
-
"src/Commands/
|
|
416
|
+
// src/Commands/SendSMS.js
|
|
417
|
+
var require_SendSMS = __commonJS({
|
|
418
|
+
"src/Commands/SendSMS.js"(exports, module) {
|
|
413
419
|
var Command = require_Command();
|
|
414
420
|
var RequestError = require_RequestError();
|
|
415
|
-
var
|
|
421
|
+
var SendSMS = class extends Command {
|
|
416
422
|
static {
|
|
417
|
-
__name(this, "
|
|
423
|
+
__name(this, "SendSMS");
|
|
418
424
|
}
|
|
419
425
|
constructor({ id, body, to, from, media, ...rest }) {
|
|
420
426
|
if (!body && !media)
|
|
@@ -428,11 +434,8 @@ var require_SendSMSCommand = __commonJS({
|
|
|
428
434
|
get name() {
|
|
429
435
|
return "SendSMS";
|
|
430
436
|
}
|
|
431
|
-
get routingKey() {
|
|
432
|
-
return "comm.sms.send";
|
|
433
|
-
}
|
|
434
437
|
};
|
|
435
|
-
module.exports =
|
|
438
|
+
module.exports = SendSMS;
|
|
436
439
|
}
|
|
437
440
|
});
|
|
438
441
|
|
|
@@ -637,14 +640,14 @@ var require_Errors = __commonJS({
|
|
|
637
640
|
}
|
|
638
641
|
});
|
|
639
642
|
|
|
640
|
-
// src/Commands/
|
|
641
|
-
var
|
|
642
|
-
"src/Commands/
|
|
643
|
+
// src/Commands/GetReservations.js
|
|
644
|
+
var require_GetReservations = __commonJS({
|
|
645
|
+
"src/Commands/GetReservations.js"(exports, module) {
|
|
643
646
|
var { RequestError } = require_Errors();
|
|
644
647
|
var Command = require_Command();
|
|
645
|
-
var
|
|
648
|
+
var GetReservations = class extends Command {
|
|
646
649
|
static {
|
|
647
|
-
__name(this, "
|
|
650
|
+
__name(this, "GetReservations");
|
|
648
651
|
}
|
|
649
652
|
constructor(options) {
|
|
650
653
|
if (!options)
|
|
@@ -653,24 +656,21 @@ var require_DiscoverReservationsCommand = __commonJS({
|
|
|
653
656
|
super({ id, startDate, endDate, status, ...rest });
|
|
654
657
|
}
|
|
655
658
|
get name() {
|
|
656
|
-
return "
|
|
657
|
-
}
|
|
658
|
-
get routingKey() {
|
|
659
|
-
return "reservation.discover";
|
|
659
|
+
return "GetReservations";
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
module.exports =
|
|
662
|
+
module.exports = GetReservations;
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
665
|
|
|
666
|
-
// src/Commands/
|
|
667
|
-
var
|
|
668
|
-
"src/Commands/
|
|
666
|
+
// src/Commands/GetReservationSpaceCategoryAvailabilities.js
|
|
667
|
+
var require_GetReservationSpaceCategoryAvailabilities = __commonJS({
|
|
668
|
+
"src/Commands/GetReservationSpaceCategoryAvailabilities.js"(exports, module) {
|
|
669
669
|
var { RequestError } = require_Errors();
|
|
670
670
|
var Command = require_Command();
|
|
671
|
-
var
|
|
671
|
+
var GetReservationSpaceCategoryAvailabilities = class extends Command {
|
|
672
672
|
static {
|
|
673
|
-
__name(this, "
|
|
673
|
+
__name(this, "GetReservationSpaceCategoryAvailabilities");
|
|
674
674
|
}
|
|
675
675
|
constructor(options) {
|
|
676
676
|
if (!options)
|
|
@@ -679,23 +679,20 @@ var require_DiscoverReservationSpaceCategoryAvailabilitiesCommand = __commonJS({
|
|
|
679
679
|
super({ id, ...rest });
|
|
680
680
|
}
|
|
681
681
|
get name() {
|
|
682
|
-
return "
|
|
683
|
-
}
|
|
684
|
-
get routingKey() {
|
|
685
|
-
return "reservation.discoverRoomUpsells";
|
|
682
|
+
return "GetReservationSpaceCategoryAvailabilities";
|
|
686
683
|
}
|
|
687
684
|
};
|
|
688
|
-
module.exports =
|
|
685
|
+
module.exports = GetReservationSpaceCategoryAvailabilities;
|
|
689
686
|
}
|
|
690
687
|
});
|
|
691
688
|
|
|
692
|
-
// src/Commands/
|
|
693
|
-
var
|
|
694
|
-
"src/Commands/
|
|
689
|
+
// src/Commands/GetRooms.js
|
|
690
|
+
var require_GetRooms = __commonJS({
|
|
691
|
+
"src/Commands/GetRooms.js"(exports, module) {
|
|
695
692
|
var Command = require_Command();
|
|
696
|
-
var
|
|
693
|
+
var GetRooms = class extends Command {
|
|
697
694
|
static {
|
|
698
|
-
__name(this, "
|
|
695
|
+
__name(this, "GetRooms");
|
|
699
696
|
}
|
|
700
697
|
constructor({
|
|
701
698
|
id,
|
|
@@ -719,49 +716,35 @@ var require_DiscoverRoomsCommand = __commonJS({
|
|
|
719
716
|
});
|
|
720
717
|
}
|
|
721
718
|
get name() {
|
|
722
|
-
return "
|
|
723
|
-
}
|
|
724
|
-
get routingKey() {
|
|
725
|
-
if (typeof this.data.id === "string")
|
|
726
|
-
return `rooms.${this.data.id}.get`;
|
|
727
|
-
if (Array.isArray(this.data.id))
|
|
728
|
-
return "rooms.batch.get";
|
|
729
|
-
return "rooms.get";
|
|
719
|
+
return "GetRooms";
|
|
730
720
|
}
|
|
731
721
|
};
|
|
732
|
-
module.exports =
|
|
722
|
+
module.exports = GetRooms;
|
|
733
723
|
}
|
|
734
724
|
});
|
|
735
725
|
|
|
736
|
-
// src/Commands/
|
|
737
|
-
var
|
|
738
|
-
"src/Commands/
|
|
726
|
+
// src/Commands/GetCategories.js
|
|
727
|
+
var require_GetCategories = __commonJS({
|
|
728
|
+
"src/Commands/GetCategories.js"(exports, module) {
|
|
739
729
|
var Command = require_Command();
|
|
740
|
-
var
|
|
730
|
+
var GetCategories = class extends Command {
|
|
741
731
|
static {
|
|
742
|
-
__name(this, "
|
|
732
|
+
__name(this, "GetCategories");
|
|
743
733
|
}
|
|
744
734
|
constructor({ id, ...rest }) {
|
|
745
735
|
super({ id, ...rest });
|
|
746
736
|
}
|
|
747
737
|
get name() {
|
|
748
|
-
return "
|
|
749
|
-
}
|
|
750
|
-
get routingKey() {
|
|
751
|
-
if (typeof this.data.id === "string")
|
|
752
|
-
return `categories.${this.data.id}.get`;
|
|
753
|
-
if (Array.isArray(this.data.id))
|
|
754
|
-
return "categories.batch.get";
|
|
755
|
-
return "categories.get";
|
|
738
|
+
return "GetCategories";
|
|
756
739
|
}
|
|
757
740
|
};
|
|
758
|
-
module.exports =
|
|
741
|
+
module.exports = GetCategories;
|
|
759
742
|
}
|
|
760
743
|
});
|
|
761
744
|
|
|
762
|
-
// src/Commands/
|
|
763
|
-
var
|
|
764
|
-
"src/Commands/
|
|
745
|
+
// src/Commands/CreateShortLink.js
|
|
746
|
+
var require_CreateShortLink = __commonJS({
|
|
747
|
+
"src/Commands/CreateShortLink.js"(exports, module) {
|
|
765
748
|
var Command = require_Command();
|
|
766
749
|
var RequestError = require_RequestError();
|
|
767
750
|
var CreateShortLinkCommand = class extends Command {
|
|
@@ -778,22 +761,19 @@ var require_CreateShortLinkCommand = __commonJS({
|
|
|
778
761
|
get name() {
|
|
779
762
|
return "CreateShortLink";
|
|
780
763
|
}
|
|
781
|
-
get routingKey() {
|
|
782
|
-
return "comm.shortlink.create";
|
|
783
|
-
}
|
|
784
764
|
};
|
|
785
765
|
module.exports = CreateShortLinkCommand;
|
|
786
766
|
}
|
|
787
767
|
});
|
|
788
768
|
|
|
789
|
-
// src/Commands/
|
|
790
|
-
var
|
|
791
|
-
"src/Commands/
|
|
769
|
+
// src/Commands/UpdateReservation.js
|
|
770
|
+
var require_UpdateReservation = __commonJS({
|
|
771
|
+
"src/Commands/UpdateReservation.js"(exports, module) {
|
|
792
772
|
var Command = require_Command();
|
|
793
773
|
var RequestError = require_RequestError();
|
|
794
|
-
var
|
|
774
|
+
var UpdateReservation = class extends Command {
|
|
795
775
|
static {
|
|
796
|
-
__name(this, "
|
|
776
|
+
__name(this, "UpdateReservation");
|
|
797
777
|
}
|
|
798
778
|
constructor({ id, ...rest }) {
|
|
799
779
|
if (!id)
|
|
@@ -803,22 +783,19 @@ var require_UpdateReservationCommand = __commonJS({
|
|
|
803
783
|
get name() {
|
|
804
784
|
return "UpdateReservation";
|
|
805
785
|
}
|
|
806
|
-
get routingKey() {
|
|
807
|
-
return `reservation.${this.data.id}.update`;
|
|
808
|
-
}
|
|
809
786
|
};
|
|
810
|
-
module.exports =
|
|
787
|
+
module.exports = UpdateReservation;
|
|
811
788
|
}
|
|
812
789
|
});
|
|
813
790
|
|
|
814
|
-
// src/Commands/
|
|
815
|
-
var
|
|
816
|
-
"src/Commands/
|
|
791
|
+
// src/Commands/UpdateUser.js
|
|
792
|
+
var require_UpdateUser = __commonJS({
|
|
793
|
+
"src/Commands/UpdateUser.js"(exports, module) {
|
|
817
794
|
var Command = require_Command();
|
|
818
795
|
var RequestError = require_RequestError();
|
|
819
|
-
var
|
|
796
|
+
var UpdateUser = class extends Command {
|
|
820
797
|
static {
|
|
821
|
-
__name(this, "
|
|
798
|
+
__name(this, "UpdateUser");
|
|
822
799
|
}
|
|
823
800
|
constructor({
|
|
824
801
|
id,
|
|
@@ -850,21 +827,18 @@ var require_UpdateUserCommand = __commonJS({
|
|
|
850
827
|
get name() {
|
|
851
828
|
return "UpdateUser";
|
|
852
829
|
}
|
|
853
|
-
get routingKey() {
|
|
854
|
-
return `user.${this.data.id}.update`;
|
|
855
|
-
}
|
|
856
830
|
};
|
|
857
|
-
module.exports =
|
|
831
|
+
module.exports = UpdateUser;
|
|
858
832
|
}
|
|
859
833
|
});
|
|
860
834
|
|
|
861
|
-
// src/Commands/
|
|
862
|
-
var
|
|
863
|
-
"src/Commands/
|
|
835
|
+
// src/Commands/GetMobileKey.js
|
|
836
|
+
var require_GetMobileKey = __commonJS({
|
|
837
|
+
"src/Commands/GetMobileKey.js"(exports, module) {
|
|
864
838
|
var Command = require_Command();
|
|
865
|
-
var
|
|
839
|
+
var GetMobileKey = class extends Command {
|
|
866
840
|
static {
|
|
867
|
-
__name(this, "
|
|
841
|
+
__name(this, "GetMobileKey");
|
|
868
842
|
}
|
|
869
843
|
constructor({
|
|
870
844
|
id,
|
|
@@ -879,21 +853,18 @@ var require_GetMobileKeyCommand = __commonJS({
|
|
|
879
853
|
get name() {
|
|
880
854
|
return "GetMobileKey";
|
|
881
855
|
}
|
|
882
|
-
get routingKey() {
|
|
883
|
-
return `lock.${this.data.id}.set`;
|
|
884
|
-
}
|
|
885
856
|
};
|
|
886
|
-
module.exports =
|
|
857
|
+
module.exports = GetMobileKey;
|
|
887
858
|
}
|
|
888
859
|
});
|
|
889
860
|
|
|
890
|
-
// src/Commands/
|
|
891
|
-
var
|
|
892
|
-
"src/Commands/
|
|
861
|
+
// src/Commands/CreateImageUploadEndpoint.js
|
|
862
|
+
var require_CreateImageUploadEndpoint = __commonJS({
|
|
863
|
+
"src/Commands/CreateImageUploadEndpoint.js"(exports, module) {
|
|
893
864
|
var Command = require_Command();
|
|
894
|
-
var
|
|
865
|
+
var CreateImageUploadEndpoint = class extends Command {
|
|
895
866
|
static {
|
|
896
|
-
__name(this, "
|
|
867
|
+
__name(this, "CreateImageUploadEndpoint");
|
|
897
868
|
}
|
|
898
869
|
constructor({ id, expires, ...rest }) {
|
|
899
870
|
super({ id, expires, ...rest });
|
|
@@ -901,21 +872,18 @@ var require_CreateImageUploadEndpointCommand = __commonJS({
|
|
|
901
872
|
get name() {
|
|
902
873
|
return "CreateImageUploadEndpoint";
|
|
903
874
|
}
|
|
904
|
-
get routingKey() {
|
|
905
|
-
return "image.createUploadEndpoint";
|
|
906
|
-
}
|
|
907
875
|
};
|
|
908
|
-
module.exports =
|
|
876
|
+
module.exports = CreateImageUploadEndpoint;
|
|
909
877
|
}
|
|
910
878
|
});
|
|
911
879
|
|
|
912
|
-
// src/Commands/
|
|
913
|
-
var
|
|
914
|
-
"src/Commands/
|
|
880
|
+
// src/Commands/UploadImage.js
|
|
881
|
+
var require_UploadImage = __commonJS({
|
|
882
|
+
"src/Commands/UploadImage.js"(exports, module) {
|
|
915
883
|
var Command = require_Command();
|
|
916
|
-
var
|
|
884
|
+
var UploadImage = class extends Command {
|
|
917
885
|
static {
|
|
918
|
-
__name(this, "
|
|
886
|
+
__name(this, "UploadImage");
|
|
919
887
|
}
|
|
920
888
|
constructor({ id, url, file, ...rest }) {
|
|
921
889
|
super({ id, url, file, ...rest });
|
|
@@ -923,52 +891,37 @@ var require_UploadImageCommand = __commonJS({
|
|
|
923
891
|
get name() {
|
|
924
892
|
return "UploadImage";
|
|
925
893
|
}
|
|
926
|
-
get routingKey() {
|
|
927
|
-
return `image.${this.data.id}.upload`;
|
|
928
|
-
}
|
|
929
894
|
};
|
|
930
|
-
module.exports =
|
|
895
|
+
module.exports = UploadImage;
|
|
931
896
|
}
|
|
932
897
|
});
|
|
933
898
|
|
|
934
|
-
// src/Commands/
|
|
935
|
-
var
|
|
936
|
-
"src/Commands/
|
|
899
|
+
// src/Commands/GetProducts.js
|
|
900
|
+
var require_GetProducts = __commonJS({
|
|
901
|
+
"src/Commands/GetProducts.js"(exports, module) {
|
|
937
902
|
var Command = require_Command();
|
|
938
|
-
var
|
|
903
|
+
var GetProducts = class extends Command {
|
|
939
904
|
static {
|
|
940
|
-
__name(this, "
|
|
905
|
+
__name(this, "GetProducts");
|
|
941
906
|
}
|
|
942
907
|
constructor({ id, externalSystemId, ...rest }) {
|
|
943
908
|
super({ id, externalSystemId, ...rest });
|
|
944
909
|
}
|
|
945
910
|
get name() {
|
|
946
|
-
return "
|
|
947
|
-
}
|
|
948
|
-
get routingKey() {
|
|
949
|
-
if (Array.isArray(this.data.id)) {
|
|
950
|
-
return `product.${this.data.id.join("-")}.get`;
|
|
951
|
-
}
|
|
952
|
-
if (Array.isArray(this.data.externalSystemId)) {
|
|
953
|
-
return `product.${this.data.externalSystemId.join("-")}.get`;
|
|
954
|
-
}
|
|
955
|
-
if (this.data.externalSystemId) {
|
|
956
|
-
return `product.${this.data.externalSystemId}.get`;
|
|
957
|
-
}
|
|
958
|
-
return `product.${this.data.id}.get`;
|
|
911
|
+
return "GetProducts";
|
|
959
912
|
}
|
|
960
913
|
};
|
|
961
|
-
module.exports =
|
|
914
|
+
module.exports = GetProducts;
|
|
962
915
|
}
|
|
963
916
|
});
|
|
964
917
|
|
|
965
|
-
// src/Commands/
|
|
966
|
-
var
|
|
967
|
-
"src/Commands/
|
|
918
|
+
// src/Commands/SellProducts.js
|
|
919
|
+
var require_SellProducts = __commonJS({
|
|
920
|
+
"src/Commands/SellProducts.js"(exports, module) {
|
|
968
921
|
var Command = require_Command();
|
|
969
|
-
var
|
|
922
|
+
var SellProducts = class extends Command {
|
|
970
923
|
static {
|
|
971
|
-
__name(this, "
|
|
924
|
+
__name(this, "SellProducts");
|
|
972
925
|
}
|
|
973
926
|
constructor({ reservationId, userId, products, ...rest }) {
|
|
974
927
|
super({ reservationId, userId, products, ...rest });
|
|
@@ -976,72 +929,71 @@ var require_SellProductsCommand = __commonJS({
|
|
|
976
929
|
get name() {
|
|
977
930
|
return "SellProducts";
|
|
978
931
|
}
|
|
979
|
-
get routingKey() {
|
|
980
|
-
return `product.${this.data.id}.sell`;
|
|
981
|
-
}
|
|
982
932
|
};
|
|
983
|
-
module.exports =
|
|
933
|
+
module.exports = SellProducts;
|
|
984
934
|
}
|
|
985
935
|
});
|
|
986
936
|
|
|
987
937
|
// src/Commands/index.js
|
|
988
938
|
var require_Commands = __commonJS({
|
|
989
939
|
"src/Commands/index.js"(exports, module) {
|
|
990
|
-
var
|
|
991
|
-
var
|
|
992
|
-
var
|
|
993
|
-
var
|
|
994
|
-
var
|
|
995
|
-
var
|
|
996
|
-
var
|
|
997
|
-
var
|
|
998
|
-
var
|
|
999
|
-
var
|
|
1000
|
-
var
|
|
1001
|
-
var
|
|
1002
|
-
var
|
|
1003
|
-
var
|
|
1004
|
-
var
|
|
1005
|
-
var
|
|
1006
|
-
var
|
|
1007
|
-
var
|
|
1008
|
-
var
|
|
1009
|
-
var
|
|
1010
|
-
var
|
|
1011
|
-
var
|
|
1012
|
-
var
|
|
1013
|
-
var
|
|
1014
|
-
var
|
|
1015
|
-
var
|
|
1016
|
-
var
|
|
940
|
+
var Command = require_Command();
|
|
941
|
+
var SetScene = require_SetScene();
|
|
942
|
+
var SetAlarm = require_SetAlarm();
|
|
943
|
+
var SetDimmer = require_SetDimmer();
|
|
944
|
+
var SetSwitch = require_SetSwitch();
|
|
945
|
+
var SetThermostat = require_SetThermostat();
|
|
946
|
+
var SetLock = require_SetLock();
|
|
947
|
+
var SetWindowCovering = require_SetWindowCovering();
|
|
948
|
+
var SetCourtesy = require_SetCourtesy();
|
|
949
|
+
var SetMedia = require_SetMedia();
|
|
950
|
+
var GetUsers = require_GetUsers();
|
|
951
|
+
var OCRDocument = require_OCRDocument();
|
|
952
|
+
var CheckInReservation = require_CheckInReservation();
|
|
953
|
+
var CheckOutReservation = require_CheckOutReservation();
|
|
954
|
+
var SendEmail = require_SendEmail();
|
|
955
|
+
var SendSMS = require_SendSMS();
|
|
956
|
+
var GetReservations = require_GetReservations();
|
|
957
|
+
var GetReservationSpaceCategoryAvailabilities = require_GetReservationSpaceCategoryAvailabilities();
|
|
958
|
+
var GetRooms = require_GetRooms();
|
|
959
|
+
var GetCategories = require_GetCategories();
|
|
960
|
+
var CreateShortLink = require_CreateShortLink();
|
|
961
|
+
var UpdateReservation = require_UpdateReservation();
|
|
962
|
+
var UpdateUser = require_UpdateUser();
|
|
963
|
+
var GetMobileKey = require_GetMobileKey();
|
|
964
|
+
var CreateImageUploadEndpoint = require_CreateImageUploadEndpoint();
|
|
965
|
+
var UploadImage = require_UploadImage();
|
|
966
|
+
var GetProducts = require_GetProducts();
|
|
967
|
+
var SellProducts = require_SellProducts();
|
|
1017
968
|
module.exports = {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
969
|
+
Command,
|
|
970
|
+
SetScene,
|
|
971
|
+
SetAlarm,
|
|
972
|
+
SetDimmer,
|
|
973
|
+
SetSwitch,
|
|
974
|
+
SetThermostat,
|
|
975
|
+
SetLock,
|
|
976
|
+
SetWindowCovering,
|
|
977
|
+
SetCourtesy,
|
|
978
|
+
SetMedia,
|
|
979
|
+
OCRDocument,
|
|
980
|
+
GetUsers,
|
|
981
|
+
CheckInReservation,
|
|
982
|
+
CheckOutReservation,
|
|
983
|
+
SendSMS,
|
|
984
|
+
SendEmail,
|
|
985
|
+
GetReservations,
|
|
986
|
+
GetReservationSpaceCategoryAvailabilities,
|
|
987
|
+
GetRooms,
|
|
988
|
+
GetCategories,
|
|
989
|
+
CreateShortLink,
|
|
990
|
+
UpdateReservation,
|
|
991
|
+
UpdateUser,
|
|
992
|
+
GetMobileKey,
|
|
993
|
+
CreateImageUploadEndpoint,
|
|
994
|
+
UploadImage,
|
|
995
|
+
GetProducts,
|
|
996
|
+
SellProducts
|
|
1045
997
|
};
|
|
1046
998
|
}
|
|
1047
999
|
});
|