@digipair/skill-smoobu 0.28.14 → 0.29.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -23489,14 +23489,14 @@ function indent(str, spaces) {
23489
23489
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23490
23490
  // match is required
23491
23491
  if (!match) {
23492
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23492
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23493
23493
  v: nextMatch1
23494
23494
  };
23495
23495
  }
23496
23496
  var token = match.token, offset = match.offset;
23497
23497
  i1 += offset;
23498
23498
  if (token === " ") {
23499
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23499
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23500
23500
  }
23501
23501
  tokens1 = _to_consumable_array$1(tokens1).concat([
23502
23502
  token
@@ -23515,7 +23515,7 @@ function indent(str, spaces) {
23515
23515
  if (contextKeys.some(function(el) {
23516
23516
  return el.startsWith(name);
23517
23517
  })) {
23518
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23518
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23519
23519
  }
23520
23520
  if (dateTimeIdentifiers.some(function(el) {
23521
23521
  return el === name;
@@ -23534,9 +23534,9 @@ function indent(str, spaces) {
23534
23534
  if (dateTimeIdentifiers.some(function(el) {
23535
23535
  return el.startsWith(name);
23536
23536
  })) {
23537
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23537
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23538
23538
  }
23539
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23539
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23540
23540
  v: nextMatch1
23541
23541
  };
23542
23542
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-smoobu",
3
- "version": "0.28.14",
3
+ "version": "0.29.4",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.en.json ADDED
@@ -0,0 +1,334 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-smoobu",
5
+ "summary": "Management of rentals via Smoobu",
6
+ "description": "This skill allows the use of the Smoobu service",
7
+ "version": "0.1.0",
8
+ "x-icon": "🏡"
9
+ },
10
+ "paths": {
11
+ "/getReservationWithId": {
12
+ "post": {
13
+ "tags": ["service"],
14
+ "summary": "Information about a Smoobu reservation",
15
+ "parameters": [
16
+ {
17
+ "name": "reservationId",
18
+ "summary": "Reservation ID",
19
+ "required": true,
20
+ "description": "Smoobu reservation ID",
21
+ "schema": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ {
26
+ "name": "SMOOBU_API_KEY",
27
+ "summary": "API Key",
28
+ "required": false,
29
+ "description": "Smoobu API key",
30
+ "schema": {
31
+ "type": "string"
32
+ }
33
+ },
34
+ {
35
+ "name": "SMOOBU_API_ENDPOINT",
36
+ "summary": "API Endpoint",
37
+ "required": false,
38
+ "description": "Smoobu API endpoint",
39
+ "schema": {
40
+ "type": "string"
41
+ }
42
+ }
43
+ ],
44
+ "x-events": []
45
+ }
46
+ },
47
+ "/sendMessage": {
48
+ "post": {
49
+ "tags": ["service"],
50
+ "summary": "Send a message via Smoobu",
51
+ "parameters": [
52
+ {
53
+ "name": "reservationId",
54
+ "summary": "Reservation ID",
55
+ "required": true,
56
+ "description": "Smoobu reservation ID",
57
+ "schema": {
58
+ "type": "string"
59
+ }
60
+ },
61
+ {
62
+ "name": "message",
63
+ "summary": "Message",
64
+ "required": true,
65
+ "description": "Message to send",
66
+ "schema": {
67
+ "type": "string"
68
+ }
69
+ },
70
+ {
71
+ "name": "SMOOBU_API_KEY",
72
+ "summary": "API Key",
73
+ "required": false,
74
+ "description": "Smoobu API key",
75
+ "schema": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ {
80
+ "name": "SMOOBU_API_ENDPOINT",
81
+ "summary": "API Endpoint",
82
+ "required": false,
83
+ "description": "Smoobu API endpoint",
84
+ "schema": {
85
+ "type": "string"
86
+ }
87
+ }
88
+ ],
89
+ "x-events": []
90
+ }
91
+ },
92
+ "/getAllReservations": {
93
+ "post": {
94
+ "tags": ["service"],
95
+ "summary": "List of Smoobu reservations",
96
+ "parameters": [
97
+ {
98
+ "name": "created_from",
99
+ "summary": "Created from",
100
+ "required": false,
101
+ "description": "Creation date from",
102
+ "schema": {
103
+ "type": "string"
104
+ }
105
+ },
106
+ {
107
+ "name": "created_to",
108
+ "summary": "Created until",
109
+ "required": false,
110
+ "description": "Creation date until",
111
+ "schema": {
112
+ "type": "string"
113
+ }
114
+ },
115
+ {
116
+ "name": "from",
117
+ "summary": "Start",
118
+ "required": false,
119
+ "description": "Start date",
120
+ "schema": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ {
125
+ "name": "to",
126
+ "summary": "End",
127
+ "required": false,
128
+ "description": "End date",
129
+ "schema": {
130
+ "type": "string"
131
+ }
132
+ },
133
+ {
134
+ "name": "modifiedFrom",
135
+ "summary": "Modified from",
136
+ "required": false,
137
+ "description": "Modification date from",
138
+ "schema": {
139
+ "type": "string"
140
+ }
141
+ },
142
+ {
143
+ "name": "modifiedTo",
144
+ "summary": "Modified until",
145
+ "required": false,
146
+ "description": "Modification date until",
147
+ "schema": {
148
+ "type": "string"
149
+ }
150
+ },
151
+ {
152
+ "name": "arrivalFrom",
153
+ "summary": "Arrival from",
154
+ "required": false,
155
+ "description": "Arrival date from",
156
+ "schema": {
157
+ "type": "string"
158
+ }
159
+ },
160
+ {
161
+ "name": "arrivalTo",
162
+ "summary": "Arrival until",
163
+ "required": false,
164
+ "description": "Arrival date until",
165
+ "schema": {
166
+ "type": "string"
167
+ }
168
+ },
169
+ {
170
+ "name": "departureFrom",
171
+ "summary": "Departure from",
172
+ "required": false,
173
+ "description": "Departure date from",
174
+ "schema": {
175
+ "type": "string"
176
+ }
177
+ },
178
+ {
179
+ "name": "departureTo",
180
+ "summary": "Departure until",
181
+ "required": false,
182
+ "description": "Departure date until",
183
+ "schema": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ {
188
+ "name": "showCancellation",
189
+ "summary": "Show cancellations",
190
+ "required": false,
191
+ "description": "Show cancellations",
192
+ "schema": {
193
+ "type": "string"
194
+ }
195
+ },
196
+ {
197
+ "name": "excludeBlocked",
198
+ "summary": "Exclude blocked",
199
+ "required": false,
200
+ "description": "Exclude blocked",
201
+ "schema": {
202
+ "type": "string"
203
+ }
204
+ },
205
+ {
206
+ "name": "page",
207
+ "summary": "Page",
208
+ "required": false,
209
+ "description": "Page",
210
+ "schema": {
211
+ "type": "string"
212
+ }
213
+ },
214
+ {
215
+ "name": "pageSize",
216
+ "summary": "Page size",
217
+ "required": false,
218
+ "description": "Size of the page",
219
+ "schema": {
220
+ "type": "string"
221
+ }
222
+ },
223
+ {
224
+ "name": "apartmentId",
225
+ "summary": "Apartment ID",
226
+ "required": false,
227
+ "description": "Apartment ID",
228
+ "schema": {
229
+ "type": "string"
230
+ }
231
+ },
232
+ {
233
+ "name": "includeRelated",
234
+ "summary": "Include details",
235
+ "required": false,
236
+ "description": "Include details",
237
+ "schema": {
238
+ "type": "string"
239
+ }
240
+ },
241
+ {
242
+ "name": "includePriceElements",
243
+ "summary": "Include price elements",
244
+ "required": false,
245
+ "description": "Include price elements",
246
+ "schema": {
247
+ "type": "string"
248
+ }
249
+ },
250
+ {
251
+ "name": "SMOOBU_API_KEY",
252
+ "summary": "API Key",
253
+ "required": false,
254
+ "description": "Smoobu API key",
255
+ "schema": {
256
+ "type": "string"
257
+ }
258
+ },
259
+ {
260
+ "name": "SMOOBU_API_ENDPOINT",
261
+ "summary": "API Endpoint",
262
+ "required": false,
263
+ "description": "Smoobu API endpoint",
264
+ "schema": {
265
+ "type": "string"
266
+ }
267
+ }
268
+ ],
269
+ "x-events": []
270
+ }
271
+ }
272
+ },
273
+ "components": {
274
+ "schemas": {}
275
+ },
276
+ "x-scene-blocks": {
277
+ "/event": {
278
+ "summary": "Smoobu reservation",
279
+ "description": "Management of events on reservations",
280
+ "tags": ["service"],
281
+ "metadata": [],
282
+ "parameters": [
283
+ {
284
+ "name": "updateRates",
285
+ "summary": "When updating rates",
286
+ "required": false,
287
+ "description": "Commands to execute when updating rates",
288
+ "schema": {
289
+ "type": "array",
290
+ "items": {
291
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
292
+ }
293
+ }
294
+ },
295
+ {
296
+ "name": "newReservation",
297
+ "summary": "When a new reservation is made",
298
+ "required": false,
299
+ "description": "Commands to execute when a new reservation is made",
300
+ "schema": {
301
+ "type": "array",
302
+ "items": {
303
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
304
+ }
305
+ }
306
+ },
307
+ {
308
+ "name": "cancelReservation",
309
+ "summary": "When a cancellation occurs",
310
+ "required": false,
311
+ "description": "Commands to execute when a cancellation occurs",
312
+ "schema": {
313
+ "type": "array",
314
+ "items": {
315
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
316
+ }
317
+ }
318
+ },
319
+ {
320
+ "name": "updateReservation",
321
+ "summary": "When updating a reservation",
322
+ "required": false,
323
+ "description": "Commands to execute when updating a reservation",
324
+ "schema": {
325
+ "type": "array",
326
+ "items": {
327
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
328
+ }
329
+ }
330
+ }
331
+ ]
332
+ }
333
+ }
334
+ }