@digipair/skill-smoobu 0.98.0 → 0.98.2
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/index.esm.js +5 -5
- package/package.json +1 -1
- package/schema.fr.json +338 -362
- package/schema.json +338 -362
package/schema.json
CHANGED
|
@@ -78,15 +78,306 @@
|
|
|
78
78
|
"description": "Total price"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"/sendMessage": {
|
|
89
|
+
"post": {
|
|
90
|
+
"tags": [
|
|
91
|
+
"service"
|
|
92
|
+
],
|
|
93
|
+
"summary": "Send a message via Smoobu",
|
|
94
|
+
"parameters": [
|
|
95
|
+
{
|
|
96
|
+
"name": "reservationId",
|
|
97
|
+
"summary": "Reservation ID",
|
|
98
|
+
"required": true,
|
|
99
|
+
"description": "Smoobu reservation ID",
|
|
100
|
+
"schema": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "message",
|
|
106
|
+
"summary": "Message",
|
|
107
|
+
"required": true,
|
|
108
|
+
"description": "Message to send",
|
|
109
|
+
"schema": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "SMOOBU_API_KEY",
|
|
115
|
+
"summary": "API Key",
|
|
116
|
+
"required": false,
|
|
117
|
+
"description": "Smoobu API key",
|
|
118
|
+
"schema": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "SMOOBU_API_ENDPOINT",
|
|
124
|
+
"summary": "API Endpoint",
|
|
125
|
+
"required": false,
|
|
126
|
+
"description": "Smoobu API endpoint",
|
|
127
|
+
"schema": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"x-events": [],
|
|
133
|
+
"responses": {
|
|
134
|
+
"200": {
|
|
135
|
+
"description": "Message successfully sent to guest via Smoobu",
|
|
136
|
+
"content": {
|
|
137
|
+
"application/json": {
|
|
138
|
+
"schema": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"description": "Smoobu API response for sent message",
|
|
141
|
+
"properties": {
|
|
142
|
+
"success": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"description": "Whether message was sent successfully"
|
|
145
|
+
},
|
|
146
|
+
"message_id": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "ID of the sent message"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"/getAllReservations": {
|
|
159
|
+
"post": {
|
|
160
|
+
"tags": [
|
|
161
|
+
"service"
|
|
162
|
+
],
|
|
163
|
+
"summary": "List of Smoobu reservations",
|
|
164
|
+
"parameters": [
|
|
165
|
+
{
|
|
166
|
+
"name": "created_from",
|
|
167
|
+
"summary": "Created from",
|
|
168
|
+
"required": false,
|
|
169
|
+
"description": "Creation date from",
|
|
170
|
+
"schema": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "created_to",
|
|
176
|
+
"summary": "Created until",
|
|
177
|
+
"required": false,
|
|
178
|
+
"description": "Creation date until",
|
|
179
|
+
"schema": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "from",
|
|
185
|
+
"summary": "Start",
|
|
186
|
+
"required": false,
|
|
187
|
+
"description": "Start date",
|
|
188
|
+
"schema": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "to",
|
|
194
|
+
"summary": "End",
|
|
195
|
+
"required": false,
|
|
196
|
+
"description": "End date",
|
|
197
|
+
"schema": {
|
|
198
|
+
"type": "string"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "modifiedFrom",
|
|
203
|
+
"summary": "Modified from",
|
|
204
|
+
"required": false,
|
|
205
|
+
"description": "Modification date from",
|
|
206
|
+
"schema": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "modifiedTo",
|
|
212
|
+
"summary": "Modified until",
|
|
213
|
+
"required": false,
|
|
214
|
+
"description": "Modification date until",
|
|
215
|
+
"schema": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "arrivalFrom",
|
|
221
|
+
"summary": "Arrival from",
|
|
222
|
+
"required": false,
|
|
223
|
+
"description": "Arrival date from",
|
|
224
|
+
"schema": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "arrivalTo",
|
|
230
|
+
"summary": "Arrival until",
|
|
231
|
+
"required": false,
|
|
232
|
+
"description": "Arrival date until",
|
|
233
|
+
"schema": {
|
|
234
|
+
"type": "string"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "departureFrom",
|
|
239
|
+
"summary": "Departure from",
|
|
240
|
+
"required": false,
|
|
241
|
+
"description": "Departure date from",
|
|
242
|
+
"schema": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "departureTo",
|
|
248
|
+
"summary": "Departure until",
|
|
249
|
+
"required": false,
|
|
250
|
+
"description": "Departure date until",
|
|
251
|
+
"schema": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "showCancellation",
|
|
257
|
+
"summary": "Show cancellations",
|
|
258
|
+
"required": false,
|
|
259
|
+
"description": "Show cancellations",
|
|
260
|
+
"schema": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "excludeBlocked",
|
|
266
|
+
"summary": "Exclude blocked",
|
|
267
|
+
"required": false,
|
|
268
|
+
"description": "Exclude blocked",
|
|
269
|
+
"schema": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "page",
|
|
275
|
+
"summary": "Page",
|
|
276
|
+
"required": false,
|
|
277
|
+
"description": "Page",
|
|
278
|
+
"schema": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "pageSize",
|
|
284
|
+
"summary": "Page size",
|
|
285
|
+
"required": false,
|
|
286
|
+
"description": "Size of the page",
|
|
287
|
+
"schema": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "apartmentId",
|
|
293
|
+
"summary": "Apartment ID",
|
|
294
|
+
"required": false,
|
|
295
|
+
"description": "Apartment ID",
|
|
296
|
+
"schema": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "includeRelated",
|
|
302
|
+
"summary": "Include details",
|
|
303
|
+
"required": false,
|
|
304
|
+
"description": "Include details",
|
|
305
|
+
"schema": {
|
|
306
|
+
"type": "string"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "includePriceElements",
|
|
311
|
+
"summary": "Include price elements",
|
|
312
|
+
"required": false,
|
|
313
|
+
"description": "Include price elements",
|
|
314
|
+
"schema": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "SMOOBU_API_KEY",
|
|
320
|
+
"summary": "API Key",
|
|
321
|
+
"required": false,
|
|
322
|
+
"description": "Smoobu API key",
|
|
323
|
+
"schema": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "SMOOBU_API_ENDPOINT",
|
|
329
|
+
"summary": "API Endpoint",
|
|
330
|
+
"required": false,
|
|
331
|
+
"description": "Smoobu API endpoint",
|
|
332
|
+
"schema": {
|
|
333
|
+
"type": "string"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"x-events": [],
|
|
338
|
+
"responses": {
|
|
339
|
+
"200": {
|
|
340
|
+
"description": "List of reservations successfully retrieved from Smoobu",
|
|
341
|
+
"content": {
|
|
342
|
+
"application/json": {
|
|
343
|
+
"schema": {
|
|
344
|
+
"type": "object",
|
|
345
|
+
"description": "Paginated list of Smoobu reservations",
|
|
346
|
+
"properties": {
|
|
347
|
+
"data": {
|
|
348
|
+
"type": "array",
|
|
349
|
+
"description": "Array of reservation objects",
|
|
350
|
+
"items": {
|
|
351
|
+
"type": "object",
|
|
352
|
+
"properties": {
|
|
353
|
+
"id": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"description": "Reservation ID"
|
|
356
|
+
},
|
|
357
|
+
"arrival": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"description": "Arrival date"
|
|
360
|
+
},
|
|
361
|
+
"departure": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"description": "Departure date"
|
|
364
|
+
},
|
|
365
|
+
"guest_name": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"description": "Guest name"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"page": {
|
|
373
|
+
"type": "number",
|
|
374
|
+
"description": "Current page number"
|
|
375
|
+
},
|
|
376
|
+
"total": {
|
|
377
|
+
"type": "number",
|
|
378
|
+
"description": "Total number of reservations"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
90
381
|
}
|
|
91
382
|
}
|
|
92
383
|
}
|
|
@@ -95,382 +386,67 @@
|
|
|
95
386
|
}
|
|
96
387
|
}
|
|
97
388
|
},
|
|
98
|
-
"
|
|
99
|
-
"
|
|
389
|
+
"components": {
|
|
390
|
+
"schemas": {}
|
|
391
|
+
},
|
|
392
|
+
"x-scene-blocks": {
|
|
393
|
+
"/event": {
|
|
394
|
+
"summary": "Smoobu reservation",
|
|
395
|
+
"description": "Management of events on reservations",
|
|
100
396
|
"tags": [
|
|
101
397
|
"service"
|
|
102
398
|
],
|
|
103
|
-
"
|
|
399
|
+
"metadata": [],
|
|
104
400
|
"parameters": [
|
|
105
401
|
{
|
|
106
|
-
"name": "
|
|
107
|
-
"summary": "
|
|
108
|
-
"required":
|
|
109
|
-
"description": "
|
|
402
|
+
"name": "updateRates",
|
|
403
|
+
"summary": "When updating rates",
|
|
404
|
+
"required": false,
|
|
405
|
+
"description": "Commands to execute when updating rates",
|
|
110
406
|
"schema": {
|
|
111
|
-
"type": "
|
|
407
|
+
"type": "array",
|
|
408
|
+
"items": {
|
|
409
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
410
|
+
}
|
|
112
411
|
}
|
|
113
412
|
},
|
|
114
413
|
{
|
|
115
|
-
"name": "
|
|
116
|
-
"summary": "
|
|
117
|
-
"required":
|
|
118
|
-
"description": "
|
|
414
|
+
"name": "newReservation",
|
|
415
|
+
"summary": "When a new reservation is made",
|
|
416
|
+
"required": false,
|
|
417
|
+
"description": "Commands to execute when a new reservation is made",
|
|
119
418
|
"schema": {
|
|
120
|
-
"type": "
|
|
419
|
+
"type": "array",
|
|
420
|
+
"items": {
|
|
421
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
422
|
+
}
|
|
121
423
|
}
|
|
122
424
|
},
|
|
123
425
|
{
|
|
124
|
-
"name": "
|
|
125
|
-
"summary": "
|
|
426
|
+
"name": "cancelReservation",
|
|
427
|
+
"summary": "When a cancellation occurs",
|
|
126
428
|
"required": false,
|
|
127
|
-
"description": "
|
|
429
|
+
"description": "Commands to execute when a cancellation occurs",
|
|
128
430
|
"schema": {
|
|
129
|
-
"type": "
|
|
431
|
+
"type": "array",
|
|
432
|
+
"items": {
|
|
433
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
434
|
+
}
|
|
130
435
|
}
|
|
131
436
|
},
|
|
132
437
|
{
|
|
133
|
-
"name": "
|
|
134
|
-
"summary": "
|
|
438
|
+
"name": "updateReservation",
|
|
439
|
+
"summary": "When updating a reservation",
|
|
135
440
|
"required": false,
|
|
136
|
-
"description": "
|
|
441
|
+
"description": "Commands to execute when updating a reservation",
|
|
137
442
|
"schema": {
|
|
138
|
-
"type": "
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
],
|
|
142
|
-
"x-events": [],
|
|
143
|
-
"responses": {
|
|
144
|
-
"200": {
|
|
145
|
-
"description": "Message successfully sent to guest via Smoobu",
|
|
146
|
-
"content": {
|
|
147
|
-
"application/json": {
|
|
148
|
-
"schema": {
|
|
149
|
-
"type": "object",
|
|
150
|
-
"description": "Smoobu API response for sent message",
|
|
151
|
-
"properties": {
|
|
152
|
-
"success": {
|
|
153
|
-
"type": "boolean",
|
|
154
|
-
"description": "Whether message was sent successfully"
|
|
155
|
-
},
|
|
156
|
-
"message_id": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"description": "ID of the sent message"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
"success": true,
|
|
162
|
-
"message_id": "msg_789123"
|
|
163
|
-
}
|
|
443
|
+
"type": "array",
|
|
444
|
+
"items": {
|
|
445
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
164
446
|
}
|
|
165
447
|
}
|
|
166
448
|
}
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
"/getAllReservations": {
|
|
172
|
-
"post": {
|
|
173
|
-
"tags": [
|
|
174
|
-
"service"
|
|
175
|
-
],
|
|
176
|
-
"summary": "List of Smoobu reservations",
|
|
177
|
-
"parameters": [
|
|
178
|
-
{
|
|
179
|
-
"name": "created_from",
|
|
180
|
-
"summary": "Created from",
|
|
181
|
-
"required": false,
|
|
182
|
-
"description": "Creation date from",
|
|
183
|
-
"schema": {
|
|
184
|
-
"type": "string"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"name": "created_to",
|
|
189
|
-
"summary": "Created until",
|
|
190
|
-
"required": false,
|
|
191
|
-
"description": "Creation date until",
|
|
192
|
-
"schema": {
|
|
193
|
-
"type": "string"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "from",
|
|
198
|
-
"summary": "Start",
|
|
199
|
-
"required": false,
|
|
200
|
-
"description": "Start date",
|
|
201
|
-
"schema": {
|
|
202
|
-
"type": "string"
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"name": "to",
|
|
207
|
-
"summary": "End",
|
|
208
|
-
"required": false,
|
|
209
|
-
"description": "End date",
|
|
210
|
-
"schema": {
|
|
211
|
-
"type": "string"
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "modifiedFrom",
|
|
216
|
-
"summary": "Modified from",
|
|
217
|
-
"required": false,
|
|
218
|
-
"description": "Modification date from",
|
|
219
|
-
"schema": {
|
|
220
|
-
"type": "string"
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"name": "modifiedTo",
|
|
225
|
-
"summary": "Modified until",
|
|
226
|
-
"required": false,
|
|
227
|
-
"description": "Modification date until",
|
|
228
|
-
"schema": {
|
|
229
|
-
"type": "string"
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"name": "arrivalFrom",
|
|
234
|
-
"summary": "Arrival from",
|
|
235
|
-
"required": false,
|
|
236
|
-
"description": "Arrival date from",
|
|
237
|
-
"schema": {
|
|
238
|
-
"type": "string"
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"name": "arrivalTo",
|
|
243
|
-
"summary": "Arrival until",
|
|
244
|
-
"required": false,
|
|
245
|
-
"description": "Arrival date until",
|
|
246
|
-
"schema": {
|
|
247
|
-
"type": "string"
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"name": "departureFrom",
|
|
252
|
-
"summary": "Departure from",
|
|
253
|
-
"required": false,
|
|
254
|
-
"description": "Departure date from",
|
|
255
|
-
"schema": {
|
|
256
|
-
"type": "string"
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"name": "departureTo",
|
|
261
|
-
"summary": "Departure until",
|
|
262
|
-
"required": false,
|
|
263
|
-
"description": "Departure date until",
|
|
264
|
-
"schema": {
|
|
265
|
-
"type": "string"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"name": "showCancellation",
|
|
270
|
-
"summary": "Show cancellations",
|
|
271
|
-
"required": false,
|
|
272
|
-
"description": "Show cancellations",
|
|
273
|
-
"schema": {
|
|
274
|
-
"type": "string"
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"name": "excludeBlocked",
|
|
279
|
-
"summary": "Exclude blocked",
|
|
280
|
-
"required": false,
|
|
281
|
-
"description": "Exclude blocked",
|
|
282
|
-
"schema": {
|
|
283
|
-
"type": "string"
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"name": "page",
|
|
288
|
-
"summary": "Page",
|
|
289
|
-
"required": false,
|
|
290
|
-
"description": "Page",
|
|
291
|
-
"schema": {
|
|
292
|
-
"type": "string"
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"name": "pageSize",
|
|
297
|
-
"summary": "Page size",
|
|
298
|
-
"required": false,
|
|
299
|
-
"description": "Size of the page",
|
|
300
|
-
"schema": {
|
|
301
|
-
"type": "string"
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"name": "apartmentId",
|
|
306
|
-
"summary": "Apartment ID",
|
|
307
|
-
"required": false,
|
|
308
|
-
"description": "Apartment ID",
|
|
309
|
-
"schema": {
|
|
310
|
-
"type": "string"
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"name": "includeRelated",
|
|
315
|
-
"summary": "Include details",
|
|
316
|
-
"required": false,
|
|
317
|
-
"description": "Include details",
|
|
318
|
-
"schema": {
|
|
319
|
-
"type": "string"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"name": "includePriceElements",
|
|
324
|
-
"summary": "Include price elements",
|
|
325
|
-
"required": false,
|
|
326
|
-
"description": "Include price elements",
|
|
327
|
-
"schema": {
|
|
328
|
-
"type": "string"
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"name": "SMOOBU_API_KEY",
|
|
333
|
-
"summary": "API Key",
|
|
334
|
-
"required": false,
|
|
335
|
-
"description": "Smoobu API key",
|
|
336
|
-
"schema": {
|
|
337
|
-
"type": "string"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"name": "SMOOBU_API_ENDPOINT",
|
|
342
|
-
"summary": "API Endpoint",
|
|
343
|
-
"required": false,
|
|
344
|
-
"description": "Smoobu API endpoint",
|
|
345
|
-
"schema": {
|
|
346
|
-
"type": "string"
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
],
|
|
350
|
-
"x-events": [],
|
|
351
|
-
"responses": {
|
|
352
|
-
"200": {
|
|
353
|
-
"description": "List of reservations successfully retrieved from Smoobu",
|
|
354
|
-
"content": {
|
|
355
|
-
"application/json": {
|
|
356
|
-
"schema": {
|
|
357
|
-
"type": "object",
|
|
358
|
-
"description": "Paginated list of Smoobu reservations",
|
|
359
|
-
"properties": {
|
|
360
|
-
"data": {
|
|
361
|
-
"type": "array",
|
|
362
|
-
"description": "Array of reservation objects",
|
|
363
|
-
"items": {
|
|
364
|
-
"type": "object",
|
|
365
|
-
"properties": {
|
|
366
|
-
"id": {
|
|
367
|
-
"type": "string",
|
|
368
|
-
"description": "Reservation ID"
|
|
369
|
-
},
|
|
370
|
-
"arrival": {
|
|
371
|
-
"type": "string",
|
|
372
|
-
"description": "Arrival date"
|
|
373
|
-
},
|
|
374
|
-
"departure": {
|
|
375
|
-
"type": "string",
|
|
376
|
-
"description": "Departure date"
|
|
377
|
-
},
|
|
378
|
-
"guest_name": {
|
|
379
|
-
"type": "string",
|
|
380
|
-
"description": "Guest name"
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
"page": {
|
|
386
|
-
"type": "number",
|
|
387
|
-
"description": "Current page number"
|
|
388
|
-
},
|
|
389
|
-
"total": {
|
|
390
|
-
"type": "number",
|
|
391
|
-
"description": "Total number of reservations"
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
"data": [
|
|
395
|
-
{
|
|
396
|
-
"id": "123456",
|
|
397
|
-
"arrival": "2024-01-15",
|
|
398
|
-
"departure": "2024-01-20",
|
|
399
|
-
"guest_name": "John Doe"
|
|
400
|
-
}
|
|
401
|
-
],
|
|
402
|
-
"page": 1,
|
|
403
|
-
"total": 25
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
"components": {
|
|
414
|
-
"schemas": {}
|
|
415
|
-
},
|
|
416
|
-
"x-scene-blocks": {
|
|
417
|
-
"/event": {
|
|
418
|
-
"summary": "Smoobu reservation",
|
|
419
|
-
"description": "Management of events on reservations",
|
|
420
|
-
"tags": [
|
|
421
|
-
"service"
|
|
422
|
-
],
|
|
423
|
-
"metadata": [],
|
|
424
|
-
"parameters": [
|
|
425
|
-
{
|
|
426
|
-
"name": "updateRates",
|
|
427
|
-
"summary": "When updating rates",
|
|
428
|
-
"required": false,
|
|
429
|
-
"description": "Commands to execute when updating rates",
|
|
430
|
-
"schema": {
|
|
431
|
-
"type": "array",
|
|
432
|
-
"items": {
|
|
433
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"name": "newReservation",
|
|
439
|
-
"summary": "When a new reservation is made",
|
|
440
|
-
"required": false,
|
|
441
|
-
"description": "Commands to execute when a new reservation is made",
|
|
442
|
-
"schema": {
|
|
443
|
-
"type": "array",
|
|
444
|
-
"items": {
|
|
445
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"name": "cancelReservation",
|
|
451
|
-
"summary": "When a cancellation occurs",
|
|
452
|
-
"required": false,
|
|
453
|
-
"description": "Commands to execute when a cancellation occurs",
|
|
454
|
-
"schema": {
|
|
455
|
-
"type": "array",
|
|
456
|
-
"items": {
|
|
457
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
"name": "updateReservation",
|
|
463
|
-
"summary": "When updating a reservation",
|
|
464
|
-
"required": false,
|
|
465
|
-
"description": "Commands to execute when updating a reservation",
|
|
466
|
-
"schema": {
|
|
467
|
-
"type": "array",
|
|
468
|
-
"items": {
|
|
469
|
-
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
470
|
-
}
|
|
449
|
+
]
|
|
471
450
|
}
|
|
472
451
|
}
|
|
473
|
-
]
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
452
|
}
|