@spritz-finance/service-client 0.34.0 → 0.34.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.
@@ -60,17 +60,16 @@ async function getUserVerification(userId) {
60
60
  }
61
61
  return body.data;
62
62
  }
63
- // The identity reads stay on legacy REST: it reads Persona as `operational`
64
- // (never shed), while `/api/user/:id/identity` only accepts `interactive` or
65
- // `bulk`. They move to `/api` once that route accepts operational priority.
63
+ // Priority `operational` mirrors the legacy route's Persona behavior (never
64
+ // shed); the /api route gained it in verification#197 for exactly this switch.
66
65
  async function getUserIdentity(userId) {
67
66
  return baseClient
68
- .get(`${VERIFICATION_ENDPOINT}/user/${userId}/identity`)
67
+ .get(`${VERIFICATION_API_ENDPOINT}/user/${userId}/identity?priority=operational`)
69
68
  .then((res) => res.data);
70
69
  }
71
70
  async function getBasicUserIdentity(userId) {
72
71
  return baseClient
73
- .get(`${VERIFICATION_ENDPOINT}/user/${userId}/identity?sensitive=false`)
72
+ .get(`${VERIFICATION_API_ENDPOINT}/user/${userId}/identity?sensitive=false&priority=operational`)
74
73
  .then((res) => res.data);
75
74
  }
76
75
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "gitHead": "06f8e96b7b38c34df26a38da329331940675e4f8",
5
5
  "description": "Service client",
6
6
  "license": "ISC",