@wix/motion 1.0.39 → 1.0.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/motion",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/motion_alarms": "1.0.8",
21
+ "@wix/motion_alarms": "1.0.9",
22
22
  "@wix/motion_metroinspector": "1.0.5",
23
23
  "@wix/motion_products": "1.0.8"
24
24
  },
@@ -45,5 +45,5 @@
45
45
  "fqdn": ""
46
46
  }
47
47
  },
48
- "falconPackageHash": "618c0372961d899242c8295b4f95a23c77914c34c8283af99e1684d9"
48
+ "falconPackageHash": "d739a008ec8fde53fc7bfe180a1e14ae7e2abe27c306dc056b586bd6"
49
49
  }
@@ -153,7 +153,59 @@ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?
153
153
  type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
154
154
  type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
155
155
 
156
+ /**
157
+ * Creates a booking.
158
+ *
159
+ *
160
+ * To create a booking for an appointment or a session of a class, pass a booking with the relevant `slot`.
161
+ *
162
+ * To create a booking for the entire course, pass a booking with the relevant `schedule`.
163
+ * You can use Query Availability to check the availability beforehand.
164
+ *
165
+ * If you create a booking for an existing session, we recommend that you only pass `slot.sessionId`.
166
+ * Then, any specified slot details are calculated.
167
+ *
168
+ * If you create a booking for a new session, we recommend to call Query Availability first.
169
+ * Then, pass the retrieved `availability.slot` object as the BookedEntity.Slot of the booking in the request.
170
+ *
171
+ * Bookings are created with a status of `CREATED`.
172
+ * `CREATED` bookings don't appear on the business calendar and don't affect a related schedule's availability.
173
+ *
174
+ * To create a booking with a given status, pass a booking with the wanted status.
175
+ * This is only permitted for site Owners.
176
+ *
177
+ * You can pass a `participantNotification.message` to notify the customer of the booking with a message.
178
+ * It's also necessary to pass `participantNotification.notifyParticipants`as `true` to send the message.
179
+ *
180
+ * You can pass `sendSmsReminder` as `true`, if you want an SMS reminder to be sent to the phone number specified in the ContactDetails, 24 hours before the session starts.
181
+ *
182
+ * When creating a booking you must pass either `participantsChoices` or `totalParticipants`. If you pass `participantsChoices`, all the
183
+ * provided choices must exist for the service, otherwise the call returns an `INVALID_SERVICE_CHOICES` error.
184
+ *
185
+ * When creating a booking, you can pass `selectedPaymentOption`.
186
+ * This specifies which payment method the customer plans to use.
187
+ * But it's possible for them to later use another supported payment method.
188
+ *
189
+ * You can skip the checkout and payment flow if you call Confirm Or Decline Booking otherwise, after you create the booking, you can use the
190
+ * Wix eCommerce APIs (coming soon) for the checkout and payment flow or use a different service for checkout.
191
+ * @param booking - The booking to create.
192
+ * @public
193
+ * @documentationMaturity preview
194
+ * @requiredField booking
195
+ * @requiredField booking.additionalFields._id
196
+ * @requiredField booking.bookedEntity
197
+ * @permissionScope Manage Bookings
198
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
199
+ * @permissionScope Manage Bookings - all permissions
200
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
201
+ * @applicableIdentity APP
202
+ * @applicableIdentity MEMBER
203
+ * @applicableIdentity VISITOR
204
+ */
156
205
  declare function alarm$1(httpClient: HttpClient): (seconds: number, options?: AlarmOptions) => Promise<AlarmResponse>;
206
+ /**
207
+ * Another thing
208
+ */
157
209
  declare function updateAlarm$1(httpClient: HttpClient): (_id: string, alarm: UpdateAlarm) => Promise<UpdateAlarmResponse & UpdateAlarmResponseNonNullableFields>;
158
210
  declare const onAlarmTriggered$1: EventDefinition<AlarmTriggeredEnvelope, "wix.alarm.v1.alarm_alarm_triggered">;
159
211
  declare const onAlarmSnoozed$1: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;
@@ -246,7 +246,59 @@ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?
246
246
  declare const __metadata$2: {
247
247
  PACKAGE_NAME: string;
248
248
  };
249
+ /**
250
+ * Creates a booking.
251
+ *
252
+ *
253
+ * To create a booking for an appointment or a session of a class, pass a booking with the relevant `slot`.
254
+ *
255
+ * To create a booking for the entire course, pass a booking with the relevant `schedule`.
256
+ * You can use Query Availability to check the availability beforehand.
257
+ *
258
+ * If you create a booking for an existing session, we recommend that you only pass `slot.sessionId`.
259
+ * Then, any specified slot details are calculated.
260
+ *
261
+ * If you create a booking for a new session, we recommend to call Query Availability first.
262
+ * Then, pass the retrieved `availability.slot` object as the BookedEntity.Slot of the booking in the request.
263
+ *
264
+ * Bookings are created with a status of `CREATED`.
265
+ * `CREATED` bookings don't appear on the business calendar and don't affect a related schedule's availability.
266
+ *
267
+ * To create a booking with a given status, pass a booking with the wanted status.
268
+ * This is only permitted for site Owners.
269
+ *
270
+ * You can pass a `participantNotification.message` to notify the customer of the booking with a message.
271
+ * It's also necessary to pass `participantNotification.notifyParticipants`as `true` to send the message.
272
+ *
273
+ * You can pass `sendSmsReminder` as `true`, if you want an SMS reminder to be sent to the phone number specified in the ContactDetails, 24 hours before the session starts.
274
+ *
275
+ * When creating a booking you must pass either `participantsChoices` or `totalParticipants`. If you pass `participantsChoices`, all the
276
+ * provided choices must exist for the service, otherwise the call returns an `INVALID_SERVICE_CHOICES` error.
277
+ *
278
+ * When creating a booking, you can pass `selectedPaymentOption`.
279
+ * This specifies which payment method the customer plans to use.
280
+ * But it's possible for them to later use another supported payment method.
281
+ *
282
+ * You can skip the checkout and payment flow if you call Confirm Or Decline Booking otherwise, after you create the booking, you can use the
283
+ * Wix eCommerce APIs (coming soon) for the checkout and payment flow or use a different service for checkout.
284
+ * @param booking - The booking to create.
285
+ * @public
286
+ * @documentationMaturity preview
287
+ * @requiredField booking
288
+ * @requiredField booking.additionalFields._id
289
+ * @requiredField booking.bookedEntity
290
+ * @permissionScope Manage Bookings
291
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
292
+ * @permissionScope Manage Bookings - all permissions
293
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
294
+ * @applicableIdentity APP
295
+ * @applicableIdentity MEMBER
296
+ * @applicableIdentity VISITOR
297
+ */
249
298
  declare function alarm(httpClient: HttpClient): (seconds: number, options?: AlarmOptions) => Promise<AlarmResponse>;
299
+ /**
300
+ * Another thing
301
+ */
250
302
  declare function updateAlarm(httpClient: HttpClient): (_id: string, alarm: UpdateAlarm) => Promise<UpdateAlarmResponse & UpdateAlarmResponseNonNullableFields>;
251
303
  declare const onAlarmTriggered: EventDefinition<AlarmTriggeredEnvelope, "wix.alarm.v1.alarm_alarm_triggered">;
252
304
  declare const onAlarmSnoozed: EventDefinition<AlarmSnoozedEnvelope, "wix.alarm.v1.alarm_alarm_snoozed">;