@v-office/website-sdk 2.16.1 → 2.16.2
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 +6 -2
- package/dist/instructions/quote.md +2 -0
- package/dist/instructions/versions/2.16.1/CHANGELOG.md +53 -0
- package/dist/instructions/versions/2.16.1/MIGRATION.md +74 -0
- package/dist/instructions/versions/2.16.2/CHANGELOG.md +16 -0
- package/dist/instructions/versions/2.16.2/MIGRATION.md +5 -0
- package/instructions/CHANGELOG.md +2 -0
- package/instructions/MIGRATION.md +2 -0
- package/instructions/README.md +6 -2
- package/instructions/quote.md +2 -0
- package/instructions/versions/2.16.1/CHANGELOG.md +53 -0
- package/instructions/versions/2.16.1/MIGRATION.md +74 -0
- package/instructions/versions/2.16.2/CHANGELOG.md +16 -0
- package/instructions/versions/2.16.2/MIGRATION.md +5 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -16,7 +16,7 @@ var CLICheckFailed = class extends Error {
|
|
|
16
16
|
const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region package.json
|
|
19
|
-
var version = "2.16.
|
|
19
|
+
var version = "2.16.2";
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/cli/output.ts
|
|
22
22
|
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.16.2/CHANGELOG.md`: `@v-office/website-sdk` 2.16.2 documentation release notes.
|
|
8
|
+
- `versions/2.16.1/CHANGELOG.md`: `@v-office/website-sdk` 2.16.1 release notes.
|
|
7
9
|
- `versions/2.16.0/CHANGELOG.md`: `@v-office/website-sdk` 2.16.0 release notes.
|
|
8
10
|
- `versions/2.15.0/CHANGELOG.md`: `@v-office/website-sdk` 2.15.0 release notes.
|
|
9
11
|
- `versions/2.14.0/CHANGELOG.md`: `@v-office/website-sdk` 2.14.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.16.2/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.16.1 to 2.16.2.
|
|
8
|
+
- `versions/2.16.1/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.16.0 to 2.16.1.
|
|
7
9
|
- `versions/2.16.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.15.0 to 2.16.0.
|
|
8
10
|
- `versions/2.15.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.14.0 to 2.15.0.
|
|
9
11
|
- `versions/2.14.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.13.0 to 2.14.0.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Website SDK Instructions
|
|
2
2
|
|
|
3
3
|
These instructions describe the current source targeted for
|
|
4
|
-
`@v-office/website-sdk` 2.16.
|
|
4
|
+
`@v-office/website-sdk` 2.16.2. Package versions remain unchanged until the release
|
|
5
5
|
workflow performs the coordinated core and website bumps.
|
|
6
6
|
|
|
7
7
|
Use this directory as the consumer-facing reference for the package:
|
|
@@ -18,6 +18,10 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
18
18
|
- `document-structured-json.md`: `sdk.static.documents.getTermsAndPrivacyPolicy` and structured document JSON rendering rules.
|
|
19
19
|
- `CHANGELOG.md`: versioned changelog index.
|
|
20
20
|
- `MIGRATION.md`: versioned migration index.
|
|
21
|
+
- `versions/2.16.2/`: 2.16.2 documentation release notes and migration guide.
|
|
22
|
+
- `versions/2.16.1/`: 2.16.1 v10 multi-rate resolution restricted to rent rates,
|
|
23
|
+
restored additional-service availability, and the 2.16.0-to-2.16.1 migration
|
|
24
|
+
guide.
|
|
21
25
|
- `versions/2.16.0/`: 2.16.0 machine-readable unavailable quote codes,
|
|
22
26
|
multi-rate configuration diagnostics, and the 2.15.0-to-2.16.0 migration
|
|
23
27
|
guide.
|
|
@@ -96,5 +100,5 @@ website-sdk --backend v10 search --locale de-DE --query "adults=2" --sort '{"by"
|
|
|
96
100
|
```
|
|
97
101
|
|
|
98
102
|
Config file examples in these docs use the flat `WebsiteSDKConfig` shape introduced
|
|
99
|
-
in 2.0.0 and kept in 2.16.
|
|
103
|
+
in 2.0.0 and kept in 2.16.2. v10 config additionally requires `searchEndpoint` as
|
|
100
104
|
of 2.5.0.
|
|
@@ -310,6 +310,8 @@ if (cleared.ok) quote = cleared.quote;
|
|
|
310
310
|
|
|
311
311
|
Each successful change returns a new quote with recalculated `bookingCardInformation.total`. v10 can mark unavailable service/policy combinations with `available: false` and `unavailableReason`; disable those options in the UI. Handle `{ ok: false, error }` for unknown service ids, quantity limits, or `UnavailableQuoteCombination`.
|
|
312
312
|
|
|
313
|
+
From 2.16.1, v10 resolves the multi-rate from rent rates only. Additional services are priced on top of the resolved multi-rate and no longer make it unresolvable, so they are no longer reported unavailable for that reason.
|
|
314
|
+
|
|
313
315
|
## Cancellation Policies
|
|
314
316
|
|
|
315
317
|
Cancellation policies are exposed on `quote.cancellationPolicies` when the backend offers selectable policies.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Changelog: 2.16.1
|
|
2
|
+
|
|
3
|
+
This release restores v10 additional-service selection. Services whose rate type
|
|
4
|
+
took part in multi-rate resolution were reported unavailable and could not be
|
|
5
|
+
added to a quote.
|
|
6
|
+
|
|
7
|
+
## Fixed
|
|
8
|
+
|
|
9
|
+
- v10 multi-rate resolution now considers `RENT` rates only. Additional services
|
|
10
|
+
no longer take part in resolving the multi-rate of the default cancellation
|
|
11
|
+
policy.
|
|
12
|
+
- v10 additional services are reported with `available: true` again instead of
|
|
13
|
+
`available: false` plus an unavailable-combination `unavailableReason`.
|
|
14
|
+
- `sdk.live.quote.addAdditionalService` no longer fails with
|
|
15
|
+
`UnavailableQuoteCombination` for those services, and the quote total rises by
|
|
16
|
+
the service charge as expected.
|
|
17
|
+
- v10 quotes no longer report `code: "UnresolvableMultiRate"` merely because a
|
|
18
|
+
priced additional service was listed next to the rent.
|
|
19
|
+
|
|
20
|
+
## Changed
|
|
21
|
+
|
|
22
|
+
- `@v-office/sdk-core` was upgraded to 1.16.1.
|
|
23
|
+
- Resolution falls back to the `baseRentRate` multi-rate of the cancellation
|
|
24
|
+
policy. That is the variant a guest quote request actually specifies, because
|
|
25
|
+
the request carries no service selection and the backend returns no multi-rate
|
|
26
|
+
id for it. Selecting a service multi-rate would book a variant the quoted price
|
|
27
|
+
never reflected.
|
|
28
|
+
- `INTERNET`, `PRIVAT_PARKING`, `BREAKFAST`, and `EXTRABED` remain parked in the
|
|
29
|
+
core parser until the backend defines what a second multi-rate per cancellation
|
|
30
|
+
policy means and how a client could book it.
|
|
31
|
+
|
|
32
|
+
## Unchanged
|
|
33
|
+
|
|
34
|
+
- The website SDK contains no own source change in this release. The fix arrives
|
|
35
|
+
through `@v-office/sdk-core`.
|
|
36
|
+
- `sdk.live.quote.quote(input)`, the quote input, and all selection methods keep
|
|
37
|
+
their signatures and result shapes.
|
|
38
|
+
- The `code` field added in 2.16.0 is unchanged. `AmbiguousMultiRate` and
|
|
39
|
+
`UnresolvableMultiRate` still exist and still mark a quote unavailable.
|
|
40
|
+
- Additional services can still be reported unavailable for genuine backend
|
|
41
|
+
reasons, and `available: false` must still be honored.
|
|
42
|
+
- Legacy v9 quote behavior is unchanged. v9 has no multi-rate resolution.
|
|
43
|
+
|
|
44
|
+
## Compatibility
|
|
45
|
+
|
|
46
|
+
- No consumer change is required. Upgrading is sufficient.
|
|
47
|
+
- Expect fewer `UnresolvableMultiRate` results and fewer unavailable additional
|
|
48
|
+
services on v10. Monitoring thresholds built on the previous rate need
|
|
49
|
+
adjusting.
|
|
50
|
+
- Workarounds that hid affected services or treated an unavailable combination
|
|
51
|
+
after service selection as normal can be removed.
|
|
52
|
+
|
|
53
|
+
See `versions/2.16.1/MIGRATION.md` and `../../quote.md`.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Migration: 2.16.0 to 2.16.1
|
|
2
|
+
|
|
3
|
+
2.16.1 is a behavior fix delivered through `@v-office/sdk-core` 1.16.1. No
|
|
4
|
+
public type, service call, input, or result shape changes. No consumer code
|
|
5
|
+
change is required.
|
|
6
|
+
|
|
7
|
+
## 1. Upgrade
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @v-office/website-sdk@2.16.1
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The website SDK forwards the fix by requiring `@v-office/sdk-core` `^1.16.1`.
|
|
14
|
+
Lockfiles pinning 1.16.0 must be refreshed, otherwise the old resolution
|
|
15
|
+
behavior stays in place.
|
|
16
|
+
|
|
17
|
+
## 2. Expect v10 Additional Services to Become Available
|
|
18
|
+
|
|
19
|
+
Before this release, a v10 additional service whose rate type participated in
|
|
20
|
+
multi-rate resolution made the multi-rate for the default cancellation policy
|
|
21
|
+
unresolvable. The service was returned as unavailable:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"id": "internet",
|
|
26
|
+
"available": false,
|
|
27
|
+
"unavailableReason": "Diese Optionskombination ist nicht verfügbar."
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Those services now return `available: true` and can be added:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
const added = await sdk.live.quote.addAdditionalService({ quote, id: "internet" });
|
|
35
|
+
if (added.ok) quote = added.quote;
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Keep honoring `available: false` and `unavailableReason`. Both remain valid for
|
|
39
|
+
genuine backend unavailability. Only the false positives caused by multi-rate
|
|
40
|
+
resolution disappear.
|
|
41
|
+
|
|
42
|
+
## 3. Remove Workarounds
|
|
43
|
+
|
|
44
|
+
Remove application-side compensation built for the old behavior, such as:
|
|
45
|
+
|
|
46
|
+
1. Hiding or filtering additional services that were always unavailable on v10.
|
|
47
|
+
2. Treating `UnavailableQuoteCombination` after a service selection as an
|
|
48
|
+
expected outcome.
|
|
49
|
+
3. Suppressing `UnresolvableMultiRate` reports because they were considered
|
|
50
|
+
noise.
|
|
51
|
+
|
|
52
|
+
Point 3 matters most. `UnresolvableMultiRate` is meaningful again and should
|
|
53
|
+
reach site operations as described in `versions/2.16.0/MIGRATION.md`.
|
|
54
|
+
|
|
55
|
+
## 4. Adjust Monitoring Baselines
|
|
56
|
+
|
|
57
|
+
The rate of `UnresolvableMultiRate` quote results and of unavailable v10
|
|
58
|
+
additional services drops after the upgrade. Alerts calibrated on the previous
|
|
59
|
+
volume need new thresholds.
|
|
60
|
+
|
|
61
|
+
## Required Consumer Work
|
|
62
|
+
|
|
63
|
+
None. Upgrade the dependency and refresh the lockfile.
|
|
64
|
+
|
|
65
|
+
## Recommended Verification
|
|
66
|
+
|
|
67
|
+
1. Confirm a v10 rental that offers additional services returns them with
|
|
68
|
+
`available: true`.
|
|
69
|
+
2. Confirm adding such a service succeeds and raises
|
|
70
|
+
`bookingCardInformation.total` by the service charge.
|
|
71
|
+
3. Confirm removing it lowers the total again.
|
|
72
|
+
4. Confirm cancellation policy selection still works with services selected.
|
|
73
|
+
5. Confirm booking a quote with a selected additional service succeeds.
|
|
74
|
+
6. Confirm legacy v9 quote and selection flows are unchanged.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog: 2.16.2
|
|
2
|
+
|
|
3
|
+
This release adds the instructions that were missing from the 2.16.1 package.
|
|
4
|
+
|
|
5
|
+
## Added
|
|
6
|
+
|
|
7
|
+
- Added the 2.16.1 changelog and migration guide for the v10 multi-rate
|
|
8
|
+
resolution fix and the restored additional-service availability.
|
|
9
|
+
- Documented in `../../quote.md` that v10 resolves the multi-rate from rent
|
|
10
|
+
rates only and prices additional services on top of it.
|
|
11
|
+
|
|
12
|
+
## Migration Impact
|
|
13
|
+
|
|
14
|
+
- No runtime behavior or public API changes are introduced relative to 2.16.1.
|
|
15
|
+
- Consumers upgrading from 2.16.0 or earlier should follow
|
|
16
|
+
`versions/2.16.1/MIGRATION.md`.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Migration: 2.16.1 to 2.16.2
|
|
2
|
+
|
|
3
|
+
The 2.16.1 package was published without its release instructions. Version 2.16.2 adds those instructions without changing runtime behavior or the public API.
|
|
4
|
+
|
|
5
|
+
No migration is required from 2.16.1. If upgrading from 2.16.0 or earlier, follow `versions/2.16.1/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.16.2/CHANGELOG.md`: `@v-office/website-sdk` 2.16.2 documentation release notes.
|
|
8
|
+
- `versions/2.16.1/CHANGELOG.md`: `@v-office/website-sdk` 2.16.1 release notes.
|
|
7
9
|
- `versions/2.16.0/CHANGELOG.md`: `@v-office/website-sdk` 2.16.0 release notes.
|
|
8
10
|
- `versions/2.15.0/CHANGELOG.md`: `@v-office/website-sdk` 2.15.0 release notes.
|
|
9
11
|
- `versions/2.14.0/CHANGELOG.md`: `@v-office/website-sdk` 2.14.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.16.2/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.16.1 to 2.16.2.
|
|
8
|
+
- `versions/2.16.1/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.16.0 to 2.16.1.
|
|
7
9
|
- `versions/2.16.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.15.0 to 2.16.0.
|
|
8
10
|
- `versions/2.15.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.14.0 to 2.15.0.
|
|
9
11
|
- `versions/2.14.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.13.0 to 2.14.0.
|
package/instructions/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Website SDK Instructions
|
|
2
2
|
|
|
3
3
|
These instructions describe the current source targeted for
|
|
4
|
-
`@v-office/website-sdk` 2.16.
|
|
4
|
+
`@v-office/website-sdk` 2.16.2. Package versions remain unchanged until the release
|
|
5
5
|
workflow performs the coordinated core and website bumps.
|
|
6
6
|
|
|
7
7
|
Use this directory as the consumer-facing reference for the package:
|
|
@@ -18,6 +18,10 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
18
18
|
- `document-structured-json.md`: `sdk.static.documents.getTermsAndPrivacyPolicy` and structured document JSON rendering rules.
|
|
19
19
|
- `CHANGELOG.md`: versioned changelog index.
|
|
20
20
|
- `MIGRATION.md`: versioned migration index.
|
|
21
|
+
- `versions/2.16.2/`: 2.16.2 documentation release notes and migration guide.
|
|
22
|
+
- `versions/2.16.1/`: 2.16.1 v10 multi-rate resolution restricted to rent rates,
|
|
23
|
+
restored additional-service availability, and the 2.16.0-to-2.16.1 migration
|
|
24
|
+
guide.
|
|
21
25
|
- `versions/2.16.0/`: 2.16.0 machine-readable unavailable quote codes,
|
|
22
26
|
multi-rate configuration diagnostics, and the 2.15.0-to-2.16.0 migration
|
|
23
27
|
guide.
|
|
@@ -96,5 +100,5 @@ website-sdk --backend v10 search --locale de-DE --query "adults=2" --sort '{"by"
|
|
|
96
100
|
```
|
|
97
101
|
|
|
98
102
|
Config file examples in these docs use the flat `WebsiteSDKConfig` shape introduced
|
|
99
|
-
in 2.0.0 and kept in 2.16.
|
|
103
|
+
in 2.0.0 and kept in 2.16.2. v10 config additionally requires `searchEndpoint` as
|
|
100
104
|
of 2.5.0.
|
package/instructions/quote.md
CHANGED
|
@@ -310,6 +310,8 @@ if (cleared.ok) quote = cleared.quote;
|
|
|
310
310
|
|
|
311
311
|
Each successful change returns a new quote with recalculated `bookingCardInformation.total`. v10 can mark unavailable service/policy combinations with `available: false` and `unavailableReason`; disable those options in the UI. Handle `{ ok: false, error }` for unknown service ids, quantity limits, or `UnavailableQuoteCombination`.
|
|
312
312
|
|
|
313
|
+
From 2.16.1, v10 resolves the multi-rate from rent rates only. Additional services are priced on top of the resolved multi-rate and no longer make it unresolvable, so they are no longer reported unavailable for that reason.
|
|
314
|
+
|
|
313
315
|
## Cancellation Policies
|
|
314
316
|
|
|
315
317
|
Cancellation policies are exposed on `quote.cancellationPolicies` when the backend offers selectable policies.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Changelog: 2.16.1
|
|
2
|
+
|
|
3
|
+
This release restores v10 additional-service selection. Services whose rate type
|
|
4
|
+
took part in multi-rate resolution were reported unavailable and could not be
|
|
5
|
+
added to a quote.
|
|
6
|
+
|
|
7
|
+
## Fixed
|
|
8
|
+
|
|
9
|
+
- v10 multi-rate resolution now considers `RENT` rates only. Additional services
|
|
10
|
+
no longer take part in resolving the multi-rate of the default cancellation
|
|
11
|
+
policy.
|
|
12
|
+
- v10 additional services are reported with `available: true` again instead of
|
|
13
|
+
`available: false` plus an unavailable-combination `unavailableReason`.
|
|
14
|
+
- `sdk.live.quote.addAdditionalService` no longer fails with
|
|
15
|
+
`UnavailableQuoteCombination` for those services, and the quote total rises by
|
|
16
|
+
the service charge as expected.
|
|
17
|
+
- v10 quotes no longer report `code: "UnresolvableMultiRate"` merely because a
|
|
18
|
+
priced additional service was listed next to the rent.
|
|
19
|
+
|
|
20
|
+
## Changed
|
|
21
|
+
|
|
22
|
+
- `@v-office/sdk-core` was upgraded to 1.16.1.
|
|
23
|
+
- Resolution falls back to the `baseRentRate` multi-rate of the cancellation
|
|
24
|
+
policy. That is the variant a guest quote request actually specifies, because
|
|
25
|
+
the request carries no service selection and the backend returns no multi-rate
|
|
26
|
+
id for it. Selecting a service multi-rate would book a variant the quoted price
|
|
27
|
+
never reflected.
|
|
28
|
+
- `INTERNET`, `PRIVAT_PARKING`, `BREAKFAST`, and `EXTRABED` remain parked in the
|
|
29
|
+
core parser until the backend defines what a second multi-rate per cancellation
|
|
30
|
+
policy means and how a client could book it.
|
|
31
|
+
|
|
32
|
+
## Unchanged
|
|
33
|
+
|
|
34
|
+
- The website SDK contains no own source change in this release. The fix arrives
|
|
35
|
+
through `@v-office/sdk-core`.
|
|
36
|
+
- `sdk.live.quote.quote(input)`, the quote input, and all selection methods keep
|
|
37
|
+
their signatures and result shapes.
|
|
38
|
+
- The `code` field added in 2.16.0 is unchanged. `AmbiguousMultiRate` and
|
|
39
|
+
`UnresolvableMultiRate` still exist and still mark a quote unavailable.
|
|
40
|
+
- Additional services can still be reported unavailable for genuine backend
|
|
41
|
+
reasons, and `available: false` must still be honored.
|
|
42
|
+
- Legacy v9 quote behavior is unchanged. v9 has no multi-rate resolution.
|
|
43
|
+
|
|
44
|
+
## Compatibility
|
|
45
|
+
|
|
46
|
+
- No consumer change is required. Upgrading is sufficient.
|
|
47
|
+
- Expect fewer `UnresolvableMultiRate` results and fewer unavailable additional
|
|
48
|
+
services on v10. Monitoring thresholds built on the previous rate need
|
|
49
|
+
adjusting.
|
|
50
|
+
- Workarounds that hid affected services or treated an unavailable combination
|
|
51
|
+
after service selection as normal can be removed.
|
|
52
|
+
|
|
53
|
+
See `versions/2.16.1/MIGRATION.md` and `../../quote.md`.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Migration: 2.16.0 to 2.16.1
|
|
2
|
+
|
|
3
|
+
2.16.1 is a behavior fix delivered through `@v-office/sdk-core` 1.16.1. No
|
|
4
|
+
public type, service call, input, or result shape changes. No consumer code
|
|
5
|
+
change is required.
|
|
6
|
+
|
|
7
|
+
## 1. Upgrade
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @v-office/website-sdk@2.16.1
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The website SDK forwards the fix by requiring `@v-office/sdk-core` `^1.16.1`.
|
|
14
|
+
Lockfiles pinning 1.16.0 must be refreshed, otherwise the old resolution
|
|
15
|
+
behavior stays in place.
|
|
16
|
+
|
|
17
|
+
## 2. Expect v10 Additional Services to Become Available
|
|
18
|
+
|
|
19
|
+
Before this release, a v10 additional service whose rate type participated in
|
|
20
|
+
multi-rate resolution made the multi-rate for the default cancellation policy
|
|
21
|
+
unresolvable. The service was returned as unavailable:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"id": "internet",
|
|
26
|
+
"available": false,
|
|
27
|
+
"unavailableReason": "Diese Optionskombination ist nicht verfügbar."
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Those services now return `available: true` and can be added:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
const added = await sdk.live.quote.addAdditionalService({ quote, id: "internet" });
|
|
35
|
+
if (added.ok) quote = added.quote;
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Keep honoring `available: false` and `unavailableReason`. Both remain valid for
|
|
39
|
+
genuine backend unavailability. Only the false positives caused by multi-rate
|
|
40
|
+
resolution disappear.
|
|
41
|
+
|
|
42
|
+
## 3. Remove Workarounds
|
|
43
|
+
|
|
44
|
+
Remove application-side compensation built for the old behavior, such as:
|
|
45
|
+
|
|
46
|
+
1. Hiding or filtering additional services that were always unavailable on v10.
|
|
47
|
+
2. Treating `UnavailableQuoteCombination` after a service selection as an
|
|
48
|
+
expected outcome.
|
|
49
|
+
3. Suppressing `UnresolvableMultiRate` reports because they were considered
|
|
50
|
+
noise.
|
|
51
|
+
|
|
52
|
+
Point 3 matters most. `UnresolvableMultiRate` is meaningful again and should
|
|
53
|
+
reach site operations as described in `versions/2.16.0/MIGRATION.md`.
|
|
54
|
+
|
|
55
|
+
## 4. Adjust Monitoring Baselines
|
|
56
|
+
|
|
57
|
+
The rate of `UnresolvableMultiRate` quote results and of unavailable v10
|
|
58
|
+
additional services drops after the upgrade. Alerts calibrated on the previous
|
|
59
|
+
volume need new thresholds.
|
|
60
|
+
|
|
61
|
+
## Required Consumer Work
|
|
62
|
+
|
|
63
|
+
None. Upgrade the dependency and refresh the lockfile.
|
|
64
|
+
|
|
65
|
+
## Recommended Verification
|
|
66
|
+
|
|
67
|
+
1. Confirm a v10 rental that offers additional services returns them with
|
|
68
|
+
`available: true`.
|
|
69
|
+
2. Confirm adding such a service succeeds and raises
|
|
70
|
+
`bookingCardInformation.total` by the service charge.
|
|
71
|
+
3. Confirm removing it lowers the total again.
|
|
72
|
+
4. Confirm cancellation policy selection still works with services selected.
|
|
73
|
+
5. Confirm booking a quote with a selected additional service succeeds.
|
|
74
|
+
6. Confirm legacy v9 quote and selection flows are unchanged.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog: 2.16.2
|
|
2
|
+
|
|
3
|
+
This release adds the instructions that were missing from the 2.16.1 package.
|
|
4
|
+
|
|
5
|
+
## Added
|
|
6
|
+
|
|
7
|
+
- Added the 2.16.1 changelog and migration guide for the v10 multi-rate
|
|
8
|
+
resolution fix and the restored additional-service availability.
|
|
9
|
+
- Documented in `../../quote.md` that v10 resolves the multi-rate from rent
|
|
10
|
+
rates only and prices additional services on top of it.
|
|
11
|
+
|
|
12
|
+
## Migration Impact
|
|
13
|
+
|
|
14
|
+
- No runtime behavior or public API changes are introduced relative to 2.16.1.
|
|
15
|
+
- Consumers upgrading from 2.16.0 or earlier should follow
|
|
16
|
+
`versions/2.16.1/MIGRATION.md`.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Migration: 2.16.1 to 2.16.2
|
|
2
|
+
|
|
3
|
+
The 2.16.1 package was published without its release instructions. Version 2.16.2 adds those instructions without changing runtime behavior or the public API.
|
|
4
|
+
|
|
5
|
+
No migration is required from 2.16.1. If upgrading from 2.16.0 or earlier, follow `versions/2.16.1/MIGRATION.md`.
|