@wix/vibe-bookings-plugin 0.47.0 → 0.48.0
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/index.cjs +8 -15
- package/dist/index.cjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -12461,17 +12461,6 @@ function mapBookingServiceDetailsToServerService(details) {
|
|
|
12461
12461
|
tagLine: details.tagline,
|
|
12462
12462
|
onlineBooking: { enabled: true },
|
|
12463
12463
|
hidden: false,
|
|
12464
|
-
locations: [
|
|
12465
|
-
{
|
|
12466
|
-
type: es_exports2.LocationType.CUSTOM,
|
|
12467
|
-
custom: {
|
|
12468
|
-
address: {
|
|
12469
|
-
addressLine1: "Business location",
|
|
12470
|
-
formatted: "Business location"
|
|
12471
|
-
}
|
|
12472
|
-
}
|
|
12473
|
-
}
|
|
12474
|
-
],
|
|
12475
12464
|
...details.image && {
|
|
12476
12465
|
media: {
|
|
12477
12466
|
mainMedia: {
|
|
@@ -13069,7 +13058,7 @@ function eventHandlersModules(getAuthStrategy) {
|
|
|
13069
13058
|
async process(jwt, opts = {
|
|
13070
13059
|
expectedEvents: []
|
|
13071
13060
|
}) {
|
|
13072
|
-
const { eventType, identity, instanceId, payload } = await this.parseJWT(jwt);
|
|
13061
|
+
const { eventType, identity, instanceId, payload, accountInfo } = await this.parseJWT(jwt);
|
|
13073
13062
|
const allExpectedEvents = [
|
|
13074
13063
|
...opts.expectedEvents,
|
|
13075
13064
|
...Array.from(eventHandlers.keys()).map((type) => ({ type }))
|
|
@@ -13080,13 +13069,15 @@ function eventHandlersModules(getAuthStrategy) {
|
|
|
13080
13069
|
const handlers = eventHandlers.get(eventType) ?? [];
|
|
13081
13070
|
await Promise.all(handlers.map(({ eventDefinition, handler }) => runHandler(eventDefinition, handler, payload, {
|
|
13082
13071
|
instanceId,
|
|
13083
|
-
identity
|
|
13072
|
+
identity,
|
|
13073
|
+
accountInfo
|
|
13084
13074
|
})));
|
|
13085
13075
|
return {
|
|
13086
13076
|
instanceId,
|
|
13087
13077
|
eventType,
|
|
13088
13078
|
payload,
|
|
13089
|
-
identity
|
|
13079
|
+
identity,
|
|
13080
|
+
accountInfo
|
|
13090
13081
|
};
|
|
13091
13082
|
},
|
|
13092
13083
|
async processRequest(request, opts) {
|
|
@@ -13107,6 +13098,7 @@ function eventHandlersModules(getAuthStrategy) {
|
|
|
13107
13098
|
}
|
|
13108
13099
|
const parsedDecoded = JSON.parse(decoded.data);
|
|
13109
13100
|
const eventType = parsedDecoded.eventType;
|
|
13101
|
+
const accountInfo = parsedDecoded.accountInfo;
|
|
13110
13102
|
const instanceId = parsedDecoded.instanceId;
|
|
13111
13103
|
const identity = parsedDecoded.identity ? JSON.parse(parsedDecoded.identity) : void 0;
|
|
13112
13104
|
const payload = JSON.parse(parsedDecoded.data);
|
|
@@ -13114,7 +13106,8 @@ function eventHandlersModules(getAuthStrategy) {
|
|
|
13114
13106
|
instanceId,
|
|
13115
13107
|
eventType,
|
|
13116
13108
|
payload,
|
|
13117
|
-
identity
|
|
13109
|
+
identity,
|
|
13110
|
+
accountInfo
|
|
13118
13111
|
};
|
|
13119
13112
|
},
|
|
13120
13113
|
async parseRequest(request) {
|