@v-office/website-sdk 2.36.0 → 2.36.1

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/cli.mjs CHANGED
@@ -17,7 +17,7 @@ var CLICheckFailed = class extends Error {
17
17
  const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "2.36.0";
20
+ var version = "2.36.1";
21
21
  //#endregion
22
22
  //#region src/cli/output.ts
23
23
  const toJson = (value) => Effect.try({
@@ -4,6 +4,7 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/2.36.1/CHANGELOG.md`: release notes for 2.36.1
7
8
  - `versions/2.36.0/CHANGELOG.md`: release notes for 2.36.0
8
9
  - `versions/2.35.0/CHANGELOG.md`: release notes for 2.35.0
9
10
  - `versions/2.34.0/CHANGELOG.md`: release notes for 2.34.0
@@ -4,6 +4,7 @@
4
4
 
5
5
  Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
6
6
 
7
+ - `versions/2.36.1/MIGRATION.md`: Migration: 2.36.0 to 2.36.1
7
8
  - `versions/2.36.0/MIGRATION.md`: Migration: 2.35.0 to 2.36.0
8
9
  - `versions/2.35.0/MIGRATION.md`: Migration: 2.34.0 to 2.35.0
9
10
  - `versions/2.34.0/MIGRATION.md`: Migration: 2.33.0 to 2.34.0
@@ -297,10 +297,24 @@ Additional services are exposed on an available quote as `quote.additionalServic
297
297
  "available": true,
298
298
  "proposedQuantity": 1,
299
299
  "maxPerBooking": 1,
300
- "description": "Bed linen package"
300
+ "description": "Bed linen package",
301
+ "images": [{ "src": "https://…/linen.jpg", "alt": "Bed linen" }]
301
302
  }
302
303
  ```
303
304
 
305
+ `description` and `images` are optional. Render them whenever the quote carries
306
+ them, and never replace them with descriptions or pictures written into the site:
307
+
308
+ - `v9`: both come from the service's entry in the be-on! Hub for the site's be-on
309
+ key (`apiKey`). A service without a description or images in the Hub has none on
310
+ the quote. When the user wants extras with descriptions or images, do not add
311
+ them to the site, and do not show stock or placeholder photos instead. Tell the
312
+ user to maintain description and images per service in the be-on! Hub. Also tell
313
+ them that the demo hub and the production hub keep these entries separately:
314
+ what is maintained in the demo hub during development has to be entered again
315
+ in the production hub at launch, or the live site shows the extras without them.
316
+ - `v10`: the PMS sends neither; additional services have a label and a price only.
317
+
304
318
  When the backend provides a line amount for an optional service, it is exposed as `proposedQuantity` (including `0`). By default this is informational only and is not added to the quote. Set `shouldAddProposedAdditionalServiceAmount: true` in `WebsiteSDKOptions` to automatically select proposed quantities greater than zero when the quote is created.
305
319
 
306
320
  Use the service `id` to add or remove a service selection:
@@ -0,0 +1,15 @@
1
+ # Changelog: 2.36.1
2
+
3
+ A documentation release: where the description and images of additional services come from.
4
+
5
+ ## Changed
6
+
7
+ - `../../quote.md`, Additional Services: on v9, `description` and `images` of an additional
8
+ service come from its entry in the be-on! Hub. Render them when present instead of writing
9
+ descriptions or pictures into the site. When extras should get descriptions or images, they
10
+ are maintained in the Hub, in the demo hub during development and once more in the production
11
+ hub at launch. On v10 additional services carry neither.
12
+
13
+ ## Migration Impact
14
+
15
+ - No runtime behavior or public API changes.
@@ -0,0 +1,13 @@
1
+ # Migration: 2.36.0 to 2.36.1
2
+
3
+ No changes required.
4
+
5
+ A v9 site that shows its own descriptions, stock photos or placeholders for additional services
6
+ should render `description` and `images` from the quote instead, and the user should maintain them
7
+ per service in the be-on! Hub (demo hub and production hub).
8
+
9
+ ## 1. Upgrade
10
+
11
+ ```sh
12
+ pnpm add @v-office/website-sdk@2.36.1
13
+ ```
@@ -4,6 +4,7 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/2.36.1/CHANGELOG.md`: release notes for 2.36.1
7
8
  - `versions/2.36.0/CHANGELOG.md`: release notes for 2.36.0
8
9
  - `versions/2.35.0/CHANGELOG.md`: release notes for 2.35.0
9
10
  - `versions/2.34.0/CHANGELOG.md`: release notes for 2.34.0
@@ -4,6 +4,7 @@
4
4
 
5
5
  Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
6
6
 
7
+ - `versions/2.36.1/MIGRATION.md`: Migration: 2.36.0 to 2.36.1
7
8
  - `versions/2.36.0/MIGRATION.md`: Migration: 2.35.0 to 2.36.0
8
9
  - `versions/2.35.0/MIGRATION.md`: Migration: 2.34.0 to 2.35.0
9
10
  - `versions/2.34.0/MIGRATION.md`: Migration: 2.33.0 to 2.34.0
@@ -297,10 +297,24 @@ Additional services are exposed on an available quote as `quote.additionalServic
297
297
  "available": true,
298
298
  "proposedQuantity": 1,
299
299
  "maxPerBooking": 1,
300
- "description": "Bed linen package"
300
+ "description": "Bed linen package",
301
+ "images": [{ "src": "https://…/linen.jpg", "alt": "Bed linen" }]
301
302
  }
302
303
  ```
303
304
 
305
+ `description` and `images` are optional. Render them whenever the quote carries
306
+ them, and never replace them with descriptions or pictures written into the site:
307
+
308
+ - `v9`: both come from the service's entry in the be-on! Hub for the site's be-on
309
+ key (`apiKey`). A service without a description or images in the Hub has none on
310
+ the quote. When the user wants extras with descriptions or images, do not add
311
+ them to the site, and do not show stock or placeholder photos instead. Tell the
312
+ user to maintain description and images per service in the be-on! Hub. Also tell
313
+ them that the demo hub and the production hub keep these entries separately:
314
+ what is maintained in the demo hub during development has to be entered again
315
+ in the production hub at launch, or the live site shows the extras without them.
316
+ - `v10`: the PMS sends neither; additional services have a label and a price only.
317
+
304
318
  When the backend provides a line amount for an optional service, it is exposed as `proposedQuantity` (including `0`). By default this is informational only and is not added to the quote. Set `shouldAddProposedAdditionalServiceAmount: true` in `WebsiteSDKOptions` to automatically select proposed quantities greater than zero when the quote is created.
305
319
 
306
320
  Use the service `id` to add or remove a service selection:
@@ -0,0 +1,15 @@
1
+ # Changelog: 2.36.1
2
+
3
+ A documentation release: where the description and images of additional services come from.
4
+
5
+ ## Changed
6
+
7
+ - `../../quote.md`, Additional Services: on v9, `description` and `images` of an additional
8
+ service come from its entry in the be-on! Hub. Render them when present instead of writing
9
+ descriptions or pictures into the site. When extras should get descriptions or images, they
10
+ are maintained in the Hub, in the demo hub during development and once more in the production
11
+ hub at launch. On v10 additional services carry neither.
12
+
13
+ ## Migration Impact
14
+
15
+ - No runtime behavior or public API changes.
@@ -0,0 +1,13 @@
1
+ # Migration: 2.36.0 to 2.36.1
2
+
3
+ No changes required.
4
+
5
+ A v9 site that shows its own descriptions, stock photos or placeholders for additional services
6
+ should render `description` and `images` from the quote instead, and the user should maintain them
7
+ per service in the be-on! Hub (demo hub and production hub).
8
+
9
+ ## 1. Upgrade
10
+
11
+ ```sh
12
+ pnpm add @v-office/website-sdk@2.36.1
13
+ ```
@@ -0,0 +1,3 @@
1
+ {
2
+ "componentsAffectedByHeadlessChange": []
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v-office/website-sdk",
3
- "version": "2.36.0",
3
+ "version": "2.36.1",
4
4
  "description": "Website-facing SDK facade backed by @v-office/sdk-core",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {