🔄 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:
Lorenz Hilpert
2025-11-06 17:03:37 +01:00
parent 89b3d9aa60
commit 8e4d4ff804
312 changed files with 3539 additions and 2762 deletions

View File

@@ -8,7 +8,7 @@ import { Injectable } from '@angular/core';
providedIn: 'root',
})
export class AvConfiguration {
rootUrl: string = 'https://isa-test.paragon-data.net';
rootUrl: string = 'https://isa-test.paragon-data.net/ava/v6';
}
export interface AvConfigurationInterface {

View File

@@ -31,8 +31,9 @@ const PARAMETER_CODEC = new ParameterCodec();
export class BaseService {
constructor(
protected config: AvConfiguration,
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
});
}
}

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type AvailabilityType = 0 | 1 | 2 | 32 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384;
export type AvailabilityType = 0 | 1 | 2 | 32 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type AvailableFor = 0 | 1 | 2 | 4 | 8 | 16 | 32;
export type AvailableFor = 0 | 1 | 2 | 4 | 8 | 16 | 32;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
export interface DateRangeDTO extends TouchedBase {
export interface DateRangeDTO extends TouchedBase{
start?: string;
stop?: string;
}

View File

@@ -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;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type DialogSettings = 0 | 1 | 2 | 4;
export type DialogSettings = 0 | 1 | 2 | 4;

View File

@@ -2,7 +2,7 @@
import { TouchedBase } from './touched-base';
import { PriceValueDTO } from './price-value-dto';
import { VATValueDTO } from './vatvalue-dto';
export interface PriceDTO extends TouchedBase {
export interface PriceDTO extends TouchedBase{
value?: PriceValueDTO;
vat?: VATValueDTO;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
export interface PriceValueDTO extends TouchedBase {
export interface PriceValueDTO extends TouchedBase{
currency?: string;
currencySymbol?: string;
value?: number;

View File

@@ -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;

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { AvailabilityDTO } from './availability-dto';
export interface ResponseArgsOfIEnumerableOfAvailabilityDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfAvailabilityDTO extends ResponseArgs{
result?: Array<AvailabilityDTO>;
}

View File

@@ -1,6 +1,6 @@
/* tslint:disable */
import { ResponseArgs } from './response-args';
import { WebshopAvailabilityDTO } from './webshop-availability-dto';
export interface ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO extends ResponseArgs {
export interface ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO extends ResponseArgs{
result?: Array<WebshopAvailabilityDTO>;
}

View File

@@ -3,7 +3,7 @@ import { DialogOfString } from './dialog-of-string';
export interface ResponseArgs {
dialog?: DialogOfString;
error: boolean;
invalidProperties?: { [key: string]: string };
invalidProperties?: {[key: string]: string};
message?: string;
requestId?: number;
}

View File

@@ -1,2 +1,3 @@
/* tslint:disable */
export interface TouchedBase {}
export interface TouchedBase {
}

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type TrafficLightValue = 0 | 1 | 2 | 4;
export type TrafficLightValue = 0 | 1 | 2 | 4;

View File

@@ -1,2 +1,2 @@
/* tslint:disable */
export type VATType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
export type VATType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;

View File

@@ -1,7 +1,7 @@
/* tslint:disable */
import { TouchedBase } from './touched-base';
import { VATType } from './vattype';
export interface VATValueDTO extends TouchedBase {
export interface VATValueDTO extends TouchedBase{
inPercent?: number;
label?: string;
value?: number;

View File

@@ -6,6 +6,7 @@ import { TrafficLightValue } from './traffic-light-value';
* Verfügbarkeit
*/
export interface WebshopAvailabilityDTO {
/**
* EAN
*/

View File

@@ -5,6 +5,7 @@ import { WebshopAvailabilityRequestItemDTO } from './webshop-availability-reques
* Webshop Availability Request DTO
*/
export interface WebshopAvailabilityRequestDTO {
/**
* Branch PKs
*/

View File

@@ -4,6 +4,7 @@
* Webshop Availability Request Item DTO
*/
export interface WebshopAvailabilityRequestItemDTO {
/**
* EAN
*/

View File

@@ -16,7 +16,10 @@ class AvailabilityService extends __BaseService {
static readonly AvailabilityStoreAvailabilityPath = '/availability/store';
static readonly AvailabilityShippingAvailabilityPath = '/availability/shipping';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
@@ -25,24 +28,26 @@ class AvailabilityService extends __BaseService {
* Für jede AvailabilityRequestDTO müssen mindestens folgende Werte gesetzt sein: ItemId oder EAN, Qty, sowie ShopId oder BranchNumber
* @param request undefined
*/
AvailabilityStoreAvailabilityResponse(
request: Array<AvailabilityRequestDTO>,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAvailabilityDTO>> {
AvailabilityStoreAvailabilityResponse(request: Array<AvailabilityRequestDTO>): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAvailabilityDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = request;
let req = new HttpRequest<any>('POST', this.rootUrl + `/availability/store`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/availability/store`,
__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<ResponseArgsOfIEnumerableOfAvailabilityDTO>;
}),
})
);
}
/**
@@ -51,7 +56,9 @@ class AvailabilityService extends __BaseService {
* @param request undefined
*/
AvailabilityStoreAvailability(request: Array<AvailabilityRequestDTO>): __Observable<ResponseArgsOfIEnumerableOfAvailabilityDTO> {
return this.AvailabilityStoreAvailabilityResponse(request).pipe(__map((_r) => _r.body as ResponseArgsOfIEnumerableOfAvailabilityDTO));
return this.AvailabilityStoreAvailabilityResponse(request).pipe(
__map(_r => _r.body as ResponseArgsOfIEnumerableOfAvailabilityDTO)
);
}
/**
@@ -59,24 +66,26 @@ class AvailabilityService extends __BaseService {
* Für jede AvailabilityRequestDTO müssen mindestens folgende Werte gesetzt sein: ItemId oder EAN, Qty, sowie ShopId oder BranchNumber
* @param request undefined
*/
AvailabilityShippingAvailabilityResponse(
request: Array<AvailabilityRequestDTO>,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAvailabilityDTO>> {
AvailabilityShippingAvailabilityResponse(request: Array<AvailabilityRequestDTO>): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfAvailabilityDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = request;
let req = new HttpRequest<any>('POST', this.rootUrl + `/availability/shipping`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/availability/shipping`,
__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<ResponseArgsOfIEnumerableOfAvailabilityDTO>;
}),
})
);
}
/**
@@ -86,11 +95,12 @@ class AvailabilityService extends __BaseService {
*/
AvailabilityShippingAvailability(request: Array<AvailabilityRequestDTO>): __Observable<ResponseArgsOfIEnumerableOfAvailabilityDTO> {
return this.AvailabilityShippingAvailabilityResponse(request).pipe(
__map((_r) => _r.body as ResponseArgsOfIEnumerableOfAvailabilityDTO),
__map(_r => _r.body as ResponseArgsOfIEnumerableOfAvailabilityDTO)
);
}
}
module AvailabilityService {}
module AvailabilityService {
}
export { AvailabilityService };
export { AvailabilityService }

View File

@@ -15,7 +15,10 @@ import { WebshopAvailabilityRequestDTO } from '../models/webshop-availability-re
class WebshopAvailabilityService extends __BaseService {
static readonly WebshopAvailabilityWebshopAvailabilityPath = '/availability/webshop';
constructor(config: __Configuration, http: HttpClient) {
constructor(
config: __Configuration,
http: HttpClient
) {
super(config, http);
}
@@ -23,39 +26,40 @@ class WebshopAvailabilityService extends __BaseService {
* Verfügbarkeit für Webshop
* @param payload undefined
*/
WebshopAvailabilityWebshopAvailabilityResponse(
payload: WebshopAvailabilityRequestDTO,
): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO>> {
WebshopAvailabilityWebshopAvailabilityResponse(payload: WebshopAvailabilityRequestDTO): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO>> {
let __params = this.newParams();
let __headers = new HttpHeaders();
let __body: any = null;
__body = payload;
let req = new HttpRequest<any>('POST', this.rootUrl + `/availability/webshop`, __body, {
headers: __headers,
params: __params,
responseType: 'json',
});
let req = new HttpRequest<any>(
'POST',
this.rootUrl + `/availability/webshop`,
__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<ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO>;
}),
})
);
}
/**
* Verfügbarkeit für Webshop
* @param payload undefined
*/
WebshopAvailabilityWebshopAvailability(
payload: WebshopAvailabilityRequestDTO,
): __Observable<ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO> {
WebshopAvailabilityWebshopAvailability(payload: WebshopAvailabilityRequestDTO): __Observable<ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO> {
return this.WebshopAvailabilityWebshopAvailabilityResponse(payload).pipe(
__map((_r) => _r.body as ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO),
__map(_r => _r.body as ResponseArgsOfIEnumerableOfWebshopAvailabilityDTO)
);
}
}
module WebshopAvailabilityService {}
module WebshopAvailabilityService {
}
export { WebshopAvailabilityService };
export { WebshopAvailabilityService }

View File

@@ -6,4 +6,4 @@ import { HttpResponse } from '@angular/common/http';
*/
export type StrictHttpResponse<T> = HttpResponse<T> & {
readonly body: T;
};
}