@wix/vibe-bookings-plugin 0.5.0 → 0.6.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 +17 -1
- package/dist/index.cjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -10706,6 +10706,20 @@ var BookingsServicesAPIClient = class {
|
|
|
10706
10706
|
var prompts = {
|
|
10707
10707
|
serviceGenerationProjectId: "aa29632e-2764-4b2a-997f-6f7a3ff6beb8"
|
|
10708
10708
|
};
|
|
10709
|
+
var bookingServicesDetailsExample = {
|
|
10710
|
+
items: [
|
|
10711
|
+
{
|
|
10712
|
+
type: "COURSE",
|
|
10713
|
+
name: "Service name",
|
|
10714
|
+
description: "Service description",
|
|
10715
|
+
location: "business address",
|
|
10716
|
+
tagline: "Service tagline",
|
|
10717
|
+
keyword: "Service keyword",
|
|
10718
|
+
price: 99,
|
|
10719
|
+
duration: 60
|
|
10720
|
+
}
|
|
10721
|
+
]
|
|
10722
|
+
};
|
|
10709
10723
|
var ContentInjectionService = class {
|
|
10710
10724
|
constructor(env) {
|
|
10711
10725
|
this.env = env;
|
|
@@ -10717,11 +10731,13 @@ var ContentInjectionService = class {
|
|
|
10717
10731
|
async generateServices() {
|
|
10718
10732
|
const businessDescription = this.env.userRequest;
|
|
10719
10733
|
const lng = "English";
|
|
10734
|
+
const responseExample = JSON.stringify(bookingServicesDetailsExample, null, 2);
|
|
10720
10735
|
const response = await this.llmService.generateObjectByProject(
|
|
10721
10736
|
prompts.serviceGenerationProjectId,
|
|
10722
10737
|
{
|
|
10723
10738
|
businessDescription,
|
|
10724
|
-
lng
|
|
10739
|
+
lng,
|
|
10740
|
+
responseExample
|
|
10725
10741
|
}
|
|
10726
10742
|
);
|
|
10727
10743
|
if (!response) {
|