mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Added WWS API - Generated with ng-swagger-gen
This commit is contained in:
33
angular.json
33
angular.json
@@ -2779,6 +2779,39 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@swagger/wws": {
|
||||
"projectType": "library",
|
||||
"root": "apps/swagger/wws",
|
||||
"sourceRoot": "apps/swagger/wws/src",
|
||||
"prefix": "lib",
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:ng-packagr",
|
||||
"options": {
|
||||
"project": "apps/swagger/wws/ng-package.json"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"tsConfig": "apps/swagger/wws/tsconfig.lib.prod.json"
|
||||
},
|
||||
"development": {
|
||||
"tsConfig": "apps/swagger/wws/tsconfig.lib.json"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"tsConfig": "apps/swagger/wws/tsconfig.spec.json",
|
||||
"polyfills": [
|
||||
"zone.js",
|
||||
"zone.js/testing"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
24
apps/swagger/wws/README.md
Normal file
24
apps/swagger/wws/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Wws
|
||||
|
||||
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.0.
|
||||
|
||||
## Code scaffolding
|
||||
|
||||
Run `ng generate component component-name --project wws` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project wws`.
|
||||
> Note: Don't forget to add `--project wws` or else it will be added to the default project in your `angular.json` file.
|
||||
|
||||
## Build
|
||||
|
||||
Run `ng build wws` to build the project. The build artifacts will be stored in the `dist/` directory.
|
||||
|
||||
## Publishing
|
||||
|
||||
After building your library with `ng build wws`, go to the dist folder `cd dist/wws` and run `npm publish`.
|
||||
|
||||
## Running unit tests
|
||||
|
||||
Run `ng test wws` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||
|
||||
## Further help
|
||||
|
||||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
||||
7
apps/swagger/wws/ng-package.json
Normal file
7
apps/swagger/wws/ng-package.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
|
||||
"dest": "../../../dist/swagger/wws",
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
||||
11
apps/swagger/wws/package.json
Normal file
11
apps/swagger/wws/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "@swagger/wws",
|
||||
"version": "0.0.1",
|
||||
"peerDependencies": {
|
||||
"@angular/common": "^15.0.0",
|
||||
"@angular/core": "^15.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
}
|
||||
16
apps/swagger/wws/src/lib/av-configuration.ts
Normal file
16
apps/swagger/wws/src/lib/av-configuration.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
/**
|
||||
* Global configuration for Av services
|
||||
*/
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AvConfiguration {
|
||||
rootUrl: string = 'https://isa-test.paragon-data.net';
|
||||
}
|
||||
|
||||
export interface AvConfigurationInterface {
|
||||
rootUrl?: string;
|
||||
}
|
||||
36
apps/swagger/wws/src/lib/av.module.ts
Normal file
36
apps/swagger/wws/src/lib/av.module.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/* tslint:disable */
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { AvConfiguration, AvConfigurationInterface } from './av-configuration';
|
||||
|
||||
import { WareneingangService } from './services/wareneingang.service';
|
||||
|
||||
/**
|
||||
* Provider for all Av services, plus AvConfiguration
|
||||
*/
|
||||
@NgModule({
|
||||
imports: [
|
||||
HttpClientModule
|
||||
],
|
||||
exports: [
|
||||
HttpClientModule
|
||||
],
|
||||
declarations: [],
|
||||
providers: [
|
||||
AvConfiguration,
|
||||
WareneingangService
|
||||
],
|
||||
})
|
||||
export class AvModule {
|
||||
static forRoot(customParams: AvConfigurationInterface): ModuleWithProviders<AvModule> {
|
||||
return {
|
||||
ngModule: AvModule,
|
||||
providers: [
|
||||
{
|
||||
provide: AvConfiguration,
|
||||
useValue: {rootUrl: customParams.rootUrl}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
63
apps/swagger/wws/src/lib/base-service.ts
Normal file
63
apps/swagger/wws/src/lib/base-service.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
/* tslint:disable */
|
||||
import { HttpClient, HttpParameterCodec, HttpParams } from '@angular/common/http';
|
||||
import { AvConfiguration } from './av-configuration';
|
||||
|
||||
/**
|
||||
* Custom parameter codec to correctly handle the plus sign in parameter
|
||||
* values. See https://github.com/angular/angular/issues/18261
|
||||
*/
|
||||
class ParameterCodec implements HttpParameterCodec {
|
||||
encodeKey(key: string): string {
|
||||
return encodeURIComponent(key);
|
||||
}
|
||||
|
||||
encodeValue(value: string): string {
|
||||
return encodeURIComponent(value);
|
||||
}
|
||||
|
||||
decodeKey(key: string): string {
|
||||
return decodeURIComponent(key);
|
||||
}
|
||||
|
||||
decodeValue(value: string): string {
|
||||
return decodeURIComponent(value);
|
||||
}
|
||||
}
|
||||
const PARAMETER_CODEC = new ParameterCodec();
|
||||
|
||||
/**
|
||||
* Base class for API services
|
||||
*/
|
||||
export class BaseService {
|
||||
constructor(
|
||||
protected config: AvConfiguration,
|
||||
protected http: HttpClient
|
||||
) {
|
||||
}
|
||||
|
||||
private _rootUrl: string = '';
|
||||
|
||||
/**
|
||||
* Returns the root url for API operations. If not set directly in this
|
||||
* service, will fallback to ApiConfiguration.rootUrl.
|
||||
*/
|
||||
get rootUrl(): string {
|
||||
return this._rootUrl || this.config.rootUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the root URL for API operations in this service.
|
||||
*/
|
||||
set rootUrl(rootUrl: string) {
|
||||
this._rootUrl = rootUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new `HttpParams` with the correct codec
|
||||
*/
|
||||
protected newParams(): HttpParams {
|
||||
return new HttpParams({
|
||||
encoder: PARAMETER_CODEC
|
||||
});
|
||||
}
|
||||
}
|
||||
24
apps/swagger/wws/src/lib/models.ts
Normal file
24
apps/swagger/wws/src/lib/models.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export { ResponseArgsOfQuerySettingsDTO } from './models/response-args-of-query-settings-dto';
|
||||
export { QuerySettingsDTO } from './models/query-settings-dto';
|
||||
export { InputGroupDTO } from './models/input-group-dto';
|
||||
export { InputDTO } from './models/input-dto';
|
||||
export { InputType } from './models/input-type';
|
||||
export { InputOptionsDTO } from './models/input-options-dto';
|
||||
export { OptionDTO } from './models/option-dto';
|
||||
export { OrderByDTO } from './models/order-by-dto';
|
||||
export { ResponseArgs } from './models/response-args';
|
||||
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 { ProblemDetails } from './models/problem-details';
|
||||
export { ListResponseArgsOfPackageDTO } from './models/list-response-args-of-package-dto';
|
||||
export { ResponseArgsOfIEnumerableOfPackageDTO } from './models/response-args-of-ienumerable-of-package-dto';
|
||||
export { PackageDTO } from './models/package-dto';
|
||||
export { PackageArrivalStatusDTO } from './models/package-arrival-status-dto';
|
||||
export { ArrivalStatus } from './models/arrival-status';
|
||||
export { QueryTokenDTO } from './models/query-token-dto';
|
||||
export { ResponseArgsOfPackageDetailResponse } from './models/response-args-of-package-detail-response';
|
||||
export { PackageDetailResponse } from './models/package-detail-response';
|
||||
export { PackageItemDTO } from './models/package-item-dto';
|
||||
2
apps/swagger/wws/src/lib/models/arrival-status.ts
Normal file
2
apps/swagger/wws/src/lib/models/arrival-status.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type ArrivalStatus = 0 | 1 | 2 | 4 | 8 | 16;
|
||||
2
apps/swagger/wws/src/lib/models/dialog-content-type.ts
Normal file
2
apps/swagger/wws/src/lib/models/dialog-content-type.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type DialogContentType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
|
||||
16
apps/swagger/wws/src/lib/models/dialog-of-string.ts
Normal file
16
apps/swagger/wws/src/lib/models/dialog-of-string.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* tslint:disable */
|
||||
import { KeyValueDTOOfStringAndString } from './key-value-dtoof-string-and-string';
|
||||
import { DialogContentType } from './dialog-content-type';
|
||||
import { DialogSettings } from './dialog-settings';
|
||||
export interface DialogOfString {
|
||||
actions?: Array<KeyValueDTOOfStringAndString>;
|
||||
actionsRequired?: number;
|
||||
area?: string;
|
||||
content?: string;
|
||||
contentType: DialogContentType;
|
||||
description?: string;
|
||||
displayTimeout?: number;
|
||||
settings: DialogSettings;
|
||||
subtitle?: string;
|
||||
title?: string;
|
||||
}
|
||||
2
apps/swagger/wws/src/lib/models/dialog-settings.ts
Normal file
2
apps/swagger/wws/src/lib/models/dialog-settings.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type DialogSettings = 0 | 1 | 2 | 4;
|
||||
16
apps/swagger/wws/src/lib/models/input-dto.ts
Normal file
16
apps/swagger/wws/src/lib/models/input-dto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* tslint:disable */
|
||||
import { InputOptionsDTO } from './input-options-dto';
|
||||
import { InputType } from './input-type';
|
||||
export interface InputDTO {
|
||||
constraint?: string;
|
||||
description?: string;
|
||||
key?: string;
|
||||
label?: string;
|
||||
maxValue?: string;
|
||||
minValue?: string;
|
||||
options?: InputOptionsDTO;
|
||||
placeholder?: string;
|
||||
target?: string;
|
||||
type: InputType;
|
||||
value?: string;
|
||||
}
|
||||
8
apps/swagger/wws/src/lib/models/input-group-dto.ts
Normal file
8
apps/swagger/wws/src/lib/models/input-group-dto.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { InputDTO } from './input-dto';
|
||||
export interface InputGroupDTO {
|
||||
description?: string;
|
||||
group?: string;
|
||||
input?: Array<InputDTO>;
|
||||
label?: string;
|
||||
}
|
||||
6
apps/swagger/wws/src/lib/models/input-options-dto.ts
Normal file
6
apps/swagger/wws/src/lib/models/input-options-dto.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { OptionDTO } from './option-dto';
|
||||
export interface InputOptionsDTO {
|
||||
max?: number;
|
||||
values?: Array<OptionDTO>;
|
||||
}
|
||||
2
apps/swagger/wws/src/lib/models/input-type.ts
Normal file
2
apps/swagger/wws/src/lib/models/input-type.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type InputType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 3072 | 4096 | 8192 | 12288;
|
||||
7
apps/swagger/wws/src/lib/models/ipublic-user-info.ts
Normal file
7
apps/swagger/wws/src/lib/models/ipublic-user-info.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* tslint:disable */
|
||||
export interface IPublicUserInfo {
|
||||
alias?: string;
|
||||
displayName?: string;
|
||||
isAuthenticated: boolean;
|
||||
username?: string;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/* tslint:disable */
|
||||
export interface KeyValueDTOOfStringAndString {
|
||||
command?: string;
|
||||
description?: string;
|
||||
enabled?: boolean;
|
||||
group?: string;
|
||||
key?: string;
|
||||
label?: string;
|
||||
selected?: boolean;
|
||||
sort?: number;
|
||||
value?: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgsOfIEnumerableOfPackageDTO } from './response-args-of-ienumerable-of-package-dto';
|
||||
export interface ListResponseArgsOfPackageDTO extends ResponseArgsOfIEnumerableOfPackageDTO{
|
||||
completed?: boolean;
|
||||
hits?: number;
|
||||
skip?: number;
|
||||
take?: number;
|
||||
}
|
||||
13
apps/swagger/wws/src/lib/models/option-dto.ts
Normal file
13
apps/swagger/wws/src/lib/models/option-dto.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* tslint:disable */
|
||||
export interface OptionDTO {
|
||||
description?: string;
|
||||
enabled?: boolean;
|
||||
key?: string;
|
||||
label?: string;
|
||||
maxValue?: string;
|
||||
minValue?: string;
|
||||
placeholder?: string;
|
||||
selected?: boolean;
|
||||
value?: string;
|
||||
values?: Array<OptionDTO>;
|
||||
}
|
||||
6
apps/swagger/wws/src/lib/models/order-by-dto.ts
Normal file
6
apps/swagger/wws/src/lib/models/order-by-dto.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
export interface OrderByDTO {
|
||||
by?: string;
|
||||
desc?: boolean;
|
||||
label?: string;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/* tslint:disable */
|
||||
import { ArrivalStatus } from './arrival-status';
|
||||
export interface PackageArrivalStatusDTO {
|
||||
annotation?: string;
|
||||
area?: string;
|
||||
arrivalChecked?: string;
|
||||
arrivalStatus?: ArrivalStatus;
|
||||
deliveryNoteNumber?: string;
|
||||
deliveryTarget?: string;
|
||||
estimatedDeliveryDate?: string;
|
||||
id: string;
|
||||
packageNumber?: string;
|
||||
supplier?: string;
|
||||
trackingNumber?: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { PackageItemDTO } from './package-item-dto';
|
||||
import { PackageDTO } from './package-dto';
|
||||
export interface PackageDetailResponse {
|
||||
action?: string;
|
||||
items: Array<PackageItemDTO>;
|
||||
package: PackageDTO;
|
||||
}
|
||||
9
apps/swagger/wws/src/lib/models/package-dto.ts
Normal file
9
apps/swagger/wws/src/lib/models/package-dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* tslint:disable */
|
||||
import { PackageArrivalStatusDTO } from './package-arrival-status-dto';
|
||||
export interface PackageDTO extends PackageArrivalStatusDTO{
|
||||
app?: string;
|
||||
items?: number;
|
||||
itemsOrdered?: number;
|
||||
valueOfGoods?: number;
|
||||
weight?: number;
|
||||
}
|
||||
24
apps/swagger/wws/src/lib/models/package-item-dto.ts
Normal file
24
apps/swagger/wws/src/lib/models/package-item-dto.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/* tslint:disable */
|
||||
export interface PackageItemDTO {
|
||||
annotation?: string;
|
||||
area?: string;
|
||||
deliverer?: string;
|
||||
deliveryNoteNumber?: string;
|
||||
deliveryTarget?: string;
|
||||
ean?: string;
|
||||
estimatedDeliveryDate?: string;
|
||||
id: string;
|
||||
isPrebooked: boolean;
|
||||
orderReferenceCode?: string;
|
||||
packageNumber?: string;
|
||||
price?: number;
|
||||
productgroup?: string;
|
||||
quantity?: number;
|
||||
quantityImpediment?: number;
|
||||
quantityOrdered?: number;
|
||||
ssc?: string;
|
||||
supplier?: string;
|
||||
title?: string;
|
||||
trackingNumber?: string;
|
||||
weight?: number;
|
||||
}
|
||||
10
apps/swagger/wws/src/lib/models/problem-details.ts
Normal file
10
apps/swagger/wws/src/lib/models/problem-details.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* tslint:disable */
|
||||
export interface ProblemDetails {
|
||||
detail?: string;
|
||||
extensions: {[key: string]: any};
|
||||
instance?: string;
|
||||
status?: number;
|
||||
title?: string;
|
||||
type?: string;
|
||||
[prop: string]: any;
|
||||
}
|
||||
8
apps/swagger/wws/src/lib/models/query-settings-dto.ts
Normal file
8
apps/swagger/wws/src/lib/models/query-settings-dto.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { InputGroupDTO } from './input-group-dto';
|
||||
import { OrderByDTO } from './order-by-dto';
|
||||
export interface QuerySettingsDTO {
|
||||
filter?: Array<InputGroupDTO>;
|
||||
input?: Array<InputGroupDTO>;
|
||||
orderBy?: Array<OrderByDTO>;
|
||||
}
|
||||
13
apps/swagger/wws/src/lib/models/query-token-dto.ts
Normal file
13
apps/swagger/wws/src/lib/models/query-token-dto.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { OrderByDTO } from './order-by-dto';
|
||||
export interface QueryTokenDTO {
|
||||
filter?: {[key: string]: string};
|
||||
friendlyName?: string;
|
||||
fuzzy?: number;
|
||||
hitsOnly?: boolean;
|
||||
ids?: Array<number>;
|
||||
input?: {[key: string]: string};
|
||||
orderBy?: Array<OrderByDTO>;
|
||||
skip?: number;
|
||||
take?: number;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { PackageDTO } from './package-dto';
|
||||
export interface ResponseArgsOfIEnumerableOfPackageDTO extends ResponseArgs{
|
||||
result?: Array<PackageDTO>;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { PackageDetailResponse } from './package-detail-response';
|
||||
export interface ResponseArgsOfPackageDetailResponse extends ResponseArgs{
|
||||
result?: PackageDetailResponse;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { QuerySettingsDTO } from './query-settings-dto';
|
||||
export interface ResponseArgsOfQuerySettingsDTO extends ResponseArgs{
|
||||
result?: QuerySettingsDTO;
|
||||
}
|
||||
11
apps/swagger/wws/src/lib/models/response-args.ts
Normal file
11
apps/swagger/wws/src/lib/models/response-args.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* 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};
|
||||
message?: string;
|
||||
requestId?: number;
|
||||
userInfo?: IPublicUserInfo;
|
||||
}
|
||||
1
apps/swagger/wws/src/lib/services.ts
Normal file
1
apps/swagger/wws/src/lib/services.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { WareneingangService } from './services/wareneingang.service';
|
||||
138
apps/swagger/wws/src/lib/services/wareneingang.service.ts
Normal file
138
apps/swagger/wws/src/lib/services/wareneingang.service.ts
Normal file
@@ -0,0 +1,138 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http';
|
||||
import { BaseService as __BaseService } from '../base-service';
|
||||
import { AvConfiguration as __Configuration } from '../av-configuration';
|
||||
import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response';
|
||||
import { Observable as __Observable } from 'rxjs';
|
||||
import { map as __map, filter as __filter } from 'rxjs/operators';
|
||||
|
||||
import { ResponseArgsOfQuerySettingsDTO } from '../models/response-args-of-query-settings-dto';
|
||||
import { ListResponseArgsOfPackageDTO } from '../models/list-response-args-of-package-dto';
|
||||
import { QueryTokenDTO } from '../models/query-token-dto';
|
||||
import { ResponseArgsOfPackageDetailResponse } from '../models/response-args-of-package-detail-response';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
class WareneingangService extends __BaseService {
|
||||
static readonly WareneingangQueryPackagesSettingsPath = '/wareneingang/packstuecke/s/settings';
|
||||
static readonly WareneingangQueryPackagesPath = '/wareneingang/packstuecke/s';
|
||||
static readonly WareneingangGetPackageDetailsPath = '/wareneingang/packstuecke/{packageId}';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
/**
|
||||
* Settings
|
||||
*/
|
||||
WareneingangQueryPackagesSettingsResponse(): __Observable<__StrictHttpResponse<ResponseArgsOfQuerySettingsDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/wareneingang/packstuecke/s/settings`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfQuerySettingsDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Settings
|
||||
*/
|
||||
WareneingangQueryPackagesSettings(): __Observable<ResponseArgsOfQuerySettingsDTO> {
|
||||
return this.WareneingangQueryPackagesSettingsResponse().pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfQuerySettingsDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Packstücke abfragen
|
||||
* @param queryToken undefined
|
||||
*/
|
||||
WareneingangQueryPackagesResponse(queryToken: QueryTokenDTO): __Observable<__StrictHttpResponse<ListResponseArgsOfPackageDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = queryToken;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/wareneingang/packstuecke/s`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ListResponseArgsOfPackageDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Packstücke abfragen
|
||||
* @param queryToken undefined
|
||||
*/
|
||||
WareneingangQueryPackages(queryToken: QueryTokenDTO): __Observable<ListResponseArgsOfPackageDTO> {
|
||||
return this.WareneingangQueryPackagesResponse(queryToken).pipe(
|
||||
__map(_r => _r.body as ListResponseArgsOfPackageDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Packstück-Details
|
||||
* @param packageId undefined
|
||||
*/
|
||||
WareneingangGetPackageDetailsResponse(packageId: null | string): __Observable<__StrictHttpResponse<ResponseArgsOfPackageDetailResponse>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/wareneingang/packstuecke/${encodeURIComponent(String(packageId))}`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfPackageDetailResponse>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Packstück-Details
|
||||
* @param packageId undefined
|
||||
*/
|
||||
WareneingangGetPackageDetails(packageId: null | string): __Observable<ResponseArgsOfPackageDetailResponse> {
|
||||
return this.WareneingangGetPackageDetailsResponse(packageId).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfPackageDetailResponse)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module WareneingangService {
|
||||
}
|
||||
|
||||
export { WareneingangService }
|
||||
9
apps/swagger/wws/src/lib/strict-http-response.ts
Normal file
9
apps/swagger/wws/src/lib/strict-http-response.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* tslint:disable */
|
||||
import { HttpResponse } from '@angular/common/http';
|
||||
|
||||
/**
|
||||
* Constrains the http to not expand the response type with `| null`
|
||||
*/
|
||||
export type StrictHttpResponse<T> = HttpResponse<T> & {
|
||||
readonly body: T;
|
||||
}
|
||||
13
apps/swagger/wws/src/public-api.ts
Normal file
13
apps/swagger/wws/src/public-api.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Public API Surface of wws
|
||||
*/
|
||||
|
||||
export * from './lib/models';
|
||||
export * from './lib/services';
|
||||
export * from './lib/av-configuration';
|
||||
export * from './lib/av.module';
|
||||
export * from './lib/base-service';
|
||||
export * from './lib/models';
|
||||
export * from './lib/services';
|
||||
export * from './lib/strict-http-response';
|
||||
|
||||
14
apps/swagger/wws/tsconfig.lib.json
Normal file
14
apps/swagger/wws/tsconfig.lib.json
Normal file
@@ -0,0 +1,14 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../../out-tsc/lib",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"inlineSources": true,
|
||||
"types": []
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
10
apps/swagger/wws/tsconfig.lib.prod.json
Normal file
10
apps/swagger/wws/tsconfig.lib.prod.json
Normal file
@@ -0,0 +1,10 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "./tsconfig.lib.json",
|
||||
"compilerOptions": {
|
||||
"declarationMap": false
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"compilationMode": "partial"
|
||||
}
|
||||
}
|
||||
14
apps/swagger/wws/tsconfig.spec.json
Normal file
14
apps/swagger/wws/tsconfig.spec.json
Normal file
@@ -0,0 +1,14 @@
|
||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
||||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../../out-tsc/spec",
|
||||
"types": [
|
||||
"jasmine"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.d.ts"
|
||||
]
|
||||
}
|
||||
15
ng-swagger-gen/wws.json
Normal file
15
ng-swagger-gen/wws.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$schema": "../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
|
||||
"swagger": "https://isa-test.paragon-data.net/wws/v1/swagger.json",
|
||||
"output": "apps/swagger/wws/src/lib",
|
||||
"prefix": "Av",
|
||||
"minParamsForContainer": 2,
|
||||
"sortParams": "desc",
|
||||
"defaultTag": "Av",
|
||||
"removeStaleFiles": true,
|
||||
"modelIndex": true,
|
||||
"serviceIndex": true,
|
||||
"apiModule": true,
|
||||
"enumModule": true,
|
||||
"generateExamples": false
|
||||
}
|
||||
20282
package-lock.json
generated
20282
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -32,6 +32,7 @@
|
||||
"gen:swagger:print": "ng-swagger-gen --config ng-swagger-gen/print.json",
|
||||
"gen:swagger:eis": "ng-swagger-gen --config ng-swagger-gen/eis.json",
|
||||
"gen:swagger:remi": "ng-swagger-gen --config ng-swagger-gen/remi.json",
|
||||
"gen:swagger:wws": "ng-swagger-gen --config ng-swagger-gen/wws.json",
|
||||
"prettier": "prettier --write ."
|
||||
},
|
||||
"husky": {
|
||||
@@ -121,4 +122,4 @@
|
||||
"tslint": "~6.1.0",
|
||||
"typescript": "~4.8.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,6 +201,9 @@
|
||||
"@modal/history": [
|
||||
"apps/modal/history/src/public-api.ts"
|
||||
],
|
||||
"@swagger/wws": [
|
||||
"apps/swagger/wws/src/public-api.ts"
|
||||
],
|
||||
"@modal/notifications": [
|
||||
"apps/modal/notifications/src/public-api.ts",
|
||||
"dist/modal/notifications/modal-notifications",
|
||||
|
||||
Reference in New Issue
Block a user