Skip to content

Commit

Permalink
Deploying to gh-pages from @ ef05399 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
bergatco committed Dec 19, 2023
1 parent 542142a commit 0d80a12
Show file tree
Hide file tree
Showing 191 changed files with 35,262 additions and 10,655 deletions.
207 changes: 70 additions & 137 deletions classes/County.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,17 @@
<h3>File</h3>
</p>
<p class="comment">
<code>apps/server/src/shared/domain/entity/federal-state.entity.ts</code>
<code>apps/server/src/modules/school/domain/do/county.ts</code>
</p>



<p class="comment">
<h3>Extends</h3>
</p>
<p class="comment">
<code><a href="../classes/DomainObject.html" target="_self" >DomainObject</a></code>
</p>



Expand All @@ -147,13 +153,24 @@ <h6><b>Properties</b></h6>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#antaresKey" >antaresKey</a>
</li>
<li>
<a href="#countyId" >countyId</a>
<span class="modifier">Protected</span>
<a href="#props" >props</a>
</li>
</ul>
</td>
</tr>

<tr>
<td class="col-md-4">
<h6><b>Methods</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#name" >name</a>
<span class="modifier">Public</span>
<a href="#getProps" >getProps</a>
</li>
</ul>
</td>
Expand All @@ -163,59 +180,10 @@ <h6><b>Properties</b></h6>




</tbody>
</table>
</section>

<section data-compodoc="block-constructor">
<h3 id="constructor">Constructor</h3>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<code>constructor(county: <a href="../classes/County.html" target="_self">County</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">apps/server/src/shared/domain/entity/federal-state.entity.ts:14</a></div>
</td>
</tr>

<tr>
<td class="col-md-4">
<div>
<b>Parameters :</b>
<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>county</td>

<td>
<code><a href="../classes/County.html" target="_self" >County</a></code>
</td>

<td>
No
</td>

</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</section>

<section data-compodoc="block-properties">

Expand All @@ -226,78 +194,86 @@ <h3 id="inputs">
<tbody>
<tr>
<td class="col-md-4">
<a name="antaresKey"></a>
<a name="props"></a>
<span class="name">
<span ><b>antaresKey</b></span>
<a href="#antaresKey"><span class="icon ion-ios-link"></span></a>
<span class="modifier">Protected</span>
<span ><b>props</b></span>
<a href="#props"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
<i>Type : </i> <code>T</code>

</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Inherited from <code><a href="../classes/DomainObject.html" target="_self" >DomainObject</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">apps/server/src/shared/domain/entity/federal-state.entity.ts:25</a></div>
<div class="io-line">Defined in <code><a href="../classes/DomainObject.html#source" target="_self" >DomainObject:8</a></code>
</div>
</td>
</tr>


</tbody>
</table>
</section>

<section data-compodoc="block-methods">

<h3 id="methods">
Methods
</h3>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="countyId"></a>
<a name="getProps"></a>
<span class="name">
<span ><b>countyId</b></span>
<a href="#countyId"><span class="icon ion-ios-link"></span></a>
<span class="modifier">Public</span>
<span ><b>getProps</b></span>
<a href="#getProps"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>

</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">apps/server/src/shared/domain/entity/federal-state.entity.ts:23</a></div>
</td>
</tr>


</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="name"></a>
<span class="name">
<span ><b>name</b></span>
<a href="#name"><span class="icon ion-ios-link"></span></a>
</span>
<span class="modifier-icon icon ion-ios-reset"></span>
<code>getProps()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

</td>
</tr>

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">apps/server/src/shared/domain/entity/federal-state.entity.ts:21</a></div>
<div class="io-line">Inherited from <code><a href="../classes/DomainObject.html" target="_self" >DomainObject</a></code>
</div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <code><a href="../classes/DomainObject.html#source" target="_self" >DomainObject:18</a></code>
</div>
</td>
</tr>


<tr>
<td class="col-md-4">

<div class="io-description">
<b>Returns : </b> <code>T</code>

</div>
</td>
</tr>
</tbody>
</table>
</section>
Expand All @@ -306,62 +282,19 @@ <h3 id="inputs">





</div>


<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Embeddable, Embedded, Entity, Property } from &#x27;@mikro-orm/core&#x27;;
import { BaseEntityWithTimestamps } from &#x27;./base.entity&#x27;;
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AuthorizableObject, DomainObject } from &#x27;@shared/domain/domain-object&#x27;;

export interface FederalStateProperties {
name: string;
abbreviation: string;
logoUrl: string;
counties?: County[];
createdAt: Date;
updatedAt: Date;
}

@Embeddable()
export class County {
constructor(county: County) {
this.name &#x3D; county.name;
this.countyId &#x3D; county.countyId;
this.antaresKey &#x3D; county.antaresKey;
}
export class County extends DomainObject&lt;CountyProps&gt; {}

export interface CountyProps extends AuthorizableObject {
name: string;

countyId: number;

antaresKey: string;
}

@Entity({ tableName: &#x27;federalstates&#x27; })
export class FederalStateEntity extends BaseEntityWithTimestamps {
@Property({ nullable: false })
name: string;

@Property({ nullable: false })
abbreviation: string;

@Property()
logoUrl: string;

@Embedded(() &#x3D;&gt; County, { array: true, nullable: true })
counties?: County[];

constructor(props: FederalStateProperties) {
super();
this.name &#x3D; props.name;
this.abbreviation &#x3D; props.abbreviation;
this.logoUrl &#x3D; props.logoUrl;
this.updatedAt &#x3D; props.updatedAt;
this.createdAt &#x3D; props.createdAt;
}
}
</code></pre>
</div>
</div>
Expand Down
Loading

0 comments on commit 0d80a12

Please sign in to comment.