Merge branch 'spencer/refactor-mappings' into 'master'

Refactor mapping of curated options from meta.

See merge request grassrootseconomics/cic-staff-client!37
This commit is contained in:
Spencer Ofwiti 2021-06-23 07:18:29 +00:00
commit e0a44046da
62 changed files with 4228 additions and 4702 deletions

File diff suppressed because one or more lines are too long

View File

@ -328,8 +328,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="33"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:33</a></div>
<div class="io-line">Defined in <a href="" data-line="43"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:43</a></div>
</td>
</tr>
@ -369,8 +369,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="86"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:86</a></div>
<div class="io-line">Defined in <a href="" data-line="87"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:87</a></div>
</td>
</tr>
@ -408,8 +408,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="56"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:56</a></div>
<div class="io-line">Defined in <a href="" data-line="57"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:57</a></div>
</td>
</tr>
@ -449,8 +449,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="66"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:66</a></div>
<div class="io-line">Defined in <a href="" data-line="67"
class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:67</a></div>
</td>
</tr>
@ -799,7 +799,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:46</a></div>
<div class="io-line">Defined in <a href="" data-line="47" class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:47</a></div>
</td>
</tr>
@ -821,7 +821,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="49" class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:49</a></div>
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:50</a></div>
</td>
</tr>
@ -843,7 +843,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:52</a></div>
<div class="io-line">Defined in <a href="" data-line="53" class="link-to-prism">src/app/pages/accounts/account-search/account-search.component.ts:53</a></div>
</td>
</tr>
@ -884,10 +884,7 @@ export class AccountSearchComponent implements OnInit {
private formBuilder: FormBuilder,
private userService: UserService,
private router: Router
) {}
async ngOnInit(): Promise&lt;void&gt; {
await this.userService.init();
) {
this.nameSearchForm &#x3D; this.formBuilder.group({
name: [&#x27;&#x27;, Validators.required],
});
@ -899,6 +896,10 @@ export class AccountSearchComponent implements OnInit {
});
}
async ngOnInit(): Promise&lt;void&gt; {
await this.userService.init();
}
get nameSearchFormStub(): any {
return this.nameSearchForm.controls;
}

View File

@ -160,6 +160,9 @@
<li>
<a href="#sort">sort</a>
</li>
<li>
<a href="#tokenSymbol">tokenSymbol</a>
</li>
</ul>
</td>
</tr>
@ -210,12 +213,12 @@
<tbody>
<tr>
<td class="col-md-4">
<code>constructor(userService: <a href="../injectables/UserService.html">UserService</a>, loggingService: <a href="../injectables/LoggingService.html">LoggingService</a>, router: <a href="https://angular.io/api/router/Router" target="_blank">Router</a>)</code>
<code>constructor(userService: <a href="../injectables/UserService.html">UserService</a>, loggingService: <a href="../injectables/LoggingService.html">LoggingService</a>, router: <a href="https://angular.io/api/router/Router" target="_blank">Router</a>, tokenService: <a href="../injectables/TokenService.html">TokenService</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/app/pages/accounts/accounts.component.ts:29</a></div>
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/app/pages/accounts/accounts.component.ts:30</a></div>
</td>
</tr>
@ -268,6 +271,18 @@
</td>
</tr>
<tr>
<td>tokenService</td>
<td>
<code><a href="../injectables/TokenService.html" target="_self" >TokenService</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
</div>
@ -308,8 +323,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="57"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:57</a></div>
<div class="io-line">Defined in <a href="" data-line="65"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:65</a></div>
</td>
</tr>
@ -378,8 +393,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="86"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:86</a></div>
<div class="io-line">Defined in <a href="" data-line="94"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:94</a></div>
</td>
</tr>
@ -417,8 +432,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="67"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:67</a></div>
<div class="io-line">Defined in <a href="" data-line="75"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:75</a></div>
</td>
</tr>
@ -458,8 +473,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="37"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:37</a></div>
<div class="io-line">Defined in <a href="" data-line="39"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:39</a></div>
</td>
</tr>
@ -497,8 +512,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="78"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:78</a></div>
<div class="io-line">Defined in <a href="" data-line="86"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:86</a></div>
</td>
</tr>
@ -538,8 +553,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="61"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:61</a></div>
<div class="io-line">Defined in <a href="" data-line="69"
class="link-to-prism">src/app/pages/accounts/accounts.component.ts:69</a></div>
</td>
</tr>
@ -831,7 +846,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/app/pages/accounts/accounts.component.ts:28</a></div>
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/app/pages/accounts/accounts.component.ts:29</a></div>
</td>
</tr>
@ -867,7 +882,34 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/app/pages/accounts/accounts.component.ts:29</a></div>
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/app/pages/accounts/accounts.component.ts:30</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="tokenSymbol"></a>
<span class="name">
<b>
tokenSymbol</b>
<a href="#tokenSymbol"><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>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/app/pages/accounts/accounts.component.ts:27</a></div>
</td>
</tr>
@ -884,7 +926,7 @@
import { MatTableDataSource } from &#x27;@angular/material/table&#x27;;
import { MatPaginator } from &#x27;@angular/material/paginator&#x27;;
import { MatSort } from &#x27;@angular/material/sort&#x27;;
import { LoggingService, UserService } from &#x27;@app/_services&#x27;;
import { LoggingService, TokenService, UserService } from &#x27;@app/_services&#x27;;
import { Router } from &#x27;@angular/router&#x27;;
import { exportCsv } from &#x27;@app/_helpers&#x27;;
import { strip0x } from &#x27;@src/assets/js/ethtx/dist/hex&#x27;;
@ -906,6 +948,7 @@ export class AccountsComponent implements OnInit {
pageSizeOptions: Array&lt;number&gt; &#x3D; [10, 20, 50, 100];
accountsType: string &#x3D; &#x27;all&#x27;;
accountTypes: Array&lt;string&gt;;
tokenSymbol: string;
@ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort;
@ -913,11 +956,13 @@ export class AccountsComponent implements OnInit {
constructor(
private userService: UserService,
private loggingService: LoggingService,
private router: Router
private router: Router,
private tokenService: TokenService
) {}
async ngOnInit(): Promise&lt;void&gt; {
await this.userService.init();
await this.tokenService.init();
try {
// TODO it feels like this should be in the onInit handler
await this.userService.loadAccounts(100);
@ -934,6 +979,11 @@ export class AccountsComponent implements OnInit {
.getAccountTypes()
.pipe(first())
.subscribe((res) &#x3D;&gt; (this.accountTypes &#x3D; res));
this.tokenService.load.subscribe(async (status: boolean) &#x3D;&gt; {
if (status) {
this.tokenSymbol &#x3D; await this.tokenService.getTokenSymbol();
}
});
}
doFilter(value: string): void {
@ -1064,7 +1114,9 @@ export class AccountsComponent implements OnInit {
&lt;ng-container matColumnDef&#x3D;&quot;balance&quot;&gt;
&lt;mat-header-cell *matHeaderCellDef mat-sort-header&gt; BALANCE &lt;/mat-header-cell&gt;
&lt;mat-cell *matCellDef&#x3D;&quot;let user&quot;&gt; {{ user?.balance | tokenRatio }} &lt;/mat-cell&gt;
&lt;mat-cell *matCellDef&#x3D;&quot;let user&quot;&gt;
{{ user?.balance | tokenRatio }} {{ tokenSymbol | uppercase }}
&lt;/mat-cell&gt;
&lt;/ng-container&gt;
&lt;ng-container matColumnDef&#x3D;&quot;location&quot;&gt;
@ -1129,7 +1181,7 @@ export class AccountsComponent implements OnInit {
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><!-- Begin page --><div class="wrapper"> <app-sidebar></app-sidebar> <!-- ============================================================== --> <!-- Start Page Content here --> <!-- ============================================================== --> <div id="content"> <app-topbar></app-topbar> <!-- Start Content--> <div class="container-fluid" appMenuSelection> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a routerLink="/home">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Accounts</li> </ol> </nav> <div class="card"> <mat-card-title class="card-header"> Accounts </mat-card-title> <div class="card-body"> <div class="row card-header"> <mat-form-field appearance="outline"> <mat-label> ACCOUNT TYPE </mat-label> <mat-select id="typeSelect" [(value)]="accountsType" (selectionChange)="filterAccounts()" > <mat-option value="all">ALL</mat-option> <mat-option *ngFor="let accountType of accountTypes" [value]="accountType"> {{ accountType | uppercase }} </mat-option> </mat-select> </mat-form-field> <button mat-raised-button color="primary" type="button" class="btn btn-outline-primary ml-auto mr-2" routerLink="/accounts/search" > SEARCH </button> <button mat-raised-button color="primary" type="button" class="btn btn-outline-primary mr-2" (click)="downloadCsv()" > EXPORT </button> </div> <mat-form-field appearance="outline"> <mat-label> Filter </mat-label> <input matInput type="text" (keyup)="doFilter($event.target.value)" placeholder="Filter" /> <mat-icon matSuffix>search</mat-icon> </mat-form-field> <mat-table class="mat-elevation-z10" [dataSource]="dataSource" matSort matSortActive="created" matSortDirection="desc" matSortDisableClear > <ng-container matColumnDef="name"> <mat-header-cell *matHeaderCellDef mat-sort-header> NAME </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.vcard.fn[0].value }} </mat-cell> </ng-container> <ng-container matColumnDef="phone"> <mat-header-cell *matHeaderCellDef mat-sort-header> PHONE NUMBER </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.vcard.tel[0].value }} </mat-cell> </ng-container> <ng-container matColumnDef="created"> <mat-header-cell *matHeaderCellDef mat-sort-header> CREATED </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.date_registered | unixDate }} </mat-cell> </ng-container> <ng-container matColumnDef="balance"> <mat-header-cell *matHeaderCellDef mat-sort-header> BALANCE </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.balance | tokenRatio }} </mat-cell> </ng-container> <ng-container matColumnDef="location"> <mat-header-cell *matHeaderCellDef mat-sort-header> LOCATION </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.location.area_name }} </mat-cell> </ng-container> <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> <mat-row *matRowDef="let account; columns: displayedColumns" (click)="viewAccount(account)" matRipple ></mat-row> </mat-table> <mat-paginator [pageSize]="defaultPageSize" [pageSizeOptions]="pageSizeOptions" showFirstLastButtons ></mat-paginator> </div> </div> </div> <app-footer appMenuSelection></app-footer> </div> <!-- ============================================================== --> <!-- End Page content --> <!-- ============================================================== --></div></div>'
var COMPONENT_TEMPLATE = '<div><!-- Begin page --><div class="wrapper"> <app-sidebar></app-sidebar> <!-- ============================================================== --> <!-- Start Page Content here --> <!-- ============================================================== --> <div id="content"> <app-topbar></app-topbar> <!-- Start Content--> <div class="container-fluid" appMenuSelection> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a routerLink="/home">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Accounts</li> </ol> </nav> <div class="card"> <mat-card-title class="card-header"> Accounts </mat-card-title> <div class="card-body"> <div class="row card-header"> <mat-form-field appearance="outline"> <mat-label> ACCOUNT TYPE </mat-label> <mat-select id="typeSelect" [(value)]="accountsType" (selectionChange)="filterAccounts()" > <mat-option value="all">ALL</mat-option> <mat-option *ngFor="let accountType of accountTypes" [value]="accountType"> {{ accountType | uppercase }} </mat-option> </mat-select> </mat-form-field> <button mat-raised-button color="primary" type="button" class="btn btn-outline-primary ml-auto mr-2" routerLink="/accounts/search" > SEARCH </button> <button mat-raised-button color="primary" type="button" class="btn btn-outline-primary mr-2" (click)="downloadCsv()" > EXPORT </button> </div> <mat-form-field appearance="outline"> <mat-label> Filter </mat-label> <input matInput type="text" (keyup)="doFilter($event.target.value)" placeholder="Filter" /> <mat-icon matSuffix>search</mat-icon> </mat-form-field> <mat-table class="mat-elevation-z10" [dataSource]="dataSource" matSort matSortActive="created" matSortDirection="desc" matSortDisableClear > <ng-container matColumnDef="name"> <mat-header-cell *matHeaderCellDef mat-sort-header> NAME </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.vcard.fn[0].value }} </mat-cell> </ng-container> <ng-container matColumnDef="phone"> <mat-header-cell *matHeaderCellDef mat-sort-header> PHONE NUMBER </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.vcard.tel[0].value }} </mat-cell> </ng-container> <ng-container matColumnDef="created"> <mat-header-cell *matHeaderCellDef mat-sort-header> CREATED </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.date_registered | unixDate }} </mat-cell> </ng-container> <ng-container matColumnDef="balance"> <mat-header-cell *matHeaderCellDef mat-sort-header> BALANCE </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.balance | tokenRatio }} {{ tokenSymbol | uppercase }} </mat-cell> </ng-container> <ng-container matColumnDef="location"> <mat-header-cell *matHeaderCellDef mat-sort-header> LOCATION </mat-header-cell> <mat-cell *matCellDef="let user"> {{ user?.location.area_name }} </mat-cell> </ng-container> <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> <mat-row *matRowDef="let account; columns: displayedColumns" (click)="viewAccount(account)" matRipple ></mat-row> </mat-table> <mat-paginator [pageSize]="defaultPageSize" [pageSizeOptions]="pageSizeOptions" showFirstLastButtons ></mat-paginator> </div> </div> </div> <app-footer appMenuSelection></app-footer> </div> <!-- ============================================================== --> <!-- End Page content --> <!-- ============================================================== --></div></div>'
var COMPONENTS = [{'name': 'AccountDetailsComponent', 'selector': 'app-account-details'},{'name': 'AccountsComponent', 'selector': 'app-accounts'},{'name': 'AccountSearchComponent', 'selector': 'app-account-search'},{'name': 'AdminComponent', 'selector': 'app-admin'},{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'AuthComponent', 'selector': 'app-auth'},{'name': 'CreateAccountComponent', 'selector': 'app-create-account'},{'name': 'ErrorDialogComponent', 'selector': 'app-error-dialog'},{'name': 'FooterComponent', 'selector': 'app-footer'},{'name': 'FooterStubComponent', 'selector': 'app-footer'},{'name': 'NetworkStatusComponent', 'selector': 'app-network-status'},{'name': 'OrganizationComponent', 'selector': 'app-organization'},{'name': 'PagesComponent', 'selector': 'app-pages'},{'name': 'SettingsComponent', 'selector': 'app-settings'},{'name': 'SidebarComponent', 'selector': 'app-sidebar'},{'name': 'SidebarStubComponent', 'selector': 'app-sidebar'},{'name': 'TokenDetailsComponent', 'selector': 'app-token-details'},{'name': 'TokensComponent', 'selector': 'app-tokens'},{'name': 'TopbarComponent', 'selector': 'app-topbar'},{'name': 'TopbarStubComponent', 'selector': 'app-topbar'},{'name': 'TransactionDetailsComponent', 'selector': 'app-transaction-details'},{'name': 'TransactionsComponent', 'selector': 'app-transactions'}];
var DIRECTIVES = [{'name': 'MenuSelectionDirective', 'selector': '[appMenuSelection]'},{'name': 'MenuToggleDirective', 'selector': '[appMenuToggle]'},{'name': 'PasswordToggleDirective', 'selector': '[appPasswordToggle]'},{'name': 'RouterLinkDirectiveStub', 'selector': '[appRouterLink]'}];
var ACTUAL_COMPONENT = {'name': 'AccountsComponent'};

View File

@ -210,7 +210,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:21</a></div>
<div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:20</a></div>
</td>
</tr>
@ -305,8 +305,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="29"
class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:29</a></div>
<div class="io-line">Defined in <a href="" data-line="28"
class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:28</a></div>
</td>
</tr>
@ -344,8 +344,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="65"
class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:65</a></div>
<div class="io-line">Defined in <a href="" data-line="64"
class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:64</a></div>
</td>
</tr>
@ -387,7 +387,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:20</a></div>
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:19</a></div>
</td>
</tr>
@ -408,13 +408,13 @@
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="../interfaces/AreaName.html" target="_self" >Array&lt;AreaName&gt;</a></code>
<i>Type : </i> <code>Array&lt;string&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:19</a></div>
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:18</a></div>
</td>
</tr>
@ -435,13 +435,13 @@
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="../interfaces/Category.html" target="_self" >Array&lt;Category&gt;</a></code>
<i>Type : </i> <code>Array&lt;string&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:18</a></div>
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:17</a></div>
</td>
</tr>
@ -468,7 +468,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:15</a></div>
<div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:14</a></div>
</td>
</tr>
@ -495,7 +495,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:21</a></div>
<div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:20</a></div>
</td>
</tr>
@ -527,7 +527,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:16</a></div>
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:15</a></div>
</td>
</tr>
@ -559,7 +559,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:17</a></div>
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:16</a></div>
</td>
</tr>
@ -588,7 +588,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:61</a></div>
<div class="io-line">Defined in <a href="" data-line="60" class="link-to-prism">src/app/pages/accounts/create-account/create-account.component.ts:60</a></div>
</td>
</tr>
@ -604,7 +604,6 @@ import { FormBuilder, FormGroup, Validators } from &#x27;@angular/forms&#x27;;
import { LocationService, UserService } from &#x27;@app/_services&#x27;;
import { CustomErrorStateMatcher } from &#x27;@app/_helpers&#x27;;
import { first } from &#x27;rxjs/operators&#x27;;
import { AreaName, Category } from &#x27;@app/_models&#x27;;
@Component({
selector: &#x27;app-create-account&#x27;,
@ -616,8 +615,8 @@ export class CreateAccountComponent implements OnInit {
createForm: FormGroup;
matcher: CustomErrorStateMatcher &#x3D; new CustomErrorStateMatcher();
submitted: boolean &#x3D; false;
categories: Array&lt;Category&gt;;
areaNames: Array&lt;AreaName&gt;;
categories: Array&lt;string&gt;;
areaNames: Array&lt;string&gt;;
accountTypes: Array&lt;string&gt;;
genders: Array&lt;string&gt;;
@ -641,14 +640,14 @@ export class CreateAccountComponent implements OnInit {
referrer: [&#x27;&#x27;, Validators.required],
businessCategory: [&#x27;&#x27;, Validators.required],
});
this.userService
.getCategories()
.pipe(first())
.subscribe((res) &#x3D;&gt; (this.categories &#x3D; res));
this.locationService
.getAreaNames()
.pipe(first())
.subscribe((res) &#x3D;&gt; (this.areaNames &#x3D; res));
this.userService.getCategories();
this.userService.categoriesSubject.subscribe((res) &#x3D;&gt; {
this.categories &#x3D; Object.keys(res);
});
this.locationService.getAreaNames();
this.locationService.areaNamesSubject.subscribe((res) &#x3D;&gt; {
this.areaNames &#x3D; Object.keys(res);
});
this.userService
.getAccountTypes()
.pipe(first())

View File

@ -154,7 +154,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">src/app/pages/pages.component.ts:10</a></div>
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/pages/pages.component.ts:11</a></div>
</td>
</tr>
@ -192,12 +192,12 @@
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>&#x27;https://dashboard.sarafu.network/&#x27;</code>
<i>Default value : </i><code>environment.dashboardUrl</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">src/app/pages/pages.component.ts:10</a></div>
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/pages/pages.component.ts:11</a></div>
</td>
</tr>
@ -211,6 +211,7 @@
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectionStrategy, Component } from &#x27;@angular/core&#x27;;
import { environment } from &#x27;@src/environments/environment&#x27;;
@Component({
selector: &#x27;app-pages&#x27;,
@ -219,7 +220,7 @@
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PagesComponent {
url: string &#x3D; &#x27;https://dashboard.sarafu.network/&#x27;;
url: string &#x3D; environment.dashboardUrl;
constructor() {}
}

View File

@ -1037,7 +1037,7 @@ export class TransactionsComponent implements OnInit, AfterViewInit {
});
} else {
this.transactionDataSource.data &#x3D; this.transactions.filter(
(transaction) &#x3D;&gt; transaction.type &#x3D;&#x3D;&#x3D; this.transactionsType
(transaction) &#x3D;&gt; transaction.type + &#x27;s&#x27; &#x3D;&#x3D;&#x3D; this.transactionsType
);
}
}

View File

@ -316,16 +316,16 @@
<span class="coverage-count">(1/1)</span>
</td>
</tr>
<tr class="very-good">
<tr class="low">
<td>
<!-- miscellaneous -->
<a href="./miscellaneous/variables.html#areaTypes">src/app/_helpers/mock-backend.ts</a>
</td>
<td>variable</td>
<td>areaTypes</td>
<td align="right" data-sort="100">
<span class="coverage-percent">100 %</span>
<span class="coverage-count">(1/1)</span>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/1)</span>
</td>
</tr>
<tr class="very-good">
@ -364,18 +364,6 @@
<span class="coverage-count">(1/1)</span>
</td>
</tr>
<tr class="very-good">
<td>
<!-- miscellaneous -->
<a href="./miscellaneous/variables.html#tokens">src/app/_helpers/mock-backend.ts</a>
</td>
<td>variable</td>
<td>tokens</td>
<td align="right" data-sort="100">
<span class="coverage-percent">100 %</span>
<span class="coverage-count">(1/1)</span>
</td>
</tr>
<tr class="very-good">
<td>
<!-- miscellaneous -->
@ -568,42 +556,6 @@
<span class="coverage-count">(6/6)</span>
</td>
</tr>
<tr class="very-good">
<td>
<!-- miscellaneous -->
<a href="./interfaces/AreaName.html">src/app/_models/mappings.ts</a>
</td>
<td>interface</td>
<td>AreaName</td>
<td align="right" data-sort="100">
<span class="coverage-percent">100 %</span>
<span class="coverage-count">(3/3)</span>
</td>
</tr>
<tr class="very-good">
<td>
<!-- miscellaneous -->
<a href="./interfaces/AreaType.html">src/app/_models/mappings.ts</a>
</td>
<td>interface</td>
<td>AreaType</td>
<td align="right" data-sort="100">
<span class="coverage-percent">100 %</span>
<span class="coverage-count">(3/3)</span>
</td>
</tr>
<tr class="very-good">
<td>
<!-- miscellaneous -->
<a href="./interfaces/Category.html">src/app/_models/mappings.ts</a>
</td>
<td>interface</td>
<td>Category</td>
<td align="right" data-sort="100">
<span class="coverage-percent">100 %</span>
<span class="coverage-count">(3/3)</span>
</td>
</tr>
<tr class="very-good">
<td>
<!-- miscellaneous -->
@ -841,7 +793,7 @@
<td>LocationService</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/6)</span>
<span class="coverage-count">(0/12)</span>
</td>
</tr>
<tr class="low">
@ -913,7 +865,7 @@
<td>UserService</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/35)</span>
<span class="coverage-count">(0/38)</span>
</td>
</tr>
<tr class="low">
@ -985,7 +937,7 @@
<td>AccountDetailsComponent</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/44)</span>
<span class="coverage-count">(0/47)</span>
</td>
</tr>
<tr class="low">
@ -1009,7 +961,7 @@
<td>AccountsComponent</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/17)</span>
<span class="coverage-count">(0/18)</span>
</td>
</tr>
<tr class="low">

View File

@ -4,6 +4,6 @@
<rect id="svg_2" height="20" width="40" y="0" x="92" stroke-width="1.5" stroke="#8fbd08" fill="#8fbd08" rx="7" ry="7"/>
<rect id="svg_3" height="20" width="22" y="0" x="92" stroke-width="1.5" stroke="#8fbd08" fill="#8fbd08"/>
<text xml:space="preserve" text-anchor="start" font-family="Helvetica, Arial, sans-serif" font-size="12" id="svg_4" y="14" x="6" stroke-width="0" stroke="#5d5d5d" fill="#ffffff">documentation</text>
<text xml:space="preserve" text-anchor="middle" font-family="Helvetica, Arial, sans-serif" font-size="12" id="svg_5" y="14" x="112" stroke-width="0" stroke="#5d5d5d" fill="#ffffff" style="text-anchor: middle">56%</text>
<text xml:space="preserve" text-anchor="middle" font-family="Helvetica, Arial, sans-serif" font-size="12" id="svg_5" y="14" x="112" stroke-width="0" stroke="#5d5d5d" fill="#ffffff" style="text-anchor: middle">53%</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

@ -66,6 +66,37 @@
<h3 id="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Properties</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#areaNames">areaNames</a>
</li>
<li>
<span class="modifier">Private</span>
<a href="#areaNamesList">areaNamesList</a>
</li>
<li>
<a href="#areaNamesSubject">areaNamesSubject</a>
</li>
<li>
<a href="#areaTypes">areaTypes</a>
</li>
<li>
<span class="modifier">Private</span>
<a href="#areaTypesList">areaTypesList</a>
</li>
<li>
<a href="#areaTypesSubject">areaTypesSubject</a>
</li>
</ul>
</td>
</tr>
<tr>
<td class="col-md-4">
@ -110,7 +141,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">src/app/_services/location.service.ts:10</a></div>
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/app/_services/location.service.ts:17</a></div>
</td>
</tr>
@ -168,15 +199,15 @@
</tr>
<tr>
<td class="col-md-4">
<code>getAreaNameByLocation(location: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
<code>getAreaNameByLocation(location: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, areaNames: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank">object</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="17"
class="link-to-prism">src/app/_services/location.service.ts:17</a></div>
<div class="io-line">Defined in <a href="" data-line="28"
class="link-to-prism">src/app/_services/location.service.ts:28</a></div>
</td>
</tr>
@ -206,6 +237,18 @@
</td>
</tr>
<tr>
<td>areaNames</td>
<td>
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
@ -213,7 +256,7 @@
<div>
</div>
<div class="io-description">
<b>Returns : </b> <code>Observable&lt;any&gt;</code>
<b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
</div>
<div class="io-description">
@ -245,8 +288,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13"
class="link-to-prism">src/app/_services/location.service.ts:13</a></div>
<div class="io-line">Defined in <a href="" data-line="21"
class="link-to-prism">src/app/_services/location.service.ts:21</a></div>
</td>
</tr>
@ -255,7 +298,7 @@
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code>Observable&lt;any&gt;</code>
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
@ -277,15 +320,15 @@
</tr>
<tr>
<td class="col-md-4">
<code>getAreaTypeByArea(area: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
<code>getAreaTypeByArea(area: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, areaTypes: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank">object</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="25"
class="link-to-prism">src/app/_services/location.service.ts:25</a></div>
<div class="io-line">Defined in <a href="" data-line="47"
class="link-to-prism">src/app/_services/location.service.ts:47</a></div>
</td>
</tr>
@ -315,6 +358,18 @@
</td>
</tr>
<tr>
<td>areaTypes</td>
<td>
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
@ -322,7 +377,7 @@
<div>
</div>
<div class="io-description">
<b>Returns : </b> <code>Observable&lt;any&gt;</code>
<b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
</div>
<div class="io-description">
@ -354,8 +409,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="21"
class="link-to-prism">src/app/_services/location.service.ts:21</a></div>
<div class="io-line">Defined in <a href="" data-line="40"
class="link-to-prism">src/app/_services/location.service.ts:40</a></div>
</td>
</tr>
@ -364,7 +419,7 @@
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code>Observable&lt;any&gt;</code>
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
@ -372,13 +427,213 @@
</tbody>
</table>
</section>
<section>
<h3 id="inputs">
Properties
</h3>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="areaNames"></a>
<span class="name">
<b>
areaNames</b>
<a href="#areaNames"><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/object" target="_blank" >object</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>{}</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/_services/location.service.ts:11</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="areaNamesList"></a>
<span class="name">
<b>
<span class="modifier">Private</span>
areaNamesList</b>
<a href="#areaNamesList"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>BehaviorSubject&lt;object&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>new BehaviorSubject&lt;object&gt;(this.areaNames)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="12" class="link-to-prism">src/app/_services/location.service.ts:12</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="areaNamesSubject"></a>
<span class="name">
<b>
areaNamesSubject</b>
<a href="#areaNamesSubject"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>Observable&lt;object&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>this.areaNamesList.asObservable()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/_services/location.service.ts:13</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="areaTypes"></a>
<span class="name">
<b>
areaTypes</b>
<a href="#areaTypes"><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/object" target="_blank" >object</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>{}</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/app/_services/location.service.ts:15</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="areaTypesList"></a>
<span class="name">
<b>
<span class="modifier">Private</span>
areaTypesList</b>
<a href="#areaTypesList"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>BehaviorSubject&lt;object&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>new BehaviorSubject&lt;object&gt;(this.areaTypes)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/app/_services/location.service.ts:16</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="areaTypesSubject"></a>
<span class="name">
<b>
areaTypesSubject</b>
<a href="#areaTypesSubject"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>Observable&lt;object&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>this.areaTypesList.asObservable()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/app/_services/location.service.ts:17</a></div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable } from &#x27;@angular/core&#x27;;
import { Observable } from &#x27;rxjs&#x27;;
import { BehaviorSubject, Observable } from &#x27;rxjs&#x27;;
import { environment } from &#x27;@src/environments/environment&#x27;;
import { first } from &#x27;rxjs/operators&#x27;;
import { HttpClient } from &#x27;@angular/common/http&#x27;;
@ -387,24 +642,52 @@ import { HttpClient } from &#x27;@angular/common/http&#x27;;
providedIn: &#x27;root&#x27;,
})
export class LocationService {
areaNames: object &#x3D; {};
private areaNamesList: BehaviorSubject&lt;object&gt; &#x3D; new BehaviorSubject&lt;object&gt;(this.areaNames);
areaNamesSubject: Observable&lt;object&gt; &#x3D; this.areaNamesList.asObservable();
areaTypes: object &#x3D; {};
private areaTypesList: BehaviorSubject&lt;object&gt; &#x3D; new BehaviorSubject&lt;object&gt;(this.areaTypes);
areaTypesSubject: Observable&lt;object&gt; &#x3D; this.areaTypesList.asObservable();
constructor(private httpClient: HttpClient) {}
getAreaNames(): Observable&lt;any&gt; {
return this.httpClient.get(&#x60;${environment.cicMetaUrl}/areanames&#x60;);
getAreaNames(): void {
this.httpClient
.get(&#x60;${environment.cicMetaUrl}/areanames&#x60;)
.pipe(first())
.subscribe((res: object) &#x3D;&gt; this.areaNamesList.next(res));
}
getAreaNameByLocation(location: string): Observable&lt;any&gt; {
return this.httpClient.get(&#x60;${environment.cicMetaUrl}/areanames/${location.toLowerCase()}&#x60;);
getAreaNameByLocation(location: string, areaNames: object): string {
const keywords &#x3D; location.toLowerCase().split(&#x27; &#x27;);
for (const keyword of keywords) {
const queriedAreaName: string &#x3D; Object.keys(areaNames).find((key) &#x3D;&gt;
areaNames[key].includes(keyword)
);
if (queriedAreaName) {
return queriedAreaName;
}
}
}
getAreaTypes(): Observable&lt;any&gt; {
return this.httpClient.get(&#x60;${environment.cicMetaUrl}/areatypes&#x60;).pipe(first());
getAreaTypes(): void {
this.httpClient
.get(&#x60;${environment.cicMetaUrl}/areatypes&#x60;)
.pipe(first())
.subscribe((res: object) &#x3D;&gt; this.areaTypesList.next(res));
}
getAreaTypeByArea(area: string): Observable&lt;any&gt; {
return this.httpClient
.get(&#x60;${environment.cicMetaUrl}/areatypes/${area.toLowerCase()}&#x60;)
.pipe(first());
getAreaTypeByArea(area: string, areaTypes: object): string {
const keywords &#x3D; area.toLowerCase().split(&#x27; &#x27;);
for (const keyword of keywords) {
const queriedAreaType: string &#x3D; Object.keys(areaTypes).find((key) &#x3D;&gt;
areaTypes[key].includes(keyword)
);
if (queriedAreaType) {
return queriedAreaType;
}
}
}
}
</code></pre>

View File

@ -154,45 +154,15 @@
<tbody>
<tr>
<td class="col-md-4">
<code>constructor(httpClient: <a href="https://angular.io/api/common/http/HttpClient" target="_blank">HttpClient</a>)</code>
<code>constructor()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/app/_services/token.service.ts:20</a></div>
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/_services/token.service.ts:19</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>httpClient</td>
<td>
<code><a href="https://angular.io/api/common/http/HttpClient" target="_blank" >HttpClient</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</section>
@ -224,8 +194,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="32"
class="link-to-prism">src/app/_services/token.service.ts:32</a></div>
<div class="io-line">Defined in <a href="" data-line="31"
class="link-to-prism">src/app/_services/token.service.ts:31</a></div>
</td>
</tr>
@ -296,8 +266,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="73"
class="link-to-prism">src/app/_services/token.service.ts:73</a></div>
<div class="io-line">Defined in <a href="" data-line="72"
class="link-to-prism">src/app/_services/token.service.ts:72</a></div>
</td>
</tr>
@ -368,8 +338,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="52"
class="link-to-prism">src/app/_services/token.service.ts:52</a></div>
<div class="io-line">Defined in <a href="" data-line="51"
class="link-to-prism">src/app/_services/token.service.ts:51</a></div>
</td>
</tr>
@ -440,8 +410,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="63"
class="link-to-prism">src/app/_services/token.service.ts:63</a></div>
<div class="io-line">Defined in <a href="" data-line="62"
class="link-to-prism">src/app/_services/token.service.ts:62</a></div>
</td>
</tr>
@ -512,8 +482,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="78"
class="link-to-prism">src/app/_services/token.service.ts:78</a></div>
<div class="io-line">Defined in <a href="" data-line="77"
class="link-to-prism">src/app/_services/token.service.ts:77</a></div>
</td>
</tr>
@ -553,8 +523,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="44"
class="link-to-prism">src/app/_services/token.service.ts:44</a></div>
<div class="io-line">Defined in <a href="" data-line="43"
class="link-to-prism">src/app/_services/token.service.ts:43</a></div>
</td>
</tr>
@ -594,8 +564,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="83"
class="link-to-prism">src/app/_services/token.service.ts:83</a></div>
<div class="io-line">Defined in <a href="" data-line="82"
class="link-to-prism">src/app/_services/token.service.ts:82</a></div>
</td>
</tr>
@ -635,8 +605,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="24"
class="link-to-prism">src/app/_services/token.service.ts:24</a></div>
<div class="io-line">Defined in <a href="" data-line="23"
class="link-to-prism">src/app/_services/token.service.ts:23</a></div>
</td>
</tr>
@ -683,7 +653,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/app/_services/token.service.ts:20</a></div>
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/_services/token.service.ts:19</a></div>
</td>
</tr>
@ -710,7 +680,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/_services/token.service.ts:13</a></div>
<div class="io-line">Defined in <a href="" data-line="12" class="link-to-prism">src/app/_services/token.service.ts:12</a></div>
</td>
</tr>
@ -737,7 +707,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/app/_services/token.service.ts:14</a></div>
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/_services/token.service.ts:13</a></div>
</td>
</tr>
@ -769,7 +739,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/app/_services/token.service.ts:15</a></div>
<div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/app/_services/token.service.ts:14</a></div>
</td>
</tr>
@ -804,7 +774,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/app/_services/token.service.ts:16</a></div>
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/app/_services/token.service.ts:15</a></div>
</td>
</tr>
@ -836,7 +806,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/_services/token.service.ts:19</a></div>
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/_services/token.service.ts:18</a></div>
</td>
</tr>
@ -852,7 +822,6 @@
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable } from &#x27;@angular/core&#x27;;
import { CICRegistry } from &#x27;@cicnet/cic-client&#x27;;
import { TokenRegistry } from &#x27;@app/_eth&#x27;;
import { HttpClient } from &#x27;@angular/common/http&#x27;;
import { RegistryService } from &#x27;@app/_services/registry.service&#x27;;
import { Token } from &#x27;@app/_models&#x27;;
import { BehaviorSubject, Observable, Subject } from &#x27;rxjs&#x27;;
@ -870,7 +839,7 @@ export class TokenService {
tokensSubject: Observable&lt;Array&lt;Token&gt;&gt; &#x3D; this.tokensList.asObservable();
load: BehaviorSubject&lt;any&gt; &#x3D; new BehaviorSubject&lt;any&gt;(false);
constructor(private httpClient: HttpClient) {}
constructor() {}
async init(): Promise&lt;void&gt; {
this.registry &#x3D; await RegistryService.getRegistry();

View File

@ -260,8 +260,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="119"
class="link-to-prism">src/app/_services/transaction.service.ts:119</a></div>
<div class="io-line">Defined in <a href="" data-line="143"
class="link-to-prism">src/app/_services/transaction.service.ts:143</a></div>
</td>
</tr>
@ -341,8 +341,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="139"
class="link-to-prism">src/app/_services/transaction.service.ts:139</a></div>
<div class="io-line">Defined in <a href="" data-line="163"
class="link-to-prism">src/app/_services/transaction.service.ts:163</a></div>
</td>
</tr>
@ -646,8 +646,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="134"
class="link-to-prism">src/app/_services/transaction.service.ts:134</a></div>
<div class="io-line">Defined in <a href="" data-line="158"
class="link-to-prism">src/app/_services/transaction.service.ts:158</a></div>
</td>
</tr>
@ -687,8 +687,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="94"
class="link-to-prism">src/app/_services/transaction.service.ts:94</a></div>
<div class="io-line">Defined in <a href="" data-line="110"
class="link-to-prism">src/app/_services/transaction.service.ts:110</a></div>
</td>
</tr>
@ -847,8 +847,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="146"
class="link-to-prism">src/app/_services/transaction.service.ts:146</a></div>
<div class="io-line">Defined in <a href="" data-line="170"
class="link-to-prism">src/app/_services/transaction.service.ts:170</a></div>
</td>
</tr>
@ -1173,30 +1173,46 @@ export class TransactionService {
transaction.value &#x3D; Number(transaction.value);
transaction.type &#x3D; &#x27;transaction&#x27;;
try {
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.from))
.pipe(first())
.subscribe(
(res) &#x3D;&gt; {
transaction.sender &#x3D; this.getAccountInfo(res, cacheSize);
},
(error) &#x3D;&gt; {
transaction.sender &#x3D; defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
}
);
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.to))
.pipe(first())
.subscribe(
(res) &#x3D;&gt; {
transaction.recipient &#x3D; this.getAccountInfo(res, cacheSize);
},
(error) &#x3D;&gt; {
transaction.recipient &#x3D; defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
}
);
if (transaction.from &#x3D;&#x3D;&#x3D; environment.trustedDeclaratorAddress) {
transaction.sender &#x3D; defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
} else {
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.from))
.pipe(first())
.subscribe(
(res) &#x3D;&gt; {
transaction.sender &#x3D; this.getAccountInfo(res, cacheSize);
},
(error) &#x3D;&gt; {
this.loggingService.sendErrorLevelMessage(
&#x60;Account with address ${transaction.from} not found&#x60;,
this,
{ error }
);
}
);
}
if (transaction.to &#x3D;&#x3D;&#x3D; environment.trustedDeclaratorAddress) {
transaction.recipient &#x3D; defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
} else {
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.to))
.pipe(first())
.subscribe(
(res) &#x3D;&gt; {
transaction.recipient &#x3D; this.getAccountInfo(res, cacheSize);
},
(error) &#x3D;&gt; {
this.loggingService.sendErrorLevelMessage(
&#x60;Account with address ${transaction.to} not found&#x60;,
this,
{ error }
);
}
);
}
} finally {
this.addTransaction(transaction, cacheSize);
}
@ -1210,18 +1226,26 @@ export class TransactionService {
conversion.fromValue &#x3D; Number(conversion.fromValue);
conversion.toValue &#x3D; Number(conversion.toValue);
try {
this.userService
.getAccountDetailsFromMeta(await User.toKey(conversion.trader))
.pipe(first())
.subscribe(
(res) &#x3D;&gt; {
conversion.sender &#x3D; conversion.recipient &#x3D; this.getAccountInfo(res);
},
(error) &#x3D;&gt; {
conversion.sender &#x3D; conversion.recipient &#x3D; defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
}
);
if (conversion.trader &#x3D;&#x3D;&#x3D; environment.trustedDeclaratorAddress) {
conversion.sender &#x3D; conversion.recipient &#x3D; defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
} else {
this.userService
.getAccountDetailsFromMeta(await User.toKey(conversion.trader))
.pipe(first())
.subscribe(
(res) &#x3D;&gt; {
conversion.sender &#x3D; conversion.recipient &#x3D; this.getAccountInfo(res);
},
(error) &#x3D;&gt; {
this.loggingService.sendErrorLevelMessage(
&#x60;Account with address ${conversion.trader} not found&#x60;,
this,
{ error }
);
}
);
}
} finally {
this.addTransaction(conversion, cacheSize);
}

View File

@ -94,6 +94,16 @@
<li>
<a href="#actionsSubject">actionsSubject</a>
</li>
<li>
<a href="#categories">categories</a>
</li>
<li>
<span class="modifier">Private</span>
<a href="#categoriesList">categoriesList</a>
</li>
<li>
<a href="#categoriesSubject">categoriesSubject</a>
</li>
<li>
<a href="#headers">headers</a>
</li>
@ -216,7 +226,7 @@
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/app/_services/user.service.ts:37</a></div>
<div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/app/_services/user.service.ts:41</a></div>
</td>
</tr>
@ -317,8 +327,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="267"
class="link-to-prism">src/app/_services/user.service.ts:267</a></div>
<div class="io-line">Defined in <a href="" data-line="302"
class="link-to-prism">src/app/_services/user.service.ts:302</a></div>
</td>
</tr>
@ -399,8 +409,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="155"
class="link-to-prism">src/app/_services/user.service.ts:155</a></div>
<div class="io-line">Defined in <a href="" data-line="179"
class="link-to-prism">src/app/_services/user.service.ts:179</a></div>
</td>
</tr>
@ -471,8 +481,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="68"
class="link-to-prism">src/app/_services/user.service.ts:68</a></div>
<div class="io-line">Defined in <a href="" data-line="72"
class="link-to-prism">src/app/_services/user.service.ts:72</a></div>
</td>
</tr>
@ -663,8 +673,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="194"
class="link-to-prism">src/app/_services/user.service.ts:194</a></div>
<div class="io-line">Defined in <a href="" data-line="218"
class="link-to-prism">src/app/_services/user.service.ts:218</a></div>
</td>
</tr>
@ -753,8 +763,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="220"
class="link-to-prism">src/app/_services/user.service.ts:220</a></div>
<div class="io-line">Defined in <a href="" data-line="244"
class="link-to-prism">src/app/_services/user.service.ts:244</a></div>
</td>
</tr>
@ -841,8 +851,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="163"
class="link-to-prism">src/app/_services/user.service.ts:163</a></div>
<div class="io-line">Defined in <a href="" data-line="187"
class="link-to-prism">src/app/_services/user.service.ts:187</a></div>
</td>
</tr>
@ -911,8 +921,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="59"
class="link-to-prism">src/app/_services/user.service.ts:59</a></div>
<div class="io-line">Defined in <a href="" data-line="63"
class="link-to-prism">src/app/_services/user.service.ts:63</a></div>
</td>
</tr>
@ -981,8 +991,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="255"
class="link-to-prism">src/app/_services/user.service.ts:255</a></div>
<div class="io-line">Defined in <a href="" data-line="290"
class="link-to-prism">src/app/_services/user.service.ts:290</a></div>
</td>
</tr>
@ -1020,8 +1030,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="151"
class="link-to-prism">src/app/_services/user.service.ts:151</a></div>
<div class="io-line">Defined in <a href="" data-line="175"
class="link-to-prism">src/app/_services/user.service.ts:175</a></div>
</td>
</tr>
@ -1090,8 +1100,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="144"
class="link-to-prism">src/app/_services/user.service.ts:144</a></div>
<div class="io-line">Defined in <a href="" data-line="168"
class="link-to-prism">src/app/_services/user.service.ts:168</a></div>
</td>
</tr>
@ -1129,8 +1139,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="247"
class="link-to-prism">src/app/_services/user.service.ts:247</a></div>
<div class="io-line">Defined in <a href="" data-line="271"
class="link-to-prism">src/app/_services/user.service.ts:271</a></div>
</td>
</tr>
@ -1139,7 +1149,7 @@
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code>Observable&lt;any&gt;</code>
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
@ -1161,15 +1171,15 @@
</tr>
<tr>
<td class="col-md-4">
<code>getCategoryByProduct(product: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
<code>getCategoryByProduct(product: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, categories: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank">object</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="251"
class="link-to-prism">src/app/_services/user.service.ts:251</a></div>
<div class="io-line">Defined in <a href="" data-line="278"
class="link-to-prism">src/app/_services/user.service.ts:278</a></div>
</td>
</tr>
@ -1199,6 +1209,18 @@
</td>
</tr>
<tr>
<td>categories</td>
<td>
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/object" target="_blank" >object</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
@ -1206,7 +1228,7 @@
<div>
</div>
<div class="io-description">
<b>Returns : </b> <code>Observable&lt;any&gt;</code>
<b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
</div>
<div class="io-description">
@ -1238,8 +1260,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="263"
class="link-to-prism">src/app/_services/user.service.ts:263</a></div>
<div class="io-line">Defined in <a href="" data-line="298"
class="link-to-prism">src/app/_services/user.service.ts:298</a></div>
</td>
</tr>
@ -1277,8 +1299,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="64"
class="link-to-prism">src/app/_services/user.service.ts:64</a></div>
<div class="io-line">Defined in <a href="" data-line="68"
class="link-to-prism">src/app/_services/user.service.ts:68</a></div>
</td>
</tr>
@ -1359,8 +1381,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="259"
class="link-to-prism">src/app/_services/user.service.ts:259</a></div>
<div class="io-line">Defined in <a href="" data-line="294"
class="link-to-prism">src/app/_services/user.service.ts:294</a></div>
</td>
</tr>
@ -1400,8 +1422,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="46"
class="link-to-prism">src/app/_services/user.service.ts:46</a></div>
<div class="io-line">Defined in <a href="" data-line="50"
class="link-to-prism">src/app/_services/user.service.ts:50</a></div>
</td>
</tr>
@ -1441,8 +1463,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="181"
class="link-to-prism">src/app/_services/user.service.ts:181</a></div>
<div class="io-line">Defined in <a href="" data-line="205"
class="link-to-prism">src/app/_services/user.service.ts:205</a></div>
</td>
</tr>
@ -1530,8 +1552,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="238"
class="link-to-prism">src/app/_services/user.service.ts:238</a></div>
<div class="io-line">Defined in <a href="" data-line="262"
class="link-to-prism">src/app/_services/user.service.ts:262</a></div>
</td>
</tr>
@ -1569,8 +1591,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="54"
class="link-to-prism">src/app/_services/user.service.ts:54</a></div>
<div class="io-line">Defined in <a href="" data-line="58"
class="link-to-prism">src/app/_services/user.service.ts:58</a></div>
</td>
</tr>
@ -1639,8 +1661,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="159"
class="link-to-prism">src/app/_services/user.service.ts:159</a></div>
<div class="io-line">Defined in <a href="" data-line="183"
class="link-to-prism">src/app/_services/user.service.ts:183</a></div>
</td>
</tr>
@ -1709,8 +1731,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="243"
class="link-to-prism">src/app/_services/user.service.ts:243</a></div>
<div class="io-line">Defined in <a href="" data-line="267"
class="link-to-prism">src/app/_services/user.service.ts:267</a></div>
</td>
</tr>
@ -1781,8 +1803,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="129"
class="link-to-prism">src/app/_services/user.service.ts:129</a></div>
<div class="io-line">Defined in <a href="" data-line="153"
class="link-to-prism">src/app/_services/user.service.ts:153</a></div>
</td>
</tr>
@ -1875,8 +1897,8 @@
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="167"
class="link-to-prism">src/app/_services/user.service.ts:167</a></div>
<div class="io-line">Defined in <a href="" data-line="191"
class="link-to-prism">src/app/_services/user.service.ts:191</a></div>
</td>
</tr>
@ -2135,6 +2157,103 @@
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="categories"></a>
<span class="name">
<b>
categories</b>
<a href="#categories"><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/object" target="_blank" >object</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>{}</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/app/_services/user.service.ts:39</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="categoriesList"></a>
<span class="name">
<b>
<span class="modifier">Private</span>
categoriesList</b>
<a href="#categoriesList"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>BehaviorSubject&lt;object&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>new BehaviorSubject&lt;object&gt;(this.categories)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/app/_services/user.service.ts:40</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="categoriesSubject"></a>
<span class="name">
<b>
categoriesSubject</b>
<a href="#categoriesSubject"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>Observable&lt;object&gt;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>this.categoriesList.asObservable()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/app/_services/user.service.ts:41</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
@ -2294,6 +2413,10 @@ export class UserService {
private actionsList: BehaviorSubject&lt;any&gt; &#x3D; new BehaviorSubject&lt;any&gt;(this.actions);
actionsSubject: Observable&lt;Array&lt;any&gt;&gt; &#x3D; this.actionsList.asObservable();
categories: object &#x3D; {};
private categoriesList: BehaviorSubject&lt;object&gt; &#x3D; new BehaviorSubject&lt;object&gt;(this.categories);
categoriesSubject: Observable&lt;object&gt; &#x3D; this.categoriesList.asObservable();
constructor(
private httpClient: HttpClient,
private loggingService: LoggingService,
@ -2344,17 +2467,37 @@ export class UserService {
},
location: {},
};
accountInfo.vcard.fn[0].value &#x3D; name;
accountInfo.vcard.n[0].value &#x3D; name.split(&#x27; &#x27;);
accountInfo.vcard.tel[0].value &#x3D; phoneNumber;
accountInfo.products &#x3D; [bio];
accountInfo.gender &#x3D; gender;
accountInfo.age &#x3D; age;
accountInfo.type &#x3D; type;
accountInfo.category &#x3D; businessCategory;
accountInfo.location.area &#x3D; location;
accountInfo.location.area_name &#x3D; userLocation;
accountInfo.location.area_type &#x3D; locationType;
if (name) {
accountInfo.vcard.fn[0].value &#x3D; name;
accountInfo.vcard.n[0].value &#x3D; name.split(&#x27; &#x27;);
}
if (phoneNumber) {
accountInfo.vcard.tel[0].value &#x3D; phoneNumber;
}
if (bio) {
accountInfo.products &#x3D; [bio];
}
if (gender) {
accountInfo.gender &#x3D; gender;
}
if (age) {
accountInfo.age &#x3D; age;
}
if (type) {
accountInfo.type &#x3D; type;
}
if (businessCategory) {
accountInfo.category &#x3D; businessCategory;
}
if (location) {
accountInfo.location.area &#x3D; location;
}
if (userLocation) {
accountInfo.location.area_name &#x3D; userLocation;
}
if (locationType) {
accountInfo.location.area_type &#x3D; locationType;
}
await vcardValidation(accountInfo.vcard);
accountInfo.vcard &#x3D; btoa(vCard.generate(accountInfo.vcard));
const accountKey: string &#x3D; await User.toKey(address);
@ -2502,12 +2645,23 @@ export class UserService {
return;
}
getCategories(): Observable&lt;any&gt; {
return this.httpClient.get(&#x60;${environment.cicMetaUrl}/categories&#x60;);
getCategories(): void {
this.httpClient
.get(&#x60;${environment.cicMetaUrl}/categories&#x60;)
.pipe(first())
.subscribe((res: object) &#x3D;&gt; this.categoriesList.next(res));
}
getCategoryByProduct(product: string): Observable&lt;any&gt; {
return this.httpClient.get(&#x60;${environment.cicMetaUrl}/categories/${product.toLowerCase()}&#x60;);
getCategoryByProduct(product: string, categories: object): string {
const keywords &#x3D; product.toLowerCase().split(&#x27; &#x27;);
for (const keyword of keywords) {
const queriedCategory: string &#x3D; Object.keys(categories).find((key) &#x3D;&gt;
categories[key].includes(keyword)
);
if (queriedCategory) {
return queriedCategory;
}
}
}
getAccountTypes(): Observable&lt;any&gt; {

File diff suppressed because it is too large Load Diff

View File

@ -635,7 +635,7 @@ const defaultAccount: AccountDetails &#x3D; {
meta: {
TYP: [],
},
value: &#x27;&#x27;,
value: &#x27;+254700000000&#x27;,
},
],
version: [

View File

@ -304,32 +304,8 @@
user: string;
}
/** Area name object interface */
interface AreaName {
/** Locations that map to that area name. */
locations: Array&lt;string&gt;;
/** Name of area */
name: string;
}
/** Area type object interface */
interface AreaType {
/** Areas that map to that area type. */
area: Array&lt;string&gt;;
/** Type of area */
name: string;
}
/** Category object interface */
interface Category {
/** Business category */
name: string;
/** Products that map to that category. */
products: Array&lt;string&gt;;
}
/** @exports */
export { Action, AreaName, AreaType, Category };
export { Action };
</code></pre>
</div>
</div>

View File

@ -345,7 +345,7 @@ const defaultAccount: AccountDetails &#x3D; {
meta: {
TYP: [],
},
value: &#x27;&#x27;,
value: &#x27;+254700000000&#x27;,
},
],
version: [

View File

@ -307,7 +307,7 @@ const defaultAccount: AccountDetails &#x3D; {
meta: {
TYP: [],
},
value: &#x27;&#x27;,
value: &#x27;+254700000000&#x27;,
},
],
version: [

View File

@ -383,7 +383,7 @@ const defaultAccount: AccountDetails &#x3D; {
meta: {
TYP: [],
},
value: &#x27;&#x27;,
value: &#x27;+254700000000&#x27;,
},
],
version: [

View File

@ -568,15 +568,6 @@ customElements.define('compodoc-menu', class extends HTMLElement {
<li class="link">
<a href="interfaces/Action.html" data-type="entity-link">Action</a>
</li>
<li class="link">
<a href="interfaces/AreaName.html" data-type="entity-link">AreaName</a>
</li>
<li class="link">
<a href="interfaces/AreaType.html" data-type="entity-link">AreaType</a>
</li>
<li class="link">
<a href="interfaces/Category.html" data-type="entity-link">Category</a>
</li>
<li class="link">
<a href="interfaces/Conversion.html" data-type="entity-link">Conversion</a>
</li>

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -927,7 +927,7 @@
<div class="card text-center">
<div class="card-block">
<h4 class="card-title"><span class="icon ion-md-information-circle-outline"></span></h4>
<p class="card-text">19 Interfaces</p>
<p class="card-text">16 Interfaces</p>
</div>
</div>
</div>

File diff suppressed because one or more lines are too long

View File

@ -139,7 +139,7 @@
<aside class="tsd-sources">
<p>Implementation of HttpInterceptor.intercept</p>
<ul>
<li>Defined in src/app/_helpers/mock-backend.ts:1097</li>
<li>Defined in src/app/_helpers/mock-backend.ts:936</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">

View File

@ -86,6 +86,17 @@
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="app__services_location_service.locationservice.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_location_service.locationservice.html#areanames" class="tsd-kind-icon">area<wbr>Names</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="app__services_location_service.locationservice.html#areanameslist" class="tsd-kind-icon">area<wbr>Names<wbr>List</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_location_service.locationservice.html#areanamessubject" class="tsd-kind-icon">area<wbr>Names<wbr>Subject</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_location_service.locationservice.html#areatypes" class="tsd-kind-icon">area<wbr>Types</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="app__services_location_service.locationservice.html#areatypeslist" class="tsd-kind-icon">area<wbr>Types<wbr>List</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_location_service.locationservice.html#areatypessubject" class="tsd-kind-icon">area<wbr>Types<wbr>Subject</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
@ -110,7 +121,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:10</li>
<li>Defined in src/app/_services/location.service.ts:17</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -124,19 +135,82 @@
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areanames" class="tsd-anchor"></a>
<h3>area<wbr>Names</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Names<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span><span class="tsd-signature-symbol"> = {}</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:11</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="areanameslist" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> area<wbr>Names<wbr>List</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Names<wbr>List<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BehaviorSubject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:12</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areanamessubject" class="tsd-anchor"></a>
<h3>area<wbr>Names<wbr>Subject</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Names<wbr>Subject<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:13</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areatypes" class="tsd-anchor"></a>
<h3>area<wbr>Types</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span><span class="tsd-signature-symbol"> = {}</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:15</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="areatypeslist" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> area<wbr>Types<wbr>List</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Types<wbr>List<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BehaviorSubject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:16</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areatypessubject" class="tsd-anchor"></a>
<h3>area<wbr>Types<wbr>Subject</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Types<wbr>Subject<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:17</li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getareanamebylocation" class="tsd-anchor"></a>
<h3>get<wbr>Area<wbr>Name<wbr>ByLocation</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Name<wbr>ByLocation<span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Name<wbr>ByLocation<span class="tsd-signature-symbol">(</span>location<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, areaNames<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:17</li>
<li>Defined in src/app/_services/location.service.ts:28</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -144,8 +218,11 @@
<li>
<h5>location: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>areaNames: <span class="tsd-signature-type">object</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
@ -153,47 +230,7 @@
<a name="getareanames" class="tsd-anchor"></a>
<h3>get<wbr>Area<wbr>Names</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Names<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:13</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getareatypebyarea" class="tsd-anchor"></a>
<h3>get<wbr>Area<wbr>Type<wbr>ByArea</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Type<wbr>ByArea<span class="tsd-signature-symbol">(</span>area<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:25</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>area: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getareatypes" class="tsd-anchor"></a>
<h3>get<wbr>Area<wbr>Types</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Types<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Names<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
@ -202,7 +239,50 @@
<li>Defined in src/app/_services/location.service.ts:21</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getareatypebyarea" class="tsd-anchor"></a>
<h3>get<wbr>Area<wbr>Type<wbr>ByArea</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Type<wbr>ByArea<span class="tsd-signature-symbol">(</span>area<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, areaTypes<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:47</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>area: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>areaTypes: <span class="tsd-signature-type">object</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<a name="getareatypes" class="tsd-anchor"></a>
<h3>get<wbr>Area<wbr>Types</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Area<wbr>Types<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/location.service.ts:40</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
@ -229,6 +309,24 @@
<li class=" tsd-kind-constructor tsd-parent-kind-class">
<a href="app__services_location_service.locationservice.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_location_service.locationservice.html#areanames" class="tsd-kind-icon">area<wbr>Names</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="app__services_location_service.locationservice.html#areanameslist" class="tsd-kind-icon">area<wbr>Names<wbr>List</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_location_service.locationservice.html#areanamessubject" class="tsd-kind-icon">area<wbr>Names<wbr>Subject</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_location_service.locationservice.html#areatypes" class="tsd-kind-icon">area<wbr>Types</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="app__services_location_service.locationservice.html#areatypeslist" class="tsd-kind-icon">area<wbr>Types<wbr>List</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_location_service.locationservice.html#areatypessubject" class="tsd-kind-icon">area<wbr>Types<wbr>Subject</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="app__services_location_service.locationservice.html#getareanamebylocation" class="tsd-kind-icon">get<wbr>Area<wbr>Name<wbr>ByLocation</a>
</li>
@ -257,6 +355,7 @@
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
@ -266,6 +365,9 @@
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
</ul>
</div>
</div>
</footer>

View File

@ -119,21 +119,15 @@
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">new <wbr>Token<wbr>Service<span class="tsd-signature-symbol">(</span>httpClient<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HttpClient</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="app__services_token_service.tokenservice.html" class="tsd-signature-type" data-tsd-kind="Class">TokenService</a></li>
<li class="tsd-signature tsd-kind-icon">new <wbr>Token<wbr>Service<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="app__services_token_service.tokenservice.html" class="tsd-signature-type" data-tsd-kind="Class">TokenService</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:20</li>
<li>Defined in src/app/_services/token.service.ts:19</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>httpClient: <span class="tsd-signature-type">HttpClient</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="app__services_token_service.tokenservice.html" class="tsd-signature-type" data-tsd-kind="Class">TokenService</a></h4>
</li>
</ul>
@ -147,7 +141,7 @@
<div class="tsd-signature tsd-kind-icon">load<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BehaviorSubject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:20</li>
<li>Defined in src/app/_services/token.service.ts:19</li>
</ul>
</aside>
</section>
@ -157,7 +151,7 @@
<div class="tsd-signature tsd-kind-icon">registry<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CICRegistry</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:13</li>
<li>Defined in src/app/_services/token.service.ts:12</li>
</ul>
</aside>
</section>
@ -167,7 +161,7 @@
<div class="tsd-signature tsd-kind-icon">token<wbr>Registry<span class="tsd-signature-symbol">:</span> <a href="app__eth_token_registry.tokenregistry.html" class="tsd-signature-type" data-tsd-kind="Class">TokenRegistry</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:14</li>
<li>Defined in src/app/_services/token.service.ts:13</li>
</ul>
</aside>
</section>
@ -177,7 +171,7 @@
<div class="tsd-signature tsd-kind-icon">tokens<span class="tsd-signature-symbol">:</span> <a href="../interfaces/app__models_token.token.html" class="tsd-signature-type" data-tsd-kind="Interface">Token</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:15</li>
<li>Defined in src/app/_services/token.service.ts:14</li>
</ul>
</aside>
</section>
@ -187,7 +181,7 @@
<div class="tsd-signature tsd-kind-icon">tokens<wbr>List<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BehaviorSubject</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/app__models_token.token.html" class="tsd-signature-type" data-tsd-kind="Interface">Token</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:16</li>
<li>Defined in src/app/_services/token.service.ts:15</li>
</ul>
</aside>
</section>
@ -197,7 +191,7 @@
<div class="tsd-signature tsd-kind-icon">tokens<wbr>Subject<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/app__models_token.token.html" class="tsd-signature-type" data-tsd-kind="Interface">Token</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:19</li>
<li>Defined in src/app/_services/token.service.ts:18</li>
</ul>
</aside>
</section>
@ -214,7 +208,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:32</li>
<li>Defined in src/app/_services/token.service.ts:31</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -237,7 +231,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:73</li>
<li>Defined in src/app/_services/token.service.ts:72</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -260,7 +254,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:52</li>
<li>Defined in src/app/_services/token.service.ts:51</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -283,7 +277,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:63</li>
<li>Defined in src/app/_services/token.service.ts:62</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -306,7 +300,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:78</li>
<li>Defined in src/app/_services/token.service.ts:77</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -323,7 +317,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:83</li>
<li>Defined in src/app/_services/token.service.ts:82</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -340,7 +334,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:44</li>
<li>Defined in src/app/_services/token.service.ts:43</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -357,7 +351,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/token.service.ts:24</li>
<li>Defined in src/app/_services/token.service.ts:23</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>

View File

@ -224,7 +224,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/transaction.service.ts:119</li>
<li>Defined in src/app/_services/transaction.service.ts:143</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -250,7 +250,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/transaction.service.ts:139</li>
<li>Defined in src/app/_services/transaction.service.ts:163</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -348,7 +348,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/transaction.service.ts:134</li>
<li>Defined in src/app/_services/transaction.service.ts:158</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -365,7 +365,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/transaction.service.ts:94</li>
<li>Defined in src/app/_services/transaction.service.ts:110</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -417,7 +417,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/transaction.service.ts:146</li>
<li>Defined in src/app/_services/transaction.service.ts:170</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>

View File

@ -95,6 +95,9 @@
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_user_service.userservice.html#actions" class="tsd-kind-icon">actions</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="app__services_user_service.userservice.html#actionslist" class="tsd-kind-icon">actions<wbr>List</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_user_service.userservice.html#actionssubject" class="tsd-kind-icon">actions<wbr>Subject</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_user_service.userservice.html#categories" class="tsd-kind-icon">categories</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="app__services_user_service.userservice.html#categorieslist" class="tsd-kind-icon">categories<wbr>List</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_user_service.userservice.html#categoriessubject" class="tsd-kind-icon">categories<wbr>Subject</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_user_service.userservice.html#headers" class="tsd-kind-icon">headers</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_user_service.userservice.html#keystore" class="tsd-kind-icon">keystore</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app__services_user_service.userservice.html#registry" class="tsd-kind-icon">registry</a></li>
@ -144,7 +147,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:37</li>
<li>Defined in src/app/_services/user.service.ts:41</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -229,6 +232,36 @@
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="categories" class="tsd-anchor"></a>
<h3>categories</h3>
<div class="tsd-signature tsd-kind-icon">categories<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span><span class="tsd-signature-symbol"> = {}</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:39</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="categorieslist" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> categories<wbr>List</h3>
<div class="tsd-signature tsd-kind-icon">categories<wbr>List<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BehaviorSubject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:40</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="categoriessubject" class="tsd-anchor"></a>
<h3>categories<wbr>Subject</h3>
<div class="tsd-signature tsd-kind-icon">categories<wbr>Subject<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:41</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="headers" class="tsd-anchor"></a>
<h3>headers</h3>
@ -282,7 +315,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:267</li>
<li>Defined in src/app/_services/user.service.ts:302</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -308,7 +341,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:155</li>
<li>Defined in src/app/_services/user.service.ts:179</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -331,7 +364,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:68</li>
<li>Defined in src/app/_services/user.service.ts:72</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -384,7 +417,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:194</li>
<li>Defined in src/app/_services/user.service.ts:218</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -410,7 +443,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:220</li>
<li>Defined in src/app/_services/user.service.ts:244</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -436,7 +469,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:163</li>
<li>Defined in src/app/_services/user.service.ts:187</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -459,7 +492,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:59</li>
<li>Defined in src/app/_services/user.service.ts:63</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -482,7 +515,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:255</li>
<li>Defined in src/app/_services/user.service.ts:290</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -499,7 +532,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:151</li>
<li>Defined in src/app/_services/user.service.ts:175</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -522,7 +555,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:144</li>
<li>Defined in src/app/_services/user.service.ts:168</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -533,16 +566,16 @@
<a name="getcategories" class="tsd-anchor"></a>
<h3>get<wbr>Categories</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Categories<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">get<wbr>Categories<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:247</li>
<li>Defined in src/app/_services/user.service.ts:271</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
@ -550,13 +583,13 @@
<a name="getcategorybyproduct" class="tsd-anchor"></a>
<h3>get<wbr>Category<wbr>ByProduct</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">get<wbr>Category<wbr>ByProduct<span class="tsd-signature-symbol">(</span>product<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">get<wbr>Category<wbr>ByProduct<span class="tsd-signature-symbol">(</span>product<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, categories<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:251</li>
<li>Defined in src/app/_services/user.service.ts:278</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -564,8 +597,11 @@
<li>
<h5>product: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>categories: <span class="tsd-signature-type">object</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
@ -579,7 +615,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:263</li>
<li>Defined in src/app/_services/user.service.ts:298</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -596,7 +632,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:64</li>
<li>Defined in src/app/_services/user.service.ts:68</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -622,7 +658,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:259</li>
<li>Defined in src/app/_services/user.service.ts:294</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Observable</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -639,7 +675,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:46</li>
<li>Defined in src/app/_services/user.service.ts:50</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -656,7 +692,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:181</li>
<li>Defined in src/app/_services/user.service.ts:205</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -682,7 +718,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:238</li>
<li>Defined in src/app/_services/user.service.ts:262</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -699,7 +735,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:54</li>
<li>Defined in src/app/_services/user.service.ts:58</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -722,7 +758,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:159</li>
<li>Defined in src/app/_services/user.service.ts:183</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -745,7 +781,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:243</li>
<li>Defined in src/app/_services/user.service.ts:267</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -768,7 +804,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:129</li>
<li>Defined in src/app/_services/user.service.ts:153</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -797,7 +833,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_services/user.service.ts:167</li>
<li>Defined in src/app/_services/user.service.ts:191</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -854,6 +890,15 @@
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_user_service.userservice.html#actionssubject" class="tsd-kind-icon">actions<wbr>Subject</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_user_service.userservice.html#categories" class="tsd-kind-icon">categories</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="app__services_user_service.userservice.html#categorieslist" class="tsd-kind-icon">categories<wbr>List</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_user_service.userservice.html#categoriessubject" class="tsd-kind-icon">categories<wbr>Subject</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app__services_user_service.userservice.html#headers" class="tsd-kind-icon">headers</a>
</li>

View File

@ -102,10 +102,13 @@
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#accounttypes" class="tsd-kind-icon">account<wbr>Types</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#accounts" class="tsd-kind-icon">accounts</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#accountstype" class="tsd-kind-icon">accounts<wbr>Type</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#area" class="tsd-kind-icon">area</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#areanames" class="tsd-kind-icon">area<wbr>Names</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#areatype" class="tsd-kind-icon">area<wbr>Type</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#areatypes" class="tsd-kind-icon">area<wbr>Types</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#bloxberglink" class="tsd-kind-icon">bloxberg<wbr>Link</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#categories" class="tsd-kind-icon">categories</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#category" class="tsd-kind-icon">category</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#genders" class="tsd-kind-icon">genders</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#matcher" class="tsd-kind-icon">matcher</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#submitted" class="tsd-kind-icon">submitted</a></li>
@ -165,7 +168,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:67</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:70</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -281,20 +284,40 @@
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="area" class="tsd-anchor"></a>
<h3>area</h3>
<div class="tsd-signature tsd-kind-icon">area<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:69</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areanames" class="tsd-anchor"></a>
<h3>area<wbr>Names</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Names<span class="tsd-signature-symbol">:</span> <a href="../interfaces/app__models_mappings.areaname.html" class="tsd-signature-type" data-tsd-kind="Interface">AreaName</a><span class="tsd-signature-symbol">[]</span></div>
<div class="tsd-signature tsd-kind-icon">area<wbr>Names<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:56</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areatype" class="tsd-anchor"></a>
<h3>area<wbr>Type</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:70</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areatypes" class="tsd-anchor"></a>
<h3>area<wbr>Types</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Types<span class="tsd-signature-symbol">:</span> <a href="../interfaces/app__models_mappings.areatype.html" class="tsd-signature-type" data-tsd-kind="Interface">AreaType</a><span class="tsd-signature-symbol">[]</span></div>
<div class="tsd-signature tsd-kind-icon">area<wbr>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:57</li>
@ -314,13 +337,23 @@
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="categories" class="tsd-anchor"></a>
<h3>categories</h3>
<div class="tsd-signature tsd-kind-icon">categories<span class="tsd-signature-symbol">:</span> <a href="../interfaces/app__models_mappings.category.html" class="tsd-signature-type" data-tsd-kind="Interface">Category</a><span class="tsd-signature-symbol">[]</span></div>
<div class="tsd-signature tsd-kind-icon">categories<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:55</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="category" class="tsd-anchor"></a>
<h3>category</h3>
<div class="tsd-signature tsd-kind-icon">category<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:68</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="genders" class="tsd-anchor"></a>
<h3>genders</h3>
@ -534,7 +567,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:218</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:220</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
@ -554,7 +587,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:285</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:287</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -571,7 +604,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:200</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:202</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -594,7 +627,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:204</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:206</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -617,7 +650,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:281</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:283</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -643,7 +676,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:243</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:245</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -660,7 +693,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:256</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:258</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -678,7 +711,7 @@
<aside class="tsd-sources">
<p>Implementation of OnInit.ngOnInit</p>
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:89</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:92</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -695,7 +728,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:269</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:271</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -712,7 +745,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:222</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:224</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -729,7 +762,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:212</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:214</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -752,7 +785,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:208</li>
<li>Defined in src/app/pages/accounts/account-details/account-details.component.ts:210</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -809,9 +842,15 @@
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#accountstype" class="tsd-kind-icon">accounts<wbr>Type</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#area" class="tsd-kind-icon">area</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#areanames" class="tsd-kind-icon">area<wbr>Names</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#areatype" class="tsd-kind-icon">area<wbr>Type</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#areatypes" class="tsd-kind-icon">area<wbr>Types</a>
</li>
@ -821,6 +860,9 @@
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#categories" class="tsd-kind-icon">categories</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#category" class="tsd-kind-icon">category</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_account_details_account_details_component.accountdetailscomponent.html#genders" class="tsd-kind-icon">genders</a>
</li>

View File

@ -274,7 +274,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:52</li>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:53</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
@ -291,7 +291,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:46</li>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:47</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
@ -308,7 +308,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:49</li>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:50</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
@ -329,7 +329,7 @@
<aside class="tsd-sources">
<p>Implementation of OnInit.ngOnInit</p>
<ul>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:33</li>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:43</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -346,7 +346,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:86</li>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:87</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -363,7 +363,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:56</li>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:57</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -380,7 +380,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:66</li>
<li>Defined in src/app/pages/accounts/account-search/account-search.component.ts:67</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>

View File

@ -104,6 +104,7 @@
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_accounts_component.accountscomponent.html#pagesizeoptions" class="tsd-kind-icon">page<wbr>Size<wbr>Options</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_accounts_component.accountscomponent.html#paginator" class="tsd-kind-icon">paginator</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_accounts_component.accountscomponent.html#sort" class="tsd-kind-icon">sort</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="app_pages_accounts_accounts_component.accountscomponent.html#tokensymbol" class="tsd-kind-icon">token<wbr>Symbol</a></li>
</ul>
</section>
<section class="tsd-index-section ">
@ -126,13 +127,13 @@
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">new <wbr>Accounts<wbr>Component<span class="tsd-signature-symbol">(</span>userService<span class="tsd-signature-symbol">: </span><a href="app__services_user_service.userservice.html" class="tsd-signature-type" data-tsd-kind="Class">UserService</a>, loggingService<span class="tsd-signature-symbol">: </span><a href="app__services_logging_service.loggingservice.html" class="tsd-signature-type" data-tsd-kind="Class">LoggingService</a>, router<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Router</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="app_pages_accounts_accounts_component.accountscomponent.html" class="tsd-signature-type" data-tsd-kind="Class">AccountsComponent</a></li>
<li class="tsd-signature tsd-kind-icon">new <wbr>Accounts<wbr>Component<span class="tsd-signature-symbol">(</span>userService<span class="tsd-signature-symbol">: </span><a href="app__services_user_service.userservice.html" class="tsd-signature-type" data-tsd-kind="Class">UserService</a>, loggingService<span class="tsd-signature-symbol">: </span><a href="app__services_logging_service.loggingservice.html" class="tsd-signature-type" data-tsd-kind="Class">LoggingService</a>, router<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Router</span>, tokenService<span class="tsd-signature-symbol">: </span><a href="app__services_token_service.tokenservice.html" class="tsd-signature-type" data-tsd-kind="Class">TokenService</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="app_pages_accounts_accounts_component.accountscomponent.html" class="tsd-signature-type" data-tsd-kind="Class">AccountsComponent</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:29</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:30</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -146,6 +147,9 @@
<li>
<h5>router: <span class="tsd-signature-type">Router</span></h5>
</li>
<li>
<h5>tokenService: <a href="app__services_token_service.tokenservice.html" class="tsd-signature-type" data-tsd-kind="Class">TokenService</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="app_pages_accounts_accounts_component.accountscomponent.html" class="tsd-signature-type" data-tsd-kind="Class">AccountsComponent</a></h4>
</li>
@ -230,7 +234,7 @@
<div class="tsd-signature tsd-kind-icon">paginator<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MatPaginator</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:28</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:29</li>
</ul>
</aside>
</section>
@ -240,7 +244,17 @@
<div class="tsd-signature tsd-kind-icon">sort<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MatSort</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:29</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:30</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="tokensymbol" class="tsd-anchor"></a>
<h3>token<wbr>Symbol</h3>
<div class="tsd-signature tsd-kind-icon">token<wbr>Symbol<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:27</li>
</ul>
</aside>
</section>
@ -257,7 +271,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:57</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:65</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -280,7 +294,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:86</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:94</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -297,7 +311,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:67</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:75</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -315,7 +329,7 @@
<aside class="tsd-sources">
<p>Implementation of OnInit.ngOnInit</p>
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:37</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:39</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -332,7 +346,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:78</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:86</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
@ -349,7 +363,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/accounts.component.ts:61</li>
<li>Defined in src/app/pages/accounts/accounts.component.ts:69</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -412,6 +426,9 @@
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_accounts_component.accountscomponent.html#sort" class="tsd-kind-icon">sort</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="app_pages_accounts_accounts_component.accountscomponent.html#tokensymbol" class="tsd-kind-icon">token<wbr>Symbol</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="app_pages_accounts_accounts_component.accountscomponent.html#dofilter" class="tsd-kind-icon">do<wbr>Filter</a>
</li>

View File

@ -132,7 +132,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:21</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:20</li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -160,27 +160,27 @@
<div class="tsd-signature tsd-kind-icon">account<wbr>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:20</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:19</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="areanames" class="tsd-anchor"></a>
<h3>area<wbr>Names</h3>
<div class="tsd-signature tsd-kind-icon">area<wbr>Names<span class="tsd-signature-symbol">:</span> <a href="../interfaces/app__models_mappings.areaname.html" class="tsd-signature-type" data-tsd-kind="Interface">AreaName</a><span class="tsd-signature-symbol">[]</span></div>
<div class="tsd-signature tsd-kind-icon">area<wbr>Names<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:19</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:18</li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="categories" class="tsd-anchor"></a>
<h3>categories</h3>
<div class="tsd-signature tsd-kind-icon">categories<span class="tsd-signature-symbol">:</span> <a href="../interfaces/app__models_mappings.category.html" class="tsd-signature-type" data-tsd-kind="Interface">Category</a><span class="tsd-signature-symbol">[]</span></div>
<div class="tsd-signature tsd-kind-icon">categories<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:18</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:17</li>
</ul>
</aside>
</section>
@ -190,7 +190,7 @@
<div class="tsd-signature tsd-kind-icon">create<wbr>Form<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">FormGroup</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:15</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:14</li>
</ul>
</aside>
</section>
@ -200,7 +200,7 @@
<div class="tsd-signature tsd-kind-icon">genders<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:21</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:20</li>
</ul>
</aside>
</section>
@ -210,7 +210,7 @@
<div class="tsd-signature tsd-kind-icon">matcher<span class="tsd-signature-symbol">:</span> <a href="app__helpers_custom_error_state_matcher.customerrorstatematcher.html" class="tsd-signature-type" data-tsd-kind="Class">CustomErrorStateMatcher</a><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:16</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:15</li>
</ul>
</aside>
</section>
@ -220,7 +220,7 @@
<div class="tsd-signature tsd-kind-icon">submitted<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:17</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:16</li>
</ul>
</aside>
</section>
@ -237,7 +237,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:61</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:60</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
@ -258,7 +258,7 @@
<aside class="tsd-sources">
<p>Implementation of OnInit.ngOnInit</p>
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:29</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:28</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
@ -275,7 +275,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:65</li>
<li>Defined in src/app/pages/accounts/create-account/create-account.component.ts:64</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>

View File

@ -107,7 +107,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/pages.component.ts:10</li>
<li>Defined in src/app/pages/pages.component.ts:11</li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <a href="app_pages_pages_component.pagescomponent.html" class="tsd-signature-type" data-tsd-kind="Class">PagesComponent</a></h4>
@ -120,10 +120,10 @@
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="url" class="tsd-anchor"></a>
<h3>url</h3>
<div class="tsd-signature tsd-kind-icon">url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &#x27;https://dashboard.sarafu.network/&#x27;</span></div>
<div class="tsd-signature tsd-kind-icon">url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/pages/pages.component.ts:10</li>
<li>Defined in src/app/pages/pages.component.ts:11</li>
</ul>
</aside>
</section>

View File

@ -217,15 +217,6 @@
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areaname.html" class="tsd-kind-icon">Area<wbr>Name</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areatype.html" class="tsd-kind-icon">Area<wbr>Type</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.category.html" class="tsd-kind-icon">Category</a>
</li>
</ul>
</nav>
</div>

View File

@ -1,201 +0,0 @@
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AreaName | CICADA</title>
<meta name="description" content="Documentation for CICADA">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">CICADA</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../modules.html">CICADA</a>
</li>
<li>
<a href="../modules/app__models_mappings.html">app/_models/mappings</a>
</li>
<li>
<a href="app__models_mappings.areaname.html">AreaName</a>
</li>
</ul>
<h1>Interface AreaName</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>exports</dt>
<dd></dd>
</dl>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">AreaName</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="app__models_mappings.areaname.html#locations" class="tsd-kind-icon">locations</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="app__models_mappings.areaname.html#name" class="tsd-kind-icon">name</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="locations" class="tsd-anchor"></a>
<h3>locations</h3>
<div class="tsd-signature tsd-kind-icon">locations<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_models/mappings.ts:18</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Locations that map to that area name.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="name" class="tsd-anchor"></a>
<h3>name</h3>
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_models/mappings.ts:20</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Name of area</p>
</div>
</div>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class=" ">
<a href="../modules.html">Exports</a>
</li>
<li class="current tsd-kind-module">
<a href="../modules/app__models_mappings.html">app/_<wbr>models/mappings</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.action.html" class="tsd-kind-icon">Action</a>
</li>
</ul>
<ul class="current">
<li class="current tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areaname.html" class="tsd-kind-icon">Area<wbr>Name</a>
<ul>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="app__models_mappings.areaname.html#locations" class="tsd-kind-icon">locations</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="app__models_mappings.areaname.html#name" class="tsd-kind-icon">name</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areatype.html" class="tsd-kind-icon">Area<wbr>Type</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.category.html" class="tsd-kind-icon">Category</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,201 +0,0 @@
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AreaType | CICADA</title>
<meta name="description" content="Documentation for CICADA">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">CICADA</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../modules.html">CICADA</a>
</li>
<li>
<a href="../modules/app__models_mappings.html">app/_models/mappings</a>
</li>
<li>
<a href="app__models_mappings.areatype.html">AreaType</a>
</li>
</ul>
<h1>Interface AreaType</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>exports</dt>
<dd></dd>
</dl>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">AreaType</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="app__models_mappings.areatype.html#area" class="tsd-kind-icon">area</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="app__models_mappings.areatype.html#name" class="tsd-kind-icon">name</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="area" class="tsd-anchor"></a>
<h3>area</h3>
<div class="tsd-signature tsd-kind-icon">area<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_models/mappings.ts:26</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Areas that map to that area type.</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="name" class="tsd-anchor"></a>
<h3>name</h3>
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_models/mappings.ts:28</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Type of area</p>
</div>
</div>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class=" ">
<a href="../modules.html">Exports</a>
</li>
<li class="current tsd-kind-module">
<a href="../modules/app__models_mappings.html">app/_<wbr>models/mappings</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.action.html" class="tsd-kind-icon">Action</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areaname.html" class="tsd-kind-icon">Area<wbr>Name</a>
</li>
</ul>
<ul class="current">
<li class="current tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areatype.html" class="tsd-kind-icon">Area<wbr>Type</a>
<ul>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="app__models_mappings.areatype.html#area" class="tsd-kind-icon">area</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="app__models_mappings.areatype.html#name" class="tsd-kind-icon">name</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.category.html" class="tsd-kind-icon">Category</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,201 +0,0 @@
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Category | CICADA</title>
<meta name="description" content="Documentation for CICADA">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">CICADA</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../modules.html">CICADA</a>
</li>
<li>
<a href="../modules/app__models_mappings.html">app/_models/mappings</a>
</li>
<li>
<a href="app__models_mappings.category.html">Category</a>
</li>
</ul>
<h1>Interface Category</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
<dl class="tsd-comment-tags">
<dt>exports</dt>
<dd></dd>
</dl>
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">Category</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="app__models_mappings.category.html#name" class="tsd-kind-icon">name</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="app__models_mappings.category.html#products" class="tsd-kind-icon">products</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="name" class="tsd-anchor"></a>
<h3>name</h3>
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_models/mappings.ts:34</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Business category</p>
</div>
</div>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="products" class="tsd-anchor"></a>
<h3>products</h3>
<div class="tsd-signature tsd-kind-icon">products<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_models/mappings.ts:36</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Products that map to that category.</p>
</div>
</div>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class=" ">
<a href="../modules.html">Exports</a>
</li>
<li class="current tsd-kind-module">
<a href="../modules/app__models_mappings.html">app/_<wbr>models/mappings</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.action.html" class="tsd-kind-icon">Action</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areaname.html" class="tsd-kind-icon">Area<wbr>Name</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.areatype.html" class="tsd-kind-icon">Area<wbr>Type</a>
</li>
</ul>
<ul class="current">
<li class="current tsd-kind-interface tsd-parent-kind-module">
<a href="app__models_mappings.category.html" class="tsd-kind-icon">Category</a>
<ul>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="app__models_mappings.category.html#name" class="tsd-kind-icon">name</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="app__models_mappings.category.html#products" class="tsd-kind-icon">products</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -92,7 +92,7 @@
<div class="tsd-signature tsd-kind-icon">Mock<wbr>Backend<wbr>Provider<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>multi<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>provide<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">InjectionToken</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">HttpInterceptor</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">; </span>useClass<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">typeof </span><a href="../classes/app__helpers_mock_backend.mockbackendinterceptor.html" class="tsd-signature-type" data-tsd-kind="Class">MockBackendInterceptor</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/app/_helpers/mock-backend.ts:1243</li>
<li>Defined in src/app/_helpers/mock-backend.ts:1039</li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">

View File

@ -74,9 +74,6 @@
<ul class="tsd-index-list">
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#accountdetails" class="tsd-kind-icon">Account<wbr>Details</a></li>
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#action" class="tsd-kind-icon">Action</a></li>
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#areaname" class="tsd-kind-icon">Area<wbr>Name</a></li>
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#areatype" class="tsd-kind-icon">Area<wbr>Type</a></li>
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#category" class="tsd-kind-icon">Category</a></li>
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#conversion" class="tsd-kind-icon">Conversion</a></li>
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#meta" class="tsd-kind-icon">Meta</a></li>
<li class="tsd-kind-reference tsd-parent-kind-module"><a href="app__models.html#metaresponse" class="tsd-kind-icon">Meta<wbr>Response</a></li>
@ -106,21 +103,6 @@
<h3>Action</h3>
Re-exports <a href="../interfaces/app__models_mappings.action.html">Action</a>
</section>
<section class="tsd-panel tsd-member tsd-kind-reference tsd-parent-kind-module">
<a name="areaname" class="tsd-anchor"></a>
<h3>Area<wbr>Name</h3>
Re-exports <a href="../interfaces/app__models_mappings.areaname.html">AreaName</a>
</section>
<section class="tsd-panel tsd-member tsd-kind-reference tsd-parent-kind-module">
<a name="areatype" class="tsd-anchor"></a>
<h3>Area<wbr>Type</h3>
Re-exports <a href="../interfaces/app__models_mappings.areatype.html">AreaType</a>
</section>
<section class="tsd-panel tsd-member tsd-kind-reference tsd-parent-kind-module">
<a name="category" class="tsd-anchor"></a>
<h3>Category</h3>
Re-exports <a href="../interfaces/app__models_mappings.category.html">Category</a>
</section>
<section class="tsd-panel tsd-member tsd-kind-reference tsd-parent-kind-module">
<a name="conversion" class="tsd-anchor"></a>
<h3>Conversion</h3>
@ -202,15 +184,6 @@
<li class=" tsd-kind-reference tsd-parent-kind-module">
<a href="app__models.html#action" class="tsd-kind-icon">Action</a>
</li>
<li class=" tsd-kind-reference tsd-parent-kind-module">
<a href="app__models.html#areaname" class="tsd-kind-icon">Area<wbr>Name</a>
</li>
<li class=" tsd-kind-reference tsd-parent-kind-module">
<a href="app__models.html#areatype" class="tsd-kind-icon">Area<wbr>Type</a>
</li>
<li class=" tsd-kind-reference tsd-parent-kind-module">
<a href="app__models.html#category" class="tsd-kind-icon">Category</a>
</li>
<li class=" tsd-kind-reference tsd-parent-kind-module">
<a href="app__models.html#conversion" class="tsd-kind-icon">Conversion</a>
</li>

View File

@ -73,9 +73,6 @@
<h3>Interfaces</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/app__models_mappings.action.html" class="tsd-kind-icon">Action</a></li>
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/app__models_mappings.areaname.html" class="tsd-kind-icon">Area<wbr>Name</a></li>
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/app__models_mappings.areatype.html" class="tsd-kind-icon">Area<wbr>Type</a></li>
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/app__models_mappings.category.html" class="tsd-kind-icon">Category</a></li>
</ul>
</section>
</div>
@ -98,15 +95,6 @@
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="../interfaces/app__models_mappings.action.html" class="tsd-kind-icon">Action</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="../interfaces/app__models_mappings.areaname.html" class="tsd-kind-icon">Area<wbr>Name</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="../interfaces/app__models_mappings.areatype.html" class="tsd-kind-icon">Area<wbr>Type</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-module">
<a href="../interfaces/app__models_mappings.category.html" class="tsd-kind-icon">Category</a>
</li>
</ul>
</nav>
</div>

View File

@ -83,7 +83,7 @@
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module">
<a name="environment" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> environment</h3>
<div class="tsd-signature tsd-kind-icon">environment<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bloxbergChainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>cicCacheUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicMetaUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicUssdUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>logLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>loggingUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>production<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>publicKeysUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>registryAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>serverLogLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>trustedDeclaratorAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>web3Provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
<div class="tsd-signature tsd-kind-icon">environment<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bloxbergChainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>cicCacheUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicMetaUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicUssdUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>dashboardUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>logLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>loggingUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>production<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>publicKeysUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>registryAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>serverLogLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>trustedDeclaratorAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>web3Provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/environments/environment.ts:3</li>
@ -104,6 +104,9 @@
<li class="tsd-parameter">
<h5>cic<wbr>Ussd<wbr>Url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
</li>
<li class="tsd-parameter">
<h5>dashboard<wbr>Url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
</li>
<li class="tsd-parameter">
<h5>log<wbr>Level<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span></h5>
</li>

View File

@ -83,7 +83,7 @@
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module">
<a name="environment" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> environment</h3>
<div class="tsd-signature tsd-kind-icon">environment<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bloxbergChainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>cicCacheUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicMetaUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicUssdUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>logLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>loggingUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>production<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>publicKeysUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>registryAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>serverLogLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>trustedDeclaratorAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>web3Provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
<div class="tsd-signature tsd-kind-icon">environment<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bloxbergChainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>cicCacheUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicMetaUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicUssdUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>dashboardUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>logLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>loggingUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>production<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>publicKeysUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>registryAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>serverLogLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>trustedDeclaratorAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>web3Provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/environments/environment.dev.ts:3</li>
@ -104,6 +104,9 @@
<li class="tsd-parameter">
<h5>cic<wbr>Ussd<wbr>Url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
</li>
<li class="tsd-parameter">
<h5>dashboard<wbr>Url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
</li>
<li class="tsd-parameter">
<h5>log<wbr>Level<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span></h5>
</li>

View File

@ -83,7 +83,7 @@
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module">
<a name="environment" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagConst">Const</span> environment</h3>
<div class="tsd-signature tsd-kind-icon">environment<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bloxbergChainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>cicCacheUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicMetaUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicUssdUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>logLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>loggingUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>production<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>publicKeysUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>registryAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>serverLogLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>trustedDeclaratorAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>web3Provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
<div class="tsd-signature tsd-kind-icon">environment<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bloxbergChainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>cicCacheUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicMetaUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>cicUssdUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>dashboardUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>logLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>loggingUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>production<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>publicKeysUrl<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>registryAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>serverLogLevel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span><span class="tsd-signature-symbol">; </span>trustedDeclaratorAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>web3Provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in src/environments/environment.prod.ts:3</li>
@ -104,6 +104,9 @@
<li class="tsd-parameter">
<h5>cic<wbr>Ussd<wbr>Url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
</li>
<li class="tsd-parameter">
<h5>dashboard<wbr>Url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
</li>
<li class="tsd-parameter">
<h5>log<wbr>Level<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">NgxLoggerLevel</span></h5>
</li>

File diff suppressed because it is too large Load Diff

View File

@ -129,7 +129,7 @@ const defaultAccount: AccountDetails = {
meta: {
TYP: [],
},
value: '',
value: '+254700000000',
},
],
version: [

View File

@ -12,29 +12,5 @@ interface Action {
user: string;
}
/** Area name object interface */
interface AreaName {
/** Locations that map to that area name. */
locations: Array<string>;
/** Name of area */
name: string;
}
/** Area type object interface */
interface AreaType {
/** Areas that map to that area type. */
area: Array<string>;
/** Type of area */
name: string;
}
/** Category object interface */
interface Category {
/** Business category */
name: string;
/** Products that map to that category. */
products: Array<string>;
}
/** @exports */
export { Action, AreaName, AreaType, Category };
export { Action };

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { BehaviorSubject, Observable } from 'rxjs';
import { environment } from '@src/environments/environment';
import { first } from 'rxjs/operators';
import { HttpClient } from '@angular/common/http';
@ -8,23 +8,51 @@ import { HttpClient } from '@angular/common/http';
providedIn: 'root',
})
export class LocationService {
areaNames: object = {};
private areaNamesList: BehaviorSubject<object> = new BehaviorSubject<object>(this.areaNames);
areaNamesSubject: Observable<object> = this.areaNamesList.asObservable();
areaTypes: object = {};
private areaTypesList: BehaviorSubject<object> = new BehaviorSubject<object>(this.areaTypes);
areaTypesSubject: Observable<object> = this.areaTypesList.asObservable();
constructor(private httpClient: HttpClient) {}
getAreaNames(): Observable<any> {
return this.httpClient.get(`${environment.cicMetaUrl}/areanames`);
getAreaNames(): void {
this.httpClient
.get(`${environment.cicMetaUrl}/areanames`)
.pipe(first())
.subscribe((res: object) => this.areaNamesList.next(res));
}
getAreaNameByLocation(location: string): Observable<any> {
return this.httpClient.get(`${environment.cicMetaUrl}/areanames/${location.toLowerCase()}`);
getAreaNameByLocation(location: string, areaNames: object): string {
const keywords = location.toLowerCase().split(' ');
for (const keyword of keywords) {
const queriedAreaName: string = Object.keys(areaNames).find((key) =>
areaNames[key].includes(keyword)
);
if (queriedAreaName) {
return queriedAreaName;
}
}
}
getAreaTypes(): Observable<any> {
return this.httpClient.get(`${environment.cicMetaUrl}/areatypes`).pipe(first());
getAreaTypes(): void {
this.httpClient
.get(`${environment.cicMetaUrl}/areatypes`)
.pipe(first())
.subscribe((res: object) => this.areaTypesList.next(res));
}
getAreaTypeByArea(area: string): Observable<any> {
return this.httpClient
.get(`${environment.cicMetaUrl}/areatypes/${area.toLowerCase()}`)
.pipe(first());
getAreaTypeByArea(area: string, areaTypes: object): string {
const keywords = area.toLowerCase().split(' ');
for (const keyword of keywords) {
const queriedAreaType: string = Object.keys(areaTypes).find((key) =>
areaTypes[key].includes(keyword)
);
if (queriedAreaType) {
return queriedAreaType;
}
}
}
}

View File

@ -1,7 +1,6 @@
import { Injectable } from '@angular/core';
import { CICRegistry } from '@cicnet/cic-client';
import { TokenRegistry } from '@app/_eth';
import { HttpClient } from '@angular/common/http';
import { RegistryService } from '@app/_services/registry.service';
import { Token } from '@app/_models';
import { BehaviorSubject, Observable, Subject } from 'rxjs';
@ -19,7 +18,7 @@ export class TokenService {
tokensSubject: Observable<Array<Token>> = this.tokensList.asObservable();
load: BehaviorSubject<any> = new BehaviorSubject<any>(false);
constructor(private httpClient: HttpClient) {}
constructor() {}
async init(): Promise<void> {
this.registry = await RegistryService.getRegistry();

View File

@ -62,30 +62,46 @@ export class TransactionService {
transaction.value = Number(transaction.value);
transaction.type = 'transaction';
try {
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.from))
.pipe(first())
.subscribe(
(res) => {
transaction.sender = this.getAccountInfo(res, cacheSize);
},
(error) => {
transaction.sender = defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
}
);
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.to))
.pipe(first())
.subscribe(
(res) => {
transaction.recipient = this.getAccountInfo(res, cacheSize);
},
(error) => {
transaction.recipient = defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
}
);
if (transaction.from === environment.trustedDeclaratorAddress) {
transaction.sender = defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
} else {
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.from))
.pipe(first())
.subscribe(
(res) => {
transaction.sender = this.getAccountInfo(res, cacheSize);
},
(error) => {
this.loggingService.sendErrorLevelMessage(
`Account with address ${transaction.from} not found`,
this,
{ error }
);
}
);
}
if (transaction.to === environment.trustedDeclaratorAddress) {
transaction.recipient = defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
} else {
this.userService
.getAccountDetailsFromMeta(await User.toKey(transaction.to))
.pipe(first())
.subscribe(
(res) => {
transaction.recipient = this.getAccountInfo(res, cacheSize);
},
(error) => {
this.loggingService.sendErrorLevelMessage(
`Account with address ${transaction.to} not found`,
this,
{ error }
);
}
);
}
} finally {
this.addTransaction(transaction, cacheSize);
}
@ -99,18 +115,26 @@ export class TransactionService {
conversion.fromValue = Number(conversion.fromValue);
conversion.toValue = Number(conversion.toValue);
try {
this.userService
.getAccountDetailsFromMeta(await User.toKey(conversion.trader))
.pipe(first())
.subscribe(
(res) => {
conversion.sender = conversion.recipient = this.getAccountInfo(res);
},
(error) => {
conversion.sender = conversion.recipient = defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
}
);
if (conversion.trader === environment.trustedDeclaratorAddress) {
conversion.sender = conversion.recipient = defaultAccount;
this.userService.addAccount(defaultAccount, cacheSize);
} else {
this.userService
.getAccountDetailsFromMeta(await User.toKey(conversion.trader))
.pipe(first())
.subscribe(
(res) => {
conversion.sender = conversion.recipient = this.getAccountInfo(res);
},
(error) => {
this.loggingService.sendErrorLevelMessage(
`Account with address ${conversion.trader} not found`,
this,
{ error }
);
}
);
}
} finally {
this.addTransaction(conversion, cacheSize);
}

View File

@ -36,6 +36,10 @@ export class UserService {
private actionsList: BehaviorSubject<any> = new BehaviorSubject<any>(this.actions);
actionsSubject: Observable<Array<any>> = this.actionsList.asObservable();
categories: object = {};
private categoriesList: BehaviorSubject<object> = new BehaviorSubject<object>(this.categories);
categoriesSubject: Observable<object> = this.categoriesList.asObservable();
constructor(
private httpClient: HttpClient,
private loggingService: LoggingService,
@ -86,17 +90,37 @@ export class UserService {
},
location: {},
};
accountInfo.vcard.fn[0].value = name;
accountInfo.vcard.n[0].value = name.split(' ');
accountInfo.vcard.tel[0].value = phoneNumber;
accountInfo.products = [bio];
accountInfo.gender = gender;
accountInfo.age = age;
accountInfo.type = type;
accountInfo.category = businessCategory;
accountInfo.location.area = location;
accountInfo.location.area_name = userLocation;
accountInfo.location.area_type = locationType;
if (name) {
accountInfo.vcard.fn[0].value = name;
accountInfo.vcard.n[0].value = name.split(' ');
}
if (phoneNumber) {
accountInfo.vcard.tel[0].value = phoneNumber;
}
if (bio) {
accountInfo.products = [bio];
}
if (gender) {
accountInfo.gender = gender;
}
if (age) {
accountInfo.age = age;
}
if (type) {
accountInfo.type = type;
}
if (businessCategory) {
accountInfo.category = businessCategory;
}
if (location) {
accountInfo.location.area = location;
}
if (userLocation) {
accountInfo.location.area_name = userLocation;
}
if (locationType) {
accountInfo.location.area_type = locationType;
}
await vcardValidation(accountInfo.vcard);
accountInfo.vcard = btoa(vCard.generate(accountInfo.vcard));
const accountKey: string = await User.toKey(address);
@ -251,12 +275,23 @@ export class UserService {
return;
}
getCategories(): Observable<any> {
return this.httpClient.get(`${environment.cicMetaUrl}/categories`);
getCategories(): void {
this.httpClient
.get(`${environment.cicMetaUrl}/categories`)
.pipe(first())
.subscribe((res: object) => this.categoriesList.next(res));
}
getCategoryByProduct(product: string): Observable<any> {
return this.httpClient.get(`${environment.cicMetaUrl}/categories/${product.toLowerCase()}`);
getCategoryByProduct(product: string, categories: object): string {
const keywords = product.toLowerCase().split(' ');
for (const keyword of keywords) {
const queriedCategory: string = Object.keys(categories).find((key) =>
categories[key].includes(keyword)
);
if (queriedCategory) {
return queriedCategory;
}
}
}
getAccountTypes(): Observable<any> {

View File

@ -113,24 +113,6 @@
</mat-form-field>
</div>
<div class="col-md-6 col-lg-4">
<mat-form-field appearance="outline">
<mat-label>Age: </mat-label>
<input
matInput
type="text"
id="age"
placeholder="{{ account?.age }}"
value="{{ account?.age }}"
formControlName="age"
[errorStateMatcher]="matcher"
/>
<mat-error *ngIf="submitted && accountInfoFormStub.age.errors"
>Age is required.</mat-error
>
</mat-form-field>
</div>
<div class="col-md-6 col-lg-4">
<mat-form-field appearance="outline">
<mat-label> ACCOUNT TYPE: </mat-label>
@ -150,24 +132,6 @@
</mat-form-field>
</div>
<div class="col-md-6 col-lg-4">
<mat-form-field appearance="outline">
<mat-label>Bio: </mat-label>
<input
matInput
type="text"
id="bio"
placeholder="{{ account?.products }}"
value="{{ account?.products }}"
formControlName="bio"
[errorStateMatcher]="matcher"
/>
<mat-error *ngIf="submitted && accountInfoFormStub.bio.errors"
>Bio is required.</mat-error
>
</mat-form-field>
</div>
<div class="col-md-6 col-lg-4">
<mat-form-field appearance="outline">
<mat-label> GENDER: </mat-label>
@ -187,12 +151,48 @@
</mat-form-field>
</div>
<div class="col-md-6 col-lg-4">
<mat-form-field appearance="outline">
<mat-label>Age: </mat-label>
<input
matInput
type="text"
id="age"
placeholder="{{ account?.age }}"
value="{{ account?.age }}"
formControlName="age"
[errorStateMatcher]="matcher"
/>
<mat-error *ngIf="submitted && accountInfoFormStub.age.errors"
>Age is required.</mat-error
>
</mat-form-field>
</div>
<div class="col-md-6 col-lg-4">
<mat-form-field appearance="outline">
<mat-label>Bio: </mat-label>
<input
matInput
type="text"
id="bio"
placeholder="{{ account?.products }}"
value="{{ account?.products }}"
formControlName="bio"
[errorStateMatcher]="matcher"
/>
<mat-error *ngIf="submitted && accountInfoFormStub.bio.errors"
>Bio is required.</mat-error
>
</mat-form-field>
</div>
<div class="col-md-6 col-lg-4">
<mat-form-field appearance="outline">
<mat-label> BUSINESS CATEGORY: </mat-label>
<mat-select
id="businessCategory"
[(value)]="account.category"
[(value)]="category"
formControlName="businessCategory"
[errorStateMatcher]="matcher"
>
@ -229,7 +229,7 @@
<mat-label> LOCATION: </mat-label>
<mat-select
id="location"
[(value)]="account.location.area"
[(value)]="area"
formControlName="location"
[errorStateMatcher]="matcher"
>
@ -248,7 +248,7 @@
<mat-label> LOCATION TYPE: </mat-label>
<mat-select
id="locationType"
[(value)]="account.location.area_type"
[(value)]="areaType"
formControlName="locationType"
[errorStateMatcher]="matcher"
>

View File

@ -23,7 +23,7 @@ import { copyToClipboard, CustomErrorStateMatcher, exportCsv } from '@app/_helpe
import { MatSnackBar } from '@angular/material/snack-bar';
import { add0x, strip0x } from '@src/assets/js/ethtx/dist/hex';
import { environment } from '@src/environments/environment';
import { AccountDetails, AreaName, AreaType, Category, Transaction } from '@app/_models';
import { AccountDetails, Transaction } from '@app/_models';
@Component({
selector: 'app-account-details',
@ -52,9 +52,9 @@ export class AccountDetailsComponent implements OnInit {
accountStatus: any;
accounts: Array<AccountDetails> = [];
accountsType: string = 'all';
categories: Array<Category>;
areaNames: Array<AreaName>;
areaTypes: Array<AreaType>;
categories: Array<string>;
areaNames: Array<string>;
areaTypes: Array<string>;
transaction: any;
transactions: Array<Transaction>;
transactionsType: string = 'all';
@ -65,6 +65,9 @@ export class AccountDetailsComponent implements OnInit {
submitted: boolean = false;
bloxbergLink: string;
tokenSymbol: string;
category: string;
area: string;
areaType: string;
constructor(
private formBuilder: FormBuilder,
@ -91,7 +94,7 @@ export class AccountDetailsComponent implements OnInit {
firstName: ['', Validators.required],
lastName: ['', Validators.required],
phoneNumber: ['', Validators.required],
age: ['', Validators.required],
age: [''],
type: ['', Validators.required],
bio: ['', Validators.required],
gender: ['', Validators.required],
@ -112,6 +115,21 @@ export class AccountDetailsComponent implements OnInit {
this.account = res;
this.cdr.detectChanges();
this.loggingService.sendInfoLevelMessage(this.account);
this.locationService.areaNamesSubject.subscribe((response) => {
this.area = this.locationService.getAreaNameByLocation(
this.account.location.area_name,
response
);
this.cdr.detectChanges();
this.locationService.areaTypesSubject.subscribe((result) => {
this.areaType = this.locationService.getAreaTypeByArea(this.area, result);
this.cdr.detectChanges();
});
});
this.userService.categoriesSubject.subscribe((result) => {
this.category = this.userService.getCategoryByProduct(this.account.products[0], result);
this.cdr.detectChanges();
});
const fullName = this.account.vcard?.fn[0].value.split(' ');
this.accountInfoForm.patchValue({
firstName: fullName[0].split(',')[0],
@ -121,26 +139,10 @@ export class AccountDetailsComponent implements OnInit {
type: this.account.type,
bio: this.account.products,
gender: this.account.gender,
businessCategory:
this.account.category ||
this.userService.getCategoryByProduct(this.account.products[0]),
businessCategory: this.account.category || this.category || 'other',
userLocation: this.account.location.area_name,
location:
this.account.location.area ||
this.locationService
.getAreaNameByLocation(this.account.location.area_name)
.pipe(first())
.subscribe((response) => {
return response;
}),
locationType:
this.account.location.area_type ||
this.locationService
.getAreaTypeByArea(this.accountInfoFormStub.location.value)
.pipe(first())
.subscribe((response) => {
return response;
}),
location: this.account.location.area || this.area || 'other',
locationType: this.account.location.area_type || this.areaType || 'other',
});
this.userService
.getAccountStatus(this.account.vcard?.tel[0].value)
@ -166,18 +168,18 @@ export class AccountDetailsComponent implements OnInit {
this.transactions = transactions;
this.cdr.detectChanges();
});
this.userService
.getCategories()
.pipe(first())
.subscribe((res) => (this.categories = res));
this.locationService
.getAreaNames()
.pipe(first())
.subscribe((res) => (this.areaNames = res));
this.locationService
.getAreaTypes()
.pipe(first())
.subscribe((res) => (this.areaTypes = res));
this.userService.getCategories();
this.userService.categoriesSubject.subscribe((res) => {
this.categories = Object.keys(res);
});
this.locationService.getAreaNames();
this.locationService.areaNamesSubject.subscribe((res) => {
this.areaNames = Object.keys(res);
});
this.locationService.getAreaTypes();
this.locationService.areaTypesSubject.subscribe((res) => {
this.areaTypes = Object.keys(res);
});
this.userService
.getAccountTypes()
.pipe(first())
@ -261,7 +263,7 @@ export class AccountDetailsComponent implements OnInit {
});
} else {
this.transactionsDataSource.data = this.transactions.filter(
(transaction) => transaction.type === this.transactionsType
(transaction) => transaction.type + 's' === this.transactionsType
);
}
}

View File

@ -28,10 +28,7 @@ export class AccountSearchComponent implements OnInit {
private formBuilder: FormBuilder,
private userService: UserService,
private router: Router
) {}
async ngOnInit(): Promise<void> {
await this.userService.init();
) {
this.nameSearchForm = this.formBuilder.group({
name: ['', Validators.required],
});
@ -43,6 +40,10 @@ export class AccountSearchComponent implements OnInit {
});
}
async ngOnInit(): Promise<void> {
await this.userService.init();
}
get nameSearchFormStub(): any {
return this.nameSearchForm.controls;
}

View File

@ -89,7 +89,9 @@
<ng-container matColumnDef="balance">
<mat-header-cell *matHeaderCellDef mat-sort-header> BALANCE </mat-header-cell>
<mat-cell *matCellDef="let user"> {{ user?.balance | tokenRatio }} </mat-cell>
<mat-cell *matCellDef="let user">
{{ user?.balance | tokenRatio }} {{ tokenSymbol | uppercase }}
</mat-cell>
</ng-container>
<ng-container matColumnDef="location">

View File

@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, OnInit, ViewChild } from '@angular/
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { LoggingService, UserService } from '@app/_services';
import { LoggingService, TokenService, UserService } from '@app/_services';
import { Router } from '@angular/router';
import { exportCsv } from '@app/_helpers';
import { strip0x } from '@src/assets/js/ethtx/dist/hex';
@ -24,6 +24,7 @@ export class AccountsComponent implements OnInit {
pageSizeOptions: Array<number> = [10, 20, 50, 100];
accountsType: string = 'all';
accountTypes: Array<string>;
tokenSymbol: string;
@ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort;
@ -31,11 +32,13 @@ export class AccountsComponent implements OnInit {
constructor(
private userService: UserService,
private loggingService: LoggingService,
private router: Router
private router: Router,
private tokenService: TokenService
) {}
async ngOnInit(): Promise<void> {
await this.userService.init();
await this.tokenService.init();
try {
// TODO it feels like this should be in the onInit handler
await this.userService.loadAccounts(100);
@ -52,6 +55,11 @@ export class AccountsComponent implements OnInit {
.getAccountTypes()
.pipe(first())
.subscribe((res) => (this.accountTypes = res));
this.tokenService.load.subscribe(async (status: boolean) => {
if (status) {
this.tokenSymbol = await this.tokenService.getTokenSymbol();
}
});
}
doFilter(value: string): void {

View File

@ -3,7 +3,6 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { LocationService, UserService } from '@app/_services';
import { CustomErrorStateMatcher } from '@app/_helpers';
import { first } from 'rxjs/operators';
import { AreaName, Category } from '@app/_models';
@Component({
selector: 'app-create-account',
@ -15,8 +14,8 @@ export class CreateAccountComponent implements OnInit {
createForm: FormGroup;
matcher: CustomErrorStateMatcher = new CustomErrorStateMatcher();
submitted: boolean = false;
categories: Array<Category>;
areaNames: Array<AreaName>;
categories: Array<string>;
areaNames: Array<string>;
accountTypes: Array<string>;
genders: Array<string>;
@ -40,14 +39,14 @@ export class CreateAccountComponent implements OnInit {
referrer: ['', Validators.required],
businessCategory: ['', Validators.required],
});
this.userService
.getCategories()
.pipe(first())
.subscribe((res) => (this.categories = res));
this.locationService
.getAreaNames()
.pipe(first())
.subscribe((res) => (this.areaNames = res));
this.userService.getCategories();
this.userService.categoriesSubject.subscribe((res) => {
this.categories = Object.keys(res);
});
this.locationService.getAreaNames();
this.locationService.areaNamesSubject.subscribe((res) => {
this.areaNames = Object.keys(res);
});
this.userService
.getAccountTypes()
.pipe(first())

View File

@ -1,4 +1,5 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { environment } from '@src/environments/environment';
@Component({
selector: 'app-pages',
@ -7,7 +8,7 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PagesComponent {
url: string = 'https://dashboard.sarafu.network/';
url: string = environment.dashboardUrl;
constructor() {}
}

View File

@ -79,7 +79,7 @@ export class TransactionsComponent implements OnInit, AfterViewInit {
});
} else {
this.transactionDataSource.data = this.transactions.filter(
(transaction) => transaction.type === this.transactionsType
(transaction) => transaction.type + 's' === this.transactionsType
);
}
}

View File

@ -13,4 +13,5 @@ export const environment = {
cicUssdUrl: 'https://user.dev.grassrootseconomics.net',
registryAddress: '0xea6225212005e86a4490018ded4bf37f3e772161',
trustedDeclaratorAddress: '0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C',
dashboardUrl: 'https://dashboard.sarafu.network/',
};

View File

@ -13,4 +13,5 @@ export const environment = {
cicUssdUrl: 'https://user.dev.grassrootseconomics.net',
registryAddress: '0xea6225212005e86a4490018ded4bf37f3e772161',
trustedDeclaratorAddress: '0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C',
dashboardUrl: 'https://dashboard.sarafu.network/',
};

View File

@ -13,4 +13,5 @@ export const environment = {
cicUssdUrl: 'https://user.dev.grassrootseconomics.net',
registryAddress: '0xea6225212005e86a4490018ded4bf37f3e772161',
trustedDeclaratorAddress: '0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C',
dashboardUrl: 'https://dashboard.sarafu.network/',
};

View File

@ -77,8 +77,8 @@ footer.footer {
top: 0;
left: 0;
z-index: 9999;
min-width: 250px;
max-width: 250px;
min-width: 200px;
max-width: 200px;
height: 100vh;
background: #313a46;
color: #fff;