@whooshbang/contract-mock 3.0.1 → 3.2.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 CHANGED
@@ -5,6 +5,14 @@ recorded here.
5
5
 
6
6
  ## Unreleased
7
7
 
8
+ ## 3.2.0
9
+
10
+ - Built against contracts 3.2.0 and SDK 4.2.0 (message categories, additive).
11
+
12
+ ## 3.1.0
13
+
14
+ - Built against contracts 3.1.0 and SDK 4.1.0 (additive fields and the resume route).
15
+
8
16
  ## 3.0.1
9
17
 
10
18
  - Use SDK 4.0.1 for the OAuth CLI refresh and revocation fixes. Contracts and mock scenarios remain compatible with 3.0.0.
package/dist/core.js CHANGED
@@ -1246,6 +1246,26 @@ async function createConnectionFingerprint(request) {
1246
1246
  }
1247
1247
  function problem(code, status, diagnosticId, overrides = {}) {
1248
1248
  const defaults = {
1249
+ category_conflict: {
1250
+ detail: "The message category could not be changed.",
1251
+ retryable: false,
1252
+ title: "Message category conflict",
1253
+ },
1254
+ category_not_found: {
1255
+ detail: "No category with that key in this project.",
1256
+ retryable: false,
1257
+ title: "Message category not found",
1258
+ },
1259
+ category_purpose_mismatch: {
1260
+ detail: "The message purpose must match its category. Nothing was sent or charged.",
1261
+ retryable: false,
1262
+ title: "Purpose and category do not match",
1263
+ },
1264
+ category_turned_off: {
1265
+ detail: "The subscriber turned off this message category. Nothing was sent or charged.",
1266
+ retryable: false,
1267
+ title: "Message category turned off",
1268
+ },
1249
1269
  not_consented_for_marketing: {
1250
1270
  detail: "This binding is enrolled for service email only. Nothing was sent or charged.",
1251
1271
  retryable: false,