@wix/vibe-bookings-plugin 0.8.0 → 0.10.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 +16 -8
- package/dist/index.cjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4282,7 +4282,9 @@ var LLMService = class {
|
|
|
4282
4282
|
return this.jsonParserService.parseJson(response);
|
|
4283
4283
|
}
|
|
4284
4284
|
async generateImage(basePrompt, options) {
|
|
4285
|
-
|
|
4285
|
+
const imageUrl = await this.env.generateImage(basePrompt, options);
|
|
4286
|
+
this.env.logger.debug("Generated image URL", { imageUrl });
|
|
4287
|
+
return imageUrl;
|
|
4286
4288
|
}
|
|
4287
4289
|
};
|
|
4288
4290
|
|
|
@@ -12209,7 +12211,9 @@ var StaffMembersAPIClient = class {
|
|
|
12209
12211
|
}
|
|
12210
12212
|
async queryStaffMembers(limit = 10) {
|
|
12211
12213
|
const client = await this.createStaffMembersClient();
|
|
12212
|
-
const response = await client.staffMembers.queryStaffMembers(
|
|
12214
|
+
const response = await client.staffMembers.queryStaffMembers({
|
|
12215
|
+
fields: [es_exports2.RequestedFields.RESOURCE_DETAILS]
|
|
12216
|
+
}).limit(limit).find();
|
|
12213
12217
|
return response;
|
|
12214
12218
|
}
|
|
12215
12219
|
};
|
|
@@ -12278,12 +12282,16 @@ var ContentInjectionService = class {
|
|
|
12278
12282
|
return createServicesResponse;
|
|
12279
12283
|
}
|
|
12280
12284
|
async generateServiceImages(services) {
|
|
12281
|
-
const servicesWithImages =
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12285
|
+
const servicesWithImages = await Promise.all(
|
|
12286
|
+
services.map(async (service) => {
|
|
12287
|
+
const imageUrl = await this.generateServiceImage(service);
|
|
12288
|
+
return {
|
|
12289
|
+
...service,
|
|
12290
|
+
imageUrl
|
|
12291
|
+
};
|
|
12292
|
+
})
|
|
12293
|
+
);
|
|
12294
|
+
return servicesWithImages;
|
|
12287
12295
|
}
|
|
12288
12296
|
async generateServiceImage(service) {
|
|
12289
12297
|
const photoThemePromptSection = this.env.PHOTO_THEME ? dedent_default`The Photo Theme is:
|