From 28af9a2ae3d7755c853a75341af71861f4213c85 Mon Sep 17 00:00:00 2001 From: Christopher Campanale Date: Tue, 1 Jun 2021 07:45:28 -0500 Subject: [PATCH] Typos and such - fixes missing implementation of mixing option `accountInfoOnStart` - fixes multiple typos - updates docs - bumps version to 0.1.1 --- README.md | 23 ++++++------- dist/index.d.ts | 2 +- dist/index.js | 33 +++++++------------ dist/index.js.map | 2 +- docs/assets/js/search.js | 2 +- docs/globals.html | 32 +++++++++--------- docs/index.html | 18 ++++++---- docs/interfaces/inetsparkeradaptermixin.html | 16 ++++----- .../inetsparkeradaptermixinsettings.html | 8 ++--- package.json | 2 +- src/index.ts | 18 +++++----- test/integration-ts.js | 2 +- test/integration-ts.ts | 2 +- 13 files changed, 79 insertions(+), 81 deletions(-) diff --git a/README.md b/README.md index 8c3a0ab..c955625 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Moleculer Netsparker Mixin -Moleculer mixin for consuming Netsparker Cloud services. This mixin will provide a Moleculer microservice with a configured API client available on the service object at `this.netsparkAdapter`. +Moleculer mixin for consuming Netsparker Cloud services. This mixin will provide a Moleculer microservice with a configured API client available on the service object at `this.netsparkerAdapter`. ## Features - autowired Netsparker Cloud API client configured using service settings - - adapater typings allow for simple consumption of API + - adapter typings allow for simple consumption of API - Development documentation: https://niaid.github.io/moleculer-netsparker-cloud/ ## Install @@ -80,7 +80,7 @@ const MyExampleServiceSchema: ServiceSchema = { }, methods: { async test(this: MyExampleService) { - const { body: me } = await this.netsparkerAdapater.AccountApi.accountMe(); + const { body: me } = await this.netsparkerAdapter.AccountApi.accountMe(); this.logger.info(me); } } @@ -119,11 +119,11 @@ The Typescript test may be ran with `npm run testts` and outputs the following: [2021-05-28T21:04:23.621Z] INFO local.niaid.nih.gov-30604/BROKER: Serializer: JSONSerializer [2021-05-28T21:04:23.631Z] INFO local.niaid.nih.gov-30604/BROKER: Validator: FastestValidator [2021-05-28T21:04:23.632Z] INFO local.niaid.nih.gov-30604/BROKER: Registered 13 internal middleware(s). -[2021-05-28T21:04:23.648Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapater: basic HTTP auth configured -[2021-05-28T21:04:23.649Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapater: enabled +[2021-05-28T21:04:23.648Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapter: basic HTTP auth configured +[2021-05-28T21:04:23.649Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapter: enabled [2021-05-28T21:04:23.654Z] INFO local.niaid.nih.gov-30604/REGISTRY: '$node' service is registered. [2021-05-28T21:04:23.660Z] INFO local.niaid.nih.gov-30604/$NODE: Service '$node' started. -[2021-05-28T21:04:23.938Z] INFO local.niaid.nih.gov-30604/EXAMPLE: AccountLicenseApiModel { subscriptionMaximumSiteLimit: 0, subscriptionSiteCount: 0, subscriptionEndDate: '01/01/1999 01:00 AM', subscriptionStartDate: '01/01/1999 01:00 AM', isAccountWhitelisted: true, usedScanCreditCount: 0, scanCreditCount: 0, isCreditScanEnabled: false, isSubscriptionEnabled: true, preVerifiedWebsites: [], licenses: [ LicenseBaseModel { id: '********-****-****-****-************', isActive: true, key: '******', accountCanCreateSharkScanTask: false } ] } +[2021-05-28T21:04:23.938Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker account info: AccountLicenseApiModel { subscriptionMaximumSiteLimit: 0, subscriptionSiteCount: 0, subscriptionEndDate: '01/01/1999 01:00 AM', subscriptionStartDate: '01/01/1999 01:00 AM', isAccountWhitelisted: true, usedScanCreditCount: 0, scanCreditCount: 0, isCreditScanEnabled: false, isSubscriptionEnabled: true, preVerifiedWebsites: [], licenses: [ LicenseBaseModel { id: '********-****-****-****-************', isActive: true, key: '******', accountCanCreateSharkScanTask: false } ] } [2021-05-28T21:04:23.941Z] INFO local.niaid.nih.gov-30604/REGISTRY: 'example' service is registered. [2021-05-28T21:04:23.942Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Service 'example' started. [2021-05-28T21:04:23.943Z] INFO local.niaid.nih.gov-30604/BROKER: ✔ ServiceBroker with 2 service(s) is started successfully in 294ms. @@ -135,11 +135,12 @@ The Typescript test may be ran with `npm run testts` and outputs the following: ## Settings -| Property | Type | Default | Description | -| -------------------- | -------- | --------------------------------- | ---------------------- | -| `netsparkerUserId` | `String` | **required** | Netsparker API User ID | -| `netsparkerToken` | `String` | **required** | Netsparker API Token | -| `netsparkerBasePath` | `String` | `https://www.netsparkercloud.com` | Netsparker API URL | +| Property | Type | Default | Description | +| -------------------- | --------- | --------------------------------- | -------------------------------- | +| `netsparkerUserId` | `String` | **required** | Netsparker API User ID | +| `netsparkerToken` | `String` | **required** | Netsparker API Token | +| `netsparkerBasePath` | `String` | `https://www.netsparkercloud.com` | Netsparker API URL | +| `accountInfoOnStart` | `Boolean` | `true` | Log account information on start | ## Roadmap diff --git a/dist/index.d.ts b/dist/index.d.ts index 23af2c2..959e996 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -49,7 +49,7 @@ export interface INetsparkerAdapterMixinSettings extends ServiceSettingSchema { } export declare const DefaultNetsparkerAdapterSettings: INetsparkerAdapterMixinSettings; export interface INetsparkerAdapterMixin extends Service { - netsparkerAdapater: NetsparkerAdapter; + netsparkerAdapter: NetsparkerAdapter; netsparkerAuth: HttpBasicAuth; netsparkerSDK: typeof Netsparker; } diff --git a/dist/index.js b/dist/index.js index 3e48cf7..9389f6d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,25 +1,12 @@ "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.NetsparkerAdapterMixin = exports.DefaultNetsparkerAdapterSettings = void 0; const Netsparker = __importStar(require("netsparker-cloud")); const netsparker_cloud_1 = require("netsparker-cloud"); exports.DefaultNetsparkerAdapterSettings = { @@ -37,7 +24,7 @@ exports.NetsparkerAdapterMixin = { actions: {}, methods: {}, created() { - this.netsparkerAdapater = {}; + this.netsparkerAdapter = {}; this.netsparkerAuth = new netsparker_cloud_1.HttpBasicAuth(); this.netsparkerSDK = Netsparker; if (!this.settings.netsparkerUserId) { @@ -48,18 +35,20 @@ exports.NetsparkerAdapterMixin = { } this.netsparkerAuth.username = this.settings.netsparkerUserId; this.netsparkerAuth.password = this.settings.netsparkerToken; - this.logger.info('Netsparker adapater: basic HTTP auth configured'); + this.logger.info('Netsparker adapter: basic HTTP auth configured'); netsparker_cloud_1.APIS.map(netsparkerAPI => { const APIName = netsparkerAPI.name; // @ts-ignore - this.netsparkerAdapater[APIName] = new netsparkerAPI(this.settings.netsparkerBasePath); - this.netsparkerAdapater[APIName].setDefaultAuthentication(this.netsparkerAuth); + this.netsparkerAdapter[APIName] = new netsparkerAPI(this.settings.netsparkerBasePath); + this.netsparkerAdapter[APIName].setDefaultAuthentication(this.netsparkerAuth); }); - this.logger.info('Netsparker adapater: enabled'); + this.logger.info('Netsparker adapter: enabled'); }, async started() { - const { body: acccountDetails } = await this.netsparkerAdapater.AccountApi.accountLicense(); - this.logger.info(acccountDetails); + if (this.settings.accountInfoOnStart) { + const { body: acccountDetails } = await this.netsparkerAdapter.AccountApi.accountLicense(); + this.logger.info('Netsparker account info:', acccountDetails); + } } }; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index 96523f9..aa618d3 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,6DAA+C;AAC/C,uDAAgU;AAqDnT,QAAA,gCAAgC,GAAoC;IAC/E,kBAAkB,EAAE,SAAS;IAC7B,gBAAgB,EAAE,SAAS;IAC3B,eAAe,EAAE,SAAS;IAC1B,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAQW,QAAA,sBAAsB,GAAmD;IAEpF,IAAI,EAAE,YAAY;IAElB,QAAQ,EAAE,wCAAgC;IAE1C,QAAQ,EAAE;QACR,UAAU,EAAE,IAAI;KACjB;IAED,OAAO,EAAE,EAAE;IAEX,OAAO,EAAE,EAAE;IAEX,OAAO;QACL,IAAI,CAAC,kBAAkB,GAAG,EAAuB,CAAC;QAClD,IAAI,CAAC,cAAc,GAAG,IAAI,gCAAa,EAAE,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;SAClE;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QACD,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC9D,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;QACpE,uBAAI,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;YACvB,MAAM,OAAO,GAAG,aAAa,CAAC,IAA0B,CAAC;YACzD,aAAa;YACb,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;YACvF,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC;QAC5F,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACpC,CAAC;CAEF,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,6DAA+C;AAC/C,uDAAgU;AAqDnT,QAAA,gCAAgC,GAAoC;IAC/E,kBAAkB,EAAE,SAAS;IAC7B,gBAAgB,EAAE,SAAS;IAC3B,eAAe,EAAE,SAAS;IAC1B,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAQW,QAAA,sBAAsB,GAAmD;IAEpF,IAAI,EAAE,YAAY;IAElB,QAAQ,EAAE,wCAAgC;IAE1C,QAAQ,EAAE;QACR,UAAU,EAAE,IAAI;KACjB;IAED,OAAO,EAAE,EAAE;IAEX,OAAO,EAAE,EAAE;IAEX,OAAO;QACL,IAAI,CAAC,iBAAiB,GAAG,EAAuB,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,gCAAa,EAAE,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAA;SAClE;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE;YAClC,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QACD,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC9D,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;QACnE,uBAAI,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE;YACvB,MAAM,OAAO,GAAG,aAAa,CAAC,IAA0B,CAAC;YACzD,aAAa;YACb,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;YACtF,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChF,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO;QACX,IAAI,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE;YACpC,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC;YAC3F,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAC;SAC/D;IACH,CAAC;CAEF,CAAC"} \ No newline at end of file diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index 7d409be..75a9db0 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"INetsparkerAdapterMixinSettings","url":"interfaces/inetsparkeradaptermixinsettings.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"netsparkerBasePath","url":"interfaces/inetsparkeradaptermixinsettings.html#netsparkerbasepath","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":2,"kind":1024,"name":"netsparkerUserId","url":"interfaces/inetsparkeradaptermixinsettings.html#netsparkeruserid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":3,"kind":1024,"name":"netsparkerToken","url":"interfaces/inetsparkeradaptermixinsettings.html#netsparkertoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":4,"kind":1024,"name":"accountInfoOnStart","url":"interfaces/inetsparkeradaptermixinsettings.html#accountinfoonstart","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":5,"kind":1024,"name":"$noVersionPrefix","url":"interfaces/inetsparkeradaptermixinsettings.html#_noversionprefix","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":6,"kind":1024,"name":"$noServiceNamePrefix","url":"interfaces/inetsparkeradaptermixinsettings.html#_noservicenameprefix","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":7,"kind":1024,"name":"$dependencyTimeout","url":"interfaces/inetsparkeradaptermixinsettings.html#_dependencytimeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":8,"kind":1024,"name":"$shutdownTimeout","url":"interfaces/inetsparkeradaptermixinsettings.html#_shutdowntimeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":9,"kind":1024,"name":"$secureSettings","url":"interfaces/inetsparkeradaptermixinsettings.html#_securesettings","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":10,"kind":256,"name":"INetsparkerAdapterMixin","url":"interfaces/inetsparkeradaptermixin.html","classes":"tsd-kind-interface"},{"id":11,"kind":1024,"name":"netsparkerAdapater","url":"interfaces/inetsparkeradaptermixin.html#netsparkeradapater","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixin"},{"id":12,"kind":1024,"name":"netsparkerAuth","url":"interfaces/inetsparkeradaptermixin.html#netsparkerauth","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixin"},{"id":13,"kind":1024,"name":"netsparkerSDK","url":"interfaces/inetsparkeradaptermixin.html#netsparkersdk","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixin"},{"id":14,"kind":512,"name":"constructor","url":"interfaces/inetsparkeradaptermixin.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":15,"kind":2048,"name":"parseServiceSchema","url":"interfaces/inetsparkeradaptermixin.html#parseserviceschema","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-protected","parent":"INetsparkerAdapterMixin"},{"id":16,"kind":1024,"name":"name","url":"interfaces/inetsparkeradaptermixin.html#name","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":17,"kind":1024,"name":"fullName","url":"interfaces/inetsparkeradaptermixin.html#fullname","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":18,"kind":1024,"name":"version","url":"interfaces/inetsparkeradaptermixin.html#version","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":19,"kind":1024,"name":"settings","url":"interfaces/inetsparkeradaptermixin.html#settings","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":20,"kind":1024,"name":"metadata","url":"interfaces/inetsparkeradaptermixin.html#metadata","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":21,"kind":1024,"name":"dependencies","url":"interfaces/inetsparkeradaptermixin.html#dependencies","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":22,"kind":1024,"name":"schema","url":"interfaces/inetsparkeradaptermixin.html#schema","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":23,"kind":1024,"name":"originalSchema","url":"interfaces/inetsparkeradaptermixin.html#originalschema","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":24,"kind":1024,"name":"broker","url":"interfaces/inetsparkeradaptermixin.html#broker","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":25,"kind":1024,"name":"logger","url":"interfaces/inetsparkeradaptermixin.html#logger","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":26,"kind":1024,"name":"actions","url":"interfaces/inetsparkeradaptermixin.html#actions","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":27,"kind":1024,"name":"Promise","url":"interfaces/inetsparkeradaptermixin.html#promise","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":28,"kind":2048,"name":"_init","url":"interfaces/inetsparkeradaptermixin.html#_init","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":29,"kind":2048,"name":"_start","url":"interfaces/inetsparkeradaptermixin.html#_start","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":30,"kind":2048,"name":"_stop","url":"interfaces/inetsparkeradaptermixin.html#_stop","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":31,"kind":2048,"name":"waitForServices","url":"interfaces/inetsparkeradaptermixin.html#waitforservices","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":32,"kind":2048,"name":"applyMixins","url":"interfaces/inetsparkeradaptermixin.html#applymixins","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":33,"kind":2048,"name":"mergeSchemas","url":"interfaces/inetsparkeradaptermixin.html#mergeschemas","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":34,"kind":2048,"name":"mergeSchemaSettings","url":"interfaces/inetsparkeradaptermixin.html#mergeschemasettings","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":35,"kind":2048,"name":"mergeSchemaMetadata","url":"interfaces/inetsparkeradaptermixin.html#mergeschemametadata","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":36,"kind":2048,"name":"mergeSchemaMixins","url":"interfaces/inetsparkeradaptermixin.html#mergeschemamixins","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":37,"kind":2048,"name":"mergeSchemaDependencies","url":"interfaces/inetsparkeradaptermixin.html#mergeschemadependencies","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":38,"kind":2048,"name":"mergeSchemaHooks","url":"interfaces/inetsparkeradaptermixin.html#mergeschemahooks","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":39,"kind":2048,"name":"mergeSchemaActions","url":"interfaces/inetsparkeradaptermixin.html#mergeschemaactions","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":40,"kind":2048,"name":"mergeSchemaMethods","url":"interfaces/inetsparkeradaptermixin.html#mergeschemamethods","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":41,"kind":2048,"name":"mergeSchemaEvents","url":"interfaces/inetsparkeradaptermixin.html#mergeschemaevents","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":42,"kind":2048,"name":"mergeSchemaLifecycleHandlers","url":"interfaces/inetsparkeradaptermixin.html#mergeschemalifecyclehandlers","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":43,"kind":2048,"name":"mergeSchemaUnknown","url":"interfaces/inetsparkeradaptermixin.html#mergeschemaunknown","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":44,"kind":4194304,"name":"NetsparkerAPIClient","url":"globals.html#netsparkerapiclient","classes":"tsd-kind-type-alias"},{"id":45,"kind":65536,"name":"__type","url":"globals.html#netsparkerapiclient.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"NetsparkerAPIClient"},{"id":46,"kind":4194304,"name":"NetsparkerAdapter","url":"globals.html#netsparkeradapter","classes":"tsd-kind-type-alias"},{"id":47,"kind":65536,"name":"__type","url":"globals.html#netsparkeradapter.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"NetsparkerAdapter"},{"id":48,"kind":2097152,"name":"DefaultNetsparkerAdapterSettings","url":"globals.html#defaultnetsparkeradaptersettings","classes":"tsd-kind-object-literal"},{"id":49,"kind":32,"name":"netsparkerBasePath","url":"globals.html#defaultnetsparkeradaptersettings.netsparkerbasepath","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":50,"kind":32,"name":"netsparkerUserId","url":"globals.html#defaultnetsparkeradaptersettings.netsparkeruserid","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":51,"kind":32,"name":"netsparkerToken","url":"globals.html#defaultnetsparkeradaptersettings.netsparkertoken","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":52,"kind":32,"name":"accountInfoOnStart","url":"globals.html#defaultnetsparkeradaptersettings.accountinfoonstart","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":53,"kind":2097152,"name":"NetsparkerAdapterMixin","url":"globals.html#netsparkeradaptermixin","classes":"tsd-kind-object-literal"},{"id":54,"kind":32,"name":"name","url":"globals.html#netsparkeradaptermixin.name","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":55,"kind":32,"name":"settings","url":"globals.html#netsparkeradaptermixin.settings","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":56,"kind":2097152,"name":"metadata","url":"globals.html#netsparkeradaptermixin.metadata","classes":"tsd-kind-object-literal tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":57,"kind":32,"name":"netsparker","url":"globals.html#netsparkeradaptermixin.metadata.netsparker","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin.metadata"},{"id":58,"kind":32,"name":"actions","url":"globals.html#netsparkeradaptermixin.actions","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":59,"kind":65536,"name":"__type","url":"globals.html#netsparkeradaptermixin.actions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-variable tsd-is-not-exported","parent":"NetsparkerAdapterMixin.actions"},{"id":60,"kind":32,"name":"methods","url":"globals.html#netsparkeradaptermixin.methods","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":61,"kind":65536,"name":"__type","url":"globals.html#netsparkeradaptermixin.methods.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-variable tsd-is-not-exported","parent":"NetsparkerAdapterMixin.methods"},{"id":62,"kind":64,"name":"created","url":"globals.html#netsparkeradaptermixin.created","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":63,"kind":64,"name":"started","url":"globals.html#netsparkeradaptermixin.started","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","2097152":"Object literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"INetsparkerAdapterMixinSettings","url":"interfaces/inetsparkeradaptermixinsettings.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"netsparkerBasePath","url":"interfaces/inetsparkeradaptermixinsettings.html#netsparkerbasepath","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":2,"kind":1024,"name":"netsparkerUserId","url":"interfaces/inetsparkeradaptermixinsettings.html#netsparkeruserid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":3,"kind":1024,"name":"netsparkerToken","url":"interfaces/inetsparkeradaptermixinsettings.html#netsparkertoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":4,"kind":1024,"name":"accountInfoOnStart","url":"interfaces/inetsparkeradaptermixinsettings.html#accountinfoonstart","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixinSettings"},{"id":5,"kind":1024,"name":"$noVersionPrefix","url":"interfaces/inetsparkeradaptermixinsettings.html#_noversionprefix","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":6,"kind":1024,"name":"$noServiceNamePrefix","url":"interfaces/inetsparkeradaptermixinsettings.html#_noservicenameprefix","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":7,"kind":1024,"name":"$dependencyTimeout","url":"interfaces/inetsparkeradaptermixinsettings.html#_dependencytimeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":8,"kind":1024,"name":"$shutdownTimeout","url":"interfaces/inetsparkeradaptermixinsettings.html#_shutdowntimeout","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":9,"kind":1024,"name":"$secureSettings","url":"interfaces/inetsparkeradaptermixinsettings.html#_securesettings","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixinSettings"},{"id":10,"kind":256,"name":"INetsparkerAdapterMixin","url":"interfaces/inetsparkeradaptermixin.html","classes":"tsd-kind-interface"},{"id":11,"kind":1024,"name":"netsparkerAdapter","url":"interfaces/inetsparkeradaptermixin.html#netsparkeradapter","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixin"},{"id":12,"kind":1024,"name":"netsparkerAuth","url":"interfaces/inetsparkeradaptermixin.html#netsparkerauth","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixin"},{"id":13,"kind":1024,"name":"netsparkerSDK","url":"interfaces/inetsparkeradaptermixin.html#netsparkersdk","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INetsparkerAdapterMixin"},{"id":14,"kind":512,"name":"constructor","url":"interfaces/inetsparkeradaptermixin.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":15,"kind":2048,"name":"parseServiceSchema","url":"interfaces/inetsparkeradaptermixin.html#parseserviceschema","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-protected","parent":"INetsparkerAdapterMixin"},{"id":16,"kind":1024,"name":"name","url":"interfaces/inetsparkeradaptermixin.html#name","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":17,"kind":1024,"name":"fullName","url":"interfaces/inetsparkeradaptermixin.html#fullname","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":18,"kind":1024,"name":"version","url":"interfaces/inetsparkeradaptermixin.html#version","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":19,"kind":1024,"name":"settings","url":"interfaces/inetsparkeradaptermixin.html#settings","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":20,"kind":1024,"name":"metadata","url":"interfaces/inetsparkeradaptermixin.html#metadata","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":21,"kind":1024,"name":"dependencies","url":"interfaces/inetsparkeradaptermixin.html#dependencies","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":22,"kind":1024,"name":"schema","url":"interfaces/inetsparkeradaptermixin.html#schema","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":23,"kind":1024,"name":"originalSchema","url":"interfaces/inetsparkeradaptermixin.html#originalschema","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":24,"kind":1024,"name":"broker","url":"interfaces/inetsparkeradaptermixin.html#broker","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":25,"kind":1024,"name":"logger","url":"interfaces/inetsparkeradaptermixin.html#logger","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":26,"kind":1024,"name":"actions","url":"interfaces/inetsparkeradaptermixin.html#actions","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":27,"kind":1024,"name":"Promise","url":"interfaces/inetsparkeradaptermixin.html#promise","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":28,"kind":2048,"name":"_init","url":"interfaces/inetsparkeradaptermixin.html#_init","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":29,"kind":2048,"name":"_start","url":"interfaces/inetsparkeradaptermixin.html#_start","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":30,"kind":2048,"name":"_stop","url":"interfaces/inetsparkeradaptermixin.html#_stop","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":31,"kind":2048,"name":"waitForServices","url":"interfaces/inetsparkeradaptermixin.html#waitforservices","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"INetsparkerAdapterMixin"},{"id":32,"kind":2048,"name":"applyMixins","url":"interfaces/inetsparkeradaptermixin.html#applymixins","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":33,"kind":2048,"name":"mergeSchemas","url":"interfaces/inetsparkeradaptermixin.html#mergeschemas","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":34,"kind":2048,"name":"mergeSchemaSettings","url":"interfaces/inetsparkeradaptermixin.html#mergeschemasettings","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":35,"kind":2048,"name":"mergeSchemaMetadata","url":"interfaces/inetsparkeradaptermixin.html#mergeschemametadata","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":36,"kind":2048,"name":"mergeSchemaMixins","url":"interfaces/inetsparkeradaptermixin.html#mergeschemamixins","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":37,"kind":2048,"name":"mergeSchemaDependencies","url":"interfaces/inetsparkeradaptermixin.html#mergeschemadependencies","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":38,"kind":2048,"name":"mergeSchemaHooks","url":"interfaces/inetsparkeradaptermixin.html#mergeschemahooks","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":39,"kind":2048,"name":"mergeSchemaActions","url":"interfaces/inetsparkeradaptermixin.html#mergeschemaactions","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":40,"kind":2048,"name":"mergeSchemaMethods","url":"interfaces/inetsparkeradaptermixin.html#mergeschemamethods","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":41,"kind":2048,"name":"mergeSchemaEvents","url":"interfaces/inetsparkeradaptermixin.html#mergeschemaevents","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":42,"kind":2048,"name":"mergeSchemaLifecycleHandlers","url":"interfaces/inetsparkeradaptermixin.html#mergeschemalifecyclehandlers","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":43,"kind":2048,"name":"mergeSchemaUnknown","url":"interfaces/inetsparkeradaptermixin.html#mergeschemaunknown","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"INetsparkerAdapterMixin"},{"id":44,"kind":4194304,"name":"NetsparkerAPIClient","url":"globals.html#netsparkerapiclient","classes":"tsd-kind-type-alias"},{"id":45,"kind":65536,"name":"__type","url":"globals.html#netsparkerapiclient.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"NetsparkerAPIClient"},{"id":46,"kind":4194304,"name":"NetsparkerAdapter","url":"globals.html#netsparkeradapter","classes":"tsd-kind-type-alias"},{"id":47,"kind":65536,"name":"__type","url":"globals.html#netsparkeradapter.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-is-not-exported","parent":"NetsparkerAdapter"},{"id":48,"kind":2097152,"name":"DefaultNetsparkerAdapterSettings","url":"globals.html#defaultnetsparkeradaptersettings","classes":"tsd-kind-object-literal"},{"id":49,"kind":32,"name":"netsparkerBasePath","url":"globals.html#defaultnetsparkeradaptersettings.netsparkerbasepath","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":50,"kind":32,"name":"netsparkerUserId","url":"globals.html#defaultnetsparkeradaptersettings.netsparkeruserid","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":51,"kind":32,"name":"netsparkerToken","url":"globals.html#defaultnetsparkeradaptersettings.netsparkertoken","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":52,"kind":32,"name":"accountInfoOnStart","url":"globals.html#defaultnetsparkeradaptersettings.accountinfoonstart","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"DefaultNetsparkerAdapterSettings"},{"id":53,"kind":2097152,"name":"NetsparkerAdapterMixin","url":"globals.html#netsparkeradaptermixin","classes":"tsd-kind-object-literal"},{"id":54,"kind":32,"name":"name","url":"globals.html#netsparkeradaptermixin.name","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":55,"kind":32,"name":"settings","url":"globals.html#netsparkeradaptermixin.settings","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":56,"kind":2097152,"name":"metadata","url":"globals.html#netsparkeradaptermixin.metadata","classes":"tsd-kind-object-literal tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":57,"kind":32,"name":"netsparker","url":"globals.html#netsparkeradaptermixin.metadata.netsparker","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin.metadata"},{"id":58,"kind":32,"name":"actions","url":"globals.html#netsparkeradaptermixin.actions","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":59,"kind":65536,"name":"__type","url":"globals.html#netsparkeradaptermixin.actions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-variable tsd-is-not-exported","parent":"NetsparkerAdapterMixin.actions"},{"id":60,"kind":32,"name":"methods","url":"globals.html#netsparkeradaptermixin.methods","classes":"tsd-kind-variable tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":61,"kind":65536,"name":"__type","url":"globals.html#netsparkeradaptermixin.methods.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-variable tsd-is-not-exported","parent":"NetsparkerAdapterMixin.methods"},{"id":62,"kind":64,"name":"created","url":"globals.html#netsparkeradaptermixin.created","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"},{"id":63,"kind":64,"name":"started","url":"globals.html#netsparkeradaptermixin.started","classes":"tsd-kind-function tsd-parent-kind-object-literal","parent":"NetsparkerAdapterMixin"}]}; \ No newline at end of file diff --git a/docs/globals.html b/docs/globals.html index ad549e9..8a051ff 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -95,7 +95,7 @@

NetsparkerAPIClient

NetsparkerAPIClient: object
@@ -110,7 +110,7 @@

NetsparkerAdapter

NetsparkerAdapter: object
@@ -128,7 +128,7 @@

Const DefaultNetsparker
DefaultNetsparkerAdapterSettings: object
@@ -137,7 +137,7 @@

accountInfoOnStart

accountInfoOnStart: true = true
@@ -147,7 +147,7 @@

netsparkerBasePath

netsparkerBasePath: undefined = undefined
@@ -157,7 +157,7 @@

netsparkerToken

netsparkerToken: undefined = undefined
@@ -167,7 +167,7 @@

netsparkerUserId

netsparkerUserId: undefined = undefined
@@ -178,7 +178,7 @@

Const NetsparkerAdapter
NetsparkerAdapterMixin: object
@@ -187,7 +187,7 @@

actions

actions: object
@@ -202,7 +202,7 @@

methods

methods: object
@@ -217,7 +217,7 @@

name

name: string = "Netsparker"
@@ -227,7 +227,7 @@

settings

settings: INetsparkerAdapterMixinSettings = DefaultNetsparkerAdapterSettings
@@ -241,7 +241,7 @@

created

  • Parameters

    @@ -264,7 +264,7 @@

    started

  • Parameters

    @@ -283,7 +283,7 @@

    metadata

    metadata: object
    @@ -292,7 +292,7 @@

    netsparker

    netsparker: boolean = true
    diff --git a/docs/index.html b/docs/index.html index a0d6508..c859e11 100644 --- a/docs/index.html +++ b/docs/index.html @@ -61,11 +61,11 @@

    moleculer-netsparker-cloud

    Moleculer Netsparker Mixin

    -

    Moleculer mixin for consuming Netsparker Cloud services. This mixin will provide a Moleculer microservice with a configured API client available on the service object at this.netsparkAdapter.

    +

    Moleculer mixin for consuming Netsparker Cloud services. This mixin will provide a Moleculer microservice with a configured API client available on the service object at this.netsparkerAdapter.

    Features

    • autowired Netsparker Cloud API client configured using service settings
    • -
    • adapater typings allow for simple consumption of API
    • +
    • adapter typings allow for simple consumption of API
    • Development documentation: https://niaid.github.io/moleculer-netsparker-cloud/

    Install

    @@ -127,7 +127,7 @@

    Usage

    }, methods: { async test(this: MyExampleService) { - const { body: me } = await this.netsparkerAdapater.AccountApi.accountMe(); + const { body: me } = await this.netsparkerAdapter.AccountApi.accountMe(); this.logger.info(me); } } @@ -157,11 +157,11 @@

    Tests

    [2021-05-28T21:04:23.621Z] INFO local.niaid.nih.gov-30604/BROKER: Serializer: JSONSerializer [2021-05-28T21:04:23.631Z] INFO local.niaid.nih.gov-30604/BROKER: Validator: FastestValidator [2021-05-28T21:04:23.632Z] INFO local.niaid.nih.gov-30604/BROKER: Registered 13 internal middleware(s). -[2021-05-28T21:04:23.648Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapater: basic HTTP auth configured -[2021-05-28T21:04:23.649Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapater: enabled +[2021-05-28T21:04:23.648Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapter: basic HTTP auth configured +[2021-05-28T21:04:23.649Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker adapter: enabled [2021-05-28T21:04:23.654Z] INFO local.niaid.nih.gov-30604/REGISTRY: '$node' service is registered. [2021-05-28T21:04:23.660Z] INFO local.niaid.nih.gov-30604/$NODE: Service '$node' started. -[2021-05-28T21:04:23.938Z] INFO local.niaid.nih.gov-30604/EXAMPLE: AccountLicenseApiModel { subscriptionMaximumSiteLimit: 0, subscriptionSiteCount: 0, subscriptionEndDate: '01/01/1999 01:00 AM', subscriptionStartDate: '01/01/1999 01:00 AM', isAccountWhitelisted: true, usedScanCreditCount: 0, scanCreditCount: 0, isCreditScanEnabled: false, isSubscriptionEnabled: true, preVerifiedWebsites: [], licenses: [ LicenseBaseModel { id: '********-****-****-****-************', isActive: true, key: '******', accountCanCreateSharkScanTask: false } ] } +[2021-05-28T21:04:23.938Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Netsparker account info: AccountLicenseApiModel { subscriptionMaximumSiteLimit: 0, subscriptionSiteCount: 0, subscriptionEndDate: '01/01/1999 01:00 AM', subscriptionStartDate: '01/01/1999 01:00 AM', isAccountWhitelisted: true, usedScanCreditCount: 0, scanCreditCount: 0, isCreditScanEnabled: false, isSubscriptionEnabled: true, preVerifiedWebsites: [], licenses: [ LicenseBaseModel { id: '********-****-****-****-************', isActive: true, key: '******', accountCanCreateSharkScanTask: false } ] } [2021-05-28T21:04:23.941Z] INFO local.niaid.nih.gov-30604/REGISTRY: 'example' service is registered. [2021-05-28T21:04:23.942Z] INFO local.niaid.nih.gov-30604/EXAMPLE: Service 'example' started. [2021-05-28T21:04:23.943Z] INFO local.niaid.nih.gov-30604/BROKER: ✔ ServiceBroker with 2 service(s) is started successfully in 294ms. @@ -196,6 +196,12 @@

    Tests

    https://www.netsparkercloud.com Netsparker API URL + + accountInfoOnStart + Boolean + true + Log account information on start +

    Roadmap

    Below is a small list of possible features that may be added in the future, especially if there is demand. Currently the focus of this module is very precise so the following items are not intended to be implemented any time soon:

    diff --git a/docs/interfaces/inetsparkeradaptermixin.html b/docs/interfaces/inetsparkeradaptermixin.html index fe8494f..b31e498 100644 --- a/docs/interfaces/inetsparkeradaptermixin.html +++ b/docs/interfaces/inetsparkeradaptermixin.html @@ -106,7 +106,7 @@

    Properties

  • logger
  • metadata
  • name
  • -
  • netsparkerAdapater
  • +
  • netsparkerAdapter
  • netsparkerAuth
  • netsparkerSDK
  • originalSchema
  • @@ -261,12 +261,12 @@

    name

    - -

    netsparkerAdapater

    -
    netsparkerAdapater: NetsparkerAdapter
    + +

    netsparkerAdapter

    +
    netsparkerAdapter: NetsparkerAdapter
    @@ -276,7 +276,7 @@

    netsparkerAuth

    netsparkerAuth: HttpBasicAuth
    @@ -286,7 +286,7 @@

    netsparkerSDK

    netsparkerSDK: "/Users/campanalecp/git/niaid/moleculer-netsparker-cloud/node_modules/netsparker-cloud/dist/api"
    @@ -829,7 +829,7 @@

    Returns ServiceSc name
  • - netsparkerAdapater + netsparkerAdapter
  • netsparkerAuth diff --git a/docs/interfaces/inetsparkeradaptermixinsettings.html b/docs/interfaces/inetsparkeradaptermixinsettings.html index 7ae0e6a..581c98b 100644 --- a/docs/interfaces/inetsparkeradaptermixinsettings.html +++ b/docs/interfaces/inetsparkeradaptermixinsettings.html @@ -163,7 +163,7 @@

    Optional accountInfo
    accountInfoOnStart: undefined | false | true
    @@ -178,7 +178,7 @@

    Optional netsparkerBasenetsparkerBasePath: undefined | string

    @@ -194,7 +194,7 @@

    Optional netsparkerToken<
    netsparkerToken: undefined | string
    @@ -210,7 +210,7 @@

    Optional netsparkerUsernetsparkerUserId: undefined | string

    diff --git a/package.json b/package.json index c452cd5..c34a320 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moleculer-netsparker-cloud", - "version": "0.1.0", + "version": "0.1.1", "description": "Moleculer mixin for consuming Netsparker Cloud services.", "main": "dist/index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index 39521e8..728fba3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -61,7 +61,7 @@ export const DefaultNetsparkerAdapterSettings: INetsparkerAdapterMixinSettings = }; export interface INetsparkerAdapterMixin extends Service { - netsparkerAdapater: NetsparkerAdapter; + netsparkerAdapter: NetsparkerAdapter; netsparkerAuth: HttpBasicAuth; netsparkerSDK: typeof Netsparker; } @@ -81,7 +81,7 @@ export const NetsparkerAdapterMixin: ServiceSchema { const APIName = netsparkerAPI.name as NetsparkerAPINames; // @ts-ignore - this.netsparkerAdapater[APIName] = new netsparkerAPI(this.settings.netsparkerBasePath); - this.netsparkerAdapater[APIName].setDefaultAuthentication(this.netsparkerAuth); + this.netsparkerAdapter[APIName] = new netsparkerAPI(this.settings.netsparkerBasePath); + this.netsparkerAdapter[APIName].setDefaultAuthentication(this.netsparkerAuth); }); - this.logger.info('Netsparker adapater: enabled'); + this.logger.info('Netsparker adapter: enabled'); }, async started(this: INetsparkerAdapterMixin) { - const { body: acccountDetails } = await this.netsparkerAdapater.AccountApi.accountLicense(); - this.logger.info(acccountDetails); + if (this.settings.accountInfoOnStart) { + const { body: acccountDetails } = await this.netsparkerAdapter.AccountApi.accountLicense(); + this.logger.info('Netsparker account info:', acccountDetails); + } } }; diff --git a/test/integration-ts.js b/test/integration-ts.js index 6bdf013..7849184 100644 --- a/test/integration-ts.js +++ b/test/integration-ts.js @@ -71,7 +71,7 @@ var MyExampleServiceSchema = { var me; return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, this.netsparkerAdapater.AccountApi.accountMe()]; + case 0: return [4 /*yield*/, this.netsparkerAdapter.AccountApi.accountMe()]; case 1: me = (_a.sent()).body; this.logger.info(me); diff --git a/test/integration-ts.ts b/test/integration-ts.ts index 45ddc40..c765283 100644 --- a/test/integration-ts.ts +++ b/test/integration-ts.ts @@ -29,7 +29,7 @@ const MyExampleServiceSchema: ServiceSchema = { }, methods: { async test(this: MyExampleService) { - const { body: me } = await this.netsparkerAdapater.AccountApi.accountMe(); + const { body: me } = await this.netsparkerAdapter.AccountApi.accountMe(); this.logger.info(me); } }