@wix/vibe-bookings-plugin 0.9.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 +13 -7
- 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
|
|
|
@@ -12280,12 +12282,16 @@ var ContentInjectionService = class {
|
|
|
12280
12282
|
return createServicesResponse;
|
|
12281
12283
|
}
|
|
12282
12284
|
async generateServiceImages(services) {
|
|
12283
|
-
const servicesWithImages =
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
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;
|
|
12289
12295
|
}
|
|
12290
12296
|
async generateServiceImage(service) {
|
|
12291
12297
|
const photoThemePromptSection = this.env.PHOTO_THEME ? dedent_default`The Photo Theme is:
|