@whooshbang/contract-mock 3.2.0 → 4.0.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/CHANGELOG.md +9 -0
- package/dist/core.js +13 -3
- package/dist/core.js.map +1 -1
- package/package.json +4 -4
- package/scenarios/v1/manifest.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ recorded here.
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## 4.0.0
|
|
9
|
+
|
|
10
|
+
- Build against contracts 4.0.0 and SDK 5.0.0 for managed FlowXO Mail domain requests and the new email interaction and provider-intake enum members.
|
|
11
|
+
|
|
12
|
+
## 3.3.0
|
|
13
|
+
|
|
14
|
+
- Built against contracts 3.3.0 and SDK 4.3.0 for message search, list filters and category visibility settings.
|
|
15
|
+
- Update Hono to 4.13.11, including the upstream `serveStatic` security fix.
|
|
16
|
+
|
|
8
17
|
## 3.2.0
|
|
9
18
|
|
|
10
19
|
- Built against contracts 3.2.0 and SDK 4.2.0 (message categories, additive).
|
package/dist/core.js
CHANGED
|
@@ -421,6 +421,8 @@ function defaultProjectRecipientExperience(state, project) {
|
|
|
421
421
|
display_name: "My App",
|
|
422
422
|
},
|
|
423
423
|
default_locale: project.default_locale,
|
|
424
|
+
show_service_category_switches: true,
|
|
425
|
+
show_marketing_category_switches: true,
|
|
424
426
|
diagnostic_id: state.idGenerator("diagnostic"),
|
|
425
427
|
project_id: project.id,
|
|
426
428
|
row_version: 1,
|
|
@@ -4399,7 +4401,8 @@ function addPublicRoutes(app, getState, options) {
|
|
|
4399
4401
|
if (parsed.value.row_version !== current.row_version) {
|
|
4400
4402
|
return problemResponse(problem("recipient_configuration_invalid", 409, state.idGenerator("diagnostic")));
|
|
4401
4403
|
}
|
|
4402
|
-
const
|
|
4404
|
+
const brand = parsed.value.brand ?? current.brand;
|
|
4405
|
+
const requestedAssetId = brand.logo_asset_id;
|
|
4403
4406
|
if (requestedAssetId !== undefined) {
|
|
4404
4407
|
const asset = state.recipientBrandAssets.get(requestedAssetId);
|
|
4405
4408
|
if (asset === undefined ||
|
|
@@ -4409,8 +4412,15 @@ function addPublicRoutes(app, getState, options) {
|
|
|
4409
4412
|
}
|
|
4410
4413
|
}
|
|
4411
4414
|
const next = {
|
|
4412
|
-
brand
|
|
4413
|
-
default_locale: parsed.value.default_locale,
|
|
4415
|
+
brand,
|
|
4416
|
+
default_locale: parsed.value.default_locale ?? current.default_locale,
|
|
4417
|
+
email_answer_confirmation: parsed.value.email_answer_confirmation ??
|
|
4418
|
+
current.email_answer_confirmation ??
|
|
4419
|
+
"one_click",
|
|
4420
|
+
show_service_category_switches: parsed.value.show_service_category_switches ??
|
|
4421
|
+
current.show_service_category_switches,
|
|
4422
|
+
show_marketing_category_switches: parsed.value.show_marketing_category_switches ??
|
|
4423
|
+
current.show_marketing_category_switches,
|
|
4414
4424
|
diagnostic_id: state.idGenerator("diagnostic"),
|
|
4415
4425
|
project_id: projectId,
|
|
4416
4426
|
row_version: current.row_version + 1,
|