@nsshunt/ststestrunner 1.0.41 → 1.0.42

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.
@@ -17,7 +17,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
17
17
  return __privateGet(obj, member, getter);
18
18
  }
19
19
  });
20
- var _runner, _workerInstance, _logMessageDataSet, _publishTelemetryTimeout, _publishTelemetryCount, _maxBufferSize, _publishTelemetryTimeoutVal, _color, _randomPastelColour, _TestCase01_instances, GetRandomHexColor_fn, _GetRandomPastelColor, _debug2, _GenLogMessage, _SetupTimeout, _PublishTelemetryData, _ForcePublishTelemetryData, _PublishTelemetry, _OutputLogMessage, _options4, _agentManager, _randomDataRecordset, _runner2, _workerInstance2, _fhirClient, _accesssToken, _clientId, _clientSecret, _publishTelemetryCount2, _maxBufferSize2, _publishTelemetryTimeout2, _publishTelemetryTimeoutVal2, _originRegex, _LogMessage, _PublishTelemetryData2, _ForcePublishTelemetryData2, _SetupTimeout2, _OutputLogMessage2, _GetPersonRecord, _runner3, _workerInstance3, _logMessageDataSet2, _publishTelemetryTimeout3, _publishTelemetryCount3, _maxBufferSize3, _publishTelemetryTimeoutVal3, _color2, _randomPastelColour2, _TestStartUp_instances, GetRandomHexColor_fn2, _GetRandomPastelColor2, _debug3, _GenLogMessage2, _SetupTimeout3, _PublishTelemetryData3, _ForcePublishTelemetryData3, _PublishTelemetry2, _OutputLogMessage3, _runner4, _workerInstance4, _logMessageDataSet3, _publishTelemetryTimeout4, _publishTelemetryCount4, _maxBufferSize4, _publishTelemetryTimeoutVal4, _color3, _randomPastelColour3, _TestShutDown_instances, GetRandomHexColor_fn3, _GetRandomPastelColor3, _debug4, _GenLogMessage3, _SetupTimeout4, _PublishTelemetryData4, _ForcePublishTelemetryData4, _PublishTelemetry3, _OutputLogMessage4, _options5, _id2, _clientName, _wm, _socketUtils2, _debug5, _error2, _info2, _GetKeyPayloadData, _LogPayloadEventRetVal, _EmitStateChange, _SetupRunnerEventHandlers, _HandleAddRunner, _SetupWSSClient2, _OnSocketConnected2, _RegisterSocketEvents, _EmitEvent, _GetSocketEventHandlers;
20
+ var _runner, _workerInstance, _logMessageDataSet, _publishTelemetryTimeout, _publishTelemetryCount, _maxBufferSize, _publishTelemetryTimeoutVal, _color, _randomPastelColour, _TestCase01_instances, GetRandomHexColor_fn, _GetRandomPastelColor, _debug2, _GenLogMessage, _SetupTimeout, _PublishTelemetryData, _ForcePublishTelemetryData, _PublishTelemetry, _OutputLogMessage, _options4, _agentManager, _randomDataRecordset, _runner2, _workerInstance2, _fhirClient, _accesssToken, _clientId, _clientSecret, _publishTelemetryCount2, _maxBufferSize2, _publishTelemetryTimeout2, _publishTelemetryTimeoutVal2, _originRegex, _LogMessage, _PublishTelemetryData2, _ForcePublishTelemetryData2, _SetupTimeout2, _OutputLogMessage2, _debug3, _debug4, _error2, _GetPersonRecord, _runner3, _workerInstance3, _logMessageDataSet2, _publishTelemetryTimeout3, _publishTelemetryCount3, _maxBufferSize3, _publishTelemetryTimeoutVal3, _color2, _randomPastelColour2, _TestStartUp_instances, GetRandomHexColor_fn2, _GetRandomPastelColor2, _debug5, _GenLogMessage2, _SetupTimeout3, _PublishTelemetryData3, _ForcePublishTelemetryData3, _PublishTelemetry2, _OutputLogMessage3, _runner4, _workerInstance4, _logMessageDataSet3, _publishTelemetryTimeout4, _publishTelemetryCount4, _maxBufferSize4, _publishTelemetryTimeoutVal4, _color3, _randomPastelColour3, _TestShutDown_instances, GetRandomHexColor_fn3, _GetRandomPastelColor3, _debug6, _GenLogMessage3, _SetupTimeout4, _PublishTelemetryData4, _ForcePublishTelemetryData4, _PublishTelemetry3, _OutputLogMessage4, _options5, _id2, _clientName2, _wm, _socketUtils2, _debug7, _error3, _info2, _GetKeyPayloadData, _LogPayloadEventRetVal, _EmitStateChange, _SetupRunnerEventHandlers, _HandleAddRunner, _SetupWSSClient2, _OnSocketConnected2, _RegisterSocketEvents, _EmitEvent, _GetSocketEventHandlers;
21
21
  import { defaultLogger, Sleep, STSAxiosConfig, AgentManager } from "@nsshunt/stsutils";
22
22
  import "@nsshunt/stsobservability";
23
23
  var __defProp$1 = Object.defineProperty;
@@ -6924,7 +6924,7 @@ var __accessCheck$1 = (obj, member, msg) => member.has(obj) || __typeError$1("Ca
6924
6924
  var __privateGet$1 = (obj, member, getter) => (__accessCheck$1(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
6925
6925
  var __privateAdd$1 = (obj, member, value2) => member.has(obj) ? __typeError$1("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value2);
6926
6926
  var __privateSet$1 = (obj, member, value2, setter) => (__accessCheck$1(obj, member, "write to private field"), member.set(obj, value2), value2);
6927
- var _socketUtils, _id, _options2, _debug, _error, _info, _SetupWSSClient, _OnSocketConnected, _options3, _DUMMY_USER, _invokeMethods, _maxRetries, _sleepDuration, _NoRetryStatusCodes, _stsfhirapiroot, _fhirSocketClient, _LogDebugMessage, _LogErrorMessage, _HandleError, _InvokeResourceAPI, _TestMode, ___InvokeResourceAPI, _BuildQueryString;
6927
+ var _socketUtils, _id, _options2, _clientName, _debug, _error, _info, _SetupWSSClient, _OnSocketConnected, _options3, _DUMMY_USER, _invokeMethods, _maxRetries, _sleepDuration, _NoRetryStatusCodes, _stsfhirapiroot, _fhirSocketClient, _LogDebugMessage, _LogErrorMessage, _HandleError, _InvokeResourceAPI, _TestMode, ___InvokeResourceAPI, _BuildQueryString;
6928
6928
  const byteToHex$1 = [];
6929
6929
  for (let i = 0; i < 256; ++i) {
6930
6930
  byteToHex$1.push((i + 256).toString(16).slice(1));
@@ -11938,10 +11938,12 @@ class FhirSocketClient {
11938
11938
  __privateAdd$1(this, _socketUtils);
11939
11939
  __privateAdd$1(this, _id, v4$1());
11940
11940
  __privateAdd$1(this, _options2);
11941
+ __privateAdd$1(this, _clientName);
11941
11942
  __privateAdd$1(this, _debug, (message) => defaultLogger.debug(message));
11942
11943
  __privateAdd$1(this, _error, (error) => defaultLogger.error(error));
11943
11944
  __privateAdd$1(this, _info, (message) => defaultLogger.info(message));
11944
11945
  __privateAdd$1(this, _SetupWSSClient, async (clientName2, joinRooms) => {
11946
+ console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): ID: [${__privateGet$1(this, _id)}] clientName: [${clientName2}] Starting ...`));
11945
11947
  const cstr = `${__privateGet$1(this, _options2).fhirServerEndpoint}/nsstsfhir/`;
11946
11948
  console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): Socket connection string: [${cstr}]`));
11947
11949
  __privateGet$1(this, _socketUtils).SetupClientSideSocket(
@@ -11957,11 +11959,12 @@ class FhirSocketClient {
11957
11959
  (socket2) => {
11958
11960
  },
11959
11961
  // Error Callback
11960
- (error) => __privateGet$1(this, _error).call(this, `${clientName2}: SetupClientSideSocket call back: [${error}]`)
11962
+ (error) => __privateGet$1(this, _error).call(this, `FhirSocketClient:#SetupWSSClient(): Error clientName: [${clientName2}]: SetupClientSideSocket call back: Error: [${error}]`)
11961
11963
  );
11964
+ console.log(chalk.yellow(`FhirSocketClient:#SetupWSSClient(): ID: [${__privateGet$1(this, _id)}] clientName: [${clientName2}] Started`));
11962
11965
  });
11963
11966
  __privateAdd$1(this, _OnSocketConnected, (socket, clientName2, joinRooms) => {
11964
- __privateGet$1(this, _debug).call(this, chalk.green(`${__privateGet$1(this, _id)} ${clientName2}: --> connected`));
11967
+ __privateGet$1(this, _debug).call(this, chalk.green(`FhirSocketClient:#OnSocketConnected(): ID: [${__privateGet$1(this, _id)}] clientName: [${clientName2}]: --> connected`));
11965
11968
  if (joinRooms.length > 0) {
11966
11969
  socket.emit("__STSjoinRoom", joinRooms);
11967
11970
  }
@@ -11995,6 +11998,7 @@ class FhirSocketClient {
11995
11998
  return new Promise((resolve, reject) => {
11996
11999
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("createFhirResource", resource, request, (err, res) => {
11997
12000
  if (err) {
12001
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:CreateResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
11998
12002
  reject(err);
11999
12003
  } else {
12000
12004
  resolve(res);
@@ -12018,6 +12022,7 @@ class FhirSocketClient {
12018
12022
  return new Promise((resolve, reject) => {
12019
12023
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("createFhirResources", resource, request, (err, res) => {
12020
12024
  if (err) {
12025
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:CreateResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12021
12026
  reject(err);
12022
12027
  } else {
12023
12028
  resolve(res);
@@ -12043,6 +12048,7 @@ class FhirSocketClient {
12043
12048
  return new Promise((resolve, reject) => {
12044
12049
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("getFhirResource", resource, request, (err, res) => {
12045
12050
  if (err) {
12051
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:GetResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12046
12052
  reject(err);
12047
12053
  } else {
12048
12054
  resolve(res);
@@ -12066,6 +12072,7 @@ class FhirSocketClient {
12066
12072
  return new Promise((resolve, reject) => {
12067
12073
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("getFhirResources", resource, request, (err, res) => {
12068
12074
  if (err) {
12075
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:GetResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12069
12076
  reject(err);
12070
12077
  } else {
12071
12078
  resolve(res);
@@ -12091,6 +12098,7 @@ class FhirSocketClient {
12091
12098
  return new Promise((resolve, reject) => {
12092
12099
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("updateFhirResource", resource, request, (err, res) => {
12093
12100
  if (err) {
12101
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:UpdateResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12094
12102
  reject(err);
12095
12103
  } else {
12096
12104
  resolve(res);
@@ -12114,6 +12122,7 @@ class FhirSocketClient {
12114
12122
  return new Promise((resolve, reject) => {
12115
12123
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("updateFhirResources", resource, request, (err, res) => {
12116
12124
  if (err) {
12125
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:UpdateResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12117
12126
  reject(err);
12118
12127
  } else {
12119
12128
  resolve(res);
@@ -12139,6 +12148,7 @@ class FhirSocketClient {
12139
12148
  return new Promise((resolve, reject) => {
12140
12149
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("patchFhirResource", resource, request, (err, res) => {
12141
12150
  if (err) {
12151
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:PatchResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12142
12152
  reject(err);
12143
12153
  } else {
12144
12154
  resolve(res);
@@ -12162,6 +12172,7 @@ class FhirSocketClient {
12162
12172
  return new Promise((resolve, reject) => {
12163
12173
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("patchFhirResources", resource, request, (err, res) => {
12164
12174
  if (err) {
12175
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:PatchResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12165
12176
  reject(err);
12166
12177
  } else {
12167
12178
  resolve(res);
@@ -12187,6 +12198,7 @@ class FhirSocketClient {
12187
12198
  return new Promise((resolve, reject) => {
12188
12199
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("deleteFhirResource", resource, request, (err, res) => {
12189
12200
  if (err) {
12201
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:DeleteResource(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12190
12202
  reject(err);
12191
12203
  } else {
12192
12204
  resolve(res);
@@ -12210,6 +12222,7 @@ class FhirSocketClient {
12210
12222
  return new Promise((resolve, reject) => {
12211
12223
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("deleteFhirResources", resource, delRequest, (err, res) => {
12212
12224
  if (err) {
12225
+ __privateGet$1(this, _error).call(this, `FhirSocketClient:DeleteResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12213
12226
  reject(err);
12214
12227
  } else {
12215
12228
  resolve(res);
@@ -12222,6 +12235,7 @@ class FhirSocketClient {
12222
12235
  __privateSet$1(this, _options2, options);
12223
12236
  __privateSet$1(this, _socketUtils, new SocketIoClientHelper$1(__privateGet$1(this, _options2).socketIoClientHelperOptions));
12224
12237
  const clientName = v4$1();
12238
+ __privateSet$1(this, _clientName, clientName);
12225
12239
  __privateGet$1(this, _SetupWSSClient).call(this, clientName, []);
12226
12240
  }
12227
12241
  get socket() {
@@ -12231,6 +12245,7 @@ class FhirSocketClient {
12231
12245
  _socketUtils = /* @__PURE__ */ new WeakMap();
12232
12246
  _id = /* @__PURE__ */ new WeakMap();
12233
12247
  _options2 = /* @__PURE__ */ new WeakMap();
12248
+ _clientName = /* @__PURE__ */ new WeakMap();
12234
12249
  _debug = /* @__PURE__ */ new WeakMap();
12235
12250
  _error = /* @__PURE__ */ new WeakMap();
12236
12251
  _info = /* @__PURE__ */ new WeakMap();
@@ -12899,7 +12914,8 @@ class TestCaseFhirBase {
12899
12914
  // `https://stscore.stsmda.org:3005/nsstsfhir/`,
12900
12915
  socketIoCustomPath: "/stsfhirsocket/socket.io/",
12901
12916
  socketClientName: "ststestrunner",
12902
- timeout: 5e3,
12917
+ timeout: 1e4,
12918
+ //@@ config option as with all options above
12903
12919
  socketIoClientHelperOptions: {
12904
12920
  logger: defaultLogger
12905
12921
  }
@@ -13511,6 +13527,7 @@ class TestCaseFhir09 extends TestCaseFhirBase {
13511
13527
  class StartUpDelFhirResources extends TestCaseFhirBase {
13512
13528
  constructor(workerInstance, runner) {
13513
13529
  super(workerInstance, runner);
13530
+ __privateAdd(this, _debug3, (message) => defaultLogger.debug(`StartUpDelFhirResources: ${message}`));
13514
13531
  __publicField(this, "ExecuteRunner", async () => {
13515
13532
  const start = performance.now();
13516
13533
  const options = this.runner.options;
@@ -13523,18 +13540,18 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
13523
13540
  let complete = false;
13524
13541
  let totalRecordsDelete = 0;
13525
13542
  while (!complete) {
13526
- console.log(chalk$1.magenta(`ExecuteRunner() - pre GetResources()`));
13543
+ __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - pre GetResources()`));
13527
13544
  const retVal = await this.fhirClient.GetResources("Person", null, {
13528
13545
  limit: options.batchDeleteSize,
13529
13546
  prefix: options.personPrefix
13530
13547
  }, (error) => {
13531
13548
  this.LogErrorMessage(chalk$1.red(`test(POST /stsresource and query using filter): ${error}`));
13532
13549
  });
13533
- console.log(chalk$1.magenta(`ExecuteRunner() - post GetResources()`));
13534
- console.log(retVal);
13550
+ __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post GetResources()`));
13551
+ __privateGet(this, _debug3).call(this, retVal);
13535
13552
  if (retVal) {
13536
- console.log(`Records already exist - going to delete ...`);
13537
- console.log(retVal.length);
13553
+ __privateGet(this, _debug3).call(this, `Records already exist - going to delete ...`);
13554
+ __privateGet(this, _debug3).call(this, retVal.length);
13538
13555
  const delRetVal = await this.fhirClient.DeleteResources("Person", retVal, (error) => {
13539
13556
  this.LogErrorMessage(chalk$1.red(`test(POST /stsresource and query using filter): ${error}`));
13540
13557
  });
@@ -13542,10 +13559,10 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
13542
13559
  if (delRetVal.length === 0) {
13543
13560
  complete = true;
13544
13561
  } else {
13545
- console.log(`Records deleted ...`);
13546
- console.log(delRetVal.length);
13562
+ __privateGet(this, _debug3).call(this, `Records deleted ...`);
13563
+ __privateGet(this, _debug3).call(this, delRetVal.length);
13547
13564
  totalRecordsDelete += delRetVal.length;
13548
- console.log(chalk$1.red(`total records delete = ${totalRecordsDelete}`));
13565
+ __privateGet(this, _debug3).call(this, chalk$1.red(`total records delete = ${totalRecordsDelete}`));
13549
13566
  }
13550
13567
  } else {
13551
13568
  complete = true;
@@ -13555,7 +13572,7 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
13555
13572
  }
13556
13573
  await Sleep(1);
13557
13574
  }
13558
- console.log(chalk$1.red(`total records delete = ${totalRecordsDelete}`));
13575
+ __privateGet(this, _debug3).call(this, chalk$1.red(`total records delete = ${totalRecordsDelete}`));
13559
13576
  this.runner.instrumentData.activeRequestCount--;
13560
13577
  const end = performance.now();
13561
13578
  const diff = end - start;
@@ -13565,6 +13582,7 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
13565
13582
  });
13566
13583
  }
13567
13584
  }
13585
+ _debug3 = new WeakMap();
13568
13586
  var e = [{ name: "Aegean Airlines", iataCode: "A3" }, { name: "Aeroflot", iataCode: "SU" }, { name: "Aerolineas Argentinas", iataCode: "AR" }, { name: "Aeromexico", iataCode: "AM" }, { name: "Air Algerie", iataCode: "AH" }, { name: "Air Arabia", iataCode: "G9" }, { name: "Air Canada", iataCode: "AC" }, { name: "Air China", iataCode: "CA" }, { name: "Air Europa", iataCode: "UX" }, { name: "Air France", iataCode: "AF" }, { name: "Air India", iataCode: "AI" }, { name: "Air Mauritius", iataCode: "MK" }, { name: "Air New Zealand", iataCode: "NZ" }, { name: "Air Niugini", iataCode: "PX" }, { name: "Air Tahiti", iataCode: "VT" }, { name: "Air Tahiti Nui", iataCode: "TN" }, { name: "Air Transat", iataCode: "TS" }, { name: "AirAsia X", iataCode: "D7" }, { name: "AirAsia", iataCode: "AK" }, { name: "Aircalin", iataCode: "SB" }, { name: "Alaska Airlines", iataCode: "AS" }, { name: "Alitalia", iataCode: "AZ" }, { name: "All Nippon Airways", iataCode: "NH" }, { name: "Allegiant Air", iataCode: "G4" }, { name: "American Airlines", iataCode: "AA" }, { name: "Asiana Airlines", iataCode: "OZ" }, { name: "Avianca", iataCode: "AV" }, { name: "Azul Linhas Aereas Brasileiras", iataCode: "AD" }, { name: "Azur Air", iataCode: "ZF" }, { name: "Beijing Capital Airlines", iataCode: "JD" }, { name: "Boliviana de Aviacion", iataCode: "OB" }, { name: "British Airways", iataCode: "BA" }, { name: "Cathay Pacific", iataCode: "CX" }, { name: "Cebu Pacific Air", iataCode: "5J" }, { name: "China Airlines", iataCode: "CI" }, { name: "China Eastern Airlines", iataCode: "MU" }, { name: "China Southern Airlines", iataCode: "CZ" }, { name: "Condor", iataCode: "DE" }, { name: "Copa Airlines", iataCode: "CM" }, { name: "Delta Air Lines", iataCode: "DL" }, { name: "Easyfly", iataCode: "VE" }, { name: "EasyJet", iataCode: "U2" }, { name: "EcoJet", iataCode: "8J" }, { name: "Egyptair", iataCode: "MS" }, { name: "El Al", iataCode: "LY" }, { name: "Emirates Airlines", iataCode: "EK" }, { name: "Ethiopian Airlines", iataCode: "ET" }, { name: "Etihad Airways", iataCode: "EY" }, { name: "EVA Air", iataCode: "BR" }, { name: "Fiji Airways", iataCode: "FJ" }, { name: "Finnair", iataCode: "AY" }, { name: "Flybondi", iataCode: "FO" }, { name: "Flydubai", iataCode: "FZ" }, { name: "FlySafair", iataCode: "FA" }, { name: "Frontier Airlines", iataCode: "F9" }, { name: "Garuda Indonesia", iataCode: "GA" }, { name: "Go First", iataCode: "G8" }, { name: "Gol Linhas Aereas Inteligentes", iataCode: "G3" }, { name: "Hainan Airlines", iataCode: "HU" }, { name: "Hawaiian Airlines", iataCode: "HA" }, { name: "IndiGo Airlines", iataCode: "6E" }, { name: "Japan Airlines", iataCode: "JL" }, { name: "Jeju Air", iataCode: "7C" }, { name: "Jet2", iataCode: "LS" }, { name: "JetBlue Airways", iataCode: "B6" }, { name: "JetSMART", iataCode: "JA" }, { name: "Juneyao Airlines", iataCode: "HO" }, { name: "Kenya Airways", iataCode: "KQ" }, { name: "KLM Royal Dutch Airlines", iataCode: "KL" }, { name: "Korean Air", iataCode: "KE" }, { name: "Kulula.com", iataCode: "MN" }, { name: "LATAM Airlines", iataCode: "LA" }, { name: "Lion Air", iataCode: "JT" }, { name: "LOT Polish Airlines", iataCode: "LO" }, { name: "Lufthansa", iataCode: "LH" }, { name: "Libyan Airlines", iataCode: "LN" }, { name: "Linea Aerea Amaszonas", iataCode: "Z8" }, { name: "Malaysia Airlines", iataCode: "MH" }, { name: "Nordwind Airlines", iataCode: "N4" }, { name: "Norwegian Air Shuttle", iataCode: "DY" }, { name: "Oman Air", iataCode: "WY" }, { name: "Pakistan International Airlines", iataCode: "PK" }, { name: "Pegasus Airlines", iataCode: "PC" }, { name: "Philippine Airlines", iataCode: "PR" }, { name: "Qantas Group", iataCode: "QF" }, { name: "Qatar Airways", iataCode: "QR" }, { name: "Republic Airways", iataCode: "YX" }, { name: "Royal Air Maroc", iataCode: "AT" }, { name: "Ryanair", iataCode: "FR" }, { name: "S7 Airlines", iataCode: "S7" }, { name: "SAS", iataCode: "SK" }, { name: "Satena", iataCode: "9R" }, { name: "Saudia", iataCode: "SV" }, { name: "Shandong Airlines", iataCode: "SC" }, { name: "Sichuan Airlines", iataCode: "3U" }, { name: "Singapore Airlines", iataCode: "SQ" }, { name: "Sky Airline", iataCode: "H2" }, { name: "SkyWest Airlines", iataCode: "OO" }, { name: "South African Airways", iataCode: "SA" }, { name: "Southwest Airlines", iataCode: "WN" }, { name: "SpiceJet", iataCode: "SG" }, { name: "Spirit Airlines", iataCode: "NK" }, { name: "Spring Airlines", iataCode: "9S" }, { name: "SriLankan Airlines", iataCode: "UL" }, { name: "Star Peru", iataCode: "2I" }, { name: "Sun Country Airlines", iataCode: "SY" }, { name: "SunExpress", iataCode: "XQ" }, { name: "TAP Air Portugal", iataCode: "TP" }, { name: "Thai AirAsia", iataCode: "FD" }, { name: "Thai Airways", iataCode: "TG" }, { name: "TUI Airways", iataCode: "BY" }, { name: "Tunisair", iataCode: "TU" }, { name: "Turkish Airlines", iataCode: "TK" }, { name: "Ukraine International", iataCode: "PS" }, { name: "United Airlines", iataCode: "UA" }, { name: "Ural Airlines", iataCode: "U6" }, { name: "VietJet Air", iataCode: "VJ" }, { name: "Vietnam Airlines", iataCode: "VN" }, { name: "Virgin Atlantic Airways", iataCode: "VS" }, { name: "Virgin Australia", iataCode: "VA" }, { name: "VivaAerobus", iataCode: "VB" }, { name: "VOEPASS Linhas Aereas", iataCode: "2Z" }, { name: "Volaris", iataCode: "Y4" }, { name: "WestJet", iataCode: "WS" }, { name: "Wingo", iataCode: "P5" }, { name: "Wizz Air", iataCode: "W6" }];
13569
13587
  var a = [{ name: "Aerospatiale/BAC Concorde", iataTypeCode: "SSC" }, { name: "Airbus A300", iataTypeCode: "AB3" }, { name: "Airbus A310", iataTypeCode: "310" }, { name: "Airbus A310-200", iataTypeCode: "312" }, { name: "Airbus A310-300", iataTypeCode: "313" }, { name: "Airbus A318", iataTypeCode: "318" }, { name: "Airbus A319", iataTypeCode: "319" }, { name: "Airbus A319neo", iataTypeCode: "31N" }, { name: "Airbus A320", iataTypeCode: "320" }, { name: "Airbus A320neo", iataTypeCode: "32N" }, { name: "Airbus A321", iataTypeCode: "321" }, { name: "Airbus A321neo", iataTypeCode: "32Q" }, { name: "Airbus A330", iataTypeCode: "330" }, { name: "Airbus A330-200", iataTypeCode: "332" }, { name: "Airbus A330-300", iataTypeCode: "333" }, { name: "Airbus A330-800neo", iataTypeCode: "338" }, { name: "Airbus A330-900neo", iataTypeCode: "339" }, { name: "Airbus A340", iataTypeCode: "340" }, { name: "Airbus A340-200", iataTypeCode: "342" }, { name: "Airbus A340-300", iataTypeCode: "343" }, { name: "Airbus A340-500", iataTypeCode: "345" }, { name: "Airbus A340-600", iataTypeCode: "346" }, { name: "Airbus A350", iataTypeCode: "350" }, { name: "Airbus A350-900", iataTypeCode: "359" }, { name: "Airbus A350-1000", iataTypeCode: "351" }, { name: "Airbus A380", iataTypeCode: "380" }, { name: "Airbus A380-800", iataTypeCode: "388" }, { name: "Antonov An-12", iataTypeCode: "ANF" }, { name: "Antonov An-24", iataTypeCode: "AN4" }, { name: "Antonov An-26", iataTypeCode: "A26" }, { name: "Antonov An-28", iataTypeCode: "A28" }, { name: "Antonov An-30", iataTypeCode: "A30" }, { name: "Antonov An-32", iataTypeCode: "A32" }, { name: "Antonov An-72", iataTypeCode: "AN7" }, { name: "Antonov An-124 Ruslan", iataTypeCode: "A4F" }, { name: "Antonov An-140", iataTypeCode: "A40" }, { name: "Antonov An-148", iataTypeCode: "A81" }, { name: "Antonov An-158", iataTypeCode: "A58" }, { name: "Antonov An-225 Mriya", iataTypeCode: "A5F" }, { name: "Boeing 707", iataTypeCode: "703" }, { name: "Boeing 717", iataTypeCode: "717" }, { name: "Boeing 720B", iataTypeCode: "B72" }, { name: "Boeing 727", iataTypeCode: "727" }, { name: "Boeing 727-100", iataTypeCode: "721" }, { name: "Boeing 727-200", iataTypeCode: "722" }, { name: "Boeing 737 MAX 7", iataTypeCode: "7M7" }, { name: "Boeing 737 MAX 8", iataTypeCode: "7M8" }, { name: "Boeing 737 MAX 9", iataTypeCode: "7M9" }, { name: "Boeing 737 MAX 10", iataTypeCode: "7MJ" }, { name: "Boeing 737", iataTypeCode: "737" }, { name: "Boeing 737-100", iataTypeCode: "731" }, { name: "Boeing 737-200", iataTypeCode: "732" }, { name: "Boeing 737-300", iataTypeCode: "733" }, { name: "Boeing 737-400", iataTypeCode: "734" }, { name: "Boeing 737-500", iataTypeCode: "735" }, { name: "Boeing 737-600", iataTypeCode: "736" }, { name: "Boeing 737-700", iataTypeCode: "73G" }, { name: "Boeing 737-800", iataTypeCode: "738" }, { name: "Boeing 737-900", iataTypeCode: "739" }, { name: "Boeing 747", iataTypeCode: "747" }, { name: "Boeing 747-100", iataTypeCode: "741" }, { name: "Boeing 747-200", iataTypeCode: "742" }, { name: "Boeing 747-300", iataTypeCode: "743" }, { name: "Boeing 747-400", iataTypeCode: "744" }, { name: "Boeing 747-400D", iataTypeCode: "74J" }, { name: "Boeing 747-8", iataTypeCode: "748" }, { name: "Boeing 747SP", iataTypeCode: "74L" }, { name: "Boeing 747SR", iataTypeCode: "74R" }, { name: "Boeing 757", iataTypeCode: "757" }, { name: "Boeing 757-200", iataTypeCode: "752" }, { name: "Boeing 757-300", iataTypeCode: "753" }, { name: "Boeing 767", iataTypeCode: "767" }, { name: "Boeing 767-200", iataTypeCode: "762" }, { name: "Boeing 767-300", iataTypeCode: "763" }, { name: "Boeing 767-400", iataTypeCode: "764" }, { name: "Boeing 777", iataTypeCode: "777" }, { name: "Boeing 777-200", iataTypeCode: "772" }, { name: "Boeing 777-200LR", iataTypeCode: "77L" }, { name: "Boeing 777-300", iataTypeCode: "773" }, { name: "Boeing 777-300ER", iataTypeCode: "77W" }, { name: "Boeing 787", iataTypeCode: "787" }, { name: "Boeing 787-8", iataTypeCode: "788" }, { name: "Boeing 787-9", iataTypeCode: "789" }, { name: "Boeing 787-10", iataTypeCode: "781" }, { name: "Canadair Challenger", iataTypeCode: "CCJ" }, { name: "Canadair CL-44", iataTypeCode: "CL4" }, { name: "Canadair Regional Jet 100", iataTypeCode: "CR1" }, { name: "Canadair Regional Jet 200", iataTypeCode: "CR2" }, { name: "Canadair Regional Jet 700", iataTypeCode: "CR7" }, { name: "Canadair Regional Jet 705", iataTypeCode: "CRA" }, { name: "Canadair Regional Jet 900", iataTypeCode: "CR9" }, { name: "Canadair Regional Jet 1000", iataTypeCode: "CRK" }, { name: "De Havilland Canada DHC-2 Beaver", iataTypeCode: "DHP" }, { name: "De Havilland Canada DHC-2 Turbo-Beaver", iataTypeCode: "DHR" }, { name: "De Havilland Canada DHC-3 Otter", iataTypeCode: "DHL" }, { name: "De Havilland Canada DHC-4 Caribou", iataTypeCode: "DHC" }, { name: "De Havilland Canada DHC-6 Twin Otter", iataTypeCode: "DHT" }, { name: "De Havilland Canada DHC-7 Dash 7", iataTypeCode: "DH7" }, { name: "De Havilland Canada DHC-8-100 Dash 8 / 8Q", iataTypeCode: "DH1" }, { name: "De Havilland Canada DHC-8-200 Dash 8 / 8Q", iataTypeCode: "DH2" }, { name: "De Havilland Canada DHC-8-300 Dash 8 / 8Q", iataTypeCode: "DH3" }, { name: "De Havilland Canada DHC-8-400 Dash 8Q", iataTypeCode: "DH4" }, { name: "De Havilland DH.104 Dove", iataTypeCode: "DHD" }, { name: "De Havilland DH.114 Heron", iataTypeCode: "DHH" }, { name: "Douglas DC-3", iataTypeCode: "D3F" }, { name: "Douglas DC-6", iataTypeCode: "D6F" }, { name: "Douglas DC-8-50", iataTypeCode: "D8T" }, { name: "Douglas DC-8-62", iataTypeCode: "D8L" }, { name: "Douglas DC-8-72", iataTypeCode: "D8Q" }, { name: "Douglas DC-9-10", iataTypeCode: "D91" }, { name: "Douglas DC-9-20", iataTypeCode: "D92" }, { name: "Douglas DC-9-30", iataTypeCode: "D93" }, { name: "Douglas DC-9-40", iataTypeCode: "D94" }, { name: "Douglas DC-9-50", iataTypeCode: "D95" }, { name: "Douglas DC-10", iataTypeCode: "D10" }, { name: "Douglas DC-10-10", iataTypeCode: "D1X" }, { name: "Douglas DC-10-30", iataTypeCode: "D1Y" }, { name: "Embraer 170", iataTypeCode: "E70" }, { name: "Embraer 175", iataTypeCode: "E75" }, { name: "Embraer 190", iataTypeCode: "E90" }, { name: "Embraer 195", iataTypeCode: "E95" }, { name: "Embraer E190-E2", iataTypeCode: "290" }, { name: "Embraer E195-E2", iataTypeCode: "295" }, { name: "Embraer EMB.110 Bandeirante", iataTypeCode: "EMB" }, { name: "Embraer EMB.120 Brasilia", iataTypeCode: "EM2" }, { name: "Embraer Legacy 600", iataTypeCode: "ER3" }, { name: "Embraer Phenom 100", iataTypeCode: "EP1" }, { name: "Embraer Phenom 300", iataTypeCode: "EP3" }, { name: "Embraer RJ135", iataTypeCode: "ER3" }, { name: "Embraer RJ140", iataTypeCode: "ERD" }, { name: "Embraer RJ145 Amazon", iataTypeCode: "ER4" }, { name: "Ilyushin IL18", iataTypeCode: "IL8" }, { name: "Ilyushin IL62", iataTypeCode: "IL6" }, { name: "Ilyushin IL76", iataTypeCode: "IL7" }, { name: "Ilyushin IL86", iataTypeCode: "ILW" }, { name: "Ilyushin IL96-300", iataTypeCode: "I93" }, { name: "Ilyushin IL114", iataTypeCode: "I14" }, { name: "Lockheed L-182 / 282 / 382 (L-100) Hercules", iataTypeCode: "LOH" }, { name: "Lockheed L-188 Electra", iataTypeCode: "LOE" }, { name: "Lockheed L-1011 Tristar", iataTypeCode: "L10" }, { name: "Lockheed L-1049 Super Constellation", iataTypeCode: "L49" }, { name: "McDonnell Douglas MD11", iataTypeCode: "M11" }, { name: "McDonnell Douglas MD80", iataTypeCode: "M80" }, { name: "McDonnell Douglas MD81", iataTypeCode: "M81" }, { name: "McDonnell Douglas MD82", iataTypeCode: "M82" }, { name: "McDonnell Douglas MD83", iataTypeCode: "M83" }, { name: "McDonnell Douglas MD87", iataTypeCode: "M87" }, { name: "McDonnell Douglas MD88", iataTypeCode: "M88" }, { name: "McDonnell Douglas MD90", iataTypeCode: "M90" }, { name: "Sukhoi Superjet 100-95", iataTypeCode: "SU9" }, { name: "Tupolev Tu-134", iataTypeCode: "TU3" }, { name: "Tupolev Tu-154", iataTypeCode: "TU5" }, { name: "Tupolev Tu-204", iataTypeCode: "T20" }, { name: "Yakovlev Yak-40", iataTypeCode: "YK4" }, { name: "Yakovlev Yak-42", iataTypeCode: "YK2" }];
13570
13588
  var r = [{ name: "Adelaide International Airport", iataCode: "ADL" }, { name: "Adolfo Suarez Madrid-Barajas Airport", iataCode: "MAD" }, { name: "Aeroparque Jorge Newbery Airport", iataCode: "AEP" }, { name: "Afonso Pena International Airport", iataCode: "CWB" }, { name: "Alfonso Bonilla Aragon International Airport", iataCode: "CLO" }, { name: "Amsterdam Airport Schiphol", iataCode: "AMS" }, { name: "Arturo Merino Benitez International Airport", iataCode: "SCL" }, { name: "Auckland International Airport", iataCode: "AKL" }, { name: "Beijing Capital International Airport", iataCode: "PEK" }, { name: "Belem Val de Cans International Airport", iataCode: "BEL" }, { name: "Belo Horizonte Tancredo Neves International Airport", iataCode: "CNF" }, { name: "Berlin-Tegel Airport", iataCode: "TXL" }, { name: "Bole International Airport", iataCode: "ADD" }, { name: "Brasilia-Presidente Juscelino Kubitschek International Airport", iataCode: "BSB" }, { name: "Brisbane International Airport", iataCode: "BNE" }, { name: "Brussels Airport", iataCode: "BRU" }, { name: "Cairns Airport", iataCode: "CNS" }, { name: "Cairo International Airport", iataCode: "CAI" }, { name: "Canberra Airport", iataCode: "CBR" }, { name: "Capetown International Airport", iataCode: "CPT" }, { name: "Charles de Gaulle International Airport", iataCode: "CDG" }, { name: "Charlotte Douglas International Airport", iataCode: "CLT" }, { name: "Chengdu Shuangliu International Airport", iataCode: "CTU" }, { name: "Chhatrapati Shivaji International Airport", iataCode: "BOM" }, { name: "Chicago O'Hare International Airport", iataCode: "ORD" }, { name: "Chongqing Jiangbei International Airport", iataCode: "CKG" }, { name: "Christchurch International Airport", iataCode: "CHC" }, { name: "Copenhagen Kastrup Airport", iataCode: "CPH" }, { name: "Dallas Fort Worth International Airport", iataCode: "DFW" }, { name: "Daniel K. Inouye International Airport", iataCode: "HNL" }, { name: "Denver International Airport", iataCode: "DEN" }, { name: "Don Mueang International Airport", iataCode: "DMK" }, { name: "Dubai International Airport", iataCode: "DXB" }, { name: "Dublin Airport", iataCode: "DUB" }, { name: "Dusseldorf Airport", iataCode: "DUS" }, { name: "El Dorado International Airport", iataCode: "BOG" }, { name: "Eleftherios Venizelos International Airport", iataCode: "ATH" }, { name: "Faa'a International Airport", iataCode: "PPT" }, { name: "Fort Lauderdale Hollywood International Airport", iataCode: "FLL" }, { name: "Fortaleza Pinto Martins International Airport", iataCode: "FOR" }, { name: "Frankfurt am Main Airport", iataCode: "FRA" }, { name: "George Bush Intercontinental Houston Airport", iataCode: "IAH" }, { name: "Gold Coast Airport", iataCode: "OOL" }, { name: "Guarulhos - Governador Andre Franco Montoro International Airport", iataCode: "GRU" }, { name: "Hartsfield-Jackson Atlanta International Airport", iataCode: "ATL" }, { name: "Helsinki Vantaa Airport", iataCode: "HEL" }, { name: "Hobart International Airport", iataCode: "HBA" }, { name: "Hong Kong International Airport", iataCode: "HKG" }, { name: "Houari Boumediene Airport", iataCode: "ALG" }, { name: "Hurgada International Airport", iataCode: "HRG" }, { name: "Incheon International Airport", iataCode: "ICN" }, { name: "Indira Gandhi International Airport", iataCode: "DEL" }, { name: "Istanbul Airport", iataCode: "IST" }, { name: "Jacksons International Airport", iataCode: "POM" }, { name: "Jeju International Airport", iataCode: "CJU" }, { name: "John F Kennedy International Airport", iataCode: "JFK" }, { name: "Jorge Chavez International Airport", iataCode: "LIM" }, { name: "Jose Maria Cordova International Airport", iataCode: "MDE" }, { name: "Josep Tarradellas Barcelona-El Prat Airport", iataCode: "BCN" }, { name: "Kahului Airport", iataCode: "OGG" }, { name: "King Abdulaziz International Airport", iataCode: "JED" }, { name: "Kuala Lumpur International Airport", iataCode: "KUL" }, { name: "Kunming Changshui International Airport", iataCode: "KMG" }, { name: "La Tontouta International Airport", iataCode: "NOU" }, { name: "Leonardo da Vinci-Fiumicino Airport", iataCode: "FCO" }, { name: "London Heathrow Airport", iataCode: "LHR" }, { name: "Los Angeles International Airport", iataCode: "LAX" }, { name: "McCarran International Airport", iataCode: "LAS" }, { name: "Melbourne International Airport", iataCode: "MEL" }, { name: "Mexico City International Airport", iataCode: "MEX" }, { name: "Miami International Airport", iataCode: "MIA" }, { name: "Ministro Pistarini International Airport", iataCode: "EZE" }, { name: "Minneapolis-St Paul International/Wold-Chamberlain Airport", iataCode: "MSP" }, { name: "Mohammed V International Airport", iataCode: "CMN" }, { name: "Moscow Domodedovo Airport", iataCode: "DME" }, { name: "Munich Airport", iataCode: "MUC" }, { name: "Murtala Muhammed International Airport", iataCode: "LOS" }, { name: "Nadi International Airport", iataCode: "NAN" }, { name: "Nairobi Jomo Kenyatta International Airport", iataCode: "NBO" }, { name: "Narita International Airport", iataCode: "NRT" }, { name: "Newark Liberty International Airport", iataCode: "EWR" }, { name: "Ninoy Aquino International Airport", iataCode: "MNL" }, { name: "Noumea Magenta Airport", iataCode: "GEA" }, { name: "O. R. Tambo International Airport", iataCode: "JNB" }, { name: "Orlando International Airport", iataCode: "MCO" }, { name: "Oslo Lufthavn", iataCode: "OSL" }, { name: "Perth Airport", iataCode: "PER" }, { name: "Phoenix Sky Harbor International Airport", iataCode: "PHX" }, { name: "Recife Guararapes-Gilberto Freyre International Airport", iataCode: "REC" }, { name: "Rio de Janeiro Galeao International Airport", iataCode: "GIG" }, { name: "Salgado Filho International Airport", iataCode: "POA" }, { name: "Salvador Deputado Luis Eduardo Magalhaes International Airport", iataCode: "SSA" }, { name: "San Francisco International Airport", iataCode: "SFO" }, { name: "Santos Dumont Airport", iataCode: "SDU" }, { name: "Sao Paulo-Congonhas Airport", iataCode: "CGH" }, { name: "Seattle Tacoma International Airport", iataCode: "SEA" }, { name: "Shanghai Hongqiao International Airport", iataCode: "SHA" }, { name: "Shanghai Pudong International Airport", iataCode: "PVG" }, { name: "Shenzhen Bao'an International Airport", iataCode: "SZX" }, { name: "Sheremetyevo International Airport", iataCode: "SVO" }, { name: "Singapore Changi Airport", iataCode: "SIN" }, { name: "Soekarno-Hatta International Airport", iataCode: "CGK" }, { name: 'Stockholm-Arlanda Airport"', iataCode: "ARN" }, { name: "Suvarnabhumi Airport", iataCode: "BKK" }, { name: "Sydney Kingsford Smith International Airport", iataCode: "SYD" }, { name: "Taiwan Taoyuan International Airport", iataCode: "TPE" }, { name: "Tan Son Nhat International Airport", iataCode: "SGN" }, { name: "Tokyo Haneda International Airport", iataCode: "HND" }, { name: "Toronto Pearson International Airport", iataCode: "YYZ" }, { name: "Tunis Carthage International Airport", iataCode: "TUN" }, { name: "Vancouver International Airport", iataCode: "YVR" }, { name: "Vienna International Airport", iataCode: "VIE" }, { name: "Viracopos International Airport", iataCode: "VCP" }, { name: "Vnukovo International Airport", iataCode: "VKO" }, { name: "Wellington International Airport", iataCode: "WLG" }, { name: "Xi'an Xianyang International Airport", iataCode: "XIY" }, { name: "Zhukovsky International Airport", iataCode: "ZIA" }, { name: "Zurich Airport", iataCode: "ZRH" }];
@@ -15567,6 +15585,8 @@ function v4(options, buf, offset) {
15567
15585
  class SetupFhirTestResources extends TestCaseFhirBase {
15568
15586
  constructor(workerInstance, runner) {
15569
15587
  super(workerInstance, runner);
15588
+ __privateAdd(this, _debug4, (message) => defaultLogger.debug(`SetupFhirTestResources: ${message}`));
15589
+ __privateAdd(this, _error2, (message) => defaultLogger.error(`SetupFhirTestResources (error): ${message}`));
15570
15590
  __privateAdd(this, _GetPersonRecord, (testRecordPrefix, prefix, index, blockSize) => {
15571
15591
  const id = `${testRecordPrefix}_${index}`;
15572
15592
  const records = [];
@@ -15612,14 +15632,14 @@ class SetupFhirTestResources extends TestCaseFhirBase {
15612
15632
  }
15613
15633
  this.runner.instrumentData.activeRequestCount++;
15614
15634
  const personRecord = __privateGet(this, _GetPersonRecord).call(this, options.testBlocksPrefix, options.personPrefix, this.runner.iteration, options.blockSize);
15615
- console.log(chalk$1.yellow(JSON.stringify(personRecord).length));
15635
+ __privateGet(this, _debug4).call(this, chalk$1.yellow(`ExecuteRunner(): Record Length: [${JSON.stringify(personRecord).length}]`));
15616
15636
  try {
15617
15637
  const retVal = await this.fhirClient.CreateResource("Person", personRecord, (error) => {
15618
- this.LogErrorMessage(`test(POST /stsresource and query using filter): ${error}`);
15638
+ this.LogErrorMessage(`ExecuteRunner():CreateResource: Error: [${error}]`);
15619
15639
  });
15620
- console.log(chalk$1.yellow(retVal == null ? void 0 : retVal.id));
15640
+ __privateGet(this, _debug4).call(this, chalk$1.yellow(`ExecuteRunner():CreateResource: Return ID: [${retVal == null ? void 0 : retVal.id}]`));
15621
15641
  } catch (error) {
15622
- console.log(chalk$1.red(error));
15642
+ __privateGet(this, _error2).call(this, chalk$1.red(`ExecuteRunner():CreateResource: Error: [${error}]`));
15623
15643
  this.runner.instrumentData.errorCount++;
15624
15644
  }
15625
15645
  this.runner.instrumentData.coreCount = 1;
@@ -15636,6 +15656,8 @@ class SetupFhirTestResources extends TestCaseFhirBase {
15636
15656
  });
15637
15657
  }
15638
15658
  }
15659
+ _debug4 = new WeakMap();
15660
+ _error2 = new WeakMap();
15639
15661
  _GetPersonRecord = new WeakMap();
15640
15662
  class TestStartUp {
15641
15663
  constructor(workerInstance, runner) {
@@ -15658,7 +15680,7 @@ class TestStartUp {
15658
15680
  const b2 = Math.floor(Math.random() * 127 + 127);
15659
15681
  return `#${((1 << 24) + (r2 << 16) + (g2 << 8) + b2).toString(16).slice(1).toUpperCase()}`;
15660
15682
  });
15661
- __privateAdd(this, _debug3, (message) => {
15683
+ __privateAdd(this, _debug5, (message) => {
15662
15684
  __privateGet(this, _workerInstance3).logger.debug(message);
15663
15685
  });
15664
15686
  __privateAdd(this, _GenLogMessage2, (runner, iteration) => {
@@ -15672,7 +15694,7 @@ class TestStartUp {
15672
15694
  let message = `${" ".repeat(logMessageData.indent)} [${runner.id}] >> Hello World << ${iteration}`;
15673
15695
  message = chalk$1.hex(__privateGet(this, _randomPastelColour2))(message);
15674
15696
  runner.instrumentData.message.push(message);
15675
- __privateGet(this, _debug3).call(this, message);
15697
+ __privateGet(this, _debug5).call(this, message);
15676
15698
  logMessageData.indent += logMessageData.adder;
15677
15699
  if (logMessageData.indent > 20) {
15678
15700
  logMessageData.adder = -1;
@@ -15726,13 +15748,13 @@ class TestStartUp {
15726
15748
  __privateGet(this, _runner3).instrumentData.velocity++;
15727
15749
  __privateGet(this, _runner3).instrumentData.tx += 256e3;
15728
15750
  __privateGet(this, _runner3).instrumentData.rx += 65e5;
15729
- __privateGet(this, _debug3).call(this, chalk$1.hex(__privateGet(this, _color2))(`${__privateGet(this, _runner3).iteration} - ${__privateGet(this, _runner3).instrumentData.requestCount} - ${(/* @__PURE__ */ new Date()).getTime()}`));
15730
- __privateGet(this, _debug3).call(this, chalk$1.hex(__privateGet(this, _color2))(`Begin the startup process ...`));
15751
+ __privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(`${__privateGet(this, _runner3).iteration} - ${__privateGet(this, _runner3).instrumentData.requestCount} - ${(/* @__PURE__ */ new Date()).getTime()}`));
15752
+ __privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(`Begin the startup process ...`));
15731
15753
  for (let i = 0; i < 50; i++) {
15732
- __privateGet(this, _debug3).call(this, chalk$1.hex(__privateGet(this, _color2))(` STARTUP --> ${performance.now()}`));
15754
+ __privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(` STARTUP --> ${performance.now()}`));
15733
15755
  await Sleep(100);
15734
15756
  }
15735
- __privateGet(this, _debug3).call(this, chalk$1.hex(__privateGet(this, _color2))(`End the startup process ...`));
15757
+ __privateGet(this, _debug5).call(this, chalk$1.hex(__privateGet(this, _color2))(`End the startup process ...`));
15736
15758
  __privateGet(this, _runner3).instrumentData.activeRequestCount--;
15737
15759
  const end = performance.now();
15738
15760
  const diff = end - start;
@@ -15742,7 +15764,7 @@ class TestStartUp {
15742
15764
  });
15743
15765
  __privateAdd(this, _OutputLogMessage3, async (message) => {
15744
15766
  const messageOutput = chalk$1.grey(message);
15745
- __privateGet(this, _debug3).call(this, messageOutput);
15767
+ __privateGet(this, _debug5).call(this, messageOutput);
15746
15768
  __privateGet(this, _runner3).instrumentData.message.push(messageOutput);
15747
15769
  await __privateGet(this, _PublishTelemetry2).call(this);
15748
15770
  });
@@ -15813,7 +15835,7 @@ GetRandomHexColor_fn2 = function() {
15813
15835
  return `#${hex}`;
15814
15836
  };
15815
15837
  _GetRandomPastelColor2 = new WeakMap();
15816
- _debug3 = new WeakMap();
15838
+ _debug5 = new WeakMap();
15817
15839
  _GenLogMessage2 = new WeakMap();
15818
15840
  _SetupTimeout3 = new WeakMap();
15819
15841
  _PublishTelemetryData3 = new WeakMap();
@@ -15841,7 +15863,7 @@ class TestShutDown {
15841
15863
  const b2 = Math.floor(Math.random() * 127 + 127);
15842
15864
  return `#${((1 << 24) + (r2 << 16) + (g2 << 8) + b2).toString(16).slice(1).toUpperCase()}`;
15843
15865
  });
15844
- __privateAdd(this, _debug4, (message) => {
15866
+ __privateAdd(this, _debug6, (message) => {
15845
15867
  __privateGet(this, _workerInstance4).logger.debug(message);
15846
15868
  });
15847
15869
  __privateAdd(this, _GenLogMessage3, (runner, iteration) => {
@@ -15855,7 +15877,7 @@ class TestShutDown {
15855
15877
  let message = `${" ".repeat(logMessageData.indent)} [${runner.id}] >> Hello World << ${iteration}`;
15856
15878
  message = chalk$1.hex(__privateGet(this, _randomPastelColour3))(message);
15857
15879
  runner.instrumentData.message.push(message);
15858
- __privateGet(this, _debug4).call(this, message);
15880
+ __privateGet(this, _debug6).call(this, message);
15859
15881
  logMessageData.indent += logMessageData.adder;
15860
15882
  if (logMessageData.indent > 20) {
15861
15883
  logMessageData.adder = -1;
@@ -15909,13 +15931,13 @@ class TestShutDown {
15909
15931
  __privateGet(this, _runner4).instrumentData.velocity++;
15910
15932
  __privateGet(this, _runner4).instrumentData.tx += 256e3;
15911
15933
  __privateGet(this, _runner4).instrumentData.rx += 65e5;
15912
- __privateGet(this, _debug4).call(this, chalk$1.hex(__privateGet(this, _color3))(`${__privateGet(this, _runner4).iteration} - ${__privateGet(this, _runner4).instrumentData.requestCount} - ${(/* @__PURE__ */ new Date()).getTime()}`));
15913
- __privateGet(this, _debug4).call(this, chalk$1.hex(__privateGet(this, _color3))(`Begin the shutdown process ...`));
15934
+ __privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(`${__privateGet(this, _runner4).iteration} - ${__privateGet(this, _runner4).instrumentData.requestCount} - ${(/* @__PURE__ */ new Date()).getTime()}`));
15935
+ __privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(`Begin the shutdown process ...`));
15914
15936
  for (let i = 0; i < 50; i++) {
15915
- __privateGet(this, _debug4).call(this, chalk$1.hex(__privateGet(this, _color3))(` SHUTDOWN --> ${performance.now()}`));
15937
+ __privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(` SHUTDOWN --> ${performance.now()}`));
15916
15938
  await Sleep(100);
15917
15939
  }
15918
- __privateGet(this, _debug4).call(this, chalk$1.hex(__privateGet(this, _color3))(`End the startup process ...`));
15940
+ __privateGet(this, _debug6).call(this, chalk$1.hex(__privateGet(this, _color3))(`End the startup process ...`));
15919
15941
  __privateGet(this, _runner4).instrumentData.activeRequestCount--;
15920
15942
  const end = performance.now();
15921
15943
  const diff = end - start;
@@ -15925,7 +15947,7 @@ class TestShutDown {
15925
15947
  });
15926
15948
  __privateAdd(this, _OutputLogMessage4, async (message) => {
15927
15949
  const messageOutput = chalk$1.grey(message);
15928
- __privateGet(this, _debug4).call(this, messageOutput);
15950
+ __privateGet(this, _debug6).call(this, messageOutput);
15929
15951
  __privateGet(this, _runner4).instrumentData.message.push(messageOutput);
15930
15952
  await __privateGet(this, _PublishTelemetry3).call(this);
15931
15953
  });
@@ -15996,7 +16018,7 @@ GetRandomHexColor_fn3 = function() {
15996
16018
  return `#${hex}`;
15997
16019
  };
15998
16020
  _GetRandomPastelColor3 = new WeakMap();
15999
- _debug4 = new WeakMap();
16021
+ _debug6 = new WeakMap();
16000
16022
  _GenLogMessage3 = new WeakMap();
16001
16023
  _SetupTimeout4 = new WeakMap();
16002
16024
  _PublishTelemetryData4 = new WeakMap();
@@ -20154,11 +20176,11 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20154
20176
  super();
20155
20177
  __privateAdd(this, _options5);
20156
20178
  __privateAdd(this, _id2, v4());
20157
- __privateAdd(this, _clientName, "");
20179
+ __privateAdd(this, _clientName2, "");
20158
20180
  __privateAdd(this, _wm);
20159
20181
  __privateAdd(this, _socketUtils2);
20160
- __privateAdd(this, _debug5, (message) => __privateGet(this, _options5).logger.debug(message));
20161
- __privateAdd(this, _error2, (error) => __privateGet(this, _options5).logger.error(error));
20182
+ __privateAdd(this, _debug7, (message) => __privateGet(this, _options5).logger.debug(message));
20183
+ __privateAdd(this, _error3, (error) => __privateGet(this, _options5).logger.error(error));
20162
20184
  __privateAdd(this, _info2, (message) => __privateGet(this, _options5).logger.info(message));
20163
20185
  __privateAdd(this, _GetKeyPayloadData, (eventRequestCommand, eventReturnValueBaseType) => {
20164
20186
  return {
@@ -20174,19 +20196,19 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20174
20196
  });
20175
20197
  __publicField(this, "Stop", async () => {
20176
20198
  __privateGet(this, _EmitEvent).call(this, "Stopping", {});
20177
- __privateGet(this, _debug5).call(this, chalk$1.magenta(`Stop(): Stopping Service.`));
20199
+ __privateGet(this, _debug7).call(this, chalk$1.magenta(`Stop(): Stopping Service.`));
20178
20200
  const workers = await __privateGet(this, _wm).GetWorkersSmall([]);
20179
- __privateGet(this, _debug5).call(this, `Stop(): Workers to terminated: [${JSON.stringify(workers, null, 2)}]`);
20201
+ __privateGet(this, _debug7).call(this, `Stop(): Workers to terminated: [${JSON.stringify(workers, null, 2)}]`);
20180
20202
  const workersTerminated = await __privateGet(this, _wm).TerminateWorkers(Object.values(workers).map((worker) => worker.id));
20181
- __privateGet(this, _debug5).call(this, `Stop(): Workers terminated: [${JSON.stringify(workersTerminated, null, 2)}]`);
20203
+ __privateGet(this, _debug7).call(this, `Stop(): Workers terminated: [${JSON.stringify(workersTerminated, null, 2)}]`);
20182
20204
  if (this.socket) {
20183
- __privateGet(this, _debug5).call(this, `Stop(): Going to disconnect socket.`);
20205
+ __privateGet(this, _debug7).call(this, `Stop(): Going to disconnect socket.`);
20184
20206
  this.socket.disconnect();
20185
- __privateGet(this, _debug5).call(this, `Stop(): Socket disconnected.`);
20207
+ __privateGet(this, _debug7).call(this, `Stop(): Socket disconnected.`);
20186
20208
  }
20187
- __privateGet(this, _debug5).call(this, `Stop(): Sleeping (500ms) ...`);
20209
+ __privateGet(this, _debug7).call(this, `Stop(): Sleeping (500ms) ...`);
20188
20210
  await Sleep(500);
20189
- __privateGet(this, _debug5).call(this, chalk$1.magenta(`Stop(): Service Stopped.`));
20211
+ __privateGet(this, _debug7).call(this, chalk$1.magenta(`Stop(): Service Stopped.`));
20190
20212
  __privateGet(this, _EmitEvent).call(this, "Stopped", {});
20191
20213
  });
20192
20214
  // d.workers = JSON.parse(strFromU8(decompressSync(d.workers as any)));
@@ -20206,7 +20228,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20206
20228
  return raw;
20207
20229
  });
20208
20230
  __privateAdd(this, _EmitStateChange, (runnerEx) => {
20209
- __privateGet(this, _debug5).call(this, chalk$1.rgb(10, 50, 200)` ==>> Runner State Change: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`);
20231
+ __privateGet(this, _debug7).call(this, chalk$1.rgb(10, 50, 200)` ==>> Runner State Change: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}] State: [${runnerEx.state}]`);
20210
20232
  const stateChangeRetVal = {
20211
20233
  eventRequestCommand: "StateChange",
20212
20234
  type: IEventReturnValueBaseType.runner,
@@ -20225,7 +20247,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20225
20247
  const StartRunnerAndRespond = (eventRequestCommand, runnerEx, cb) => {
20226
20248
  if (runnerEx) {
20227
20249
  __privateGet(this, _SetupRunnerEventHandlers).call(this, runnerEx);
20228
- __privateGet(this, _debug5).call(this, chalk$1.yellow(`${__privateGet(this, _clientName)}: AddRunner: WorderId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}]`));
20250
+ __privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _clientName2)}: AddRunner: WorderId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}]`));
20229
20251
  cb(__privateGet(this, _EmitEvent).call(this, eventRequestCommand, __privateGet(this, _LogPayloadEventRetVal).call(this, {
20230
20252
  ...__privateGet(this, _GetKeyPayloadData).call(this, eventRequestCommand, IEventReturnValueBaseType.runner),
20231
20253
  runner: __privateGet(this, _wm).CreateRunnerCopy(runnerEx)
@@ -20239,12 +20261,12 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20239
20261
  };
20240
20262
  socket.on("AddRunner", async (options, cb) => {
20241
20263
  var _a2;
20242
- __privateGet(this, _debug5).call(this, chalk$1.yellow(`${__privateGet(this, _id2)} ${__privateGet(this, _clientName)}: --> AddRunner: [${JSON.stringify(options)}]`));
20264
+ __privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _id2)} ${__privateGet(this, _clientName2)}: --> AddRunner: [${JSON.stringify(options)}]`));
20243
20265
  const runnerEx = await ((_a2 = __privateGet(this, _wm).GetNextAvailableWorker()) == null ? void 0 : _a2.AddRunner(options));
20244
20266
  StartRunnerAndRespond(IEventRequestCommand.AddRunner, runnerEx, cb);
20245
20267
  });
20246
20268
  socket.on("AddRunnerToWorker", async (workerId, options, cb) => {
20247
- __privateGet(this, _debug5).call(this, chalk$1.yellow(`${__privateGet(this, _id2)} ${__privateGet(this, _clientName)}: --> AddRunnerToWorker: workerId: [${workerId}] options: [${JSON.stringify(options)}]`));
20269
+ __privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _id2)} ${__privateGet(this, _clientName2)}: --> AddRunnerToWorker: workerId: [${workerId}] options: [${JSON.stringify(options)}]`));
20248
20270
  const workerEx = __privateGet(this, _wm).WorkersEx[workerId];
20249
20271
  const runnerEx = await (workerEx == null ? void 0 : workerEx.AddRunner(options));
20250
20272
  StartRunnerAndRespond(IEventRequestCommand.AddRunnerToWorker, runnerEx, cb);
@@ -20260,13 +20282,13 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20260
20282
  // Events Registration
20261
20283
  (socket2) => __privateGet(this, _RegisterSocketEvents).call(this, socket2, clientName),
20262
20284
  // Error Callback
20263
- (error) => __privateGet(this, _error2).call(this, `${clientName}: SetupClientSideSocket call back: [${error}]`)
20285
+ (error) => __privateGet(this, _error3).call(this, `${clientName}: SetupClientSideSocket call back: [${error}]`)
20264
20286
  );
20265
20287
  return socket;
20266
20288
  });
20267
20289
  // Handle connection logic separately
20268
20290
  __privateAdd(this, _OnSocketConnected2, (socket, clientName, joinRooms) => {
20269
- __privateGet(this, _debug5).call(this, chalk$1.green(`${__privateGet(this, _id2)} ${clientName}: --> connected`));
20291
+ __privateGet(this, _debug7).call(this, chalk$1.green(`${__privateGet(this, _id2)} ${clientName}: --> connected`));
20270
20292
  __privateGet(this, _EmitEvent).call(this, "SocketConnected", {
20271
20293
  id: __privateGet(this, _id2),
20272
20294
  clientName,
@@ -20294,7 +20316,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20294
20316
  const runnerEx = await ((_a2 = __privateGet(this, _wm).GetNextAvailableWorker()) == null ? void 0 : _a2.AddRunner(options));
20295
20317
  if (runnerEx) {
20296
20318
  __privateGet(this, _SetupRunnerEventHandlers).call(this, runnerEx);
20297
- __privateGet(this, _debug5).call(this, chalk$1.yellow(`${__privateGet(this, _clientName)}: AddRunner: WorderId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}]`));
20319
+ __privateGet(this, _debug7).call(this, chalk$1.yellow(`${__privateGet(this, _clientName2)}: AddRunner: WorderId: [${runnerEx.workerId}] RunnerId: [${runnerEx.id}]`));
20298
20320
  __privateGet(this, _EmitEvent).call(this, "AddRunnerToNextAvailableWorker", __privateGet(this, _wm).CreateRunnerCopy(runnerEx));
20299
20321
  } else {
20300
20322
  __privateGet(this, _EmitEvent).call(this, "AddRunnerToNextAvailableWorker", {});
@@ -20482,22 +20504,22 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20482
20504
  // socketio and standard events
20483
20505
  "disconnect": (reason) => {
20484
20506
  __privateGet(this, _EmitEvent).call(this, "disconnect", reason);
20485
- __privateGet(this, _error2).call(this, `#disconnect(): [${reason}]`);
20507
+ __privateGet(this, _error3).call(this, `#disconnect(): [${reason}]`);
20486
20508
  },
20487
20509
  "connect_error": (error) => {
20488
20510
  __privateGet(this, _EmitEvent).call(this, "connect_error", error);
20489
20511
  if (!socket.active) {
20490
- __privateGet(this, _error2).call(this, error.message);
20512
+ __privateGet(this, _error3).call(this, error.message);
20491
20513
  }
20492
20514
  },
20493
20515
  "__STSdisconnect": (reason) => {
20494
20516
  __privateGet(this, _EmitEvent).call(this, "__STSdisconnect", reason);
20495
- __privateGet(this, _debug5).call(this, chalk$1.magenta(`${logPrefix}: [${socket.id}] [${reason}]`));
20517
+ __privateGet(this, _debug7).call(this, chalk$1.magenta(`${logPrefix}: [${socket.id}] [${reason}]`));
20496
20518
  this.Stop();
20497
20519
  },
20498
20520
  "error": (error) => {
20499
20521
  __privateGet(this, _EmitEvent).call(this, "error", error);
20500
- __privateGet(this, _error2).call(this, `#GetSocketEventHandlers(): [${error}]`);
20522
+ __privateGet(this, _error3).call(this, `#GetSocketEventHandlers(): [${error}]`);
20501
20523
  },
20502
20524
  // utility commands
20503
20525
  "GetService": async (cb) => cb(await this.GetService()),
@@ -20526,7 +20548,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20526
20548
  };
20527
20549
  });
20528
20550
  __privateSet(this, _options5, options);
20529
- __privateSet(this, _clientName, options.name);
20551
+ __privateSet(this, _clientName2, options.name);
20530
20552
  __privateGet(this, _EmitEvent).call(this, "Starting", {});
20531
20553
  let socketUtilsoptions = {
20532
20554
  logger: defaultLogger
@@ -20551,7 +20573,7 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20551
20573
  __privateGet(this, _info2).call(this, chalk$1.yellow(`Options: [${JSON.stringify(options)}]`));
20552
20574
  __privateSet(this, _wm, __privateGet(this, _options5).CreateSTSWorkerManager());
20553
20575
  __privateGet(this, _info2).call(this, chalk$1.yellow(`Worker Manager ID: [${__privateGet(this, _wm).id}]`));
20554
- __privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName), []);
20576
+ __privateGet(this, _SetupWSSClient2).call(this, __privateGet(this, _clientName2), []);
20555
20577
  const start = async () => {
20556
20578
  for (let i = 0; i < __privateGet(this, _options5).workers; i++) {
20557
20579
  await this.AddWorker({
@@ -20580,11 +20602,11 @@ class ServiceInstance extends tinyEmitterExports.TinyEmitter {
20580
20602
  }
20581
20603
  _options5 = new WeakMap();
20582
20604
  _id2 = new WeakMap();
20583
- _clientName = new WeakMap();
20605
+ _clientName2 = new WeakMap();
20584
20606
  _wm = new WeakMap();
20585
20607
  _socketUtils2 = new WeakMap();
20586
- _debug5 = new WeakMap();
20587
- _error2 = new WeakMap();
20608
+ _debug7 = new WeakMap();
20609
+ _error3 = new WeakMap();
20588
20610
  _info2 = new WeakMap();
20589
20611
  _GetKeyPayloadData = new WeakMap();
20590
20612
  _LogPayloadEventRetVal = new WeakMap();