Daniel 1 год назад
Родитель
Сommit
76510ca5cd
72 измененных файлов: 160 добавлений и 6305 удалений
  1. +6
    -3
      angular/src/app/_components/list/list.component.ts
  2. +1
    -1
      angular/src/app/_components/paging/paging.component.html
  3. +2
    -2
      angular/src/app/_components/search-select/search-select.component.html
  4. +11
    -143
      angular/src/app/_components/search-select/search-select.component.ts
  5. +1
    -0
      angular/src/app/_interfaces/AbstractCreateDataComponent.ts
  6. +1
    -0
      angular/src/app/_views/location/location-list/location-list.component.html
  7. +5
    -1
      angular/src/app/_views/location/location-list/location-list.component.ts
  8. +24
    -0
      angular/src/app/_views/location/location-new/location-new.component.html
  9. +0
    -0
      angular/src/app/_views/location/location-new/location-new.component.scss
  10. +23
    -0
      angular/src/app/_views/location/location-new/location-new.component.spec.ts
  11. +55
    -0
      angular/src/app/_views/location/location-new/location-new.component.ts
  12. +2
    -19
      angular/src/app/_views/zone/zone-list/zone-list.component.ts
  13. +11
    -1
      angular/src/app/_views/zone/zone-new/zone-new.component.html
  14. +1
    -3
      angular/src/app/_views/zone/zone-new/zone-new.component.ts
  15. +2
    -0
      angular/src/app/app.module.ts
  16. +1
    -0
      angular/src/app/core/api/v1/.openapi-generator/FILES
  17. +0
    -381
      angular/src/app/core/api/v1/api/accountTradePileItem.service.ts
  18. +0
    -434
      angular/src/app/core/api/v1/api/candidate.service.ts
  19. +0
    -259
      angular/src/app/core/api/v1/api/candidateStat.service.ts
  20. +0
    -166
      angular/src/app/core/api/v1/api/candidateStockAccounts.service.ts
  21. +0
    -246
      angular/src/app/core/api/v1/api/config.service.ts
  22. +0
    -456
      angular/src/app/core/api/v1/api/gameAccount.service.ts
  23. +0
    -264
      angular/src/app/core/api/v1/api/logAccountCredit.service.ts
  24. +0
    -281
      angular/src/app/core/api/v1/api/logAccountProfit.service.ts
  25. +0
    -288
      angular/src/app/core/api/v1/api/logAccountSoldItem.service.ts
  26. +0
    -264
      angular/src/app/core/api/v1/api/logGeneral.service.ts
  27. +0
    -419
      angular/src/app/core/api/v1/api/logTotalProfit.service.ts
  28. +0
    -246
      angular/src/app/core/api/v1/api/modeConfig.service.ts
  29. +0
    -424
      angular/src/app/core/api/v1/api/player.service.ts
  30. +0
    -424
      angular/src/app/core/api/v1/api/rarity.service.ts
  31. +0
    -162
      angular/src/app/core/api/v1/api/systemStat.service.ts
  32. +0
    -47
      angular/src/app/core/api/v1/model/accountTradePileItem.ts
  33. +0
    -53
      angular/src/app/core/api/v1/model/accountTradePileItemJsonld.ts
  34. +0
    -20
      angular/src/app/core/api/v1/model/accountTradePileItemJsonldContext.ts
  35. +0
    -28
      angular/src/app/core/api/v1/model/accountTradePileItemJsonldContextOneOf.ts
  36. +0
    -23
      angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200Response.ts
  37. +0
    -21
      angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearch.ts
  38. +0
    -20
      angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner.ts
  39. +0
    -22
      angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraView.ts
  40. +0
    -23
      angular/src/app/core/api/v1/model/apiCandidateStatsGetCollection200Response.ts
  41. +0
    -23
      angular/src/app/core/api/v1/model/apiCandidatesGetCollection200Response.ts
  42. +0
    -23
      angular/src/app/core/api/v1/model/apiGameAccountsGetCollection200Response.ts
  43. +0
    -23
      angular/src/app/core/api/v1/model/apiLogAccountCreditsGetCollection200Response.ts
  44. +0
    -23
      angular/src/app/core/api/v1/model/apiLogAccountProfitsGetCollection200Response.ts
  45. +0
    -23
      angular/src/app/core/api/v1/model/apiLogAccountSoldItemsGetCollection200Response.ts
  46. +0
    -23
      angular/src/app/core/api/v1/model/apiLogGeneralsGetCollection200Response.ts
  47. +0
    -23
      angular/src/app/core/api/v1/model/apiLogTotalProfitsGetCollection200Response.ts
  48. +0
    -23
      angular/src/app/core/api/v1/model/apiPlayersGetCollection200Response.ts
  49. +0
    -23
      angular/src/app/core/api/v1/model/apiRaritiesGetCollection200Response.ts
  50. +0
    -70
      angular/src/app/core/api/v1/model/candidate.ts
  51. +0
    -77
      angular/src/app/core/api/v1/model/candidateJsonld.ts
  52. +0
    -73
      angular/src/app/core/api/v1/model/candidateStatJsonld.ts
  53. +0
    -26
      angular/src/app/core/api/v1/model/candidateStockAccountsJsonld.ts
  54. +0
    -28
      angular/src/app/core/api/v1/model/config.ts
  55. +0
    -32
      angular/src/app/core/api/v1/model/configJsonld.ts
  56. +0
    -74
      angular/src/app/core/api/v1/model/gameAccount.ts
  57. +0
    -79
      angular/src/app/core/api/v1/model/gameAccountJsonld.ts
  58. +0
    -28
      angular/src/app/core/api/v1/model/logAccountCreditJsonld.ts
  59. +0
    -56
      angular/src/app/core/api/v1/model/logAccountProfitJsonld.ts
  60. +0
    -45
      angular/src/app/core/api/v1/model/logAccountSoldItemJsonld.ts
  61. +0
    -56
      angular/src/app/core/api/v1/model/logGeneralJsonld.ts
  62. +0
    -51
      angular/src/app/core/api/v1/model/logTotalProfit.ts
  63. +0
    -55
      angular/src/app/core/api/v1/model/logTotalProfitJsonld.ts
  64. +0
    -21
      angular/src/app/core/api/v1/model/modeConfig.ts
  65. +0
    -25
      angular/src/app/core/api/v1/model/modeConfigJsonld.ts
  66. +0
    -25
      angular/src/app/core/api/v1/model/player.ts
  67. +0
    -29
      angular/src/app/core/api/v1/model/playerJsonld.ts
  68. +0
    -25
      angular/src/app/core/api/v1/model/rarity.ts
  69. +0
    -29
      angular/src/app/core/api/v1/model/rarityJsonld.ts
  70. +0
    -45
      angular/src/app/core/api/v1/model/systemStatJsonld.ts
  71. +13
    -4
      angular/src/assets/i18n/en.json
  72. +1
    -1
      angular/src/assets/scss/_basics.scss

+ 6
- 3
angular/src/app/_components/list/list.component.ts Просмотреть файл

@@ -386,11 +386,14 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
}

public onCreateData() {
console.log('sddssdssd');
this.appHelperService.openModal(
this.createDataComponent,
null,
this.getData
);
}

public getFilterJsonString(): any
{
public getFilterJsonString(): any {
return JSON.stringify(this.filterObj);
}



+ 1
- 1
angular/src/app/_components/paging/paging.component.html Просмотреть файл

@@ -36,7 +36,7 @@
(click)="getData()"><span class="bi bi-arrow-clockwise"></span>
</button>
<button *ngIf="showCreateDataButton" type="button" class="btn btn-primary ms-3"
(click)="onCreateData()"><span class="bi bi-bookmark-plus"></span>
(click)="onCreateData()"><span class="bi bi-plus-square"></span>
</button>
</div>
</div>


+ 2
- 2
angular/src/app/_components/search-select/search-select.component.html Просмотреть файл

@@ -3,7 +3,7 @@
<p #paragraphRef (click)="openSearchBox()" [class.search-empty]="!searchBoxFilled"></p>
<span class="spt-clear" *ngIf="searchBoxFilled" (click)="clearSearch()"></span>
</div>
<div *ngIf="displayAsButton" (click)="openSearchBox()" class="btn btn-primary mb-2">{{ 'basic.pleaseChoose' | translate }}</div>
<div *ngIf="displayAsButton" (click)="openSearchBox()" class="btn btn-primary mb-2">{{ 'basic.logout' | translate }}</div>
<div class="search-toggle" [class.search-box-open]="searchBoxOpen">
<app-list #listComponent
[listId]="'searchSelect'"
@@ -11,7 +11,7 @@
[onRowSelectedFunction]="onRowSelected"
[listColDefinitions]="listColDefinitions"
[showDetailButton]="false"
[showPosition]="false"
[showFilterBar]="false"
[onSortFunction]="onSortChange"
>
</app-list>


+ 11
- 143
angular/src/app/_components/search-select/search-select.component.ts Просмотреть файл

@@ -98,155 +98,23 @@ export class SearchSelectComponent implements OnInit, AfterViewInit {
onSortChange = (sortState: Sort) => {
}

public static getDefaultColDefAccountsSniping(subResource?: string): ListColDefinition[] {
return [
ListComponent.getDefaultColPosition(),
public static getDefaultColDefZones(subResource?: string): ListColDefinition[] {
return [
{
name: 'profile',
text: 'game_account.profile',
type: ListComponent.COLUMN_TYPE_TEXT_BOLD,
field: 'profile',
sortable: true,
//subResource: subResource,
} as ListColDefinition,
{
name: 'credits',
text: 'game_account.credits',
type: ListComponent.COLUMN_TYPE_NUMBER_BOLD,
field: 'credits',
//subResource: subResource,
sortable: true,
} as ListColDefinition,
{
name: 'running',
text: 'sniping.running',
type: ListComponent.COLUMN_TYPE_BOOLEAN,
field: 'running',
sortable: true,
filterType: FilterBarComponent.FILTER_TYPE_BOOLEAN,
} as ListColDefinition,
{
name: 'blocked',
text: 'sniping.blocked',
type: ListComponent.COLUMN_TYPE_BOOLEAN,
field: 'blocked',
sortable: true,
filterType: FilterBarComponent.FILTER_TYPE_BOOLEAN,
} as ListColDefinition,
{
name: 'snipingCnt1h',
text: 'sniping.snipingCnt1h',
type: ListComponent.COLUMN_TYPE_NUMBER,
field: 'snipingCnt1h',
sortable: true,
} as ListColDefinition,
{
name: 'snipingCnt3h',
text: 'sniping.snipingCnt3h',
type: ListComponent.COLUMN_TYPE_NUMBER,
field: 'snipingCnt3h',
sortable: true,
} as ListColDefinition,
{
name: 'snipingCnt6h',
text: 'sniping.snipingCnt6h',
type: ListComponent.COLUMN_TYPE_NUMBER,
field: 'snipingCnt6h',
sortable: true,
} as ListColDefinition,
{
name: 'snipingCnt12h',
text: 'sniping.snipingCnt12h',
type: ListComponent.COLUMN_TYPE_NUMBER,
field: 'snipingCnt12h',
sortable: true,
} as ListColDefinition,
{
name: 'snipingCnt24h',
text: 'sniping.snipingCnt24h',
type: ListComponent.COLUMN_TYPE_NUMBER,
field: 'snipingCnt24h',
sortable: true,
} as ListColDefinition,
{
name: 'snipingCnt3d',
text: 'sniping.snipingCnt3d',
type: ListComponent.COLUMN_TYPE_NUMBER,
field: 'snipingCnt3d',
sortable: true,
} as ListColDefinition,
{
name: 'snipingCnt1w',
text: 'sniping.snipingCnt1w',
type: ListComponent.COLUMN_TYPE_NUMBER,
field: 'snipingCnt1w',
sortable: true,
} as ListColDefinition,
{
name: 'snipingDate',
text: 'game_account.snipingDate',
type: ListComponent.COLUMN_TYPE_DATE,
field: 'snipingDate',
name: 'name',
text: 'common.name',
type: ListComponent.COLUMN_TYPE_TEXT,
field: 'name',
sortable: true,
filterType: FilterBarComponent.FILTER_TYPE_TEXT,
} as ListColDefinition,
{
name: 'relistDate',
text: 'game_account.relistDate',
name: 'createdAt',
text: 'common.created_at',
type: ListComponent.COLUMN_TYPE_DATE,
field: 'relistDate',
sortable: true,
} as ListColDefinition,
];
}

public static getDefaultColDefCandidates(subResource?: string): ListColDefinition[] {
return [
ListComponent.getDefaultColPosition(),
{
name: 'image',
text: 'basic.image',
type: ListComponent.COLUMN_TYPE_COMBINED_IMAGES,
multipleFields: ['cardImageUrl', 'imageUrl', 'rating'],
} as ListColDefinition,
{
name: 'firstname',
text: 'candidate.firstname',
type: ListComponent.COLUMN_TYPE_TEXT_BOLD,
field: 'firstname',
sortingSubResource: 'player',
sortable: true,
} as ListColDefinition,
{
name: 'lastname',
text: 'candidate.lastname',
type: ListComponent.COLUMN_TYPE_TEXT_BOLD,
field: 'lastname',
sortingSubResource: 'player',
sortable: true,
} as ListColDefinition,
{
name: 'nickname',
text: 'candidate.nickname',
type: ListComponent.COLUMN_TYPE_TEXT_BOLD,
field: 'nickname',
sortingSubResource: 'player',
sortable: true,
} as ListColDefinition,
{
name: 'rating',
text: 'candidate.rating',
type: ListComponent.COLUMN_TYPE_TEXT_BOLD,
field: 'rating',
sortable: true,
} as ListColDefinition,
{
name: 'rarityName',
text: 'candidate.rarityName',
type: ListComponent.COLUMN_TYPE_TEXT,
field: 'name',
subResource: 'rarity',
sortingSubResource: 'rarity',
field: 'createdAt',
sortable: true,
filterType: FilterBarComponent.FILTER_TYPE_DATE,
} as ListColDefinition,
];
}


+ 1
- 0
angular/src/app/_interfaces/AbstractCreateDataComponent.ts Просмотреть файл

@@ -11,6 +11,7 @@ export abstract class AbstractCreateDataComponent<T> implements CreateDataCompon
form!: FormGroup;

ngOnInit(): void {
this.data = this.getInitialData();
this.form = FormGroupInitializer.initFormGroup(this.form, this.data);
}



+ 1
- 0
angular/src/app/_views/location/location-list/location-list.component.html Просмотреть файл

@@ -5,5 +5,6 @@
[onNavigateToDetailsFunction]="navigateToLocationDetail"
[onSortFunction]="onSortChange"
[listColDefinitions]="listColDefinitions"
[createDataComponent]="LocationNewComponent"
></app-list>
</div>

+ 5
- 1
angular/src/app/_views/location/location-list/location-list.component.ts Просмотреть файл

@@ -9,6 +9,8 @@ import {FilterBarComponent} from "@app/_components/filter-bar/filter-bar.compone
import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type";
import {ROUTE_LOCATIONS} from "@app/app-routing.module";
import {Sort} from "@angular/material/sort";
import {ZoneNewComponent} from "@app/_views/zone/zone-new/zone-new.component";
import {LocationNewComponent} from "@app/_views/location/location-new/location-new.component";

@Component({
selector: 'app-location-list',
@@ -38,7 +40,7 @@ export class LocationListComponent implements OnInit, AfterViewInit {
} as ListColDefinition,
{
name: 'zone',
text: 'location.zone',
text: 'model.zone',
type: ListComponent.COLUMN_TYPE_TEXT,
field: 'name',
sortable: true,
@@ -85,4 +87,6 @@ export class LocationListComponent implements OnInit, AfterViewInit {
this.router.navigate(['/' + ROUTE_LOCATIONS, this.appHelperService.extractId(location.id)]);
}

protected readonly ZoneNewComponent = ZoneNewComponent;
protected readonly LocationNewComponent = LocationNewComponent;
}

+ 24
- 0
angular/src/app/_views/location/location-new/location-new.component.html Просмотреть файл

@@ -0,0 +1,24 @@
<h2>{{ 'basic.new' | translate }} {{ 'model.location' | translate }}</h2>
<div class="spt-form">
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<div class="mb-3">
<label for="name" class="form-label">{{ 'common.name' | translate }}*:</label>
<input type="text" class="form-control" id="name" formControlName="name" required/>
</div>
<div class="mb-3">
<label for="zone" class="form-label">{{ 'model.zone' | translate }}:</label>
<app-search-select #zoneSearchSelect
[formId]="'zoneIri'"
[formLabelLangKey]="'model.zone'"
[documentForm]="zoneForm"
[getDataFunction]="getZones"
[displayedDataField]="'name'"
[listColDefinitions]="SearchSelectComponent.getDefaultColDefZones()"
>
</app-search-select>
<input id="zone" type="hidden" formControlName="zone"/>
</div>
<button type="submit" class="btn btn-primary" [disabled]="form.invalid">{{ 'basic.send' | translate }}
</button>
</form>
</div>

+ 0
- 0
angular/src/app/_views/location/location-new/location-new.component.scss Просмотреть файл


+ 23
- 0
angular/src/app/_views/location/location-new/location-new.component.spec.ts Просмотреть файл

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { LocationNewComponent } from './location-new.component';

describe('LocationNewComponent', () => {
let component: LocationNewComponent;
let fixture: ComponentFixture<LocationNewComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [LocationNewComponent]
})
.compileComponents();
fixture = TestBed.createComponent(LocationNewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 55
- 0
angular/src/app/_views/location/location-new/location-new.component.ts Просмотреть файл

@@ -0,0 +1,55 @@
import {Component, EventEmitter, Input, Output} from '@angular/core';
import {AbstractCreateDataComponent} from "@app/_interfaces/AbstractCreateDataComponent";
import {LocationJsonld, LocationService, ZoneService} from "@app/core/api/v1";
import {ModalStatus} from "@app/_helpers/modal.states";
import {FormGroup} from "@angular/forms";
import {locationForm, zoneForm} from "@app/_forms/apiForms";
import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type";
import {SearchSelectComponent} from "@app/_components/search-select/search-select.component";

@Component({
selector: 'app-location-new',
templateUrl: './location-new.component.html',
styleUrl: './location-new.component.scss'
})
export class LocationNewComponent extends AbstractCreateDataComponent<LocationJsonld>{
@Input() public override data!: LocationJsonld;
@Output() public override submit: EventEmitter<ModalStatus> = new EventEmitter<ModalStatus>();

override form: FormGroup = locationForm;

constructor(
private locationService: LocationService,
private zoneService: ZoneService,
) {
super();
}

getInitialData(): LocationJsonld {
return {} as LocationJsonld;
}

getZones: ListGetDataFunctionType = (index: number, pageSize: number, term?: string) => {
return this.zoneService.zonesGetCollection(
index,
pageSize,
term
);
}

onSubmit() {
if (this.form.valid) {
this.locationService.locationsPost(
this.form.value as LocationJsonld
).subscribe(
data => {
this.form.reset();
this.submit.emit(ModalStatus.Submitted);
}
);
}
}

protected readonly zoneForm = zoneForm;
protected readonly SearchSelectComponent = SearchSelectComponent;
}

+ 2
- 19
angular/src/app/_views/zone/zone-list/zone-list.component.ts Просмотреть файл

@@ -9,6 +9,7 @@ import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-funct
import {Sort} from "@angular/material/sort";
import {ROUTE_ZONES} from "@app/app-routing.module";
import {ZoneNewComponent} from "@app/_views/zone/zone-new/zone-new.component";
import {SearchSelectComponent} from "@app/_components/search-select/search-select.component";

@Component({
selector: 'app-zone-list',
@@ -25,25 +26,7 @@ export class ZoneListComponent {
private router: Router,
protected appHelperService: AppHelperService,
) {

this.listColDefinitions = [
{
name: 'name',
text: 'common.name',
type: ListComponent.COLUMN_TYPE_TEXT,
field: 'name',
sortable: true,
filterType: FilterBarComponent.FILTER_TYPE_TEXT,
} as ListColDefinition,
{
name: 'creationDate',
text: 'common.creation_date',
type: ListComponent.COLUMN_TYPE_DATE,
field: 'creationDate',
sortable: true,
filterType: FilterBarComponent.FILTER_TYPE_DATE,
} as ListColDefinition,
];
this.listColDefinitions = SearchSelectComponent.getDefaultColDefZones();
}

ngOnInit() {


+ 11
- 1
angular/src/app/_views/zone/zone-new/zone-new.component.html Просмотреть файл

@@ -1 +1,11 @@
<p>zone-new works!</p>
<h2>{{ 'basic.new' | translate }} {{ 'model.zone' | translate }}</h2>
<div class="spt-form">
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<div class="mb-3">
<label for="name" class="form-label">{{ 'common.name' | translate }}*:</label>
<input type="text" class="form-control" id="name" formControlName="name" required/>
</div>
<button type="submit" class="btn btn-primary" [disabled]="form.invalid">{{ 'basic.send' | translate }}
</button>
</form>
</div>

+ 1
- 3
angular/src/app/_views/zone/zone-new/zone-new.component.ts Просмотреть файл

@@ -11,7 +11,6 @@ import {AbstractCreateDataComponent} from "@app/_interfaces/AbstractCreateDataCo
styleUrl: './zone-new.component.scss'
})
export class ZoneNewComponent extends AbstractCreateDataComponent<ZoneJsonld>{

@Input() public override data!: ZoneJsonld;
@Output() public override submit: EventEmitter<ModalStatus> = new EventEmitter<ModalStatus>();

@@ -24,8 +23,7 @@ export class ZoneNewComponent extends AbstractCreateDataComponent<ZoneJsonld>{
}

getInitialData(): ZoneJsonld {
let zone: ZoneJsonld = {} as ZoneJsonld;
return zone;
return {} as ZoneJsonld;
}

onSubmit() {


+ 2
- 0
angular/src/app/app.module.ts Просмотреть файл

@@ -54,6 +54,7 @@ import { ZoneListComponent } from './_views/zone/zone-list/zone-list.component';
import { VesselListComponent } from './_views/vessel/vessel-list/vessel-list.component';
import { ShippingCompanyListComponent } from './_views/shipping-company/shipping-company-list/shipping-company-list.component';
import { ZoneNewComponent } from './_views/zone/zone-new/zone-new.component';
import { LocationNewComponent } from './_views/location/location-new/location-new.component';

registerLocaleData(localeDe, 'de-DE');

@@ -130,6 +131,7 @@ export function HttpLoaderFactory(http: HttpClient) {
VesselListComponent,
ShippingCompanyListComponent,
ZoneNewComponent,
LocationNewComponent,
],
providers: [
{provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true},


+ 1
- 0
angular/src/app/core/api/v1/.openapi-generator/FILES Просмотреть файл

@@ -1,4 +1,5 @@
.gitignore
.openapi-generator-ignore
README.md
api.module.ts
api/api.ts


+ 0
- 381
angular/src/app/core/api/v1/api/accountTradePileItem.service.ts Просмотреть файл

@@ -1,381 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { AccountTradePileItem } from '../model/accountTradePileItem';
// @ts-ignore
import { AccountTradePileItemJsonld } from '../model/accountTradePileItemJsonld';
// @ts-ignore
import { ApiAccountTradePileItemsGetCollection200Response } from '../model/apiAccountTradePileItemsGetCollection200Response';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class AccountTradePileItemService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of AccountTradePileItem resources.
* Retrieves the collection of AccountTradePileItem resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param account
* @param account2
* @param candidateItem
* @param candidateItem2
* @param candidateNameSearch
* @param accountTmOpenFilter Filter items based on the tmOpen value of the associated account
* @param customJsonFilter
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public accountTradePileItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiAccountTradePileItemsGetCollection200Response>;
public accountTradePileItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiAccountTradePileItemsGetCollection200Response>>;
public accountTradePileItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiAccountTradePileItemsGetCollection200Response>>;
public accountTradePileItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (account !== undefined && account !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>account, 'account');
}
if (account2) {
account2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'account[]');
})
}
if (candidateItem !== undefined && candidateItem !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>candidateItem, 'candidateItem');
}
if (candidateItem2) {
candidateItem2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'candidateItem[]');
})
}
if (candidateNameSearch !== undefined && candidateNameSearch !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>candidateNameSearch, 'candidateNameSearch');
}
if (accountTmOpenFilter !== undefined && accountTmOpenFilter !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>accountTmOpenFilter, 'accountTmOpenFilter');
}
if (customJsonFilter !== undefined && customJsonFilter !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonFilter, 'custom_json_filter');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/account_trade_pile_items`;
return this.httpClient.request<ApiAccountTradePileItemsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a AccountTradePileItem resource.
* Retrieves a AccountTradePileItem resource.
* @param id AccountTradePileItem identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public accountTradePileItemsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<AccountTradePileItemJsonld>;
public accountTradePileItemsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AccountTradePileItemJsonld>>;
public accountTradePileItemsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AccountTradePileItemJsonld>>;
public accountTradePileItemsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling accountTradePileItemsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/account_trade_pile_items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<AccountTradePileItemJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the AccountTradePileItem resource.
* Updates the AccountTradePileItem resource.
* @param id AccountTradePileItem identifier
* @param accountTradePileItem The updated AccountTradePileItem resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public accountTradePileItemsIdPatch(id: string, accountTradePileItem: AccountTradePileItem, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<AccountTradePileItemJsonld>;
public accountTradePileItemsIdPatch(id: string, accountTradePileItem: AccountTradePileItem, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AccountTradePileItemJsonld>>;
public accountTradePileItemsIdPatch(id: string, accountTradePileItem: AccountTradePileItem, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AccountTradePileItemJsonld>>;
public accountTradePileItemsIdPatch(id: string, accountTradePileItem: AccountTradePileItem, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling accountTradePileItemsIdPatch.');
}
if (accountTradePileItem === null || accountTradePileItem === undefined) {
throw new Error('Required parameter accountTradePileItem was null or undefined when calling accountTradePileItemsIdPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/account_trade_pile_items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<AccountTradePileItemJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: accountTradePileItem,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 434
angular/src/app/core/api/v1/api/candidate.service.ts Просмотреть файл

@@ -1,434 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiCandidatesGetCollection200Response } from '../model/apiCandidatesGetCollection200Response';
// @ts-ignore
import { Candidate } from '../model/candidate';
// @ts-ignore
import { CandidateJsonld } from '../model/candidateJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class CandidateService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of Candidate resources.
* Retrieves the collection of Candidate resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param candidateNameSearch
* @param customJsonFilter
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public candidatesGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiCandidatesGetCollection200Response>;
public candidatesGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiCandidatesGetCollection200Response>>;
public candidatesGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiCandidatesGetCollection200Response>>;
public candidatesGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (candidateNameSearch !== undefined && candidateNameSearch !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>candidateNameSearch, 'candidateNameSearch');
}
if (customJsonFilter !== undefined && customJsonFilter !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonFilter, 'custom_json_filter');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/candidates`;
return this.httpClient.request<ApiCandidatesGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a Candidate resource.
* Retrieves a Candidate resource.
* @param id Candidate identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public candidatesIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<CandidateJsonld>;
public candidatesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CandidateJsonld>>;
public candidatesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CandidateJsonld>>;
public candidatesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling candidatesIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/candidates/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<CandidateJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the Candidate resource.
* Updates the Candidate resource.
* @param id Candidate identifier
* @param candidate The updated Candidate resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public candidatesIdPatch(id: string, candidate: Candidate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<CandidateJsonld>;
public candidatesIdPatch(id: string, candidate: Candidate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CandidateJsonld>>;
public candidatesIdPatch(id: string, candidate: Candidate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CandidateJsonld>>;
public candidatesIdPatch(id: string, candidate: Candidate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling candidatesIdPatch.');
}
if (candidate === null || candidate === undefined) {
throw new Error('Required parameter candidate was null or undefined when calling candidatesIdPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/candidates/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<CandidateJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: candidate,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Creates a Candidate resource.
* Creates a Candidate resource.
* @param candidateJsonld The new Candidate resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public candidatesPost(candidateJsonld: CandidateJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<CandidateJsonld>;
public candidatesPost(candidateJsonld: CandidateJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CandidateJsonld>>;
public candidatesPost(candidateJsonld: CandidateJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CandidateJsonld>>;
public candidatesPost(candidateJsonld: CandidateJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (candidateJsonld === null || candidateJsonld === undefined) {
throw new Error('Required parameter candidateJsonld was null or undefined when calling candidatesPost.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/ld+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/candidates`;
return this.httpClient.request<CandidateJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: candidateJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 259
angular/src/app/core/api/v1/api/candidateStat.service.ts Просмотреть файл

@@ -1,259 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiCandidateStatsGetCollection200Response } from '../model/apiCandidateStatsGetCollection200Response';
// @ts-ignore
import { CandidateStatJsonld } from '../model/candidateStatJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class CandidateStatService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of CandidateStat resources.
* Retrieves the collection of CandidateStat resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param candidateNameSearch
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public candidateStatsGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiCandidateStatsGetCollection200Response>;
public candidateStatsGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiCandidateStatsGetCollection200Response>>;
public candidateStatsGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiCandidateStatsGetCollection200Response>>;
public candidateStatsGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (candidateNameSearch !== undefined && candidateNameSearch !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>candidateNameSearch, 'candidateNameSearch');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/candidate_stats`;
return this.httpClient.request<ApiCandidateStatsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a CandidateStat resource.
* Retrieves a CandidateStat resource.
* @param id CandidateStat identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public candidateStatsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<CandidateStatJsonld>;
public candidateStatsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CandidateStatJsonld>>;
public candidateStatsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CandidateStatJsonld>>;
public candidateStatsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling candidateStatsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/candidate_stats/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<CandidateStatJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 166
angular/src/app/core/api/v1/api/candidateStockAccounts.service.ts Просмотреть файл

@@ -1,166 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { CandidateStockAccountsJsonld } from '../model/candidateStockAccountsJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class CandidateStockAccountsService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the stock and missing accounts for a candidate item
* Retrieves a CandidateStockAccounts resource.
* @param id Candidate Item ID
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public candidateItemsIdstockAccountsGet(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<CandidateStockAccountsJsonld>;
public candidateItemsIdstockAccountsGet(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CandidateStockAccountsJsonld>>;
public candidateItemsIdstockAccountsGet(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CandidateStockAccountsJsonld>>;
public candidateItemsIdstockAccountsGet(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling candidateItemsIdstockAccountsGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/candidate-items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}/stock-accounts`;
return this.httpClient.request<CandidateStockAccountsJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 246
angular/src/app/core/api/v1/api/config.service.ts Просмотреть файл

@@ -1,246 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { Config } from '../model/config';
// @ts-ignore
import { ConfigJsonld } from '../model/configJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class ConfigService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves a Config resource.
* Retrieves a Config resource.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public configGet(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ConfigJsonld>;
public configGet(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ConfigJsonld>>;
public configGet(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ConfigJsonld>>;
public configGet(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/config`;
return this.httpClient.request<ConfigJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the Config resource.
* Updates the Config resource.
* @param config The updated Config resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public configPatch(config: Config, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ConfigJsonld>;
public configPatch(config: Config, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ConfigJsonld>>;
public configPatch(config: Config, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ConfigJsonld>>;
public configPatch(config: Config, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (config === null || config === undefined) {
throw new Error('Required parameter config was null or undefined when calling configPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/config`;
return this.httpClient.request<ConfigJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: config,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 456
angular/src/app/core/api/v1/api/gameAccount.service.ts Просмотреть файл

@@ -1,456 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiGameAccountsGetCollection200Response } from '../model/apiGameAccountsGetCollection200Response';
// @ts-ignore
import { GameAccount } from '../model/gameAccount';
// @ts-ignore
import { GameAccountJsonld } from '../model/gameAccountJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class GameAccountService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of GameAccount resources.
* Retrieves the collection of GameAccount resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param owner
* @param owner2
* @param email
* @param profile
* @param tmOpen
* @param customJsonFilter
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public gameAccountsGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array<string>, email?: string, profile?: string, tmOpen?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiGameAccountsGetCollection200Response>;
public gameAccountsGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array<string>, email?: string, profile?: string, tmOpen?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiGameAccountsGetCollection200Response>>;
public gameAccountsGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array<string>, email?: string, profile?: string, tmOpen?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiGameAccountsGetCollection200Response>>;
public gameAccountsGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array<string>, email?: string, profile?: string, tmOpen?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (owner !== undefined && owner !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>owner, 'owner');
}
if (owner2) {
owner2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'owner[]');
})
}
if (email !== undefined && email !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>email, 'email');
}
if (profile !== undefined && profile !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>profile, 'profile');
}
if (tmOpen !== undefined && tmOpen !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>tmOpen, 'tmOpen');
}
if (customJsonFilter !== undefined && customJsonFilter !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonFilter, 'custom_json_filter');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/game_accounts`;
return this.httpClient.request<ApiGameAccountsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a GameAccount resource.
* Retrieves a GameAccount resource.
* @param id GameAccount identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public gameAccountsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<GameAccountJsonld>;
public gameAccountsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GameAccountJsonld>>;
public gameAccountsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GameAccountJsonld>>;
public gameAccountsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling gameAccountsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/game_accounts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<GameAccountJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the GameAccount resource.
* Updates the GameAccount resource.
* @param id GameAccount identifier
* @param gameAccount The updated GameAccount resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public gameAccountsIdPatch(id: string, gameAccount: GameAccount, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<GameAccountJsonld>;
public gameAccountsIdPatch(id: string, gameAccount: GameAccount, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GameAccountJsonld>>;
public gameAccountsIdPatch(id: string, gameAccount: GameAccount, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GameAccountJsonld>>;
public gameAccountsIdPatch(id: string, gameAccount: GameAccount, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling gameAccountsIdPatch.');
}
if (gameAccount === null || gameAccount === undefined) {
throw new Error('Required parameter gameAccount was null or undefined when calling gameAccountsIdPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/game_accounts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<GameAccountJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: gameAccount,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Creates a GameAccount resource.
* Creates a GameAccount resource.
* @param gameAccountJsonld The new GameAccount resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public gameAccountsPost(gameAccountJsonld: GameAccountJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<GameAccountJsonld>;
public gameAccountsPost(gameAccountJsonld: GameAccountJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GameAccountJsonld>>;
public gameAccountsPost(gameAccountJsonld: GameAccountJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GameAccountJsonld>>;
public gameAccountsPost(gameAccountJsonld: GameAccountJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (gameAccountJsonld === null || gameAccountJsonld === undefined) {
throw new Error('Required parameter gameAccountJsonld was null or undefined when calling gameAccountsPost.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/ld+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/game_accounts`;
return this.httpClient.request<GameAccountJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: gameAccountJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 264
angular/src/app/core/api/v1/api/logAccountCredit.service.ts Просмотреть файл

@@ -1,264 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiLogAccountCreditsGetCollection200Response } from '../model/apiLogAccountCreditsGetCollection200Response';
// @ts-ignore
import { LogAccountCreditJsonld } from '../model/logAccountCreditJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class LogAccountCreditService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of LogAccountCredit resources.
* Retrieves the collection of LogAccountCredit resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param orderCreationDate
* @param orderCredits
* @param orderRevenue
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logAccountCreditsGetCollection(page?: number, itemsPerPage?: number, orderCreationDate?: 'asc' | 'desc', orderCredits?: 'asc' | 'desc', orderRevenue?: 'asc' | 'desc', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiLogAccountCreditsGetCollection200Response>;
public logAccountCreditsGetCollection(page?: number, itemsPerPage?: number, orderCreationDate?: 'asc' | 'desc', orderCredits?: 'asc' | 'desc', orderRevenue?: 'asc' | 'desc', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiLogAccountCreditsGetCollection200Response>>;
public logAccountCreditsGetCollection(page?: number, itemsPerPage?: number, orderCreationDate?: 'asc' | 'desc', orderCredits?: 'asc' | 'desc', orderRevenue?: 'asc' | 'desc', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiLogAccountCreditsGetCollection200Response>>;
public logAccountCreditsGetCollection(page?: number, itemsPerPage?: number, orderCreationDate?: 'asc' | 'desc', orderCredits?: 'asc' | 'desc', orderRevenue?: 'asc' | 'desc', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (orderCreationDate !== undefined && orderCreationDate !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>orderCreationDate, 'order[creationDate]');
}
if (orderCredits !== undefined && orderCredits !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>orderCredits, 'order[credits]');
}
if (orderRevenue !== undefined && orderRevenue !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>orderRevenue, 'order[revenue]');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_account_credits`;
return this.httpClient.request<ApiLogAccountCreditsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a LogAccountCredit resource.
* Retrieves a LogAccountCredit resource.
* @param id LogAccountCredit identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logAccountCreditsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<LogAccountCreditJsonld>;
public logAccountCreditsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LogAccountCreditJsonld>>;
public logAccountCreditsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LogAccountCreditJsonld>>;
public logAccountCreditsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling logAccountCreditsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_account_credits/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<LogAccountCreditJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 281
angular/src/app/core/api/v1/api/logAccountProfit.service.ts Просмотреть файл

@@ -1,281 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiLogAccountProfitsGetCollection200Response } from '../model/apiLogAccountProfitsGetCollection200Response';
// @ts-ignore
import { LogAccountProfitJsonld } from '../model/logAccountProfitJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class LogAccountProfitService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of LogAccountProfit resources.
* Retrieves the collection of LogAccountProfit resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param gameAccount
* @param gameAccount2
* @param isDailyProfit
* @param gameAccountProfile
* @param customJsonFilter
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logAccountProfitsGetCollection(page?: number, itemsPerPage?: number, gameAccount?: string, gameAccount2?: Array<string>, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiLogAccountProfitsGetCollection200Response>;
public logAccountProfitsGetCollection(page?: number, itemsPerPage?: number, gameAccount?: string, gameAccount2?: Array<string>, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiLogAccountProfitsGetCollection200Response>>;
public logAccountProfitsGetCollection(page?: number, itemsPerPage?: number, gameAccount?: string, gameAccount2?: Array<string>, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiLogAccountProfitsGetCollection200Response>>;
public logAccountProfitsGetCollection(page?: number, itemsPerPage?: number, gameAccount?: string, gameAccount2?: Array<string>, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (gameAccount !== undefined && gameAccount !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>gameAccount, 'gameAccount');
}
if (gameAccount2) {
gameAccount2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'gameAccount[]');
})
}
if (isDailyProfit !== undefined && isDailyProfit !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>isDailyProfit, 'isDailyProfit');
}
if (gameAccountProfile !== undefined && gameAccountProfile !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>gameAccountProfile, 'gameAccountProfile');
}
if (customJsonFilter !== undefined && customJsonFilter !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonFilter, 'custom_json_filter');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_account_profits`;
return this.httpClient.request<ApiLogAccountProfitsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a LogAccountProfit resource.
* Retrieves a LogAccountProfit resource.
* @param id LogAccountProfit identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logAccountProfitsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<LogAccountProfitJsonld>;
public logAccountProfitsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LogAccountProfitJsonld>>;
public logAccountProfitsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LogAccountProfitJsonld>>;
public logAccountProfitsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling logAccountProfitsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_account_profits/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<LogAccountProfitJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 288
angular/src/app/core/api/v1/api/logAccountSoldItem.service.ts Просмотреть файл

@@ -1,288 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiLogAccountSoldItemsGetCollection200Response } from '../model/apiLogAccountSoldItemsGetCollection200Response';
// @ts-ignore
import { LogAccountSoldItemJsonld } from '../model/logAccountSoldItemJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class LogAccountSoldItemService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of LogAccountSoldItem resources.
* Retrieves the collection of LogAccountSoldItem resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param account
* @param account2
* @param candidateItem
* @param candidateItem2
* @param candidateNameSearch
* @param customJsonFilter
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logAccountSoldItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiLogAccountSoldItemsGetCollection200Response>;
public logAccountSoldItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiLogAccountSoldItemsGetCollection200Response>>;
public logAccountSoldItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiLogAccountSoldItemsGetCollection200Response>>;
public logAccountSoldItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array<string>, candidateItem?: string, candidateItem2?: Array<string>, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (account !== undefined && account !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>account, 'account');
}
if (account2) {
account2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'account[]');
})
}
if (candidateItem !== undefined && candidateItem !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>candidateItem, 'candidateItem');
}
if (candidateItem2) {
candidateItem2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'candidateItem[]');
})
}
if (candidateNameSearch !== undefined && candidateNameSearch !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>candidateNameSearch, 'candidateNameSearch');
}
if (customJsonFilter !== undefined && customJsonFilter !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonFilter, 'custom_json_filter');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_account_sold_items`;
return this.httpClient.request<ApiLogAccountSoldItemsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a LogAccountSoldItem resource.
* Retrieves a LogAccountSoldItem resource.
* @param id LogAccountSoldItem identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logAccountSoldItemsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<LogAccountSoldItemJsonld>;
public logAccountSoldItemsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LogAccountSoldItemJsonld>>;
public logAccountSoldItemsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LogAccountSoldItemJsonld>>;
public logAccountSoldItemsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling logAccountSoldItemsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_account_sold_items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<LogAccountSoldItemJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 264
angular/src/app/core/api/v1/api/logGeneral.service.ts Просмотреть файл

@@ -1,264 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiLogGeneralsGetCollection200Response } from '../model/apiLogGeneralsGetCollection200Response';
// @ts-ignore
import { LogGeneralJsonld } from '../model/logGeneralJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class LogGeneralService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of LogGeneral resources.
* Retrieves the collection of LogGeneral resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param gameAccountProfile
* @param customJsonFilter
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logGeneralsGetCollection(page?: number, itemsPerPage?: number, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiLogGeneralsGetCollection200Response>;
public logGeneralsGetCollection(page?: number, itemsPerPage?: number, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiLogGeneralsGetCollection200Response>>;
public logGeneralsGetCollection(page?: number, itemsPerPage?: number, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiLogGeneralsGetCollection200Response>>;
public logGeneralsGetCollection(page?: number, itemsPerPage?: number, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (gameAccountProfile !== undefined && gameAccountProfile !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>gameAccountProfile, 'gameAccountProfile');
}
if (customJsonFilter !== undefined && customJsonFilter !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonFilter, 'custom_json_filter');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_generals`;
return this.httpClient.request<ApiLogGeneralsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a LogGeneral resource.
* Retrieves a LogGeneral resource.
* @param id LogGeneral identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logGeneralsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<LogGeneralJsonld>;
public logGeneralsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LogGeneralJsonld>>;
public logGeneralsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LogGeneralJsonld>>;
public logGeneralsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling logGeneralsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_generals/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<LogGeneralJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 419
angular/src/app/core/api/v1/api/logTotalProfit.service.ts Просмотреть файл

@@ -1,419 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiLogTotalProfitsGetCollection200Response } from '../model/apiLogTotalProfitsGetCollection200Response';
// @ts-ignore
import { LogTotalProfit } from '../model/logTotalProfit';
// @ts-ignore
import { LogTotalProfitJsonld } from '../model/logTotalProfitJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class LogTotalProfitService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of LogTotalProfit resources.
* Retrieves the collection of LogTotalProfit resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logTotalProfitsGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiLogTotalProfitsGetCollection200Response>;
public logTotalProfitsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiLogTotalProfitsGetCollection200Response>>;
public logTotalProfitsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiLogTotalProfitsGetCollection200Response>>;
public logTotalProfitsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_total_profits`;
return this.httpClient.request<ApiLogTotalProfitsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a LogTotalProfit resource.
* Retrieves a LogTotalProfit resource.
* @param id LogTotalProfit identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logTotalProfitsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<LogTotalProfitJsonld>;
public logTotalProfitsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LogTotalProfitJsonld>>;
public logTotalProfitsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LogTotalProfitJsonld>>;
public logTotalProfitsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling logTotalProfitsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_total_profits/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<LogTotalProfitJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the LogTotalProfit resource.
* Updates the LogTotalProfit resource.
* @param id LogTotalProfit identifier
* @param logTotalProfit The updated LogTotalProfit resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logTotalProfitsIdPatch(id: string, logTotalProfit: LogTotalProfit, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<LogTotalProfitJsonld>;
public logTotalProfitsIdPatch(id: string, logTotalProfit: LogTotalProfit, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LogTotalProfitJsonld>>;
public logTotalProfitsIdPatch(id: string, logTotalProfit: LogTotalProfit, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LogTotalProfitJsonld>>;
public logTotalProfitsIdPatch(id: string, logTotalProfit: LogTotalProfit, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling logTotalProfitsIdPatch.');
}
if (logTotalProfit === null || logTotalProfit === undefined) {
throw new Error('Required parameter logTotalProfit was null or undefined when calling logTotalProfitsIdPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_total_profits/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<LogTotalProfitJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: logTotalProfit,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Creates a LogTotalProfit resource.
* Creates a LogTotalProfit resource.
* @param logTotalProfitJsonld The new LogTotalProfit resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public logTotalProfitsPost(logTotalProfitJsonld: LogTotalProfitJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<LogTotalProfitJsonld>;
public logTotalProfitsPost(logTotalProfitJsonld: LogTotalProfitJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<LogTotalProfitJsonld>>;
public logTotalProfitsPost(logTotalProfitJsonld: LogTotalProfitJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<LogTotalProfitJsonld>>;
public logTotalProfitsPost(logTotalProfitJsonld: LogTotalProfitJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (logTotalProfitJsonld === null || logTotalProfitJsonld === undefined) {
throw new Error('Required parameter logTotalProfitJsonld was null or undefined when calling logTotalProfitsPost.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/ld+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/log_total_profits`;
return this.httpClient.request<LogTotalProfitJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: logTotalProfitJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 246
angular/src/app/core/api/v1/api/modeConfig.service.ts Просмотреть файл

@@ -1,246 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ModeConfig } from '../model/modeConfig';
// @ts-ignore
import { ModeConfigJsonld } from '../model/modeConfigJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class ModeConfigService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves a ModeConfig resource.
* Retrieves a ModeConfig resource.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public modeConfigGet(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ModeConfigJsonld>;
public modeConfigGet(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ModeConfigJsonld>>;
public modeConfigGet(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ModeConfigJsonld>>;
public modeConfigGet(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/mode_config`;
return this.httpClient.request<ModeConfigJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the ModeConfig resource.
* Updates the ModeConfig resource.
* @param modeConfig The updated ModeConfig resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public modeConfigPatch(modeConfig: ModeConfig, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ModeConfigJsonld>;
public modeConfigPatch(modeConfig: ModeConfig, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ModeConfigJsonld>>;
public modeConfigPatch(modeConfig: ModeConfig, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ModeConfigJsonld>>;
public modeConfigPatch(modeConfig: ModeConfig, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (modeConfig === null || modeConfig === undefined) {
throw new Error('Required parameter modeConfig was null or undefined when calling modeConfigPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/mode_config`;
return this.httpClient.request<ModeConfigJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: modeConfig,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 424
angular/src/app/core/api/v1/api/player.service.ts Просмотреть файл

@@ -1,424 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiPlayersGetCollection200Response } from '../model/apiPlayersGetCollection200Response';
// @ts-ignore
import { Player } from '../model/player';
// @ts-ignore
import { PlayerJsonld } from '../model/playerJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class PlayerService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of Player resources.
* Retrieves the collection of Player resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public playersGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiPlayersGetCollection200Response>;
public playersGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiPlayersGetCollection200Response>>;
public playersGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiPlayersGetCollection200Response>>;
public playersGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/players`;
return this.httpClient.request<ApiPlayersGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a Player resource.
* Retrieves a Player resource.
* @param id Player identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public playersIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<PlayerJsonld>;
public playersIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PlayerJsonld>>;
public playersIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PlayerJsonld>>;
public playersIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling playersIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/players/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<PlayerJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the Player resource.
* Updates the Player resource.
* @param id Player identifier
* @param player The updated Player resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public playersIdPatch(id: string, player: Player, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<PlayerJsonld>;
public playersIdPatch(id: string, player: Player, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PlayerJsonld>>;
public playersIdPatch(id: string, player: Player, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PlayerJsonld>>;
public playersIdPatch(id: string, player: Player, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling playersIdPatch.');
}
if (player === null || player === undefined) {
throw new Error('Required parameter player was null or undefined when calling playersIdPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/players/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<PlayerJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: player,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Creates a Player resource.
* Creates a Player resource.
* @param playerJsonld The new Player resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public playersPost(playerJsonld: PlayerJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<PlayerJsonld>;
public playersPost(playerJsonld: PlayerJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PlayerJsonld>>;
public playersPost(playerJsonld: PlayerJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PlayerJsonld>>;
public playersPost(playerJsonld: PlayerJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (playerJsonld === null || playerJsonld === undefined) {
throw new Error('Required parameter playerJsonld was null or undefined when calling playersPost.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/ld+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/players`;
return this.httpClient.request<PlayerJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: playerJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 424
angular/src/app/core/api/v1/api/rarity.service.ts Просмотреть файл

@@ -1,424 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { ApiRaritiesGetCollection200Response } from '../model/apiRaritiesGetCollection200Response';
// @ts-ignore
import { Rarity } from '../model/rarity';
// @ts-ignore
import { RarityJsonld } from '../model/rarityJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class RarityService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of Rarity resources.
* Retrieves the collection of Rarity resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param customJsonOrder
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public raritiesGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiRaritiesGetCollection200Response>;
public raritiesGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiRaritiesGetCollection200Response>>;
public raritiesGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiRaritiesGetCollection200Response>>;
public raritiesGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (customJsonOrder !== undefined && customJsonOrder !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>customJsonOrder, 'custom_json_order');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/rarities`;
return this.httpClient.request<ApiRaritiesGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a Rarity resource.
* Retrieves a Rarity resource.
* @param id Rarity identifier
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public raritiesIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<RarityJsonld>;
public raritiesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<RarityJsonld>>;
public raritiesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<RarityJsonld>>;
public raritiesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling raritiesIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/rarities/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<RarityJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Updates the Rarity resource.
* Updates the Rarity resource.
* @param id Rarity identifier
* @param rarity The updated Rarity resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public raritiesIdPatch(id: string, rarity: Rarity, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<RarityJsonld>;
public raritiesIdPatch(id: string, rarity: Rarity, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<RarityJsonld>>;
public raritiesIdPatch(id: string, rarity: Rarity, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<RarityJsonld>>;
public raritiesIdPatch(id: string, rarity: Rarity, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling raritiesIdPatch.');
}
if (rarity === null || rarity === undefined) {
throw new Error('Required parameter rarity was null or undefined when calling raritiesIdPatch.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/merge-patch+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/rarities/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<RarityJsonld>('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: rarity,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Creates a Rarity resource.
* Creates a Rarity resource.
* @param rarityJsonld The new Rarity resource
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public raritiesPost(rarityJsonld: RarityJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<RarityJsonld>;
public raritiesPost(rarityJsonld: RarityJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<RarityJsonld>>;
public raritiesPost(rarityJsonld: RarityJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<RarityJsonld>>;
public raritiesPost(rarityJsonld: RarityJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (rarityJsonld === null || rarityJsonld === undefined) {
throw new Error('Required parameter rarityJsonld was null or undefined when calling raritiesPost.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/ld+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}

let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/rarities`;
return this.httpClient.request<RarityJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: rarityJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 162
angular/src/app/core/api/v1/api/systemStat.service.ts Просмотреть файл

@@ -1,162 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */

import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';

// @ts-ignore
import { SystemStatJsonld } from '../model/systemStatJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class SystemStatService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves a SystemStat resource.
* Retrieves a SystemStat resource.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public systemStatsGet(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<SystemStatJsonld>;
public systemStatsGet(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<SystemStatJsonld>>;
public systemStatsGet(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<SystemStatJsonld>>;
public systemStatsGet(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/system_stats`;
return this.httpClient.request<SystemStatJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 0
- 47
angular/src/app/core/api/v1/model/accountTradePileItem.ts Просмотреть файл

@@ -1,47 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface AccountTradePileItem {
readonly dbId?: number | null;
readonly account?: string;
readonly candidateItem?: string;
readonly eaId?: number;
readonly eaAssetId?: number;
readonly eaResourceId?: number;
readonly rareFlag?: number;
readonly itemType?: string;
readonly rating?: number;
readonly contracts?: number | null;
readonly playStyle?: number | null;
startingBid?: number;
binPrice?: number;
individualPrice?: boolean;
readonly minRange?: number;
readonly maxRange?: number;
readonly lastSalePrice?: number;
readonly tradeState?: string | null;
readonly eaTradeId?: number | null;
readonly rebuy?: boolean;
readonly leagueId?: number | null;
readonly teamId?: number | null;
readonly nationId?: number | null;
readonly listCnt?: number;
readonly openBidCnt?: number | null;
readonly snipedItem?: boolean;
readonly marketAverage?: number | null;
readonly creationDate?: string;
}


+ 0
- 53
angular/src/app/core/api/v1/model/accountTradePileItemJsonld.ts Просмотреть файл

@@ -1,53 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GameAccountJsonld } from './gameAccountJsonld';
import { CandidateJsonld } from './candidateJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface AccountTradePileItemJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
readonly account?: GameAccountJsonld;
readonly candidateItem?: CandidateJsonld;
readonly eaId?: number;
readonly eaAssetId?: number;
readonly eaResourceId?: number;
readonly rareFlag?: number;
readonly itemType?: string;
readonly rating?: number;
readonly contracts?: number | null;
readonly playStyle?: number | null;
startingBid?: number;
binPrice?: number;
individualPrice?: boolean;
readonly minRange?: number;
readonly maxRange?: number;
readonly lastSalePrice?: number;
readonly tradeState?: string | null;
readonly eaTradeId?: number | null;
readonly rebuy?: boolean;
readonly leagueId?: number | null;
readonly teamId?: number | null;
readonly nationId?: number | null;
readonly listCnt?: number;
readonly openBidCnt?: number | null;
readonly snipedItem?: boolean;
readonly marketAverage?: number | null;
readonly creationDate?: string;
}


+ 0
- 20
angular/src/app/core/api/v1/model/accountTradePileItemJsonldContext.ts Просмотреть файл

@@ -1,20 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountTradePileItemJsonldContextOneOf } from './accountTradePileItemJsonldContextOneOf';


/**
* @type AccountTradePileItemJsonldContext
* @export
*/
export type AccountTradePileItemJsonldContext = AccountTradePileItemJsonldContextOneOf | string;


+ 0
- 28
angular/src/app/core/api/v1/model/accountTradePileItemJsonldContextOneOf.ts Просмотреть файл

@@ -1,28 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface AccountTradePileItemJsonldContextOneOf {
[key: string]: any | any;


vocab: string;
hydra: AccountTradePileItemJsonldContextOneOf.HydraEnum;
}
export namespace AccountTradePileItemJsonldContextOneOf {
export type HydraEnum = 'http://www.w3.org/ns/hydra/core#';
export const HydraEnum = {
HttpWwwW3OrgNsHydraCore: 'http://www.w3.org/ns/hydra/core#' as HydraEnum
};
}



+ 0
- 23
angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { AccountTradePileItemJsonld } from './accountTradePileItemJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiAccountTradePileItemsGetCollection200Response {
'hydra:member': Array<AccountTradePileItemJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 21
angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearch.ts Просмотреть файл

@@ -1,21 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner';


export interface ApiAccountTradePileItemsGetCollection200ResponseHydraSearch {
type?: string;
'hydra:template'?: string;
'hydra:variableRepresentation'?: string;
'hydra:mapping'?: Array<ApiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner>;
}


+ 0
- 20
angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner.ts Просмотреть файл

@@ -1,20 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface ApiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner {
type?: string;
variable?: string;
property?: string | null;
required?: boolean;
}


+ 0
- 22
angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraView.ts Просмотреть файл

@@ -1,22 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface ApiAccountTradePileItemsGetCollection200ResponseHydraView {
id?: string;
type?: string;
'hydra:first'?: string;
'hydra:last'?: string;
'hydra:previous'?: string;
'hydra:next'?: string;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiCandidateStatsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';
import { CandidateStatJsonld } from './candidateStatJsonld';


export interface ApiCandidateStatsGetCollection200Response {
'hydra:member': Array<CandidateStatJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiCandidatesGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { CandidateJsonld } from './candidateJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiCandidatesGetCollection200Response {
'hydra:member': Array<CandidateJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiGameAccountsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GameAccountJsonld } from './gameAccountJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiGameAccountsGetCollection200Response {
'hydra:member': Array<GameAccountJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiLogAccountCreditsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';
import { LogAccountCreditJsonld } from './logAccountCreditJsonld';


export interface ApiLogAccountCreditsGetCollection200Response {
'hydra:member': Array<LogAccountCreditJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiLogAccountProfitsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { LogAccountProfitJsonld } from './logAccountProfitJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiLogAccountProfitsGetCollection200Response {
'hydra:member': Array<LogAccountProfitJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiLogAccountSoldItemsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { LogAccountSoldItemJsonld } from './logAccountSoldItemJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiLogAccountSoldItemsGetCollection200Response {
'hydra:member': Array<LogAccountSoldItemJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiLogGeneralsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { LogGeneralJsonld } from './logGeneralJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiLogGeneralsGetCollection200Response {
'hydra:member': Array<LogGeneralJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiLogTotalProfitsGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';
import { LogTotalProfitJsonld } from './logTotalProfitJsonld';


export interface ApiLogTotalProfitsGetCollection200Response {
'hydra:member': Array<LogTotalProfitJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiPlayersGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { PlayerJsonld } from './playerJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiPlayersGetCollection200Response {
'hydra:member': Array<PlayerJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 23
angular/src/app/core/api/v1/model/apiRaritiesGetCollection200Response.ts Просмотреть файл

@@ -1,23 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView';
import { RarityJsonld } from './rarityJsonld';
import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch';


export interface ApiRaritiesGetCollection200Response {
'hydra:member': Array<RarityJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView;
'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch;
}


+ 0
- 70
angular/src/app/core/api/v1/model/candidate.ts Просмотреть файл

@@ -1,70 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface Candidate {
readonly dbId?: number | null;
readonly rarity?: string;
readonly candidateStat?: string;
readonly player?: string;
readonly firstname?: string | null;
readonly lastname?: string | null;
readonly nickname?: string | null;
readonly fullDisplayInfo?: string | null;
readonly eaAssetId: number | null;
readonly eaResourceId: number | null;
readonly rareFlag: number | null;
readonly rarityName?: string | null;
readonly image?: string | null;
readonly imageUrl?: string | null;
readonly cardImageUrl?: string | null;
readonly stockCountTotal?: number | null;
readonly stockCountReal?: number | null;
futBinId?: number | null;
futBinName?: string | null;
futBinPrice?: number | null;
futBinSellingPrice?: number | null;
readonly lastFutBinUpdate?: string | null;
futWizId?: number | null;
futWizPrice?: number | null;
futwizName?: string | null;
futWizSellingPrice?: number | null;
readonly lastFutWizUpdate?: string | null;
rating: number | null;
highestBuyBinPrice?: number | null;
sellStartingBid?: number | null;
sellBinPrice?: number | null;
lastFoundMinRange?: number | null;
lastFoundMaxRange?: number | null;
lastFoundLowestBin?: number | null;
readonly lowestBinUpdateDate?: string | null;
buy: boolean | null;
maxBuyPrice?: number | null;
buyStyle: number | null;
newBuySelective: boolean | null;
remove: boolean | null;
leagueId?: number | null;
nationId?: number | null;
prio?: number | null;
listCnt: number | null;
soldCnt: number | null;
note?: string | null;
relevant: boolean | null;
adjust100: boolean | null;
directReBuy: boolean | null;
readonly marketAverage?: number | null;
readonly creationDate: string | null;
}


+ 0
- 77
angular/src/app/core/api/v1/model/candidateJsonld.ts Просмотреть файл

@@ -1,77 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RarityJsonld } from './rarityJsonld';
import { PlayerJsonld } from './playerJsonld';
import { CandidateStatJsonld } from './candidateStatJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface CandidateJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
readonly rarity?: RarityJsonld;
readonly candidateStat?: CandidateStatJsonld;
readonly player?: PlayerJsonld;
readonly firstname?: string | null;
readonly lastname?: string | null;
readonly nickname?: string | null;
readonly fullDisplayInfo?: string | null;
readonly eaAssetId: number | null;
readonly eaResourceId: number | null;
readonly rareFlag: number | null;
readonly rarityName?: string | null;
readonly image?: string | null;
readonly imageUrl?: string | null;
readonly cardImageUrl?: string | null;
readonly stockCountTotal?: number | null;
readonly stockCountReal?: number | null;
futBinId?: number | null;
futBinName?: string | null;
futBinPrice?: number | null;
futBinSellingPrice?: number | null;
readonly lastFutBinUpdate?: string | null;
futWizId?: number | null;
futWizPrice?: number | null;
futwizName?: string | null;
futWizSellingPrice?: number | null;
readonly lastFutWizUpdate?: string | null;
rating: number | null;
highestBuyBinPrice?: number | null;
sellStartingBid?: number | null;
sellBinPrice?: number | null;
lastFoundMinRange?: number | null;
lastFoundMaxRange?: number | null;
lastFoundLowestBin?: number | null;
readonly lowestBinUpdateDate?: string | null;
buy: boolean | null;
maxBuyPrice?: number | null;
buyStyle: number | null;
newBuySelective: boolean | null;
remove: boolean | null;
leagueId?: number | null;
nationId?: number | null;
prio?: number | null;
listCnt: number | null;
soldCnt: number | null;
note?: string | null;
relevant: boolean | null;
adjust100: boolean | null;
directReBuy: boolean | null;
readonly marketAverage?: number | null;
readonly creationDate: string | null;
}


+ 0
- 73
angular/src/app/core/api/v1/model/candidateStatJsonld.ts Просмотреть файл

@@ -1,73 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CandidateJsonld } from './candidateJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface CandidateStatJsonld {
readonly id?: string;
readonly type?: string;
context?: AccountTradePileItemJsonldContext;
readonly candidateItem?: CandidateJsonld;
revRl6?: number;
rl6?: number;
sold6?: number;
rat6?: number;
rev6?: number;
revRl12?: number;
rl12?: number;
sold12?: number;
rat12?: number;
rev12?: number;
revRl24?: number;
rl24?: number;
sold24?: number;
rat24?: number;
rev24?: number;
revRl3d?: number;
rl3d?: number;
sold3d?: number;
rat3d?: number;
rev3d?: number;
revRl1w?: number;
rl1w?: number;
sold1w?: number;
rat1w?: number;
rev1w?: number;
revRl2w?: number;
rl2w?: number;
sold2w?: number;
rat2w?: number;
rev2w?: number;
revRl3w?: number;
rl3w?: number;
sold3w?: number;
rat3w?: number;
rev3w?: number;
revRl4w?: number;
rl4w?: number;
sold4w?: number;
rat4w?: number;
rev4w?: number;
revRl?: number;
rl?: number;
sold?: number;
rat?: number;
rev?: number;
snipingRev?: number;
readonly creationDate?: string | null;
readonly lastUpdateDate?: string | null;
}


+ 0
- 26
angular/src/app/core/api/v1/model/candidateStockAccountsJsonld.ts Просмотреть файл

@@ -1,26 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GameAccountJsonld } from './gameAccountJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface CandidateStockAccountsJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
candidatesStockAccounts?: Array<GameAccountJsonld>;
candidatesMissingAccounts?: any | null;
}


+ 0
- 28
angular/src/app/core/api/v1/model/config.ts Просмотреть файл

@@ -1,28 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface Config {
systemActive?: boolean;
systemRunning?: boolean;
readonly lastUpdateDate?: string;
readonly lastCheckDate?: string;
readonly processCnt?: number;
sleepHourStart?: number | null;
sleepHourEnd?: number | null;
checkMaxSales?: boolean;
numMaxSales?: number | null;
}


+ 0
- 32
angular/src/app/core/api/v1/model/configJsonld.ts Просмотреть файл

@@ -1,32 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface ConfigJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
systemActive?: boolean;
systemRunning?: boolean;
readonly lastUpdateDate?: string;
readonly lastCheckDate?: string;
readonly processCnt?: number;
sleepHourStart?: number | null;
sleepHourEnd?: number | null;
checkMaxSales?: boolean;
numMaxSales?: number | null;
}


+ 0
- 74
angular/src/app/core/api/v1/model/gameAccount.ts Просмотреть файл

@@ -1,74 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface GameAccount {
readonly dbId?: number | null;
email: string | null;
profile: string | null;
password: string | null;
emailPw?: string | null;
readonly credits?: number | null;
readonly cntItems?: number | null;
readonly cntSoldItems?: number | null;
readonly cntInactiveItems?: number | null;
active: boolean | null;
running: boolean | null;
relist: boolean | null;
relistDate?: string | null;
blocked: boolean | null;
sniping: boolean | null;
readonly snipingDate?: string | null;
tmOpen: boolean | null;
tmState?: number | null;
dead: boolean | null;
lockedMsg: boolean | null;
dynPrices: boolean | null;
newBuy: boolean | null;
readonly newBuyDate?: string | null;
newBuySelective: boolean | null;
reBuy: boolean | null;
readonly rebuyDate?: string | null;
readonly connectionDate?: string | null;
importWatchlist: boolean | null;
autoReBuy: boolean | null;
directReBuy: boolean | null;
itemMaxBuyPrice?: number | null;
readonly revenue?: number | null;
readonly futWizValue?: number | null;
readonly eaMarketAvgValue?: number | null;
mfaCode?: string | null;
twoFactorAuthKey?: string | null;
login2FaViaApp?: boolean | null;
eaCode1?: string | null;
eaCode2?: string | null;
eaCode3?: string | null;
eaCode4?: string | null;
eaCode5?: string | null;
eaCode6?: string | null;
snipingCnt1h?: number | null;
snipingCnt3h?: number | null;
snipingCnt6h?: number | null;
snipingCnt12h?: number | null;
snipingCnt24h?: number | null;
snipingCnt3d?: number | null;
snipingCnt1w?: number | null;
note?: string | null;
readonly loopStartDate?: string | null;
readonly loopFinishDate?: string | null;
readonly creationDate?: string | null;
readonly owner?: string;
}


+ 0
- 79
angular/src/app/core/api/v1/model/gameAccountJsonld.ts Просмотреть файл

@@ -1,79 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { UserJsonld } from './userJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface GameAccountJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
readonly dbId?: number | null;
email: string | null;
profile: string | null;
password: string | null;
emailPw?: string | null;
readonly credits?: number | null;
readonly cntItems?: number | null;
readonly cntSoldItems?: number | null;
readonly cntInactiveItems?: number | null;
active: boolean | null;
running: boolean | null;
relist: boolean | null;
relistDate?: string | null;
blocked: boolean | null;
sniping: boolean | null;
readonly snipingDate?: string | null;
tmOpen: boolean | null;
tmState?: number | null;
dead: boolean | null;
lockedMsg: boolean | null;
dynPrices: boolean | null;
newBuy: boolean | null;
readonly newBuyDate?: string | null;
newBuySelective: boolean | null;
reBuy: boolean | null;
readonly rebuyDate?: string | null;
readonly connectionDate?: string | null;
importWatchlist: boolean | null;
autoReBuy: boolean | null;
directReBuy: boolean | null;
itemMaxBuyPrice?: number | null;
readonly revenue?: number | null;
readonly futWizValue?: number | null;
readonly eaMarketAvgValue?: number | null;
mfaCode?: string | null;
twoFactorAuthKey?: string | null;
login2FaViaApp?: boolean | null;
eaCode1?: string | null;
eaCode2?: string | null;
eaCode3?: string | null;
eaCode4?: string | null;
eaCode5?: string | null;
eaCode6?: string | null;
snipingCnt1h?: number | null;
snipingCnt3h?: number | null;
snipingCnt6h?: number | null;
snipingCnt12h?: number | null;
snipingCnt24h?: number | null;
snipingCnt3d?: number | null;
snipingCnt1w?: number | null;
note?: string | null;
readonly loopStartDate?: string | null;
readonly loopFinishDate?: string | null;
readonly creationDate?: string | null;
readonly owner?: UserJsonld;
}


+ 0
- 28
angular/src/app/core/api/v1/model/logAccountCreditJsonld.ts Просмотреть файл

@@ -1,28 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GameAccountJsonld } from './gameAccountJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface LogAccountCreditJsonld {
readonly id?: string;
readonly type?: string;
context?: AccountTradePileItemJsonldContext;
readonly gameAccount?: GameAccountJsonld;
readonly credits?: number | null;
readonly revenue?: number | null;
readonly creationDate?: string | null;
}


+ 0
- 56
angular/src/app/core/api/v1/model/logAccountProfitJsonld.ts Просмотреть файл

@@ -1,56 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GameAccountJsonld } from './gameAccountJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface LogAccountProfitJsonld {
readonly id?: string;
readonly type?: string;
context?: AccountTradePileItemJsonldContext;
readonly gameAccount?: GameAccountJsonld;
credits?: number | null;
revenue?: number | null;
tpValue?: number | null;
revToday?: number | null;
rev3hours?: number | null;
rev6hours?: number | null;
rev12hours?: number | null;
rev24hours?: number | null;
rev3days?: number | null;
rev1week?: number | null;
rev2weeks?: number | null;
rev3weeks?: number | null;
rev4weeks?: number | null;
rev2months?: number | null;
rev3months?: number | null;
revTotal?: number | null;
numSalesToday?: number | null;
numSales3hours?: number | null;
numSales6hours?: number | null;
numSales12hours?: number | null;
numSales24hours?: number | null;
numSales3days?: number | null;
numSales1week?: number | null;
numSales2weeks?: number | null;
numSales3weeks?: number | null;
numSales4weeks?: number | null;
numSales2months?: number | null;
numSales3months?: number | null;
numSalesTotal?: number | null;
isDailyProfit?: boolean | null;
creationDate?: string | null;
}


+ 0
- 45
angular/src/app/core/api/v1/model/logAccountSoldItemJsonld.ts Просмотреть файл

@@ -1,45 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GameAccountJsonld } from './gameAccountJsonld';
import { CandidateJsonld } from './candidateJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface LogAccountSoldItemJsonld {
readonly id?: string;
readonly type?: string;
context?: AccountTradePileItemJsonldContext;
readonly dbId?: number | null;
readonly gameAccount?: GameAccountJsonld;
readonly candidateItem?: CandidateJsonld;
readonly eaId?: number;
readonly contracts?: number | null;
readonly playStyle?: number | null;
readonly lastSalePrice?: number;
readonly currentBid?: number;
readonly startingBid?: number;
readonly binPrice?: number;
readonly minRange?: number;
readonly maxRange?: number;
readonly tradeState?: string;
readonly eaTradeId?: number;
readonly listCnt?: number;
readonly revenue?: number;
readonly reBought?: boolean;
readonly snipedItem?: boolean;
readonly firstListDate?: string | null;
readonly creationDate?: string;
}


+ 0
- 56
angular/src/app/core/api/v1/model/logGeneralJsonld.ts Просмотреть файл

@@ -1,56 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GameAccountJsonld } from './gameAccountJsonld';
import { CandidateJsonld } from './candidateJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface LogGeneralJsonld {
readonly id?: string;
readonly type?: string;
context?: AccountTradePileItemJsonldContext;
readonly dbId?: number;
readonly gameAccount?: GameAccountJsonld;
readonly candidateItem?: CandidateJsonld;
logType: LogGeneralJsonld.LogTypeEnum;
readonly message?: string | null;
readonly creationDate?: string | null;
}
export namespace LogGeneralJsonld {
export type LogTypeEnum = 'alert' | 'alert_low' | 'cant_buy' | 'debug' | 'debug_server_logs' | 'info' | 'moved_to_club' | 'new_buy' | 'player_price_changed' | 'preview_pack' | 'preview_pack_alert' | 'price_range_errors' | 'profit_overview' | 'removed' | 'rebuy' | 'sales' | 'server_logs' | 'stats' | 'hourly_stats';
export const LogTypeEnum = {
Alert: 'alert' as LogTypeEnum,
AlertLow: 'alert_low' as LogTypeEnum,
CantBuy: 'cant_buy' as LogTypeEnum,
Debug: 'debug' as LogTypeEnum,
DebugServerLogs: 'debug_server_logs' as LogTypeEnum,
Info: 'info' as LogTypeEnum,
MovedToClub: 'moved_to_club' as LogTypeEnum,
NewBuy: 'new_buy' as LogTypeEnum,
PlayerPriceChanged: 'player_price_changed' as LogTypeEnum,
PreviewPack: 'preview_pack' as LogTypeEnum,
PreviewPackAlert: 'preview_pack_alert' as LogTypeEnum,
PriceRangeErrors: 'price_range_errors' as LogTypeEnum,
ProfitOverview: 'profit_overview' as LogTypeEnum,
Removed: 'removed' as LogTypeEnum,
Rebuy: 'rebuy' as LogTypeEnum,
Sales: 'sales' as LogTypeEnum,
ServerLogs: 'server_logs' as LogTypeEnum,
Stats: 'stats' as LogTypeEnum,
HourlyStats: 'hourly_stats' as LogTypeEnum
};
}



+ 0
- 51
angular/src/app/core/api/v1/model/logTotalProfit.ts Просмотреть файл

@@ -1,51 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface LogTotalProfit {
credits?: number | null;
revenue?: number | null;
tpValueFutwiz?: number | null;
tpValueEaAverage?: number | null;
revToday?: number | null;
rev3hours?: number | null;
rev6hours?: number | null;
rev12hours?: number | null;
rev24hours?: number | null;
rev3days?: number | null;
rev1week?: number | null;
rev2weeks?: number | null;
rev3weeks?: number | null;
rev4weeks?: number | null;
rev2months?: number | null;
rev3months?: number | null;
revTotal?: number | null;
numSalesToday?: number | null;
numSales3hours?: number | null;
numSales6hours?: number | null;
numSales12hours?: number | null;
numSales24hours?: number | null;
numSales3days?: number | null;
numSales1week?: number | null;
numSales2weeks?: number | null;
numSales3weeks?: number | null;
numSales4weeks?: number | null;
numSales2months?: number | null;
numSales3months?: number | null;
numSalesTotal?: number | null;
isDailyProfit?: boolean | null;
creationDate?: string | null;
}


+ 0
- 55
angular/src/app/core/api/v1/model/logTotalProfitJsonld.ts Просмотреть файл

@@ -1,55 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface LogTotalProfitJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
credits?: number | null;
revenue?: number | null;
tpValueFutwiz?: number | null;
tpValueEaAverage?: number | null;
revToday?: number | null;
rev3hours?: number | null;
rev6hours?: number | null;
rev12hours?: number | null;
rev24hours?: number | null;
rev3days?: number | null;
rev1week?: number | null;
rev2weeks?: number | null;
rev3weeks?: number | null;
rev4weeks?: number | null;
rev2months?: number | null;
rev3months?: number | null;
revTotal?: number | null;
numSalesToday?: number | null;
numSales3hours?: number | null;
numSales6hours?: number | null;
numSales12hours?: number | null;
numSales24hours?: number | null;
numSales3days?: number | null;
numSales1week?: number | null;
numSales2weeks?: number | null;
numSales3weeks?: number | null;
numSales4weeks?: number | null;
numSales2months?: number | null;
numSales3months?: number | null;
numSalesTotal?: number | null;
isDailyProfit?: boolean | null;
creationDate?: string | null;
}


+ 0
- 21
angular/src/app/core/api/v1/model/modeConfig.ts Просмотреть файл

@@ -1,21 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface ModeConfig {
autoReBuyMinSoldItems?: number;
autoReBuyMinLastHours?: number;
}


+ 0
- 25
angular/src/app/core/api/v1/model/modeConfigJsonld.ts Просмотреть файл

@@ -1,25 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface ModeConfigJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
autoReBuyMinSoldItems?: number;
autoReBuyMinLastHours?: number;
}


+ 0
- 25
angular/src/app/core/api/v1/model/player.ts Просмотреть файл

@@ -1,25 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface Player {
eaAssetId?: number;
firstname?: string | null;
lastname?: string | null;
nickname?: string | null;
rating?: number;
readonly creationDate?: string;
}


+ 0
- 29
angular/src/app/core/api/v1/model/playerJsonld.ts Просмотреть файл

@@ -1,29 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface PlayerJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
eaAssetId?: number;
firstname?: string | null;
lastname?: string | null;
nickname?: string | null;
rating?: number;
readonly creationDate?: string;
}


+ 0
- 25
angular/src/app/core/api/v1/model/rarity.ts Просмотреть файл

@@ -1,25 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
*
*/
export interface Rarity {
readonly rareFlag?: number;
name?: string | null;
readonly untradable?: boolean;
readonly image?: string | null;
readonly imageUrl?: string | null;
readonly imageBronze?: string | null;
}


+ 0
- 29
angular/src/app/core/api/v1/model/rarityJsonld.ts Просмотреть файл

@@ -1,29 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';


/**
*
*/
export interface RarityJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
readonly rareFlag?: number;
name?: string | null;
readonly untradable?: boolean;
readonly image?: string | null;
readonly imageUrl?: string | null;
readonly imageBronze?: string | null;
}


+ 0
- 45
angular/src/app/core/api/v1/model/systemStatJsonld.ts Просмотреть файл

@@ -1,45 +0,0 @@
/**
* Hello API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ConfigJsonld } from './configJsonld';
import { ModeConfigJsonld } from './modeConfigJsonld';
import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext';
import { LogTotalProfitJsonld } from './logTotalProfitJsonld';


/**
*
*/
export interface SystemStatJsonld {
context?: AccountTradePileItemJsonldContext;
readonly id?: string;
readonly type?: string;
readonly totalLogProfit?: LogTotalProfitJsonld;
readonly config?: ConfigJsonld;
readonly modeConfig?: ModeConfigJsonld;
numAccounts?: number | null;
numDeadAccounts?: number | null;
numActiveAccounts?: number | null;
numTmOpenAccounts?: number | null;
numTmClosedAccounts?: number | null;
numBlockedAccounts?: number | null;
numRunningAccounts?: number | null;
numTradepileItems?: number | null;
numSoldTradepileItems?: number | null;
numActiveTradepileItems?: number | null;
numExpiredTradepileItems?: number | null;
numInactiveTradepileItems?: number | null;
numCandidates?: number | null;
numRelevantCandidates?: number | null;
numBuyCandidates?: number | null;
totalSnipingRev?: number | null;
}


+ 13
- 4
angular/src/assets/i18n/en.json Просмотреть файл

@@ -12,8 +12,7 @@
"common":
{
"name": "Name",
"zone": "Zone",
"creation_date": "Creation date"
"created_at": "Creation date"
},
"base_data":
{
@@ -23,9 +22,18 @@
"vessels": "Vessels",
"shipping_companies": "Shipping companies"
},
"model": {
"location": "Location",
"zone": "Zone"

},
"location":
{
"zone": "Zone"

},
"zone":
{

},
"profile":
{
@@ -58,7 +66,8 @@
"saveSettings": "Save settings",
"id": "Id",
"note": "Note",
"number": "#"
"number": "#",
"send": "Send"
},
"users":
{


+ 1
- 1
angular/src/assets/scss/_basics.scss Просмотреть файл

@@ -494,7 +494,7 @@ textarea#pasteCodes {

&.search-empty {
&:before {
content: "Bitte wählen";
content: "Please choose";
font-style: italic;
color: #999;
}


Загрузка…
Отмена
Сохранить