@nsshunt/stsfhirclient 1.0.8 → 1.0.10
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/stsfhirclient.mjs +1 -20
- package/dist/stsfhirclient.mjs.map +1 -1
- package/dist/stsfhirclient.umd.js +2 -20
- package/dist/stsfhirclient.umd.js.map +1 -1
- package/package.json +3 -4
- package/types/FhirClient.d.ts +0 -2
- package/types/FhirClient.d.ts.map +1 -1
- package/types/STSFhirTypes.d.ts +0 -40
- package/types/STSFhirTypes.d.ts.map +1 -1
- package/types/stsfhircontrollertestcasesclient.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("node:https"), require("axios"), require("@nsshunt/stsutils")
|
|
3
|
-
})(this, function(exports2, https, axios, stsutils
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("node:https"), require("axios"), require("@nsshunt/stsutils")) : typeof define === "function" && define.amd ? define(["exports", "node:https", "axios", "@nsshunt/stsutils"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@nsshunt/stsfhirclient"] = {}, global.https, global.axios, global.stsutils));
|
|
3
|
+
})(this, function(exports2, https, axios, stsutils) {
|
|
4
4
|
"use strict";var __defProp = Object.defineProperty;
|
|
5
5
|
var __typeError = (msg) => {
|
|
6
6
|
throw TypeError(msg);
|
|
@@ -13,13 +13,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
13
13
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
14
14
|
|
|
15
15
|
var _options, _DUMMY_USER, _httpsAgent, _invokeMethods, _maxRetries, _sleepDuration, _NoRetryStatusCodes, _stsfhirapiroot, _LogDebugMessage, _LogErrorMessage, _GetHttpsAgent, _HandleError, _InvokeResourceAPI, _TestMode, ___InvokeResourceAPI;
|
|
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
16
|
var byteToHex = [];
|
|
24
17
|
for (var i = 0; i < 256; ++i) {
|
|
25
18
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -1631,11 +1624,6 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
1631
1624
|
if (statusCode === StatusCodes.UNAUTHORIZED) {
|
|
1632
1625
|
console.error(chalk$1.red(`#InvokeResourceAPI(): Authentication error, resetting access_token (to null).`));
|
|
1633
1626
|
__privateGet(this, _options).ResetAccessToken();
|
|
1634
|
-
if (__privateGet(this, _options).publishInstrumentController) {
|
|
1635
|
-
__privateGet(this, _options).publishInstrumentController.UpdateInstrument(stsobservability.Gauge.AUTHENTICATION_ERROR_COUNT_GAUGE, {
|
|
1636
|
-
Inc: 1
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
1627
|
if (__privateGet(this, _options).clientTelemetryEvents) {
|
|
1640
1628
|
__privateGet(this, _options).clientTelemetryEvents.AuthenticationErrorInc();
|
|
1641
1629
|
}
|
|
@@ -1663,11 +1651,6 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
1663
1651
|
console.log(`Sleeping: [${__privateGet(this, _sleepDuration)[__privateGet(this, _invokeMethods)[id].retries]}]`);
|
|
1664
1652
|
await stsutils.Sleep(__privateGet(this, _sleepDuration)[__privateGet(this, _invokeMethods)[id].retries]);
|
|
1665
1653
|
__privateGet(this, _invokeMethods)[id].retries++;
|
|
1666
|
-
if (__privateGet(this, _options).publishInstrumentController) {
|
|
1667
|
-
__privateGet(this, _options).publishInstrumentController.UpdateInstrument(stsobservability.Gauge.RETRY_COUNT_GAUGE, {
|
|
1668
|
-
Inc: 1
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
1671
1654
|
if (__privateGet(this, _options).clientTelemetryEvents) {
|
|
1672
1655
|
__privateGet(this, _options).clientTelemetryEvents.RetryInc();
|
|
1673
1656
|
}
|
|
@@ -1863,7 +1846,6 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
1863
1846
|
_TestMode = new WeakMap();
|
|
1864
1847
|
___InvokeResourceAPI = new WeakMap();
|
|
1865
1848
|
exports2.FhirClient = FhirClient;
|
|
1866
|
-
exports2.IFhirPersistenceType = IFhirPersistenceType;
|
|
1867
1849
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
1868
1850
|
});
|
|
1869
1851
|
//# sourceMappingURL=stsfhirclient.umd.js.map
|