Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
feat: event types + pass original event to listener
  • Loading branch information
Rmannn committed Dec 9, 2020
1 parent b091496 commit ece2f97
Show file tree
Hide file tree
Showing 52 changed files with 302 additions and 251 deletions.
2 changes: 1 addition & 1 deletion docs/assets/js/search.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/_classes_filter_.filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h3>limit</h3>
<div class="tsd-signature tsd-kind-icon">limit<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 50</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/filter.ts#L20">src/classes/filter.ts:20</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/filter.ts#L20">src/classes/filter.ts:20</a></li>
</ul>
</aside>
</section>
Expand All @@ -125,7 +125,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> order<wbr>By</h3>
<div class="tsd-signature tsd-kind-icon">order<wbr>By<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = [&#x27;_id:asc&#x27;]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/filter.ts#L26">src/classes/filter.ts:26</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/filter.ts#L26">src/classes/filter.ts:26</a></li>
</ul>
</aside>
</section>
Expand All @@ -136,7 +136,7 @@ <h3>serialize</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="../interfaces/_interfaces_entity_.entityinterface.html">EntityInterface</a>.<a href="../interfaces/_interfaces_entity_.entityinterface.html#serialize">serialize</a></p>
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/serializer.ts#L5">src/serializer.ts:5</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/serializer.ts#L5">src/serializer.ts:5</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -161,7 +161,7 @@ <h3>skip</h3>
<div class="tsd-signature tsd-kind-icon">skip<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/filter.ts#L13">src/classes/filter.ts:13</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/filter.ts#L13">src/classes/filter.ts:13</a></li>
</ul>
</aside>
</section>
Expand All @@ -172,7 +172,7 @@ <h3>toJSON</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="../interfaces/_interfaces_entity_.entityinterface.html">EntityInterface</a>.<a href="../interfaces/_interfaces_entity_.entityinterface.html#tojson">toJSON</a></p>
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/serializer.ts#L6">src/serializer.ts:6</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/serializer.ts#L6">src/serializer.ts:6</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand Down Expand Up @@ -204,7 +204,7 @@ <h3>get<wbr>Sort</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/filter.ts#L28">src/classes/filter.ts:28</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/filter.ts#L28">src/classes/filter.ts:28</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Array</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">1</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">-1</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h4>
Expand All @@ -221,7 +221,7 @@ <h3>get<wbr>Sort<wbr>For<wbr>Aggregation</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/filter.ts#L41">src/classes/filter.ts:41</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/filter.ts#L41">src/classes/filter.ts:41</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{}</span></h4>
Expand All @@ -243,7 +243,7 @@ <h3>to<wbr>Query</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/filter.ts#L56">src/classes/filter.ts:56</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/filter.ts#L56">src/classes/filter.ts:56</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
Expand Down
8 changes: 4 additions & 4 deletions docs/classes/_classes_history_.historyactions.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h3>actions</h3>
<div class="tsd-signature tsd-kind-icon">actions<span class="tsd-signature-symbol">:</span> <a href="_classes_history_action_.historyaction.html" class="tsd-signature-type">HistoryAction</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/history.ts#L8">src/classes/history.ts:8</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/history.ts#L8">src/classes/history.ts:8</a></li>
</ul>
</aside>
</section>
Expand All @@ -123,7 +123,7 @@ <h3>add</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/history.ts#L10">src/classes/history.ts:10</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/history.ts#L10">src/classes/history.ts:10</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -146,7 +146,7 @@ <h3>clear</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/history.ts#L14">src/classes/history.ts:14</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/history.ts#L14">src/classes/history.ts:14</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
Expand All @@ -163,7 +163,7 @@ <h3>get<wbr>Actions</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/history.ts#L18">src/classes/history.ts:18</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/history.ts#L18">src/classes/history.ts:18</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="_classes_history_action_.historyaction.html" class="tsd-signature-type">HistoryAction</a><span class="tsd-signature-symbol">[]</span></h4>
Expand Down
6 changes: 3 additions & 3 deletions docs/classes/_classes_history_action_.historyaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/history.action.ts#L8">src/classes/history.action.ts:8</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/history.action.ts#L8">src/classes/history.action.ts:8</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -134,7 +134,7 @@ <h3>action</h3>
<div class="tsd-signature tsd-kind-icon">action<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/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/history.action.ts#L5">src/classes/history.action.ts:5</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/history.action.ts#L5">src/classes/history.action.ts:5</a></li>
</ul>
</aside>
</section>
Expand All @@ -144,7 +144,7 @@ <h3>date</h3>
<div class="tsd-signature tsd-kind-icon">date<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/history.action.ts#L8">src/classes/history.action.ts:8</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/history.action.ts#L8">src/classes/history.action.ts:8</a></li>
</ul>
</aside>
</section>
Expand Down
8 changes: 4 additions & 4 deletions docs/classes/_classes_paginated_.paginateddata.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h3>count</h3>
<div class="tsd-signature tsd-kind-icon">count<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/paginated.ts#L10">src/classes/paginated.ts:10</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/paginated.ts#L10">src/classes/paginated.ts:10</a></li>
</ul>
</aside>
</section>
Expand All @@ -124,7 +124,7 @@ <h3>data</h3>
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">D</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/classes/paginated.ts#L12">src/classes/paginated.ts:12</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/classes/paginated.ts#L12">src/classes/paginated.ts:12</a></li>
</ul>
</aside>
</section>
Expand All @@ -135,7 +135,7 @@ <h3>serialize</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="../interfaces/_interfaces_entity_.entityinterface.html">EntityInterface</a>.<a href="../interfaces/_interfaces_entity_.entityinterface.html#serialize">serialize</a></p>
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/serializer.ts#L5">src/serializer.ts:5</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/serializer.ts#L5">src/serializer.ts:5</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -161,7 +161,7 @@ <h3>toJSON</h3>
<aside class="tsd-sources">
<p>Inherited from <a href="../interfaces/_interfaces_entity_.entityinterface.html">EntityInterface</a>.<a href="../interfaces/_interfaces_entity_.entityinterface.html#tojson">toJSON</a></p>
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/serializer.ts#L6">src/serializer.ts:6</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/serializer.ts#L6">src/serializer.ts:6</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/_dataloader_data_.mongodataloader.html
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ <h3>uuid</h3>
<div class="tsd-signature tsd-kind-icon">uuid<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/Pop-Code/nestjs-mongo/blob/4e9d54a/src/dataloader/data.ts#L9">src/dataloader/data.ts:9</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/dataloader/data.ts#L9">src/dataloader/data.ts:9</a></li>
</ul>
</aside>
</section>
Expand Down
10 changes: 5 additions & 5 deletions docs/classes/_dataloader_middleware_.datalooadermiddleware.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/dataloader/middleware.ts#L14">src/dataloader/middleware.ts:14</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/dataloader/middleware.ts#L14">src/dataloader/middleware.ts:14</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -147,7 +147,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-fl
<div class="tsd-signature tsd-kind-icon">dataloader<wbr>Service<span class="tsd-signature-symbol">:</span> <a href="_dataloader_service_.dataloaderservice.html" class="tsd-signature-type">DataloaderService</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/dataloader/middleware.ts#L18">src/dataloader/middleware.ts:18</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/dataloader/middleware.ts#L18">src/dataloader/middleware.ts:18</a></li>
</ul>
</aside>
</section>
Expand All @@ -157,7 +157,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-fl
<div class="tsd-signature tsd-kind-icon">em<span class="tsd-signature-symbol">:</span> <a href="_manager_.mongomanager.html" class="tsd-signature-type">MongoManager</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/dataloader/middleware.ts#L17">src/dataloader/middleware.ts:17</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/dataloader/middleware.ts#L17">src/dataloader/middleware.ts:17</a></li>
</ul>
</aside>
</section>
Expand All @@ -167,7 +167,7 @@ <h3><span class="tsd-flag ts-flagProtected">Protected</span> log</h3>
<div class="tsd-signature tsd-kind-icon">log<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Debugger</span><span class="tsd-signature-symbol"> = Debug(DEBUG + &#x27;:DataLooaderMiddleware&#x27;)</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/dataloader/middleware.ts#L14">src/dataloader/middleware.ts:14</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/dataloader/middleware.ts#L14">src/dataloader/middleware.ts:14</a></li>
</ul>
</aside>
</section>
Expand All @@ -184,7 +184,7 @@ <h3>use</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/4e9d54a/src/dataloader/middleware.ts#L21">src/dataloader/middleware.ts:21</a></li>
<li>Defined in <a href="https://github.com/Pop-Code/nestjs-mongo/blob/ed51124/src/dataloader/middleware.ts#L21">src/dataloader/middleware.ts:21</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
Loading

0 comments on commit ece2f97

Please sign in to comment.