@wix/agent-skills 1.9.0 → 1.11.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.
Files changed (47) hide show
  1. package/package.json +4 -1
  2. package/skills/wix-headless/references/DESIGN_SYSTEM.md +6 -16
  3. package/skills/wix-headless/references/astro/bookings/COMPONENTS.md +1 -1
  4. package/skills/wix-headless/references/astro/bookings/SERVICES_PAGES.md +19 -0
  5. package/skills/wix-headless/references/astro/cms/FAQ_KNOWLEDGE_BASE.md +2 -2
  6. package/skills/wix-headless/references/astro/designer/INSTRUCTIONS.md +3 -3
  7. package/skills/wix-headless/references/astro/ecom/CART_WIRING.md +2 -2
  8. package/skills/wix-headless/references/astro/ecom/COMPONENTS_CSS.md +3 -3
  9. package/skills/wix-headless/references/astro/gift-cards/COMPONENTS.md +2 -2
  10. package/skills/wix-headless/references/astro/stores/BACK_IN_STOCK.md +7 -7
  11. package/skills/wix-headless/references/astro/stores/COMPONENTS_CSS.md +4 -4
  12. package/skills/wix-headless/references/astro/stores/PRODUCT_PAGES.md +2 -2
  13. package/skills/wix-headless/references/astro/templates/Footer.astro +4 -4
  14. package/skills/wix-headless/references/astro/templates/Navigation.astro +4 -4
  15. package/skills/wix-headless/references/astro/templates/bookings/AvailabilityCalendar.tsx +147 -6
  16. package/skills/wix-headless/references/astro/templates/bookings/ServiceBookingFlow.tsx +21 -4
  17. package/skills/wix-headless/references/astro/templates/bookings/ServiceCard.astro +11 -2
  18. package/skills/wix-headless/references/astro/templates/bookings/booking-confirmation.astro +8 -8
  19. package/skills/wix-headless/references/astro/templates/bookings/components-bookings.css +94 -26
  20. package/skills/wix-headless/references/astro/templates/bookings/services/[slug].astro +53 -10
  21. package/skills/wix-headless/references/astro/templates/bookings/services/index.astro +128 -20
  22. package/skills/wix-headless/references/astro/templates/ecom/CartView.tsx +3 -3
  23. package/skills/wix-headless/references/astro/templates/ecom/cart.astro +3 -3
  24. package/skills/wix-headless/references/astro/templates/ecom/components-ecom.css +17 -17
  25. package/skills/wix-headless/references/astro/templates/ecom/thank-you.astro +3 -3
  26. package/skills/wix-headless/references/astro/templates/gift-cards/_home-teaser-snippet.astro +4 -4
  27. package/skills/wix-headless/references/astro/templates/gift-cards/components-gift-cards.css +19 -18
  28. package/skills/wix-headless/references/astro/templates/gift-cards/gift-cards.astro +3 -3
  29. package/skills/wix-headless/references/astro/templates/global.css +17 -15
  30. package/skills/wix-headless/references/astro/templates/index.astro +4 -4
  31. package/skills/wix-headless/references/astro/templates/stores/components-stores.css +31 -31
  32. package/skills/wix-headless/references/astro/templates/stores/products/[slug].astro +4 -4
  33. package/skills/wix-headless/references/bookings/FLOW.md +93 -32
  34. package/skills/wix-headless/references/bookings/INSTRUCTIONS.md +8 -3
  35. package/skills/wix-headless/references/bookings/SERVICES_DATA.md +60 -0
  36. package/skills/wix-headless/references/custom/bookings/WIRING.md +60 -9
  37. package/skills/wix-headless/references/shared/DESIGN_MD.md +2 -3
  38. package/skills/wix-headless/references/shared/IMPLEMENTER.md +4 -4
  39. package/skills/wix-headless/references/shared/STYLING.md +15 -18
  40. package/skills/wix-headless/references/stores/INSTRUCTIONS.md +2 -2
  41. package/skills/wix-headless/references/verticals/bookings.md +5 -3
  42. package/skills/wix-headless/scripts/compose.mjs +4 -19
  43. package/skills/wix-headless/scripts/emit-design-tokens.mjs +0 -3
  44. package/skills/wix-manage/references/bookings/create-appointment-service.md +3 -28
  45. package/skills/wix-manage/references/bookings/create-booking-service-from-prompt.md +1 -8
  46. package/skills/wix-manage/references/bookings/create-class-service.md +3 -28
  47. package/skills/wix-manage/references/bookings/create-course-service.md +3 -28
@@ -14,7 +14,6 @@ description: "Create a course booking service — e.g. 'create a 6-week photogra
14
14
 
15
15
  ## Prerequisites
16
16
 
17
- - **Wix Bookings app installed** (App ID: `13d21c63-b5ec-5912-8397-c3a5ddb27a97`). Use [List Installed Apps](../app-installation/list-installed-apps.md) to verify, and [Install Wix Apps](../app-installation/install-wix-apps.md) to install if missing.
18
17
  - For full API field definitions, validation rules, and troubleshooting, see [Create and Update Booking Services](./create-and-update-booking-services.md)
19
18
 
20
19
  ---
@@ -32,16 +31,7 @@ curl -X POST 'https://www.wixapis.com/bookings/v2/categories/query' \
32
31
  -d '{ "query": {} }'
33
32
  ```
34
33
 
35
- ### 1b. Get Site Currency
36
-
37
- ```bash
38
- curl -X GET 'https://www.wixapis.com/site-properties/v4/properties' \
39
- -H 'Authorization: <AUTH>'
40
- ```
41
-
42
- Extract `properties.paymentCurrency`. Fall back to `USD` if unavailable.
43
-
44
- ### 1c. Query Existing Services (Duplicate Check)
34
+ ### 1b. Query Existing Services (Duplicate Check)
45
35
 
46
36
  ```bash
47
37
  curl -X POST 'https://www.wixapis.com/bookings/v2/services/query' \
@@ -67,7 +57,6 @@ For any fields the user did not explicitly specify:
67
57
 
68
58
  ### Pricing (if not specified)
69
59
 
70
- - Use the site's currency from Step 1b
71
60
  - If user specifies a price → `rateType: "FIXED"` (for the entire course)
72
61
  - If user says "free" → `rateType: "NO_FEE"`, `options.inPerson: true`, `options.online: false`
73
62
  - If no price mentioned → infer from context (workshops ~$100-300, training programs ~$200-500, bootcamps ~$150-400) or default to free
@@ -120,7 +109,7 @@ curl -X POST 'https://www.wixapis.com/bookings/v2/bulk/services/create' \
120
109
  "rateType": "FIXED",
121
110
  "options": { "online": true, "inPerson": false },
122
111
  "fixed": {
123
- "price": { "value": "<PRICE>", "currency": "<CURRENCY>" }
112
+ "price": { "value": "<PRICE>" }
124
113
  }
125
114
  },
126
115
  "category": {
@@ -167,19 +156,7 @@ Save the `serviceId` from the response: `results[0].item.service.id`
167
156
 
168
157
  ---
169
158
 
170
- ## Step 4: Navigate to Service Form
171
-
172
- Use the **RUN_IN_BROWSER** tool to navigate the user to the service form for final review:
173
-
174
- ```javascript
175
- window.location.href = `/bookings/services/form/${serviceId}?fromAria=true`;
176
- ```
177
-
178
- This executes in the user's browser and redirects them to the service editing page.
179
-
180
- ---
181
-
182
- ## Step 5: Summary Message
159
+ ## Step 4: Summary Message
183
160
 
184
161
  Provide a summary including:
185
162
 
@@ -209,7 +186,6 @@ Provide a summary including:
209
186
 
210
187
  | Error | Cause | Action |
211
188
  |---|---|---|
212
- | 428 "App not installed" | Bookings not installed | Install using [Install Wix Apps](../app-installation/install-wix-apps.md) |
213
189
  | 400 "INVALID_PAYMENT_OPTIONS" | Payment misconfigured | Free: `inPerson: true`, `online: false`. Paid: price > 0 |
214
190
  | 403 | Permission denied | Inform user they lack permission |
215
191
 
@@ -244,6 +220,5 @@ Provide a summary including:
244
220
  - [Query Categories](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/categories-v2/query-categories)
245
221
  - [Create Category](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/categories-v2/create-category)
246
222
  - [Bulk Create Events](https://dev.wix.com/docs/api-reference/business-management/calendar/events-v3/bulk-create-event)
247
- - [Site Properties](https://dev.wix.com/docs/api-reference/business-management/site-management/site-properties/properties/read)
248
223
  - [About Service Types](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-service-types)
249
224
  - [About Service Payments](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/about-service-payments)