diff --git a/angular/src/app/_components/list/list.component.ts b/angular/src/app/_components/list/list.component.ts index 466a970..128d8eb 100644 --- a/angular/src/app/_components/list/list.component.ts +++ b/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); } diff --git a/angular/src/app/_components/paging/paging.component.html b/angular/src/app/_components/paging/paging.component.html index 4e28203..3d6c851 100644 --- a/angular/src/app/_components/paging/paging.component.html +++ b/angular/src/app/_components/paging/paging.component.html @@ -36,7 +36,7 @@ (click)="getData()"> diff --git a/angular/src/app/_components/search-select/search-select.component.html b/angular/src/app/_components/search-select/search-select.component.html index 9bca4b7..5f800f0 100644 --- a/angular/src/app/_components/search-select/search-select.component.html +++ b/angular/src/app/_components/search-select/search-select.component.html @@ -3,7 +3,7 @@

-
{{ 'basic.pleaseChoose' | translate }}
+
{{ 'basic.logout' | translate }}
diff --git a/angular/src/app/_components/search-select/search-select.component.ts b/angular/src/app/_components/search-select/search-select.component.ts index 72ef45d..86c38a2 100644 --- a/angular/src/app/_components/search-select/search-select.component.ts +++ b/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, ]; } diff --git a/angular/src/app/_interfaces/AbstractCreateDataComponent.ts b/angular/src/app/_interfaces/AbstractCreateDataComponent.ts index 061f01b..c53b6ca 100644 --- a/angular/src/app/_interfaces/AbstractCreateDataComponent.ts +++ b/angular/src/app/_interfaces/AbstractCreateDataComponent.ts @@ -11,6 +11,7 @@ export abstract class AbstractCreateDataComponent implements CreateDataCompon form!: FormGroup; ngOnInit(): void { + this.data = this.getInitialData(); this.form = FormGroupInitializer.initFormGroup(this.form, this.data); } diff --git a/angular/src/app/_views/location/location-list/location-list.component.html b/angular/src/app/_views/location/location-list/location-list.component.html index d89cf02..d52e990 100644 --- a/angular/src/app/_views/location/location-list/location-list.component.html +++ b/angular/src/app/_views/location/location-list/location-list.component.html @@ -5,5 +5,6 @@ [onNavigateToDetailsFunction]="navigateToLocationDetail" [onSortFunction]="onSortChange" [listColDefinitions]="listColDefinitions" + [createDataComponent]="LocationNewComponent" >
\ No newline at end of file diff --git a/angular/src/app/_views/location/location-list/location-list.component.ts b/angular/src/app/_views/location/location-list/location-list.component.ts index 1a8e830..cddaf5b 100644 --- a/angular/src/app/_views/location/location-list/location-list.component.ts +++ b/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; } diff --git a/angular/src/app/_views/location/location-new/location-new.component.html b/angular/src/app/_views/location/location-new/location-new.component.html new file mode 100644 index 0000000..8a17766 --- /dev/null +++ b/angular/src/app/_views/location/location-new/location-new.component.html @@ -0,0 +1,24 @@ +

{{ 'basic.new' | translate }} {{ 'model.location' | translate }}

+
+
+
+ + +
+
+ + + + +
+ +
+
\ No newline at end of file diff --git a/angular/src/app/_views/location/location-new/location-new.component.scss b/angular/src/app/_views/location/location-new/location-new.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/location/location-new/location-new.component.spec.ts b/angular/src/app/_views/location/location-new/location-new.component.spec.ts new file mode 100644 index 0000000..3289086 --- /dev/null +++ b/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; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [LocationNewComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(LocationNewComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/location/location-new/location-new.component.ts b/angular/src/app/_views/location/location-new/location-new.component.ts new file mode 100644 index 0000000..24d6c7b --- /dev/null +++ b/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{ + @Input() public override data!: LocationJsonld; + @Output() public override submit: EventEmitter = new EventEmitter(); + + 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; +} diff --git a/angular/src/app/_views/zone/zone-list/zone-list.component.ts b/angular/src/app/_views/zone/zone-list/zone-list.component.ts index 48830f3..c093e85 100644 --- a/angular/src/app/_views/zone/zone-list/zone-list.component.ts +++ b/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() { diff --git a/angular/src/app/_views/zone/zone-new/zone-new.component.html b/angular/src/app/_views/zone/zone-new/zone-new.component.html index 88c90b9..18199eb 100644 --- a/angular/src/app/_views/zone/zone-new/zone-new.component.html +++ b/angular/src/app/_views/zone/zone-new/zone-new.component.html @@ -1 +1,11 @@ -

zone-new works!

+

{{ 'basic.new' | translate }} {{ 'model.zone' | translate }}

+
+
+
+ + +
+ +
+
\ No newline at end of file diff --git a/angular/src/app/_views/zone/zone-new/zone-new.component.ts b/angular/src/app/_views/zone/zone-new/zone-new.component.ts index 157334f..7b14140 100644 --- a/angular/src/app/_views/zone/zone-new/zone-new.component.ts +++ b/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{ - @Input() public override data!: ZoneJsonld; @Output() public override submit: EventEmitter = new EventEmitter(); @@ -24,8 +23,7 @@ export class ZoneNewComponent extends AbstractCreateDataComponent{ } getInitialData(): ZoneJsonld { - let zone: ZoneJsonld = {} as ZoneJsonld; - return zone; + return {} as ZoneJsonld; } onSubmit() { diff --git a/angular/src/app/app.module.ts b/angular/src/app/app.module.ts index 30717b6..8d6d587 100644 --- a/angular/src/app/app.module.ts +++ b/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}, diff --git a/angular/src/app/core/api/v1/.openapi-generator/FILES b/angular/src/app/core/api/v1/.openapi-generator/FILES index 49ad28a..5aee2ff 100644 --- a/angular/src/app/core/api/v1/.openapi-generator/FILES +++ b/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 diff --git a/angular/src/app/core/api/v1/api/accountTradePileItem.service.ts b/angular/src/app/core/api/v1/api/accountTradePileItem.service.ts deleted file mode 100644 index 5882811..0000000 --- a/angular/src/app/core/api/v1/api/accountTradePileItem.service.ts +++ /dev/null @@ -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, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; - public accountTradePileItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountTradePileItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountTradePileItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, accountTmOpenFilter?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (account !== undefined && account !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - account, 'account'); - } - if (account2) { - account2.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'account[]'); - }) - } - if (candidateItem !== undefined && candidateItem !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - candidateItem, 'candidateItem'); - } - if (candidateItem2) { - candidateItem2.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'candidateItem[]'); - }) - } - if (candidateNameSearch !== undefined && candidateNameSearch !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - candidateNameSearch, 'candidateNameSearch'); - } - if (accountTmOpenFilter !== undefined && accountTmOpenFilter !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - accountTmOpenFilter, 'accountTmOpenFilter'); - } - if (customJsonFilter !== undefined && customJsonFilter !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - customJsonFilter, 'custom_json_filter'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public accountTradePileItemsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountTradePileItemsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountTradePileItemsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public accountTradePileItemsIdPatch(id: string, accountTradePileItem: AccountTradePileItem, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountTradePileItemsIdPatch(id: string, accountTradePileItem: AccountTradePileItem, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountTradePileItemsIdPatch(id: string, accountTradePileItem: AccountTradePileItem, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: accountTradePileItem, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/candidate.service.ts b/angular/src/app/core/api/v1/api/candidate.service.ts deleted file mode 100644 index 039f1c5..0000000 --- a/angular/src/app/core/api/v1/api/candidate.service.ts +++ /dev/null @@ -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; - 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>; - 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>; - 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 { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (candidateNameSearch !== undefined && candidateNameSearch !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - candidateNameSearch, 'candidateNameSearch'); - } - if (customJsonFilter !== undefined && customJsonFilter !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - customJsonFilter, 'custom_json_filter'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public candidatesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidatesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidatesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public candidatesIdPatch(id: string, candidate: Candidate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidatesIdPatch(id: string, candidate: Candidate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidatesIdPatch(id: string, candidate: Candidate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: candidate, - responseType: 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; - public candidatesPost(candidateJsonld: CandidateJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidatesPost(candidateJsonld: CandidateJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidatesPost(candidateJsonld: CandidateJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('post', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: candidateJsonld, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/candidateStat.service.ts b/angular/src/app/core/api/v1/api/candidateStat.service.ts deleted file mode 100644 index bc57161..0000000 --- a/angular/src/app/core/api/v1/api/candidateStat.service.ts +++ /dev/null @@ -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; - public candidateStatsGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidateStatsGetCollection(page?: number, itemsPerPage?: number, candidateNameSearch?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - 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 { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (candidateNameSearch !== undefined && candidateNameSearch !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - candidateNameSearch, 'candidateNameSearch'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public candidateStatsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidateStatsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidateStatsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/candidateStockAccounts.service.ts b/angular/src/app/core/api/v1/api/candidateStockAccounts.service.ts deleted file mode 100644 index 0e3def4..0000000 --- a/angular/src/app/core/api/v1/api/candidateStockAccounts.service.ts +++ /dev/null @@ -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; - public candidateItemsIdstockAccountsGet(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidateItemsIdstockAccountsGet(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public candidateItemsIdstockAccountsGet(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/config.service.ts b/angular/src/app/core/api/v1/api/config.service.ts deleted file mode 100644 index 0712f7d..0000000 --- a/angular/src/app/core/api/v1/api/config.service.ts +++ /dev/null @@ -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; - public configGet(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public configGet(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public configGet(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public configPatch(config: Config, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public configPatch(config: Config, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public configPatch(config: Config, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: config, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/gameAccount.service.ts b/angular/src/app/core/api/v1/api/gameAccount.service.ts deleted file mode 100644 index 7e761e4..0000000 --- a/angular/src/app/core/api/v1/api/gameAccount.service.ts +++ /dev/null @@ -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, email?: string, profile?: string, tmOpen?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; - public gameAccountsGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array, email?: string, profile?: string, tmOpen?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array, email?: string, profile?: string, tmOpen?: boolean, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsGetCollection(page?: number, itemsPerPage?: number, owner?: string, owner2?: Array, 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 { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (owner !== undefined && owner !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - owner, 'owner'); - } - if (owner2) { - owner2.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'owner[]'); - }) - } - if (email !== undefined && email !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - email, 'email'); - } - if (profile !== undefined && profile !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - profile, 'profile'); - } - if (tmOpen !== undefined && tmOpen !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - tmOpen, 'tmOpen'); - } - if (customJsonFilter !== undefined && customJsonFilter !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - customJsonFilter, 'custom_json_filter'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public gameAccountsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public gameAccountsIdPatch(id: string, gameAccount: GameAccount, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsIdPatch(id: string, gameAccount: GameAccount, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsIdPatch(id: string, gameAccount: GameAccount, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: gameAccount, - responseType: 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; - public gameAccountsPost(gameAccountJsonld: GameAccountJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsPost(gameAccountJsonld: GameAccountJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public gameAccountsPost(gameAccountJsonld: GameAccountJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('post', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: gameAccountJsonld, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/logAccountCredit.service.ts b/angular/src/app/core/api/v1/api/logAccountCredit.service.ts deleted file mode 100644 index a6ca308..0000000 --- a/angular/src/app/core/api/v1/api/logAccountCredit.service.ts +++ /dev/null @@ -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; - 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>; - 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>; - 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 { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (orderCreationDate !== undefined && orderCreationDate !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - orderCreationDate, 'order[creationDate]'); - } - if (orderCredits !== undefined && orderCredits !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - orderCredits, 'order[credits]'); - } - if (orderRevenue !== undefined && orderRevenue !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public logAccountCreditsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountCreditsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountCreditsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/logAccountProfit.service.ts b/angular/src/app/core/api/v1/api/logAccountProfit.service.ts deleted file mode 100644 index 3ae373b..0000000 --- a/angular/src/app/core/api/v1/api/logAccountProfit.service.ts +++ /dev/null @@ -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, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; - public logAccountProfitsGetCollection(page?: number, itemsPerPage?: number, gameAccount?: string, gameAccount2?: Array, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountProfitsGetCollection(page?: number, itemsPerPage?: number, gameAccount?: string, gameAccount2?: Array, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountProfitsGetCollection(page?: number, itemsPerPage?: number, gameAccount?: string, gameAccount2?: Array, isDailyProfit?: boolean, gameAccountProfile?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (gameAccount !== undefined && gameAccount !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - gameAccount, 'gameAccount'); - } - if (gameAccount2) { - gameAccount2.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'gameAccount[]'); - }) - } - if (isDailyProfit !== undefined && isDailyProfit !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - isDailyProfit, 'isDailyProfit'); - } - if (gameAccountProfile !== undefined && gameAccountProfile !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - gameAccountProfile, 'gameAccountProfile'); - } - if (customJsonFilter !== undefined && customJsonFilter !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - customJsonFilter, 'custom_json_filter'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public logAccountProfitsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountProfitsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountProfitsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/logAccountSoldItem.service.ts b/angular/src/app/core/api/v1/api/logAccountSoldItem.service.ts deleted file mode 100644 index 83332f4..0000000 --- a/angular/src/app/core/api/v1/api/logAccountSoldItem.service.ts +++ /dev/null @@ -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, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; - public logAccountSoldItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountSoldItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountSoldItemsGetCollection(page?: number, itemsPerPage?: number, account?: string, account2?: Array, candidateItem?: string, candidateItem2?: Array, candidateNameSearch?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (account !== undefined && account !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - account, 'account'); - } - if (account2) { - account2.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'account[]'); - }) - } - if (candidateItem !== undefined && candidateItem !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - candidateItem, 'candidateItem'); - } - if (candidateItem2) { - candidateItem2.forEach((element) => { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - element, 'candidateItem[]'); - }) - } - if (candidateNameSearch !== undefined && candidateNameSearch !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - candidateNameSearch, 'candidateNameSearch'); - } - if (customJsonFilter !== undefined && customJsonFilter !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - customJsonFilter, 'custom_json_filter'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public logAccountSoldItemsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountSoldItemsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logAccountSoldItemsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/logGeneral.service.ts b/angular/src/app/core/api/v1/api/logGeneral.service.ts deleted file mode 100644 index 9463efd..0000000 --- a/angular/src/app/core/api/v1/api/logGeneral.service.ts +++ /dev/null @@ -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; - 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>; - 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>; - 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 { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (gameAccountProfile !== undefined && gameAccountProfile !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - gameAccountProfile, 'gameAccountProfile'); - } - if (customJsonFilter !== undefined && customJsonFilter !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - customJsonFilter, 'custom_json_filter'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public logGeneralsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logGeneralsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logGeneralsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/logTotalProfit.service.ts b/angular/src/app/core/api/v1/api/logTotalProfit.service.ts deleted file mode 100644 index 3e82f5c..0000000 --- a/angular/src/app/core/api/v1/api/logTotalProfit.service.ts +++ /dev/null @@ -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; - public logTotalProfitsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public logTotalProfitsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public logTotalProfitsIdPatch(id: string, logTotalProfit: LogTotalProfit, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsIdPatch(id: string, logTotalProfit: LogTotalProfit, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsIdPatch(id: string, logTotalProfit: LogTotalProfit, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: logTotalProfit, - responseType: 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; - public logTotalProfitsPost(logTotalProfitJsonld: LogTotalProfitJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsPost(logTotalProfitJsonld: LogTotalProfitJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public logTotalProfitsPost(logTotalProfitJsonld: LogTotalProfitJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('post', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: logTotalProfitJsonld, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/modeConfig.service.ts b/angular/src/app/core/api/v1/api/modeConfig.service.ts deleted file mode 100644 index 00d0f26..0000000 --- a/angular/src/app/core/api/v1/api/modeConfig.service.ts +++ /dev/null @@ -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; - public modeConfigGet(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public modeConfigGet(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public modeConfigGet(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public modeConfigPatch(modeConfig: ModeConfig, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public modeConfigPatch(modeConfig: ModeConfig, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public modeConfigPatch(modeConfig: ModeConfig, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: modeConfig, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/player.service.ts b/angular/src/app/core/api/v1/api/player.service.ts deleted file mode 100644 index bf451e0..0000000 --- a/angular/src/app/core/api/v1/api/player.service.ts +++ /dev/null @@ -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; - public playersGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public playersIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public playersIdPatch(id: string, player: Player, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersIdPatch(id: string, player: Player, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersIdPatch(id: string, player: Player, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: player, - responseType: 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; - public playersPost(playerJsonld: PlayerJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersPost(playerJsonld: PlayerJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public playersPost(playerJsonld: PlayerJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('post', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: playerJsonld, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/rarity.service.ts b/angular/src/app/core/api/v1/api/rarity.service.ts deleted file mode 100644 index e1b1120..0000000 --- a/angular/src/app/core/api/v1/api/rarity.service.ts +++ /dev/null @@ -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; - public raritiesGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesGetCollection(page?: number, itemsPerPage?: number, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - let localVarQueryParameters = new HttpParams({encoder: this.encoder}); - if (page !== undefined && page !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - page, 'page'); - } - if (itemsPerPage !== undefined && itemsPerPage !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - itemsPerPage, 'itemsPerPage'); - } - if (customJsonOrder !== undefined && customJsonOrder !== null) { - localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - params: localVarQueryParameters, - responseType: 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; - public raritiesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: 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; - public raritiesIdPatch(id: string, rarity: Rarity, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesIdPatch(id: string, rarity: Rarity, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesIdPatch(id: string, rarity: Rarity, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('patch', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: rarity, - responseType: 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; - public raritiesPost(rarityJsonld: RarityJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesPost(rarityJsonld: RarityJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public raritiesPost(rarityJsonld: RarityJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - 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('post', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: rarityJsonld, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/api/systemStat.service.ts b/angular/src/app/core/api/v1/api/systemStat.service.ts deleted file mode 100644 index ef73a43..0000000 --- a/angular/src/app/core/api/v1/api/systemStat.service.ts +++ /dev/null @@ -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; - public systemStatsGet(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public systemStatsGet(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public systemStatsGet(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { - - 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('get', `${this.configuration.basePath}${localVarPath}`, - { - context: localVarHttpContext, - responseType: responseType_, - withCredentials: this.configuration.withCredentials, - headers: localVarHeaders, - observe: observe, - transferCache: localVarTransferCache, - reportProgress: reportProgress - } - ); - } - -} diff --git a/angular/src/app/core/api/v1/model/accountTradePileItem.ts b/angular/src/app/core/api/v1/model/accountTradePileItem.ts deleted file mode 100644 index 1a29463..0000000 --- a/angular/src/app/core/api/v1/model/accountTradePileItem.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/accountTradePileItemJsonld.ts b/angular/src/app/core/api/v1/model/accountTradePileItemJsonld.ts deleted file mode 100644 index 470fd7b..0000000 --- a/angular/src/app/core/api/v1/model/accountTradePileItemJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/accountTradePileItemJsonldContext.ts b/angular/src/app/core/api/v1/model/accountTradePileItemJsonldContext.ts deleted file mode 100644 index d464863..0000000 --- a/angular/src/app/core/api/v1/model/accountTradePileItemJsonldContext.ts +++ /dev/null @@ -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; - diff --git a/angular/src/app/core/api/v1/model/accountTradePileItemJsonldContextOneOf.ts b/angular/src/app/core/api/v1/model/accountTradePileItemJsonldContextOneOf.ts deleted file mode 100644 index b06ffed..0000000 --- a/angular/src/app/core/api/v1/model/accountTradePileItemJsonldContextOneOf.ts +++ /dev/null @@ -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 - }; -} - - diff --git a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200Response.ts deleted file mode 100644 index 5b93b23..0000000 --- a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearch.ts b/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearch.ts deleted file mode 100644 index dbbb608..0000000 --- a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearch.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner.ts b/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner.ts deleted file mode 100644 index 69d83c7..0000000 --- a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraView.ts b/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraView.ts deleted file mode 100644 index 2d589cd..0000000 --- a/angular/src/app/core/api/v1/model/apiAccountTradePileItemsGetCollection200ResponseHydraView.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/apiCandidateStatsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiCandidateStatsGetCollection200Response.ts deleted file mode 100644 index 556deb1..0000000 --- a/angular/src/app/core/api/v1/model/apiCandidateStatsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiCandidatesGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiCandidatesGetCollection200Response.ts deleted file mode 100644 index 30f8b3e..0000000 --- a/angular/src/app/core/api/v1/model/apiCandidatesGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiGameAccountsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiGameAccountsGetCollection200Response.ts deleted file mode 100644 index a7212cd..0000000 --- a/angular/src/app/core/api/v1/model/apiGameAccountsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiLogAccountCreditsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiLogAccountCreditsGetCollection200Response.ts deleted file mode 100644 index 2fa2a14..0000000 --- a/angular/src/app/core/api/v1/model/apiLogAccountCreditsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiLogAccountProfitsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiLogAccountProfitsGetCollection200Response.ts deleted file mode 100644 index 843925e..0000000 --- a/angular/src/app/core/api/v1/model/apiLogAccountProfitsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiLogAccountSoldItemsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiLogAccountSoldItemsGetCollection200Response.ts deleted file mode 100644 index 8c97da0..0000000 --- a/angular/src/app/core/api/v1/model/apiLogAccountSoldItemsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiLogGeneralsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiLogGeneralsGetCollection200Response.ts deleted file mode 100644 index e9fb5fb..0000000 --- a/angular/src/app/core/api/v1/model/apiLogGeneralsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiLogTotalProfitsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiLogTotalProfitsGetCollection200Response.ts deleted file mode 100644 index 60bfc25..0000000 --- a/angular/src/app/core/api/v1/model/apiLogTotalProfitsGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiPlayersGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiPlayersGetCollection200Response.ts deleted file mode 100644 index ef1b51b..0000000 --- a/angular/src/app/core/api/v1/model/apiPlayersGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/apiRaritiesGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiRaritiesGetCollection200Response.ts deleted file mode 100644 index c855d5c..0000000 --- a/angular/src/app/core/api/v1/model/apiRaritiesGetCollection200Response.ts +++ /dev/null @@ -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; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; -} - diff --git a/angular/src/app/core/api/v1/model/candidate.ts b/angular/src/app/core/api/v1/model/candidate.ts deleted file mode 100644 index 174ddcd..0000000 --- a/angular/src/app/core/api/v1/model/candidate.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/candidateJsonld.ts b/angular/src/app/core/api/v1/model/candidateJsonld.ts deleted file mode 100644 index 5abc26b..0000000 --- a/angular/src/app/core/api/v1/model/candidateJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/candidateStatJsonld.ts b/angular/src/app/core/api/v1/model/candidateStatJsonld.ts deleted file mode 100644 index 647559c..0000000 --- a/angular/src/app/core/api/v1/model/candidateStatJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/candidateStockAccountsJsonld.ts b/angular/src/app/core/api/v1/model/candidateStockAccountsJsonld.ts deleted file mode 100644 index aea3ac7..0000000 --- a/angular/src/app/core/api/v1/model/candidateStockAccountsJsonld.ts +++ /dev/null @@ -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; - candidatesMissingAccounts?: any | null; -} - diff --git a/angular/src/app/core/api/v1/model/config.ts b/angular/src/app/core/api/v1/model/config.ts deleted file mode 100644 index 8798ce7..0000000 --- a/angular/src/app/core/api/v1/model/config.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/configJsonld.ts b/angular/src/app/core/api/v1/model/configJsonld.ts deleted file mode 100644 index e737543..0000000 --- a/angular/src/app/core/api/v1/model/configJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/gameAccount.ts b/angular/src/app/core/api/v1/model/gameAccount.ts deleted file mode 100644 index 883fe18..0000000 --- a/angular/src/app/core/api/v1/model/gameAccount.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/gameAccountJsonld.ts b/angular/src/app/core/api/v1/model/gameAccountJsonld.ts deleted file mode 100644 index db1ff77..0000000 --- a/angular/src/app/core/api/v1/model/gameAccountJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/logAccountCreditJsonld.ts b/angular/src/app/core/api/v1/model/logAccountCreditJsonld.ts deleted file mode 100644 index 0573365..0000000 --- a/angular/src/app/core/api/v1/model/logAccountCreditJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/logAccountProfitJsonld.ts b/angular/src/app/core/api/v1/model/logAccountProfitJsonld.ts deleted file mode 100644 index e2dff5f..0000000 --- a/angular/src/app/core/api/v1/model/logAccountProfitJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/logAccountSoldItemJsonld.ts b/angular/src/app/core/api/v1/model/logAccountSoldItemJsonld.ts deleted file mode 100644 index fc6c88b..0000000 --- a/angular/src/app/core/api/v1/model/logAccountSoldItemJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/logGeneralJsonld.ts b/angular/src/app/core/api/v1/model/logGeneralJsonld.ts deleted file mode 100644 index f21c8aa..0000000 --- a/angular/src/app/core/api/v1/model/logGeneralJsonld.ts +++ /dev/null @@ -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 - }; -} - - diff --git a/angular/src/app/core/api/v1/model/logTotalProfit.ts b/angular/src/app/core/api/v1/model/logTotalProfit.ts deleted file mode 100644 index 54213e7..0000000 --- a/angular/src/app/core/api/v1/model/logTotalProfit.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/logTotalProfitJsonld.ts b/angular/src/app/core/api/v1/model/logTotalProfitJsonld.ts deleted file mode 100644 index 564e993..0000000 --- a/angular/src/app/core/api/v1/model/logTotalProfitJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/modeConfig.ts b/angular/src/app/core/api/v1/model/modeConfig.ts deleted file mode 100644 index dfbe12a..0000000 --- a/angular/src/app/core/api/v1/model/modeConfig.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/modeConfigJsonld.ts b/angular/src/app/core/api/v1/model/modeConfigJsonld.ts deleted file mode 100644 index 6d83998..0000000 --- a/angular/src/app/core/api/v1/model/modeConfigJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/player.ts b/angular/src/app/core/api/v1/model/player.ts deleted file mode 100644 index 6fc38ae..0000000 --- a/angular/src/app/core/api/v1/model/player.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/playerJsonld.ts b/angular/src/app/core/api/v1/model/playerJsonld.ts deleted file mode 100644 index df13f63..0000000 --- a/angular/src/app/core/api/v1/model/playerJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/rarity.ts b/angular/src/app/core/api/v1/model/rarity.ts deleted file mode 100644 index 00ffd29..0000000 --- a/angular/src/app/core/api/v1/model/rarity.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/rarityJsonld.ts b/angular/src/app/core/api/v1/model/rarityJsonld.ts deleted file mode 100644 index 81c7f57..0000000 --- a/angular/src/app/core/api/v1/model/rarityJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/app/core/api/v1/model/systemStatJsonld.ts b/angular/src/app/core/api/v1/model/systemStatJsonld.ts deleted file mode 100644 index 6a989b5..0000000 --- a/angular/src/app/core/api/v1/model/systemStatJsonld.ts +++ /dev/null @@ -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; -} - diff --git a/angular/src/assets/i18n/en.json b/angular/src/assets/i18n/en.json index 5a5d8b1..78cf638 100644 --- a/angular/src/assets/i18n/en.json +++ b/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": { diff --git a/angular/src/assets/scss/_basics.scss b/angular/src/assets/scss/_basics.scss index df41c58..d808431 100644 --- a/angular/src/assets/scss/_basics.scss +++ b/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; }