@nsshunt/stsfhirclient 1.0.8 → 1.0.9

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.
@@ -12,14 +12,6 @@ var _options, _DUMMY_USER, _httpsAgent, _invokeMethods, _maxRetries, _sleepDurat
12
12
  import https from "node:https";
13
13
  import axios from "axios";
14
14
  import { Sleep } from "@nsshunt/stsutils";
15
- import { Gauge } from "@nsshunt/stsobservability";
16
- var IFhirPersistenceType = /* @__PURE__ */ ((IFhirPersistenceType2) => {
17
- IFhirPersistenceType2["postgresResources"] = "postgresResources";
18
- IFhirPersistenceType2["postgresResourcesEntities"] = "postgresResourcesEntities";
19
- IFhirPersistenceType2["redisJson"] = "redisJson";
20
- IFhirPersistenceType2["ioredisJson"] = "ioredisJson";
21
- return IFhirPersistenceType2;
22
- })(IFhirPersistenceType || {});
23
15
  var byteToHex = [];
24
16
  for (var i = 0; i < 256; ++i) {
25
17
  byteToHex.push((i + 256).toString(16).slice(1));
@@ -1631,11 +1623,6 @@ class FhirClient {
1631
1623
  if (statusCode === StatusCodes.UNAUTHORIZED) {
1632
1624
  console.error(chalk$1.red(`#InvokeResourceAPI(): Authentication error, resetting access_token (to null).`));
1633
1625
  __privateGet(this, _options).ResetAccessToken();
1634
- if (__privateGet(this, _options).publishInstrumentController) {
1635
- __privateGet(this, _options).publishInstrumentController.UpdateInstrument(Gauge.AUTHENTICATION_ERROR_COUNT_GAUGE, {
1636
- Inc: 1
1637
- });
1638
- }
1639
1626
  if (__privateGet(this, _options).clientTelemetryEvents) {
1640
1627
  __privateGet(this, _options).clientTelemetryEvents.AuthenticationErrorInc();
1641
1628
  }
@@ -1663,11 +1650,6 @@ class FhirClient {
1663
1650
  console.log(`Sleeping: [${__privateGet(this, _sleepDuration)[__privateGet(this, _invokeMethods)[id].retries]}]`);
1664
1651
  await Sleep(__privateGet(this, _sleepDuration)[__privateGet(this, _invokeMethods)[id].retries]);
1665
1652
  __privateGet(this, _invokeMethods)[id].retries++;
1666
- if (__privateGet(this, _options).publishInstrumentController) {
1667
- __privateGet(this, _options).publishInstrumentController.UpdateInstrument(Gauge.RETRY_COUNT_GAUGE, {
1668
- Inc: 1
1669
- });
1670
- }
1671
1653
  if (__privateGet(this, _options).clientTelemetryEvents) {
1672
1654
  __privateGet(this, _options).clientTelemetryEvents.RetryInc();
1673
1655
  }
@@ -1863,7 +1845,6 @@ _InvokeResourceAPI = new WeakMap();
1863
1845
  _TestMode = new WeakMap();
1864
1846
  ___InvokeResourceAPI = new WeakMap();
1865
1847
  export {
1866
- FhirClient,
1867
- IFhirPersistenceType
1848
+ FhirClient
1868
1849
  };
1869
1850
  //# sourceMappingURL=stsfhirclient.mjs.map