@v-office/website-sdk 2.4.2 → 2.4.3
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 +1 -1
- package/dist/instructions/CHANGELOG.md +2 -0
- package/dist/instructions/MIGRATION.md +2 -0
- package/dist/instructions/README.md +4 -2
- package/dist/instructions/versions/2.4.2/CHANGELOG.md +30 -0
- package/dist/instructions/versions/2.4.2/MIGRATION.md +94 -0
- package/dist/instructions/versions/2.4.3/CHANGELOG.md +14 -0
- package/dist/instructions/versions/2.4.3/MIGRATION.md +5 -0
- package/instructions/CHANGELOG.md +2 -0
- package/instructions/MIGRATION.md +2 -0
- package/instructions/README.md +4 -2
- package/instructions/versions/2.4.2/CHANGELOG.md +30 -0
- package/instructions/versions/2.4.2/MIGRATION.md +94 -0
- package/instructions/versions/2.4.3/CHANGELOG.md +14 -0
- package/instructions/versions/2.4.3/MIGRATION.md +5 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -15,7 +15,7 @@ var CLICheckFailed = class extends Error {
|
|
|
15
15
|
const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region package.json
|
|
18
|
-
var version = "2.4.
|
|
18
|
+
var version = "2.4.3";
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/cli/output.ts
|
|
21
21
|
const toJson = (value) => Effect.try({
|
|
@@ -4,6 +4,8 @@ This file is the versioned changelog index for the website SDK instructions.
|
|
|
4
4
|
|
|
5
5
|
## Versions
|
|
6
6
|
|
|
7
|
+
- `versions/2.4.3/CHANGELOG.md`: `@v-office/website-sdk` 2.4.3 documentation release notes.
|
|
8
|
+
- `versions/2.4.2/CHANGELOG.md`: `@v-office/website-sdk` 2.4.2 release notes.
|
|
7
9
|
- `versions/2.4.0/CHANGELOG.md`: `@v-office/website-sdk` 2.4.0 release notes.
|
|
8
10
|
- `versions/2.3.0/CHANGELOG.md`: `@v-office/website-sdk` 2.3.0 release notes.
|
|
9
11
|
- `versions/2.1.0/CHANGELOG.md`: `@v-office/website-sdk` 2.1.0 release notes.
|
|
@@ -4,6 +4,8 @@ This file is the versioned migration index for the website SDK instructions.
|
|
|
4
4
|
|
|
5
5
|
## Available Guides
|
|
6
6
|
|
|
7
|
+
- `versions/2.4.3/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.4.2 to 2.4.3.
|
|
8
|
+
- `versions/2.4.2/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.4.1 to 2.4.2.
|
|
7
9
|
- `versions/2.4.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.3.x to 2.4.0.
|
|
8
10
|
- `versions/2.3.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.1.0 to 2.3.0.
|
|
9
11
|
- `versions/2.1.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.0.0 to 2.1.0.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Website SDK Instructions
|
|
2
2
|
|
|
3
|
-
These instructions describe `@v-office/website-sdk` 2.4.
|
|
3
|
+
These instructions describe `@v-office/website-sdk` 2.4.3.
|
|
4
4
|
|
|
5
5
|
Use this directory as the consumer-facing reference for the package:
|
|
6
6
|
|
|
@@ -15,6 +15,8 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
15
15
|
- `document-structured-json.md`: `sdk.static.documents.getTermsAndPrivacyPolicy` and structured document JSON rendering rules.
|
|
16
16
|
- `CHANGELOG.md`: versioned changelog index.
|
|
17
17
|
- `MIGRATION.md`: versioned migration index.
|
|
18
|
+
- `versions/2.4.3/`: 2.4.3 documentation release notes and migration guide.
|
|
19
|
+
- `versions/2.4.2/`: 2.4.2 release notes and 2.4.1-to-2.4.2 migration guide.
|
|
18
20
|
- `versions/2.4.0/`: 2.4.0 release notes and 2.3.x-to-2.4.0 migration guide.
|
|
19
21
|
- `versions/2.3.0/`: 2.3.0 release notes and 2.1.0-to-2.3.0 migration guide.
|
|
20
22
|
- `versions/2.1.0/`: 2.1.0 release notes and 2.0.0-to-2.1.0 migration guide.
|
|
@@ -63,4 +65,4 @@ website-sdk --backend v9 filters --locale en-US
|
|
|
63
65
|
website-sdk --backend v10 search --locale de-DE --query "adults=2"
|
|
64
66
|
```
|
|
65
67
|
|
|
66
|
-
Config file examples in these docs use the flat `WebsiteSDKConfig` shape introduced in 2.0.0 and kept in 2.4.
|
|
68
|
+
Config file examples in these docs use the flat `WebsiteSDKConfig` shape introduced in 2.0.0 and kept in 2.4.3.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog: 2.4.2
|
|
2
|
+
|
|
3
|
+
Release date: 2026-07-20
|
|
4
|
+
|
|
5
|
+
This release adds proposed additional-service quantities and combines related v10 public feedback answers into complete review items.
|
|
6
|
+
|
|
7
|
+
## Added
|
|
8
|
+
|
|
9
|
+
- Added optional `proposedQuantity` to additional services for both v9 and v10. The field is returned when the backend supplies a line amount, including `0`.
|
|
10
|
+
- Added the `shouldAddProposedAdditionalServiceAmount` website SDK option. When enabled, proposed quantities greater than zero are selected on the initial quote.
|
|
11
|
+
- Added deterministic pagination for v10 public feedback so rental reviews are not limited to the first backend result page.
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- Renamed the additional-service field `preSelectedQuantity` to `proposedQuantity`.
|
|
16
|
+
- `shouldAddProposedAdditionalServiceAmount` defaults to `false`, so proposed quantities are informational unless consumers opt in to automatic initial selection.
|
|
17
|
+
- Optional services with a backend amount of `0` can still be returned with their unit charge when the backend provides enough pricing data.
|
|
18
|
+
- v10 public feedback answers with the same form-response ID are now combined into one review item instead of being returned as independent rating-only and text-only items.
|
|
19
|
+
- A combined v10 review uses the form-response ID and creation time, averages valid `STARS` answers, and includes its non-empty `TEXT` answers.
|
|
20
|
+
- v10 review summaries now count form responses with a valid rating rather than individual rating answers.
|
|
21
|
+
|
|
22
|
+
## Migration Impact
|
|
23
|
+
|
|
24
|
+
- Replace reads of `additionalService.preSelectedQuantity` with `additionalService.proposedQuantity`.
|
|
25
|
+
- Leave `shouldAddProposedAdditionalServiceAmount` unset or `false` to preserve explicit additional-service selection.
|
|
26
|
+
- Set `shouldAddProposedAdditionalServiceAmount: true` only when the initial quote should include positive backend-proposed quantities.
|
|
27
|
+
- Do not assume each v10 review item represents one feedback answer. It now represents one form response and can contain both `rating` and `text`.
|
|
28
|
+
- Treat a v10 review item's `id` and `createdAt` as form-response metadata.
|
|
29
|
+
- Do not use `reviews.items.length` as the review-summary count.
|
|
30
|
+
- No SDK config-shape or service-call changes are required.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Migration: 2.4.1 to 2.4.2
|
|
2
|
+
|
|
3
|
+
This guide covers upgrading `@v-office/website-sdk` from 2.4.1 to 2.4.2.
|
|
4
|
+
|
|
5
|
+
2.4.2 keeps `createWebsiteSDK({ config, options })`, the flat `WebsiteSDKConfig`, and the existing quote and rental service calls. The migration affects additional-service quantities and v10 review grouping.
|
|
6
|
+
|
|
7
|
+
## Additional Services
|
|
8
|
+
|
|
9
|
+
### Renamed Quantity
|
|
10
|
+
|
|
11
|
+
The optional `preSelectedQuantity` field is now named `proposedQuantity`:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
for (const service of quote.additionalServices) {
|
|
15
|
+
if (service.proposedQuantity !== undefined) {
|
|
16
|
+
renderProposedQuantity(service.proposedQuantity);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The value is the backend-proposed quantity, including `0`. It does not indicate that the service is selected in the quote.
|
|
22
|
+
|
|
23
|
+
Migration: replace every read of `preSelectedQuantity` with `proposedQuantity` and continue to handle the field as optional.
|
|
24
|
+
|
|
25
|
+
### Initial Selection
|
|
26
|
+
|
|
27
|
+
Proposed quantities are not selected by default. To add positive proposed quantities to the initial quote, enable the new website SDK option:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
const sdk = createWebsiteSDK({
|
|
31
|
+
config,
|
|
32
|
+
options: defineWebsiteSDKOptions({
|
|
33
|
+
shouldAddProposedAdditionalServiceAmount: true,
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
When this option is `true`, the SDK adds each service up to its positive `proposedQuantity` while creating the quote. Normal availability and quantity-limit checks still apply. A proposed quantity of `0` is never selected automatically.
|
|
39
|
+
|
|
40
|
+
Leave the option unset or set it to `false` when users must explicitly select every optional service.
|
|
41
|
+
|
|
42
|
+
## v10 Rental Reviews
|
|
43
|
+
|
|
44
|
+
v10 now combines public answers that have the same form-response ID. One review item can therefore contain both its averaged star rating and its text:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
const review = {
|
|
48
|
+
id: "form-response-1",
|
|
49
|
+
author: "Ada Lovelace, visited in July 2026",
|
|
50
|
+
rating: "5",
|
|
51
|
+
createdAt: "2026-07-10T10:00:00.000Z",
|
|
52
|
+
text: "Great stay.",
|
|
53
|
+
};
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
For each v10 form response:
|
|
57
|
+
|
|
58
|
+
- `id` is the form-response ID.
|
|
59
|
+
- `createdAt` is the form-response creation time.
|
|
60
|
+
- `rating` is the average of its valid public `STARS` values.
|
|
61
|
+
- `text` contains its non-empty public `TEXT` answers.
|
|
62
|
+
- `author` remains optional when no public customer information is available.
|
|
63
|
+
- The item is omitted when the response has neither a valid rating nor non-empty text.
|
|
64
|
+
|
|
65
|
+
If a response contains multiple text answers, they are separated by blank lines and non-empty question titles identify the corresponding text. Review items remain sorted by form-response creation time, newest first.
|
|
66
|
+
|
|
67
|
+
Rendering should continue to check optional fields independently:
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
for (const rental of await sdk.static.rentals.getRentals({ locale: "de-DE" })) {
|
|
71
|
+
for (const item of rental.reviews?.items ?? []) {
|
|
72
|
+
if (item.rating !== undefined) renderReviewRating(item.rating);
|
|
73
|
+
if (item.text !== undefined) renderReviewText(item.text);
|
|
74
|
+
renderReviewAuthor(item.author ?? "Anonymous");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (rental.reviews?.summary !== undefined) {
|
|
78
|
+
renderReviewSummary(rental.reviews.summary);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The localized `reviews.summary.count` now counts form responses that contain a valid rating. It can differ from both the number of raw answers and `reviews.items.length`. Text-only reviews can still produce `reviews.items` without a summary.
|
|
84
|
+
|
|
85
|
+
The SDK now fetches all v10 public-feedback pages. Consumers do not need to add pagination logic to `getRentals`.
|
|
86
|
+
|
|
87
|
+
## Recommended Steps
|
|
88
|
+
|
|
89
|
+
1. Upgrade to `@v-office/website-sdk` 2.4.2.
|
|
90
|
+
2. Rename `preSelectedQuantity` reads to `proposedQuantity`.
|
|
91
|
+
3. Decide whether backend-proposed quantities should be selected automatically.
|
|
92
|
+
4. Expect one v10 review item per usable form response rather than one item per answer.
|
|
93
|
+
5. Keep presence checks for review `rating`, `text`, `author`, and `summary`.
|
|
94
|
+
6. Smoke-test quotes with absent, zero, and positive proposed quantities and rentals with rating-only, text-only, and combined feedback.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog: 2.4.3
|
|
2
|
+
|
|
3
|
+
Release date: 2026-07-20
|
|
4
|
+
|
|
5
|
+
This release adds the instructions that were missing from the 2.4.2 package.
|
|
6
|
+
|
|
7
|
+
## Added
|
|
8
|
+
|
|
9
|
+
- Added the missing 2.4.2 changelog and migration instructions for proposed additional-service quantities and grouped v10 reviews.
|
|
10
|
+
|
|
11
|
+
## Migration Impact
|
|
12
|
+
|
|
13
|
+
- No runtime behavior or public API changes are introduced relative to 2.4.2.
|
|
14
|
+
- Consumers upgrading from 2.4.1 or earlier should follow `versions/2.4.2/MIGRATION.md`.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Migration: 2.4.2 to 2.4.3
|
|
2
|
+
|
|
3
|
+
The 2.4.2 package was missing its release instructions. Version 2.4.3 adds those instructions without changing runtime behavior or the public API.
|
|
4
|
+
|
|
5
|
+
No migration is required from 2.4.2. If upgrading from 2.4.1 or earlier, follow `versions/2.4.2/MIGRATION.md`.
|
|
@@ -4,6 +4,8 @@ This file is the versioned changelog index for the website SDK instructions.
|
|
|
4
4
|
|
|
5
5
|
## Versions
|
|
6
6
|
|
|
7
|
+
- `versions/2.4.3/CHANGELOG.md`: `@v-office/website-sdk` 2.4.3 documentation release notes.
|
|
8
|
+
- `versions/2.4.2/CHANGELOG.md`: `@v-office/website-sdk` 2.4.2 release notes.
|
|
7
9
|
- `versions/2.4.0/CHANGELOG.md`: `@v-office/website-sdk` 2.4.0 release notes.
|
|
8
10
|
- `versions/2.3.0/CHANGELOG.md`: `@v-office/website-sdk` 2.3.0 release notes.
|
|
9
11
|
- `versions/2.1.0/CHANGELOG.md`: `@v-office/website-sdk` 2.1.0 release notes.
|
|
@@ -4,6 +4,8 @@ This file is the versioned migration index for the website SDK instructions.
|
|
|
4
4
|
|
|
5
5
|
## Available Guides
|
|
6
6
|
|
|
7
|
+
- `versions/2.4.3/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.4.2 to 2.4.3.
|
|
8
|
+
- `versions/2.4.2/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.4.1 to 2.4.2.
|
|
7
9
|
- `versions/2.4.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.3.x to 2.4.0.
|
|
8
10
|
- `versions/2.3.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.1.0 to 2.3.0.
|
|
9
11
|
- `versions/2.1.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.0.0 to 2.1.0.
|
package/instructions/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Website SDK Instructions
|
|
2
2
|
|
|
3
|
-
These instructions describe `@v-office/website-sdk` 2.4.
|
|
3
|
+
These instructions describe `@v-office/website-sdk` 2.4.3.
|
|
4
4
|
|
|
5
5
|
Use this directory as the consumer-facing reference for the package:
|
|
6
6
|
|
|
@@ -15,6 +15,8 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
15
15
|
- `document-structured-json.md`: `sdk.static.documents.getTermsAndPrivacyPolicy` and structured document JSON rendering rules.
|
|
16
16
|
- `CHANGELOG.md`: versioned changelog index.
|
|
17
17
|
- `MIGRATION.md`: versioned migration index.
|
|
18
|
+
- `versions/2.4.3/`: 2.4.3 documentation release notes and migration guide.
|
|
19
|
+
- `versions/2.4.2/`: 2.4.2 release notes and 2.4.1-to-2.4.2 migration guide.
|
|
18
20
|
- `versions/2.4.0/`: 2.4.0 release notes and 2.3.x-to-2.4.0 migration guide.
|
|
19
21
|
- `versions/2.3.0/`: 2.3.0 release notes and 2.1.0-to-2.3.0 migration guide.
|
|
20
22
|
- `versions/2.1.0/`: 2.1.0 release notes and 2.0.0-to-2.1.0 migration guide.
|
|
@@ -63,4 +65,4 @@ website-sdk --backend v9 filters --locale en-US
|
|
|
63
65
|
website-sdk --backend v10 search --locale de-DE --query "adults=2"
|
|
64
66
|
```
|
|
65
67
|
|
|
66
|
-
Config file examples in these docs use the flat `WebsiteSDKConfig` shape introduced in 2.0.0 and kept in 2.4.
|
|
68
|
+
Config file examples in these docs use the flat `WebsiteSDKConfig` shape introduced in 2.0.0 and kept in 2.4.3.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog: 2.4.2
|
|
2
|
+
|
|
3
|
+
Release date: 2026-07-20
|
|
4
|
+
|
|
5
|
+
This release adds proposed additional-service quantities and combines related v10 public feedback answers into complete review items.
|
|
6
|
+
|
|
7
|
+
## Added
|
|
8
|
+
|
|
9
|
+
- Added optional `proposedQuantity` to additional services for both v9 and v10. The field is returned when the backend supplies a line amount, including `0`.
|
|
10
|
+
- Added the `shouldAddProposedAdditionalServiceAmount` website SDK option. When enabled, proposed quantities greater than zero are selected on the initial quote.
|
|
11
|
+
- Added deterministic pagination for v10 public feedback so rental reviews are not limited to the first backend result page.
|
|
12
|
+
|
|
13
|
+
## Changed
|
|
14
|
+
|
|
15
|
+
- Renamed the additional-service field `preSelectedQuantity` to `proposedQuantity`.
|
|
16
|
+
- `shouldAddProposedAdditionalServiceAmount` defaults to `false`, so proposed quantities are informational unless consumers opt in to automatic initial selection.
|
|
17
|
+
- Optional services with a backend amount of `0` can still be returned with their unit charge when the backend provides enough pricing data.
|
|
18
|
+
- v10 public feedback answers with the same form-response ID are now combined into one review item instead of being returned as independent rating-only and text-only items.
|
|
19
|
+
- A combined v10 review uses the form-response ID and creation time, averages valid `STARS` answers, and includes its non-empty `TEXT` answers.
|
|
20
|
+
- v10 review summaries now count form responses with a valid rating rather than individual rating answers.
|
|
21
|
+
|
|
22
|
+
## Migration Impact
|
|
23
|
+
|
|
24
|
+
- Replace reads of `additionalService.preSelectedQuantity` with `additionalService.proposedQuantity`.
|
|
25
|
+
- Leave `shouldAddProposedAdditionalServiceAmount` unset or `false` to preserve explicit additional-service selection.
|
|
26
|
+
- Set `shouldAddProposedAdditionalServiceAmount: true` only when the initial quote should include positive backend-proposed quantities.
|
|
27
|
+
- Do not assume each v10 review item represents one feedback answer. It now represents one form response and can contain both `rating` and `text`.
|
|
28
|
+
- Treat a v10 review item's `id` and `createdAt` as form-response metadata.
|
|
29
|
+
- Do not use `reviews.items.length` as the review-summary count.
|
|
30
|
+
- No SDK config-shape or service-call changes are required.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Migration: 2.4.1 to 2.4.2
|
|
2
|
+
|
|
3
|
+
This guide covers upgrading `@v-office/website-sdk` from 2.4.1 to 2.4.2.
|
|
4
|
+
|
|
5
|
+
2.4.2 keeps `createWebsiteSDK({ config, options })`, the flat `WebsiteSDKConfig`, and the existing quote and rental service calls. The migration affects additional-service quantities and v10 review grouping.
|
|
6
|
+
|
|
7
|
+
## Additional Services
|
|
8
|
+
|
|
9
|
+
### Renamed Quantity
|
|
10
|
+
|
|
11
|
+
The optional `preSelectedQuantity` field is now named `proposedQuantity`:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
for (const service of quote.additionalServices) {
|
|
15
|
+
if (service.proposedQuantity !== undefined) {
|
|
16
|
+
renderProposedQuantity(service.proposedQuantity);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The value is the backend-proposed quantity, including `0`. It does not indicate that the service is selected in the quote.
|
|
22
|
+
|
|
23
|
+
Migration: replace every read of `preSelectedQuantity` with `proposedQuantity` and continue to handle the field as optional.
|
|
24
|
+
|
|
25
|
+
### Initial Selection
|
|
26
|
+
|
|
27
|
+
Proposed quantities are not selected by default. To add positive proposed quantities to the initial quote, enable the new website SDK option:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
const sdk = createWebsiteSDK({
|
|
31
|
+
config,
|
|
32
|
+
options: defineWebsiteSDKOptions({
|
|
33
|
+
shouldAddProposedAdditionalServiceAmount: true,
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
When this option is `true`, the SDK adds each service up to its positive `proposedQuantity` while creating the quote. Normal availability and quantity-limit checks still apply. A proposed quantity of `0` is never selected automatically.
|
|
39
|
+
|
|
40
|
+
Leave the option unset or set it to `false` when users must explicitly select every optional service.
|
|
41
|
+
|
|
42
|
+
## v10 Rental Reviews
|
|
43
|
+
|
|
44
|
+
v10 now combines public answers that have the same form-response ID. One review item can therefore contain both its averaged star rating and its text:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
const review = {
|
|
48
|
+
id: "form-response-1",
|
|
49
|
+
author: "Ada Lovelace, visited in July 2026",
|
|
50
|
+
rating: "5",
|
|
51
|
+
createdAt: "2026-07-10T10:00:00.000Z",
|
|
52
|
+
text: "Great stay.",
|
|
53
|
+
};
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
For each v10 form response:
|
|
57
|
+
|
|
58
|
+
- `id` is the form-response ID.
|
|
59
|
+
- `createdAt` is the form-response creation time.
|
|
60
|
+
- `rating` is the average of its valid public `STARS` values.
|
|
61
|
+
- `text` contains its non-empty public `TEXT` answers.
|
|
62
|
+
- `author` remains optional when no public customer information is available.
|
|
63
|
+
- The item is omitted when the response has neither a valid rating nor non-empty text.
|
|
64
|
+
|
|
65
|
+
If a response contains multiple text answers, they are separated by blank lines and non-empty question titles identify the corresponding text. Review items remain sorted by form-response creation time, newest first.
|
|
66
|
+
|
|
67
|
+
Rendering should continue to check optional fields independently:
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
for (const rental of await sdk.static.rentals.getRentals({ locale: "de-DE" })) {
|
|
71
|
+
for (const item of rental.reviews?.items ?? []) {
|
|
72
|
+
if (item.rating !== undefined) renderReviewRating(item.rating);
|
|
73
|
+
if (item.text !== undefined) renderReviewText(item.text);
|
|
74
|
+
renderReviewAuthor(item.author ?? "Anonymous");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (rental.reviews?.summary !== undefined) {
|
|
78
|
+
renderReviewSummary(rental.reviews.summary);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The localized `reviews.summary.count` now counts form responses that contain a valid rating. It can differ from both the number of raw answers and `reviews.items.length`. Text-only reviews can still produce `reviews.items` without a summary.
|
|
84
|
+
|
|
85
|
+
The SDK now fetches all v10 public-feedback pages. Consumers do not need to add pagination logic to `getRentals`.
|
|
86
|
+
|
|
87
|
+
## Recommended Steps
|
|
88
|
+
|
|
89
|
+
1. Upgrade to `@v-office/website-sdk` 2.4.2.
|
|
90
|
+
2. Rename `preSelectedQuantity` reads to `proposedQuantity`.
|
|
91
|
+
3. Decide whether backend-proposed quantities should be selected automatically.
|
|
92
|
+
4. Expect one v10 review item per usable form response rather than one item per answer.
|
|
93
|
+
5. Keep presence checks for review `rating`, `text`, `author`, and `summary`.
|
|
94
|
+
6. Smoke-test quotes with absent, zero, and positive proposed quantities and rentals with rating-only, text-only, and combined feedback.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog: 2.4.3
|
|
2
|
+
|
|
3
|
+
Release date: 2026-07-20
|
|
4
|
+
|
|
5
|
+
This release adds the instructions that were missing from the 2.4.2 package.
|
|
6
|
+
|
|
7
|
+
## Added
|
|
8
|
+
|
|
9
|
+
- Added the missing 2.4.2 changelog and migration instructions for proposed additional-service quantities and grouped v10 reviews.
|
|
10
|
+
|
|
11
|
+
## Migration Impact
|
|
12
|
+
|
|
13
|
+
- No runtime behavior or public API changes are introduced relative to 2.4.2.
|
|
14
|
+
- Consumers upgrading from 2.4.1 or earlier should follow `versions/2.4.2/MIGRATION.md`.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Migration: 2.4.2 to 2.4.3
|
|
2
|
+
|
|
3
|
+
The 2.4.2 package was missing its release instructions. Version 2.4.3 adds those instructions without changing runtime behavior or the public API.
|
|
4
|
+
|
|
5
|
+
No migration is required from 2.4.2. If upgrading from 2.4.1 or earlier, follow `versions/2.4.2/MIGRATION.md`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-office/website-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "Website-facing SDK facade backed by @v-office/sdk-core",
|
|
5
5
|
"bin": {
|
|
6
6
|
"website-sdk": "./dist/cli.mjs"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
44
|
-
"@v-office/sdk-core": "^1.5.
|
|
44
|
+
"@v-office/sdk-core": "^1.5.3",
|
|
45
45
|
"effect": "4.0.0-beta.85",
|
|
46
46
|
"graphql": "16.14.2",
|
|
47
47
|
"yaml": "^2.9.0"
|