Skip to content

Commit

Permalink
Re-export internal netsparker-cloud module
Browse files Browse the repository at this point in the history
- this allows for model types and enums to be imported into dependent
modules
  • Loading branch information
ccampanale committed Jun 7, 2021
1 parent c19bc74 commit a2234e0
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 26 deletions.
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ServiceSchema, ServiceSettingSchema, Service } from "moleculer";
import * as Netsparker from 'netsparker-cloud';
import { AccountApi, AgentGroupsApi, AgentsApi, AuditLogsApi, Authentication, AuthenticationProfilesApi, DiscoveryApi, HttpBasicAuth, IssuesApi, NotificationsApi, ScanPoliciesApi, ScanProfilesApi, ScansApi, TeamMembersApi, TechnologiesApi, VulnerabilityApi, WebsiteGroupsApi, WebsitesApi } from "netsparker-cloud";
export * from 'netsparker-cloud';
export declare type NetsparkerAPIClient = {
setDefaultAuthentication(authStrategy: Authentication): void;
};
Expand Down Expand Up @@ -54,4 +55,3 @@ export interface INetsparkerAdapterMixin extends Service<INetsparkerAdapterMixin
netsparkerSDK: typeof Netsparker;
}
export declare const NetsparkerAdapterMixin: ServiceSchema<INetsparkerAdapterMixinSettings>;
export {};
4 changes: 4 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions docs/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h3>NetsparkerAPIClient</h3>
<div class="tsd-signature tsd-kind-icon">NetsparkerAPIClient<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L5">index.ts:5</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L6">index.ts:6</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -110,7 +110,7 @@ <h3>Netsparker<wbr>Adapter</h3>
<div class="tsd-signature tsd-kind-icon">Netsparker<wbr>Adapter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L30">index.ts:30</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L31">index.ts:31</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -128,7 +128,7 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> Default<wbr>Netsparker<wbr>
<div class="tsd-signature tsd-kind-icon">Default<wbr>Netsparker<wbr>Adapter<wbr>Settings<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L56">index.ts:56</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L57">index.ts:57</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
Expand All @@ -137,7 +137,7 @@ <h3>account<wbr>Info<wbr>OnStart</h3>
<div class="tsd-signature tsd-kind-icon">account<wbr>Info<wbr>OnStart<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol"> =&nbsp;true</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L60">index.ts:60</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L61">index.ts:61</a></li>
</ul>
</aside>
</section>
Expand All @@ -147,7 +147,7 @@ <h3>netsparker<wbr>Base<wbr>Path</h3>
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>Base<wbr>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> =&nbsp;undefined</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L57">index.ts:57</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L58">index.ts:58</a></li>
</ul>
</aside>
</section>
Expand All @@ -157,7 +157,7 @@ <h3>netsparker<wbr>Token</h3>
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>Token<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> =&nbsp;undefined</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L59">index.ts:59</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L60">index.ts:60</a></li>
</ul>
</aside>
</section>
Expand All @@ -167,7 +167,7 @@ <h3>netsparker<wbr>User<wbr>Id</h3>
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>User<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> =&nbsp;undefined</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L58">index.ts:58</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L59">index.ts:59</a></li>
</ul>
</aside>
</section>
Expand All @@ -178,7 +178,7 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> Netsparker<wbr>Adapter<wbr>
<div class="tsd-signature tsd-kind-icon">Netsparker<wbr>Adapter<wbr>Mixin<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L69">index.ts:69</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L70">index.ts:70</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
Expand All @@ -187,7 +187,7 @@ <h3>actions</h3>
<div class="tsd-signature tsd-kind-icon">actions<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L79">index.ts:79</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L80">index.ts:80</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -202,7 +202,7 @@ <h3>methods</h3>
<div class="tsd-signature tsd-kind-icon">methods<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L81">index.ts:81</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L82">index.ts:82</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -217,7 +217,7 @@ <h3>name</h3>
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> =&nbsp;&quot;Netsparker&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L71">index.ts:71</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L72">index.ts:72</a></li>
</ul>
</aside>
</section>
Expand All @@ -227,7 +227,7 @@ <h3>settings</h3>
<div class="tsd-signature tsd-kind-icon">settings<span class="tsd-signature-symbol">:</span> <a href="interfaces/inetsparkeradaptermixinsettings.html" class="tsd-signature-type">INetsparkerAdapterMixinSettings</a><span class="tsd-signature-symbol"> =&nbsp;DefaultNetsparkerAdapterSettings</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L73">index.ts:73</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L74">index.ts:74</a></li>
</ul>
</aside>
</section>
Expand All @@ -241,7 +241,7 @@ <h3>created</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L83">index.ts:83</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L84">index.ts:84</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -264,7 +264,7 @@ <h3>started</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L105">index.ts:105</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L106">index.ts:106</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -283,7 +283,7 @@ <h3>metadata</h3>
<div class="tsd-signature tsd-kind-icon">metadata<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L75">index.ts:75</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L76">index.ts:76</a></li>
</ul>
</aside>
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-object-literal">
Expand All @@ -292,7 +292,7 @@ <h3>netsparker</h3>
<div class="tsd-signature tsd-kind-icon">netsparker<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> =&nbsp;true</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L76">index.ts:76</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L77">index.ts:77</a></li>
</ul>
</aside>
</section>
Expand Down
6 changes: 3 additions & 3 deletions docs/interfaces/inetsparkeradaptermixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ <h3>netsparker<wbr>Adapter</h3>
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>Adapter<span class="tsd-signature-symbol">:</span> <a href="../globals.html#netsparkeradapter" class="tsd-signature-type">NetsparkerAdapter</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L64">index.ts:64</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L65">index.ts:65</a></li>
</ul>
</aside>
</section>
Expand All @@ -276,7 +276,7 @@ <h3>netsparker<wbr>Auth</h3>
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>Auth<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">HttpBasicAuth</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L65">index.ts:65</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L66">index.ts:66</a></li>
</ul>
</aside>
</section>
Expand All @@ -286,7 +286,7 @@ <h3>netsparkerSDK</h3>
<div class="tsd-signature tsd-kind-icon">netsparkerSDK<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;/Users/campanalecp/git/niaid/moleculer-netsparker-cloud/node_modules/netsparker-cloud/dist/api&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L66">index.ts:66</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L67">index.ts:67</a></li>
</ul>
</aside>
</section>
Expand Down
8 changes: 4 additions & 4 deletions docs/interfaces/inetsparkeradaptermixinsettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> account<wbr>Info<wbr>
<div class="tsd-signature tsd-kind-icon">account<wbr>Info<wbr>OnStart<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">true</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L53">index.ts:53</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L54">index.ts:54</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -178,7 +178,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> netsparker<wbr>Base<w
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>Base<wbr>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L39">index.ts:39</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L40">index.ts:40</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -194,7 +194,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> netsparker<wbr>Token<
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>Token<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L49">index.ts:49</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L50">index.ts:50</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -210,7 +210,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> netsparker<wbr>User<w
<div class="tsd-signature tsd-kind-icon">netsparker<wbr>User<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/28af9a2/src/index.ts#L44">index.ts:44</a></li>
<li>Defined in <a href="https://github.com/niaid/moleculer-netsparker-cloud/blob/c19bc74/src/index.ts#L45">index.ts:45</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moleculer-netsparker-cloud",
"version": "0.1.2",
"version": "0.1.3",
"description": "Moleculer mixin for consuming Netsparker Cloud services.",
"main": "dist/index.js",
"scripts": {
Expand Down
Loading

0 comments on commit a2234e0

Please sign in to comment.