mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
🔄 chore: sync swagger API clients with backend updates
- Regenerated all Swagger API clients (availability, checkout, crm, isa, print, wws) - Updated CRM loyalty card API endpoints (removed interests, added booking/bon management) - Temporarily disabled interests form block functionality due to API changes - Removed deprecated models (check-loyalty-card-result, loyalty-card-status, entity-key-value) - Added new loyalty booking and bon management models and services
This commit is contained in:
@@ -31,8 +31,9 @@ const PARAMETER_CODEC = new ParameterCodec();
|
||||
export class BaseService {
|
||||
constructor(
|
||||
protected config: IsaConfiguration,
|
||||
protected http: HttpClient,
|
||||
) {}
|
||||
protected http: HttpClient
|
||||
) {
|
||||
}
|
||||
|
||||
private _rootUrl: string = '';
|
||||
|
||||
@@ -56,7 +57,7 @@ export class BaseService {
|
||||
*/
|
||||
protected newParams(): HttpParams {
|
||||
return new HttpParams({
|
||||
encoder: PARAMETER_CODEC,
|
||||
encoder: PARAMETER_CODEC
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { Injectable } from '@angular/core';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class IsaConfiguration {
|
||||
rootUrl: string = 'https://isa-test.paragon-data.net';
|
||||
rootUrl: string = 'https://isa-test.paragon-data.net/isa/v1';
|
||||
}
|
||||
|
||||
export interface IsaConfigurationInterface {
|
||||
|
||||
@@ -9,7 +9,6 @@ export { DialogOfString } from './models/dialog-of-string';
|
||||
export { DialogSettings } from './models/dialog-settings';
|
||||
export { DialogContentType } from './models/dialog-content-type';
|
||||
export { KeyValueDTOOfStringAndString } from './models/key-value-dtoof-string-and-string';
|
||||
export { IPublicUserInfo } from './models/ipublic-user-info';
|
||||
export { UserState } from './models/user-state';
|
||||
export { ResponseArgsOfUserState } from './models/response-args-of-user-state';
|
||||
export { Log } from './models/log';
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type DialogContentType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
|
||||
export type DialogContentType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
|
||||
@@ -1,2 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type DialogSettings = 0 | 1 | 2 | 4;
|
||||
export type DialogSettings = 0 | 1 | 2 | 4;
|
||||
@@ -1,7 +0,0 @@
|
||||
/* tslint:disable */
|
||||
export interface IPublicUserInfo {
|
||||
alias?: string;
|
||||
displayName?: string;
|
||||
isAuthenticated: boolean;
|
||||
username?: string;
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
* KeyCard Werte
|
||||
*/
|
||||
export interface KeyCardValues {
|
||||
|
||||
/**
|
||||
* Applikation
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgsOfIEnumerableOfFeedDTO } from './response-args-of-ienumerable-of-feed-dto';
|
||||
export interface ListResponseArgsOfFeedDTO extends ResponseArgsOfIEnumerableOfFeedDTO {
|
||||
export interface ListResponseArgsOfFeedDTO extends ResponseArgsOfIEnumerableOfFeedDTO{
|
||||
completed?: boolean;
|
||||
hits?: number;
|
||||
skip?: number;
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type LogLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
||||
export type LogLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
||||
@@ -5,6 +5,7 @@ import { LogLevel } from './log-level';
|
||||
* Log entry
|
||||
*/
|
||||
export interface Log {
|
||||
|
||||
/**
|
||||
* Content
|
||||
*/
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* Antwortdaten
|
||||
*/
|
||||
export interface LoginResponse {
|
||||
|
||||
/**
|
||||
* Filialkürzel
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* tslint:disable */
|
||||
export interface ProblemDetails {
|
||||
detail?: string;
|
||||
extensions: { [key: string]: any };
|
||||
extensions: {[key: string]: any};
|
||||
instance?: string;
|
||||
status?: number;
|
||||
title?: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { FeedDTO } from './feed-dto';
|
||||
export interface ResponseArgsOfIEnumerableOfFeedDTO extends ResponseArgs {
|
||||
export interface ResponseArgsOfIEnumerableOfFeedDTO extends ResponseArgs{
|
||||
result?: Array<FeedDTO>;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { LogEntry } from './log-entry';
|
||||
export interface ResponseArgsOfIEnumerableOfLogEntry extends ResponseArgs {
|
||||
export interface ResponseArgsOfIEnumerableOfLogEntry extends ResponseArgs{
|
||||
result?: Array<LogEntry>;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { UserState } from './user-state';
|
||||
export interface ResponseArgsOfUserState extends ResponseArgs {
|
||||
export interface ResponseArgsOfUserState extends ResponseArgs{
|
||||
result?: UserState;
|
||||
}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
/* tslint:disable */
|
||||
import { DialogOfString } from './dialog-of-string';
|
||||
import { IPublicUserInfo } from './ipublic-user-info';
|
||||
export interface ResponseArgs {
|
||||
dialog?: DialogOfString;
|
||||
error: boolean;
|
||||
invalidProperties?: { [key: string]: string };
|
||||
invalidProperties?: {[key: string]: string};
|
||||
message?: string;
|
||||
requestId?: number;
|
||||
userInfo?: IPublicUserInfo;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
* Benutzerdaten
|
||||
*/
|
||||
export interface UserState {
|
||||
|
||||
/**
|
||||
* Daten
|
||||
*/
|
||||
|
||||
@@ -15,7 +15,10 @@ import { KeyCardValues } from '../models/key-card-values';
|
||||
class AuthService extends __BaseService {
|
||||
static readonly AuthLoginPath = '/auth/keycard';
|
||||
|
||||
constructor(config: __Configuration, http: HttpClient) {
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
@@ -28,17 +31,21 @@ class AuthService extends __BaseService {
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = values;
|
||||
let req = new HttpRequest<any>('POST', this.rootUrl + `/auth/keycard`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/auth/keycard`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<LoginResponse>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -46,10 +53,13 @@ class AuthService extends __BaseService {
|
||||
* @param values KeyCard Daten
|
||||
*/
|
||||
AuthLogin(values: KeyCardValues): __Observable<LoginResponse> {
|
||||
return this.AuthLoginResponse(values).pipe(__map((_r) => _r.body as LoginResponse));
|
||||
return this.AuthLoginResponse(values).pipe(
|
||||
__map(_r => _r.body as LoginResponse)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module AuthService {}
|
||||
module AuthService {
|
||||
}
|
||||
|
||||
export { AuthService };
|
||||
export { AuthService }
|
||||
|
||||
@@ -14,7 +14,10 @@ import { ListResponseArgsOfFeedDTO } from '../models/list-response-args-of-feed-
|
||||
class InfoService extends __BaseService {
|
||||
static readonly InfoInfoPath = '/isa/info';
|
||||
|
||||
constructor(config: __Configuration, http: HttpClient) {
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
@@ -32,17 +35,21 @@ class InfoService extends __BaseService {
|
||||
let __body: any = null;
|
||||
if (params.take != null) __params = __params.set('take', params.take.toString());
|
||||
if (params.skip != null) __params = __params.set('skip', params.skip.toString());
|
||||
let req = new HttpRequest<any>('GET', this.rootUrl + `/isa/info`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/isa/info`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ListResponseArgsOfFeedDTO>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -54,11 +61,14 @@ class InfoService extends __BaseService {
|
||||
* - `skip`:
|
||||
*/
|
||||
InfoInfo(params: InfoService.InfoInfoParams): __Observable<ListResponseArgsOfFeedDTO> {
|
||||
return this.InfoInfoResponse(params).pipe(__map((_r) => _r.body as ListResponseArgsOfFeedDTO));
|
||||
return this.InfoInfoResponse(params).pipe(
|
||||
__map(_r => _r.body as ListResponseArgsOfFeedDTO)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module InfoService {
|
||||
|
||||
/**
|
||||
* Parameters for InfoInfo
|
||||
*/
|
||||
@@ -68,4 +78,4 @@ module InfoService {
|
||||
}
|
||||
}
|
||||
|
||||
export { InfoService };
|
||||
export { InfoService }
|
||||
|
||||
@@ -23,7 +23,10 @@ class UserStateService extends __BaseService {
|
||||
static readonly UserStateSaveLogPath = '/isa/logging';
|
||||
static readonly UserStateGetLogPath = '/isa/logging';
|
||||
|
||||
constructor(config: __Configuration, http: HttpClient) {
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
@@ -36,17 +39,21 @@ class UserStateService extends __BaseService {
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = userState;
|
||||
let req = new HttpRequest<any>('POST', this.rootUrl + `/isa/userstate`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/isa/userstate`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgs>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -54,7 +61,9 @@ class UserStateService extends __BaseService {
|
||||
* @param userState Content
|
||||
*/
|
||||
UserStateSetUserState(userState: UserState): __Observable<ResponseArgs> {
|
||||
return this.UserStateSetUserStateResponse(userState).pipe(__map((_r) => _r.body as ResponseArgs));
|
||||
return this.UserStateSetUserStateResponse(userState).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,24 +73,30 @@ class UserStateService extends __BaseService {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
let req = new HttpRequest<any>('DELETE', this.rootUrl + `/isa/userstate`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'DELETE',
|
||||
this.rootUrl + `/isa/userstate`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgs>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Benutzerdaten löschen
|
||||
*/
|
||||
UserStateResetUserState(): __Observable<ResponseArgs> {
|
||||
return this.UserStateResetUserStateResponse().pipe(__map((_r) => _r.body as ResponseArgs));
|
||||
return this.UserStateResetUserStateResponse().pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -92,17 +107,21 @@ class UserStateService extends __BaseService {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
let req = new HttpRequest<any>('GET', this.rootUrl + `/isa/userstate`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/isa/userstate`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfUserState>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -110,7 +129,9 @@ class UserStateService extends __BaseService {
|
||||
* @return Benutzerdaten
|
||||
*/
|
||||
UserStateGetUserState(): __Observable<ResponseArgsOfUserState> {
|
||||
return this.UserStateGetUserStateResponse().pipe(__map((_r) => _r.body as ResponseArgsOfUserState));
|
||||
return this.UserStateGetUserStateResponse().pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfUserState)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -120,24 +141,30 @@ class UserStateService extends __BaseService {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
let req = new HttpRequest<any>('GET', this.rootUrl + `/isa/activews`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/isa/activews`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfUserState>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Aktive WebSockets
|
||||
*/
|
||||
UserStateGetActiveWS(): __Observable<ResponseArgsOfUserState> {
|
||||
return this.UserStateGetActiveWSResponse().pipe(__map((_r) => _r.body as ResponseArgsOfUserState));
|
||||
return this.UserStateGetActiveWSResponse().pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfUserState)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,17 +176,21 @@ class UserStateService extends __BaseService {
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = log;
|
||||
let req = new HttpRequest<any>('POST', this.rootUrl + `/isa/logging`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/isa/logging`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<null>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -167,7 +198,9 @@ class UserStateService extends __BaseService {
|
||||
* @param log Logdaten
|
||||
*/
|
||||
UserStateSaveLog(log: Log): __Observable<null> {
|
||||
return this.UserStateSaveLogResponse(log).pipe(__map((_r) => _r.body as null));
|
||||
return this.UserStateSaveLogResponse(log).pipe(
|
||||
__map(_r => _r.body as null)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -180,25 +213,27 @@ class UserStateService extends __BaseService {
|
||||
*
|
||||
* @return Benutzerdaten
|
||||
*/
|
||||
UserStateGetLogResponse(
|
||||
params: UserStateService.UserStateGetLogParams,
|
||||
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfLogEntry>> {
|
||||
UserStateGetLogResponse(params: UserStateService.UserStateGetLogParams): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfLogEntry>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
if (params.stop != null) __params = __params.set('stop', params.stop.toString());
|
||||
if (params.start != null) __params = __params.set('start', params.start.toString());
|
||||
let req = new HttpRequest<any>('GET', this.rootUrl + `/isa/logging`, __body, {
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json',
|
||||
});
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/isa/logging`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter((_r) => _r instanceof HttpResponse),
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfLogEntry>;
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
@@ -212,11 +247,14 @@ class UserStateService extends __BaseService {
|
||||
* @return Benutzerdaten
|
||||
*/
|
||||
UserStateGetLog(params: UserStateService.UserStateGetLogParams): __Observable<ResponseArgsOfIEnumerableOfLogEntry> {
|
||||
return this.UserStateGetLogResponse(params).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfLogEntry));
|
||||
return this.UserStateGetLogResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfLogEntry)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module UserStateService {
|
||||
|
||||
/**
|
||||
* Parameters for UserStateGetLog
|
||||
*/
|
||||
@@ -226,4 +264,4 @@ module UserStateService {
|
||||
}
|
||||
}
|
||||
|
||||
export { UserStateService };
|
||||
export { UserStateService }
|
||||
|
||||
@@ -6,4 +6,4 @@ import { HttpResponse } from '@angular/common/http';
|
||||
*/
|
||||
export type StrictHttpResponse<T> = HttpResponse<T> & {
|
||||
readonly body: T;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user