mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
[HIMA-0] added swagger configuration for print API
This commit is contained in:
16
libs/swagger/ng-swagger-gen-print.json
Normal file
16
libs/swagger/ng-swagger-gen-print.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "../../node_modules/ng-swagger-gen/ng-swagger-gen-schema.json",
|
||||
"swagger": "https://isa.paragon-data.de/print/v1/swagger.json",
|
||||
"output": "src/lib/print",
|
||||
"prefix": "Print",
|
||||
"ignoreUnusedModels": true,
|
||||
"minParamsForContainer": 2,
|
||||
"sortParams": "desc",
|
||||
"defaultTag": "Print",
|
||||
"removeStaleFiles": true,
|
||||
"modelIndex": true,
|
||||
"serviceIndex": true,
|
||||
"apiModule": true,
|
||||
"enumModule": true,
|
||||
"generateExamples": false
|
||||
}
|
||||
@@ -8,6 +8,6 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "ng-swagger-gen && ng serve",
|
||||
"gen-swagger": "ng-swagger-gen -c ng-swagger-gen-cat.json && ng-swagger-gen -c ng-swagger-gen-av.json && ng-swagger-gen -c ng-swagger-gen-isa.json && ng-swagger-gen -c ng-swagger-gen-checkout.json && ng-swagger-gen -c ng-swagger-gen-crm.json && ng-swagger-gen -c ng-swagger-gen-oms.json"
|
||||
"gen-swagger": "ng-swagger-gen -c ng-swagger-gen-cat.json && ng-swagger-gen -c ng-swagger-gen-av.json && ng-swagger-gen -c ng-swagger-gen-isa.json && ng-swagger-gen -c ng-swagger-gen-checkout.json && ng-swagger-gen -c ng-swagger-gen-crm.json && ng-swagger-gen -c ng-swagger-gen-oms.json && ng-swagger-gen -c ng-swagger-gen-print.json"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,16 +9,16 @@ import { ShelfInfoDTO } from './shelf-info-dto';
|
||||
import { ReviewDTO } from './review-dto';
|
||||
export interface ItemDTO extends EntityDTO {
|
||||
|
||||
/**
|
||||
* Verfügbarkeit laut Katalog
|
||||
*/
|
||||
catalogAvailability?: any;
|
||||
|
||||
/**
|
||||
* Rang
|
||||
*/
|
||||
scoring?: number;
|
||||
|
||||
/**
|
||||
* Weitere Artikel-IDs
|
||||
*/
|
||||
ids?: {[key: string]: number};
|
||||
|
||||
/**
|
||||
* Artikel / Produkttyp
|
||||
*/
|
||||
@@ -50,9 +50,9 @@ export interface ItemDTO extends EntityDTO {
|
||||
images?: Array<ImageDTO>;
|
||||
|
||||
/**
|
||||
* Weitere Artikel-IDs
|
||||
* Verfügbarkeit laut Katalog
|
||||
*/
|
||||
ids?: {[key: string]: number};
|
||||
catalogAvailability?: any;
|
||||
|
||||
/**
|
||||
* Verfügbarkeit zur Bestellung in die Filiale
|
||||
|
||||
@@ -6,16 +6,16 @@ import { OrderByDTO } from './order-by-dto';
|
||||
*/
|
||||
export interface QueryTokenDTO {
|
||||
|
||||
/**
|
||||
* Katalogbereich
|
||||
*/
|
||||
catalogType?: any;
|
||||
|
||||
/**
|
||||
* Lager PK
|
||||
*/
|
||||
stockId?: number;
|
||||
|
||||
/**
|
||||
* Bezeichner
|
||||
*/
|
||||
friendlyName?: string;
|
||||
|
||||
/**
|
||||
* Eingabewerte z.B. ("qs", "heller süden")
|
||||
*/
|
||||
@@ -32,9 +32,9 @@ export interface QueryTokenDTO {
|
||||
fuzzy?: number;
|
||||
|
||||
/**
|
||||
* Bezeichner
|
||||
* Katalogbereich
|
||||
*/
|
||||
friendlyName?: string;
|
||||
catalogType?: any;
|
||||
|
||||
/**
|
||||
* Filter
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import { PriceDTO } from './price-dto';
|
||||
import { AvailabilityType } from './availability-type';
|
||||
export interface AvailabilityDTO {
|
||||
sscText?: string;
|
||||
itemId?: number;
|
||||
altItemId?: number;
|
||||
requestReference?: string;
|
||||
ean?: string;
|
||||
shop?: number;
|
||||
@@ -11,7 +11,7 @@ export interface AvailabilityDTO {
|
||||
supplier?: string;
|
||||
supplierId?: number;
|
||||
ssc?: string;
|
||||
altItemId?: number;
|
||||
sscText?: string;
|
||||
qty?: number;
|
||||
isPrebooked?: boolean;
|
||||
at?: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { PriceDTO } from './price-dto';
|
||||
export interface AvailabilityRequestDTO {
|
||||
price?: PriceDTO;
|
||||
itemId?: string;
|
||||
ean?: string;
|
||||
qty: number;
|
||||
orderCode?: string;
|
||||
supplier?: string;
|
||||
preBook?: boolean;
|
||||
ean?: string;
|
||||
price?: PriceDTO;
|
||||
ssc?: string;
|
||||
estimatedShipping?: string;
|
||||
shopId?: number;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { GeoLocation } from './geo-location';
|
||||
export interface AddressDTO {
|
||||
street?: string;
|
||||
apartment?: string;
|
||||
careOf?: string;
|
||||
city?: string;
|
||||
district?: string;
|
||||
info?: string;
|
||||
po?: string;
|
||||
careOf?: string;
|
||||
street?: string;
|
||||
streetNumber?: string;
|
||||
zipCode?: string;
|
||||
state?: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { GeoLocation } from './geo-location';
|
||||
export interface Address {
|
||||
region?: string;
|
||||
apartment?: string;
|
||||
careOf?: string;
|
||||
city?: string;
|
||||
district?: string;
|
||||
info?: string;
|
||||
po?: string;
|
||||
careOf?: string;
|
||||
region?: string;
|
||||
street?: string;
|
||||
streetNumber?: string;
|
||||
zipCode?: string;
|
||||
|
||||
@@ -4,13 +4,13 @@ import { PriceDTO } from './price-dto';
|
||||
import { EntityDTOContainerOfShopItemDTO } from './entity-dtocontainer-of-shop-item-dto';
|
||||
import { EntityDTOContainerOfSupplierDTO } from './entity-dtocontainer-of-supplier-dto';
|
||||
export interface AvailabilityDTO {
|
||||
supplierSSC?: string;
|
||||
availabilityType: AvailabilityType;
|
||||
inStock?: number;
|
||||
ssc?: string;
|
||||
sscText?: string;
|
||||
supplierInfo?: string;
|
||||
isPrebooked?: boolean;
|
||||
inStock?: number;
|
||||
supplierSSC?: string;
|
||||
supplierSSCText?: string;
|
||||
price?: PriceDTO;
|
||||
estimatedShippingDate?: string;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
/* tslint:disable */
|
||||
import { EntityReferenceDTO } from './entity-reference-dto';
|
||||
import { Gender } from './gender';
|
||||
import { BuyerType } from './buyer-type';
|
||||
import { Gender } from './gender';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
import { OrganisationDTO } from './organisation-dto';
|
||||
import { AddressDTO } from './address-dto';
|
||||
export interface BuyerDTO extends EntityReferenceDTO {
|
||||
firstName?: string;
|
||||
buyerNumber?: string;
|
||||
buyerType: BuyerType;
|
||||
isTemporaryAccount?: boolean;
|
||||
gender: Gender;
|
||||
title?: string;
|
||||
buyerType: BuyerType;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
dateOfBirth?: string;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfCheckoutDTOAndICheckout } from './entity-dtoof-checkout-dtoand-icheckout';
|
||||
import { EntityDTOContainerOfCheckoutItemDTO } from './entity-dtocontainer-of-checkout-item-dto';
|
||||
import { EntityDTOContainerOfBranchDTO } from './entity-dtocontainer-of-branch-dto';
|
||||
import { UserAccountDTO } from './user-account-dto';
|
||||
import { BuyerDTO } from './buyer-dto';
|
||||
import { PayerDTO } from './payer-dto';
|
||||
import { EntityDTOContainerOfDestinationDTO } from './entity-dtocontainer-of-destination-dto';
|
||||
import { EntityDTOContainerOfCheckoutDeliveryDTO } from './entity-dtocontainer-of-checkout-delivery-dto';
|
||||
import { EntityDTOContainerOfBranchDTO } from './entity-dtocontainer-of-branch-dto';
|
||||
import { EntityDTOContainerOfCheckoutItemDTO } from './entity-dtocontainer-of-checkout-item-dto';
|
||||
import { NotificationChannel } from './notification-channel';
|
||||
import { SelectionDTOOfShippingTarget } from './selection-dtoof-shipping-target';
|
||||
import { PaymentDTO } from './payment-dto';
|
||||
export interface CheckoutDTO extends EntityDTOOfCheckoutDTOAndICheckout {
|
||||
items?: Array<EntityDTOContainerOfCheckoutItemDTO>;
|
||||
label?: string;
|
||||
orderBranch?: EntityDTOContainerOfBranchDTO;
|
||||
userAccount?: UserAccountDTO;
|
||||
buyer?: BuyerDTO;
|
||||
payer?: PayerDTO;
|
||||
destinations?: Array<EntityDTOContainerOfDestinationDTO>;
|
||||
deliveries?: Array<EntityDTOContainerOfCheckoutDeliveryDTO>;
|
||||
orderBranch?: EntityDTOContainerOfBranchDTO;
|
||||
items?: Array<EntityDTOContainerOfCheckoutItemDTO>;
|
||||
notificationChannels: NotificationChannel;
|
||||
availableShippingTargets?: Array<SelectionDTOOfShippingTarget>;
|
||||
payment?: PaymentDTO;
|
||||
|
||||
@@ -4,12 +4,12 @@ import { EntityDTOContainerOfCategoryDTO } from './entity-dtocontainer-of-catego
|
||||
import { QuantityUnitType } from './quantity-unit-type';
|
||||
import { ComponentItemDisplayType } from './component-item-display-type';
|
||||
export interface ComponentItemDTO {
|
||||
quantityMax?: number;
|
||||
name?: string;
|
||||
description?: string;
|
||||
item?: EntityDTOContainerOfItemDTO;
|
||||
category?: EntityDTOContainerOfCategoryDTO;
|
||||
required?: boolean;
|
||||
description?: string;
|
||||
quantityMax?: number;
|
||||
quantityUnitType: QuantityUnitType;
|
||||
unit?: string;
|
||||
displayType: ComponentItemDisplayType;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfItemDTOAndIItem } from './entity-dtoof-item-dtoand-iitem';
|
||||
import { SizeOfString } from './size-of-string';
|
||||
import { EntityDTOContainerOfItemDTO } from './entity-dtocontainer-of-item-dto';
|
||||
import { ContributorHelperDTO } from './contributor-helper-dto';
|
||||
import { EntityDTOContainerOfCompanyDTO } from './entity-dtocontainer-of-company-dto';
|
||||
import { EntityDTOContainerOfCategoryDTO } from './entity-dtocontainer-of-category-dto';
|
||||
import { SizeOfString } from './size-of-string';
|
||||
import { WeightOfAvoirdupois } from './weight-of-avoirdupois';
|
||||
import { ItemType } from './item-type';
|
||||
import { EntityDTOContainerOfFileDTO } from './entity-dtocontainer-of-file-dto';
|
||||
@@ -14,8 +14,8 @@ import { ItemLabelDTO } from './item-label-dto';
|
||||
import { FoodDTO } from './food-dto';
|
||||
import { EntityDTOContainerOfTenantDTO } from './entity-dtocontainer-of-tenant-dto';
|
||||
export interface ItemDTO extends EntityDTOOfItemDTOAndIItem {
|
||||
size?: SizeOfString;
|
||||
itemNumber?: string;
|
||||
name?: string;
|
||||
subtitle?: string;
|
||||
description?: string;
|
||||
ean?: string;
|
||||
@@ -27,7 +27,7 @@ export interface ItemDTO extends EntityDTOOfItemDTOAndIItem {
|
||||
publicationDate?: string;
|
||||
categories?: Array<EntityDTOContainerOfCategoryDTO>;
|
||||
manufacturingCosts?: number;
|
||||
name?: string;
|
||||
size?: SizeOfString;
|
||||
weight?: WeightOfAvoirdupois;
|
||||
itemType: ItemType;
|
||||
edition?: string;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
/* tslint:disable */
|
||||
import { EntityReferenceDTO } from './entity-reference-dto';
|
||||
import { PayerType } from './payer-type';
|
||||
import { PayerStatus } from './payer-status';
|
||||
import { Gender } from './gender';
|
||||
import { PayerType } from './payer-type';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
import { OrganisationDTO } from './organisation-dto';
|
||||
import { AddressDTO } from './address-dto';
|
||||
export interface PayerDTO extends EntityReferenceDTO {
|
||||
firstName?: string;
|
||||
payerNumber?: string;
|
||||
payerType: PayerType;
|
||||
payerStatus: PayerStatus;
|
||||
gender: Gender;
|
||||
title?: string;
|
||||
payerType: PayerType;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
dateOfBirth?: string;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
import { SizeOfString } from './size-of-string';
|
||||
import { WeightOfAvoirdupois } from './weight-of-avoirdupois';
|
||||
export interface ProductDTO {
|
||||
productGroup?: string;
|
||||
name?: string;
|
||||
additionalName?: string;
|
||||
ean?: string;
|
||||
supplierProductNumber?: string;
|
||||
catalogProductNumber?: string;
|
||||
contributors?: string;
|
||||
manufacturer?: string;
|
||||
publicationDate?: string;
|
||||
additionalName?: string;
|
||||
productGroup?: string;
|
||||
edition?: string;
|
||||
volume?: string;
|
||||
serial?: string;
|
||||
|
||||
@@ -9,15 +9,15 @@ import { ShippingTarget } from './shipping-target';
|
||||
import { CountryTargetDTO } from './country-target-dto';
|
||||
import { BranchTargetDTO } from './branch-target-dto';
|
||||
export interface ShopDTO extends EntityDTOOfShopDTOAndIShop {
|
||||
orderingEnabledStop?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
branch?: EntityDTOContainerOfBranchDTO;
|
||||
defaultTargetBranch?: EntityDTOContainerOfBranchDTO;
|
||||
defaultLogistician?: EntityDTOContainerOfLogisticianDTO;
|
||||
defaultCurrency?: EntityDTOContainerOfCurrencyDTO;
|
||||
defaultCountry?: EntityDTOContainerOfCountryDTO;
|
||||
orderingEnabledStart?: string;
|
||||
description?: string;
|
||||
orderingEnabledStop?: string;
|
||||
shippingEnabledStart?: string;
|
||||
shippingEnabledStop?: string;
|
||||
enabledPaymentTypes: PaymentType;
|
||||
|
||||
@@ -11,8 +11,8 @@ import { OrderItemType } from './order-item-type';
|
||||
import { EntityDTOContainerOfShopDTO } from './entity-dtocontainer-of-shop-dto';
|
||||
import { EntityDTOContainerOfDestinationDTO } from './entity-dtocontainer-of-destination-dto';
|
||||
export interface ShoppingCartItemDTO extends EntityDTOOfShoppingCartItemDTOAndIShoppingCartItem {
|
||||
specialComment?: string;
|
||||
quantity?: number;
|
||||
ssc?: string;
|
||||
sscText?: string;
|
||||
shopItem?: EntityDTOContainerOfShopItemDTO;
|
||||
product?: ProductDTO;
|
||||
@@ -21,7 +21,7 @@ export interface ShoppingCartItemDTO extends EntityDTOOfShoppingCartItemDTOAndIS
|
||||
availability?: AvailabilityDTO;
|
||||
agentComment?: string;
|
||||
buyerComment?: string;
|
||||
ssc?: string;
|
||||
specialComment?: string;
|
||||
lastAvailabilityRequest?: string;
|
||||
shoppingCartItemStatus: ShoppingCartItemStatus;
|
||||
total?: PriceDTO;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* tslint:disable */
|
||||
import { Gender } from './gender';
|
||||
export interface UserAccountDTO {
|
||||
title?: string;
|
||||
isTemporaryAccount?: boolean;
|
||||
userName?: string;
|
||||
alias?: string;
|
||||
password?: string;
|
||||
gender?: Gender;
|
||||
userName?: string;
|
||||
title?: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
dateOfBirth?: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { GeoLocation } from './geo-location';
|
||||
export interface AddressDTO {
|
||||
street?: string;
|
||||
apartment?: string;
|
||||
careOf?: string;
|
||||
city?: string;
|
||||
district?: string;
|
||||
info?: string;
|
||||
po?: string;
|
||||
careOf?: string;
|
||||
street?: string;
|
||||
streetNumber?: string;
|
||||
zipCode?: string;
|
||||
state?: string;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfCustomerDTOAndICustomer } from './entity-dtoof-customer-dtoand-icustomer';
|
||||
import { EntityDTOContainerOfUserDTO } from './entity-dtocontainer-of-user-dto';
|
||||
import { EntityDTOContainerOfBranchDTO } from './entity-dtocontainer-of-branch-dto';
|
||||
import { CustomerType } from './customer-type';
|
||||
import { CustomerStatus } from './customer-status';
|
||||
@@ -8,7 +9,6 @@ import { Gender } from './gender';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { EntityDTOContainerOfShippingAddressDTO } from './entity-dtocontainer-of-shipping-address-dto';
|
||||
import { EntityDTOContainerOfUserDTO } from './entity-dtocontainer-of-user-dto';
|
||||
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
|
||||
import { EntityDTOContainerOfBonusCardDTO } from './entity-dtocontainer-of-bonus-card-dto';
|
||||
import { NotificationChannel } from './notification-channel';
|
||||
@@ -16,8 +16,8 @@ import { PaymentType } from './payment-type';
|
||||
import { AssignedPayerDTO } from './assigned-payer-dto';
|
||||
import { EntityDTOContainerOfAttributeDTO } from './entity-dtocontainer-of-attribute-dto';
|
||||
export interface CustomerDTO extends EntityDTOOfCustomerDTOAndICustomer {
|
||||
agentComment?: string;
|
||||
customerGroup?: string;
|
||||
user?: EntityDTOContainerOfUserDTO;
|
||||
createdInBranch?: EntityDTOContainerOfBranchDTO;
|
||||
customerNumber?: string;
|
||||
customerType?: CustomerType;
|
||||
@@ -31,7 +31,7 @@ export interface CustomerDTO extends EntityDTOOfCustomerDTOAndICustomer {
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
address?: AddressDTO;
|
||||
shippingAddresses?: Array<EntityDTOContainerOfShippingAddressDTO>;
|
||||
user?: EntityDTOContainerOfUserDTO;
|
||||
agentComment?: string;
|
||||
statusChangeComment?: string;
|
||||
deactivationComment?: string;
|
||||
statusComment?: string;
|
||||
|
||||
@@ -11,8 +11,8 @@ import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto
|
||||
import { EntityDTOContainerOfBonusCardDTO } from './entity-dtocontainer-of-bonus-card-dto';
|
||||
import { NotificationChannel } from './notification-channel';
|
||||
export interface CustomerInfoDTO extends EntityDTOOfCustomerInfoDTOAndICustomer {
|
||||
lastName?: string;
|
||||
customerGroup?: string;
|
||||
userName?: string;
|
||||
createdInBranch?: EntityDTOContainerOfBranchDTO;
|
||||
customerNumber?: string;
|
||||
customerType?: CustomerType;
|
||||
@@ -21,7 +21,7 @@ export interface CustomerInfoDTO extends EntityDTOOfCustomerInfoDTOAndICustomer
|
||||
gender?: Gender;
|
||||
title?: string;
|
||||
firstName?: string;
|
||||
userName?: string;
|
||||
lastName?: string;
|
||||
dateOfBirth?: string;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
address?: AddressDTO;
|
||||
|
||||
@@ -4,14 +4,14 @@ import { EntityDTOContainerOfCustomerDTO } from './entity-dtocontainer-of-custom
|
||||
import { EntityDTOContainerOfTenantDTO } from './entity-dtocontainer-of-tenant-dto';
|
||||
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
|
||||
export interface OptInDTO extends EntityDTOOfOptInDTOAndIOptIn {
|
||||
allowRequested?: string;
|
||||
email?: string;
|
||||
user?: string;
|
||||
customer?: EntityDTOContainerOfCustomerDTO;
|
||||
category?: string;
|
||||
key?: string;
|
||||
sourceSystem?: string;
|
||||
sourceIP?: string;
|
||||
user?: string;
|
||||
allowRequested?: string;
|
||||
allowRequestToken?: string;
|
||||
allow?: string;
|
||||
denyRequested?: string;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfPayerDTOAndIPayer } from './entity-dtoof-payer-dtoand-ipayer';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { EntityDTOContainerOfLabelDTO } from './entity-dtocontainer-of-label-dto';
|
||||
import { CustomerType } from './customer-type';
|
||||
import { PayerStatus } from './payer-status';
|
||||
import { Gender } from './gender';
|
||||
import { OrganisationDTO } from './organisation-dto';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
import { PaymentSettingsDTO } from './payment-settings-dto';
|
||||
export interface PayerDTO extends EntityDTOOfPayerDTOAndIPayer {
|
||||
address?: AddressDTO;
|
||||
label?: EntityDTOContainerOfLabelDTO;
|
||||
payerGroup?: string;
|
||||
payerNumber?: string;
|
||||
payerType?: CustomerType;
|
||||
payerStatus?: PayerStatus;
|
||||
@@ -19,7 +19,7 @@ export interface PayerDTO extends EntityDTOOfPayerDTOAndIPayer {
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
organisation?: OrganisationDTO;
|
||||
payerGroup?: string;
|
||||
address?: AddressDTO;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
agentComment?: string;
|
||||
statusChangeComment?: string;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfShippingAddressDTOAndIShippingAddress } from './entity-dtoof-shipping-address-dtoand-ishipping-address';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { Gender } from './gender';
|
||||
import { OrganisationDTO } from './organisation-dto';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
import { AddressDTO } from './address-dto';
|
||||
import { ShippingAddressType } from './shipping-address-type';
|
||||
export interface ShippingAddressDTO extends EntityDTOOfShippingAddressDTOAndIShippingAddress {
|
||||
address?: AddressDTO;
|
||||
gender?: Gender;
|
||||
title?: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
organisation?: OrganisationDTO;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
title?: string;
|
||||
address?: AddressDTO;
|
||||
agentComment?: string;
|
||||
type: ShippingAddressType;
|
||||
isDefault?: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { GeoLocation } from './geo-location';
|
||||
export interface AddressDTO {
|
||||
street?: string;
|
||||
apartment?: string;
|
||||
careOf?: string;
|
||||
city?: string;
|
||||
district?: string;
|
||||
info?: string;
|
||||
po?: string;
|
||||
careOf?: string;
|
||||
street?: string;
|
||||
streetNumber?: string;
|
||||
zipCode?: string;
|
||||
state?: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { GeoLocation } from './geo-location';
|
||||
export interface AddressDTO {
|
||||
street?: string;
|
||||
apartment?: string;
|
||||
careOf?: string;
|
||||
city?: string;
|
||||
district?: string;
|
||||
info?: string;
|
||||
po?: string;
|
||||
careOf?: string;
|
||||
street?: string;
|
||||
streetNumber?: string;
|
||||
zipCode?: string;
|
||||
state?: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/* tslint:disable */
|
||||
import { GeoLocation } from './geo-location';
|
||||
export interface Address {
|
||||
region?: string;
|
||||
apartment?: string;
|
||||
careOf?: string;
|
||||
city?: string;
|
||||
district?: string;
|
||||
info?: string;
|
||||
po?: string;
|
||||
careOf?: string;
|
||||
region?: string;
|
||||
street?: string;
|
||||
streetNumber?: string;
|
||||
zipCode?: string;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
/* tslint:disable */
|
||||
import { EntityReferenceDTO } from './entity-reference-dto';
|
||||
import { BuyerType } from './buyer-type';
|
||||
import { BuyerStatus } from './buyer-status';
|
||||
import { Gender } from './gender';
|
||||
import { BuyerType } from './buyer-type';
|
||||
import { CommunicationDetailsDTO } from './communication-details-dto';
|
||||
import { OrganisationDTO } from './organisation-dto';
|
||||
import { AddressDTO } from './address-dto';
|
||||
export interface BuyerDTO extends EntityReferenceDTO {
|
||||
title?: string;
|
||||
buyerNumber?: string;
|
||||
buyerType: BuyerType;
|
||||
buyerStatus: BuyerStatus;
|
||||
isGuestAccount?: boolean;
|
||||
gender: Gender;
|
||||
buyerType: BuyerType;
|
||||
title?: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
|
||||
@@ -7,15 +7,15 @@ import { DisplayOrderPaymentDTO } from './display-order-payment-dto';
|
||||
import { TermsOfDeliveryDTO } from './terms-of-delivery-dto';
|
||||
import { NotificationChannel } from './notification-channel';
|
||||
export interface DisplayOrderDTO extends EntityDTOOfDisplayOrderDTOAndIOrder {
|
||||
buyerComment?: string;
|
||||
orderType: OrderType;
|
||||
orderNumber?: string;
|
||||
orderDate?: string;
|
||||
orderBranch?: string;
|
||||
completedDate?: string;
|
||||
items?: Array<DisplayOrderItemDTO>;
|
||||
buyerNumber?: string;
|
||||
buyer?: DisplayAddresseeDTO;
|
||||
orderNumber?: string;
|
||||
buyerComment?: string;
|
||||
shippingAddress?: DisplayAddresseeDTO;
|
||||
targetBranch?: string;
|
||||
payerNumber?: string;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfDisplayOrderItemDTOAndIOrderItem } from './entity-dtoof-display-order-item-dtoand-iorder-item';
|
||||
import { DisplayOrderDTO } from './display-order-dto';
|
||||
import { DisplayOrderItemSubsetDTO } from './display-order-item-subset-dto';
|
||||
import { ProductDTO } from './product-dto';
|
||||
import { DisplayOrderItemSubsetDTO } from './display-order-item-subset-dto';
|
||||
import { QuantityUnitType } from './quantity-unit-type';
|
||||
import { PriceDTO } from './price-dto';
|
||||
export interface DisplayOrderItemDTO extends EntityDTOOfDisplayOrderItemDTOAndIOrderItem {
|
||||
buyerComment?: string;
|
||||
order?: DisplayOrderDTO;
|
||||
product?: ProductDTO;
|
||||
orderItemNumber?: string;
|
||||
orderDate?: string;
|
||||
subsetItems?: Array<DisplayOrderItemSubsetDTO>;
|
||||
product?: ProductDTO;
|
||||
buyerComment?: string;
|
||||
quantity?: number;
|
||||
quantityUnitType: QuantityUnitType;
|
||||
quantityUnit?: string;
|
||||
|
||||
@@ -3,13 +3,13 @@ import { EntityDTOOfDisplayOrderItemSubsetDTOAndIOrderItemStatus } from './entit
|
||||
import { DisplayOrderItemDTO } from './display-order-item-dto';
|
||||
import { OrderItemProcessingStatusValue } from './order-item-processing-status-value';
|
||||
export interface DisplayOrderItemSubsetDTO extends EntityDTOOfDisplayOrderItemSubsetDTOAndIOrderItemStatus {
|
||||
processingStatusDate?: string;
|
||||
orderItem?: DisplayOrderItemDTO;
|
||||
orderItemSubsetNumber?: string;
|
||||
description?: string;
|
||||
quantity?: number;
|
||||
estimatedShippingDate?: string;
|
||||
processingStatus: OrderItemProcessingStatusValue;
|
||||
orderItemSubsetNumber?: string;
|
||||
processingStatusDate?: string;
|
||||
trackingNumber?: string;
|
||||
specialComment?: string;
|
||||
compartmentCode?: string;
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
import { EntityDTOOfDisplayOrderPaymentDTOAndIReadOnlyPayment } from './entity-dtoof-display-order-payment-dtoand-iread-only-payment';
|
||||
import { PaymentType } from './payment-type';
|
||||
export interface DisplayOrderPaymentDTO extends EntityDTOOfDisplayOrderPaymentDTOAndIReadOnlyPayment {
|
||||
shipping?: number;
|
||||
paymentActionRequired: boolean;
|
||||
paymentType: PaymentType;
|
||||
paymentNumber?: string;
|
||||
paymentComment?: string;
|
||||
total: number;
|
||||
subtotal?: number;
|
||||
paymentType: PaymentType;
|
||||
shipping?: number;
|
||||
tax?: number;
|
||||
currency?: string;
|
||||
dateOfPayment?: string;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfOrderDTOAndIOrder } from './entity-dtoof-order-dtoand-iorder';
|
||||
import { EntityDTOContainerOfLogisticianDTO } from './entity-dtocontainer-of-logistician-dto';
|
||||
import { OrderType } from './order-type';
|
||||
import { EntityDTOContainerOfBranchDTO } from './entity-dtocontainer-of-branch-dto';
|
||||
import { OrderProcessingStatus } from './order-processing-status';
|
||||
@@ -8,6 +7,7 @@ import { EntityDTOContainerOfOrderItemDTO } from './entity-dtocontainer-of-order
|
||||
import { BuyerDTO } from './buyer-dto';
|
||||
import { NotificationChannel } from './notification-channel';
|
||||
import { EntityDTOContainerOfShippingAddressDTO } from './entity-dtocontainer-of-shipping-address-dto';
|
||||
import { EntityDTOContainerOfLogisticianDTO } from './entity-dtocontainer-of-logistician-dto';
|
||||
import { EntityDTOContainerOfPayerDTO } from './entity-dtocontainer-of-payer-dto';
|
||||
import { PaymentType } from './payment-type';
|
||||
import { EntityDTOContainerOfPaymentDTO } from './entity-dtocontainer-of-payment-dto';
|
||||
@@ -15,8 +15,8 @@ import { PaymentStatus } from './payment-status';
|
||||
import { ValidationStatus } from './validation-status';
|
||||
import { TermsOfDeliveryDTO } from './terms-of-delivery-dto';
|
||||
export interface OrderDTO extends EntityDTOOfOrderDTOAndIOrder {
|
||||
logistician?: EntityDTOContainerOfLogisticianDTO;
|
||||
orderType: OrderType;
|
||||
orderNumber?: string;
|
||||
orderDate?: string;
|
||||
acceptanceDate?: string;
|
||||
orderBranch: EntityDTOContainerOfBranchDTO;
|
||||
@@ -28,7 +28,7 @@ export interface OrderDTO extends EntityDTOOfOrderDTOAndIOrder {
|
||||
notificationChannels: NotificationChannel;
|
||||
shippingAddress?: EntityDTOContainerOfShippingAddressDTO;
|
||||
targetBranch?: EntityDTOContainerOfBranchDTO;
|
||||
orderNumber?: string;
|
||||
logistician?: EntityDTOContainerOfLogisticianDTO;
|
||||
payer?: EntityDTOContainerOfPayerDTO;
|
||||
paymentType: PaymentType;
|
||||
paymentComment?: string;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfOrderItemDTOAndIOrderItem } from './entity-dtoof-order-item-dtoand-iorder-item';
|
||||
import { EntityDTOContainerOfOrderDTO } from './entity-dtocontainer-of-order-dto';
|
||||
import { ProductDTO } from './product-dto';
|
||||
import { EntityDTOContainerOfOrderItemDTO } from './entity-dtocontainer-of-order-item-dto';
|
||||
import { OrderItemType } from './order-item-type';
|
||||
import { EntityDTOContainerOfOrderItemSubsetDTO } from './entity-dtocontainer-of-order-item-subset-dto';
|
||||
import { ProductDTO } from './product-dto';
|
||||
import { QuantityUnitType } from './quantity-unit-type';
|
||||
import { PriceDTO } from './price-dto';
|
||||
import { EntityDTOContainerOfShopItemDTO } from './entity-dtocontainer-of-shop-item-dto';
|
||||
export interface OrderItemDTO extends EntityDTOOfOrderItemDTOAndIOrderItem {
|
||||
quantity?: number;
|
||||
order?: EntityDTOContainerOfOrderDTO;
|
||||
product?: ProductDTO;
|
||||
orderItemNumber?: string;
|
||||
parent?: EntityDTOContainerOfOrderItemDTO;
|
||||
orderItemType: OrderItemType;
|
||||
@@ -19,7 +19,7 @@ export interface OrderItemDTO extends EntityDTOOfOrderItemDTOAndIOrderItem {
|
||||
subsetItems?: Array<EntityDTOContainerOfOrderItemSubsetDTO>;
|
||||
buyerComment?: string;
|
||||
invoiceText?: string;
|
||||
product?: ProductDTO;
|
||||
quantity?: number;
|
||||
quantityUnitType: QuantityUnitType;
|
||||
quantityUnit?: string;
|
||||
grossPrice?: PriceDTO;
|
||||
|
||||
@@ -5,8 +5,8 @@ import { ProductDTO } from './product-dto';
|
||||
import { Gender } from './gender';
|
||||
import { KeyValueDTOOfOrderItemProcessingStatusValueAndString } from './key-value-dtoof-order-item-processing-status-value-and-string';
|
||||
export interface OrderItemListItemDTO {
|
||||
quantity?: number;
|
||||
orderId?: number;
|
||||
orderItemId?: number;
|
||||
orderItemSubsetId?: number;
|
||||
orderPId?: string;
|
||||
orderItemPId?: string;
|
||||
@@ -18,7 +18,7 @@ export interface OrderItemListItemDTO {
|
||||
processingStatus?: OrderItemProcessingStatusValue;
|
||||
orderDate?: string;
|
||||
product?: ProductDTO;
|
||||
orderItemId?: number;
|
||||
quantity?: number;
|
||||
overallQuantity?: number;
|
||||
price?: number;
|
||||
currency?: string;
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
import { OrderItemProcessingStatusValue } from './order-item-processing-status-value';
|
||||
import { OrderByDTO2 } from './order-by-dto2';
|
||||
export interface OrderItemQueryTokenDTO {
|
||||
fuzzy?: number;
|
||||
labelKey?: string;
|
||||
branchNumber?: string;
|
||||
friendlyName?: string;
|
||||
processingStatus?: OrderItemProcessingStatusValue;
|
||||
input?: {[key: string]: string};
|
||||
ids?: Array<number>;
|
||||
branchNumber?: string;
|
||||
fuzzy?: number;
|
||||
filter?: {[key: string]: string};
|
||||
orderBy?: Array<OrderByDTO2>;
|
||||
skip?: number;
|
||||
|
||||
@@ -4,8 +4,8 @@ import { EntityDTOContainerOfOrderItemDTO } from './entity-dtocontainer-of-order
|
||||
import { EntityDTOContainerOfSupplierDTO } from './entity-dtocontainer-of-supplier-dto';
|
||||
import { OrderItemProcessingStatusValue } from './order-item-processing-status-value';
|
||||
export interface OrderItemSubsetDTO extends EntityDTOOfOrderItemSubsetDTOAndIOrderItemStatus {
|
||||
sscText?: string;
|
||||
orderItem?: EntityDTOContainerOfOrderItemDTO;
|
||||
orderItemSubsetNumber?: string;
|
||||
supplier?: EntityDTOContainerOfSupplierDTO;
|
||||
supplierProductNumber?: string;
|
||||
orderedAtSupplier?: string;
|
||||
@@ -14,7 +14,7 @@ export interface OrderItemSubsetDTO extends EntityDTOOfOrderItemSubsetDTOAndIOrd
|
||||
dateArrivedSent?: string;
|
||||
dateFetchedDelivered?: string;
|
||||
ssc?: string;
|
||||
orderItemSubsetNumber?: string;
|
||||
sscText?: string;
|
||||
specialComment?: string;
|
||||
isPrebooked?: boolean;
|
||||
processingStatus: OrderItemProcessingStatusValue;
|
||||
|
||||
@@ -4,15 +4,15 @@ import { OrderType } from './order-type';
|
||||
import { OrderProcessingStatus } from './order-processing-status';
|
||||
import { Gender } from './gender';
|
||||
export interface OrderListItemDTO {
|
||||
orderDate?: string;
|
||||
clientChannel?: EnvironmentChannel;
|
||||
orderId?: number;
|
||||
orderPId?: string;
|
||||
orderBranchId?: number;
|
||||
shopName?: string;
|
||||
orderNumber?: string;
|
||||
orderType?: OrderType;
|
||||
processingStatus?: OrderProcessingStatus;
|
||||
orderId?: number;
|
||||
orderDate?: string;
|
||||
total?: number;
|
||||
currency?: string;
|
||||
organisation?: string;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/* tslint:disable */
|
||||
import { OrderByDTO } from './order-by-dto';
|
||||
export interface OrderQueryTokenDTO {
|
||||
fuzzy?: number;
|
||||
labelKey?: string;
|
||||
branchNumber?: string;
|
||||
friendlyName?: string;
|
||||
input?: {[key: string]: string};
|
||||
ids?: Array<number>;
|
||||
branchNumber?: string;
|
||||
fuzzy?: number;
|
||||
filter?: {[key: string]: string};
|
||||
orderBy?: Array<OrderByDTO>;
|
||||
skip?: number;
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
import { EntityDTOOfPaymentDTOAndIReadOnlyPayment } from './entity-dtoof-payment-dtoand-iread-only-payment';
|
||||
import { PaymentType } from './payment-type';
|
||||
export interface PaymentDTO extends EntityDTOOfPaymentDTOAndIReadOnlyPayment {
|
||||
currency?: string;
|
||||
paymentType: PaymentType;
|
||||
paymentNumber?: string;
|
||||
paymentComment?: string;
|
||||
total: number;
|
||||
subtotal?: number;
|
||||
shipping?: number;
|
||||
tax?: number;
|
||||
paymentNumber?: string;
|
||||
currency?: string;
|
||||
dateOfPayment?: string;
|
||||
cancelled?: string;
|
||||
dunning1?: string;
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
import { SizeOfString } from './size-of-string';
|
||||
import { WeightOfAvoirdupois } from './weight-of-avoirdupois';
|
||||
export interface ProductDTO {
|
||||
productGroup?: string;
|
||||
name?: string;
|
||||
additionalName?: string;
|
||||
ean?: string;
|
||||
supplierProductNumber?: string;
|
||||
catalogProductNumber?: string;
|
||||
contributors?: string;
|
||||
manufacturer?: string;
|
||||
publicationDate?: string;
|
||||
additionalName?: string;
|
||||
productGroup?: string;
|
||||
edition?: string;
|
||||
volume?: string;
|
||||
serial?: string;
|
||||
|
||||
63
libs/swagger/src/lib/print/base-service.ts
Normal file
63
libs/swagger/src/lib/print/base-service.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
/* tslint:disable */
|
||||
import { HttpClient, HttpParameterCodec, HttpParams } from '@angular/common/http';
|
||||
import { PrintConfiguration } from './print-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: PrintConfiguration,
|
||||
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
|
||||
});
|
||||
}
|
||||
}
|
||||
30
libs/swagger/src/lib/print/models.ts
Normal file
30
libs/swagger/src/lib/print/models.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export { ListResponseArgsOfKeyValueDTOOfStringAndString } from './models/list-response-args-of-key-value-dtoof-string-and-string';
|
||||
export { ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString } from './models/response-args-of-ienumerable-of-key-value-dtoof-string-and-string';
|
||||
export { KeyValueDTOOfStringAndString } from './models/key-value-dtoof-string-and-string';
|
||||
export { ResponseArgs } from './models/response-args';
|
||||
export { IPublicUserInfo } from './models/ipublic-user-info';
|
||||
export { PrintRequest } from './models/print-request';
|
||||
export { PrintRequestOfIEnumerableOfInt64 } from './models/print-request-of-ienumerable-of-int-64';
|
||||
export { PrintRequestOfInt64 } from './models/print-request-of-int-64';
|
||||
export { PrintRequestOfIEnumerableOfItemDTO } from './models/print-request-of-ienumerable-of-item-dto';
|
||||
export { ItemDTO } from './models/item-dto';
|
||||
export { ItemType } from './models/item-type';
|
||||
export { ProductDTO } from './models/product-dto';
|
||||
export { SizeOfString } from './models/size-of-string';
|
||||
export { WeightOfAvoirdupois } from './models/weight-of-avoirdupois';
|
||||
export { Avoirdupois } from './models/avoirdupois';
|
||||
export { SpecDTO } from './models/spec-dto';
|
||||
export { TextDTO } from './models/text-dto';
|
||||
export { ImageDTO } from './models/image-dto';
|
||||
export { AvailabilityDTO } from './models/availability-dto';
|
||||
export { ShopDTO } from './models/shop-dto';
|
||||
export { PriceDTO } from './models/price-dto';
|
||||
export { PriceValueDTO } from './models/price-value-dto';
|
||||
export { VATValueDTO } from './models/vatvalue-dto';
|
||||
export { VATType } from './models/vattype';
|
||||
export { AvailabilityType } from './models/availability-type';
|
||||
export { StockInfoDTO } from './models/stock-info-dto';
|
||||
export { ShelfInfoDTO } from './models/shelf-info-dto';
|
||||
export { ReviewDTO } from './models/review-dto';
|
||||
export { EntityDTO } from './models/entity-dto';
|
||||
export { EntityStatus } from './models/entity-status';
|
||||
16
libs/swagger/src/lib/print/models/availability-dto.ts
Normal file
16
libs/swagger/src/lib/print/models/availability-dto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* tslint:disable */
|
||||
import { ShopDTO } from './shop-dto';
|
||||
import { PriceDTO } from './price-dto';
|
||||
import { AvailabilityType } from './availability-type';
|
||||
export interface AvailabilityDTO {
|
||||
itemId?: number;
|
||||
shop?: ShopDTO;
|
||||
price?: PriceDTO;
|
||||
supplier?: string;
|
||||
ssc?: string;
|
||||
qty?: number;
|
||||
at?: string;
|
||||
status: AvailabilityType;
|
||||
rank?: number;
|
||||
requested?: string;
|
||||
}
|
||||
2
libs/swagger/src/lib/print/models/availability-type.ts
Normal file
2
libs/swagger/src/lib/print/models/availability-type.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type AvailabilityType = 0 | 1 | 2 | 32 | 256 | 1024 | 2048 | 4096 | 8192 | 16384;
|
||||
2
libs/swagger/src/lib/print/models/avoirdupois.ts
Normal file
2
libs/swagger/src/lib/print/models/avoirdupois.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type Avoirdupois = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096;
|
||||
10
libs/swagger/src/lib/print/models/entity-dto.ts
Normal file
10
libs/swagger/src/lib/print/models/entity-dto.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* tslint:disable */
|
||||
import { EntityStatus } from './entity-status';
|
||||
export interface EntityDTO {
|
||||
id?: number;
|
||||
created?: string;
|
||||
changed?: string;
|
||||
version?: number;
|
||||
status?: EntityStatus;
|
||||
pId?: string;
|
||||
}
|
||||
2
libs/swagger/src/lib/print/models/entity-status.ts
Normal file
2
libs/swagger/src/lib/print/models/entity-status.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type EntityStatus = 0 | 1 | 2 | 4 | 8;
|
||||
10
libs/swagger/src/lib/print/models/image-dto.ts
Normal file
10
libs/swagger/src/lib/print/models/image-dto.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* tslint:disable */
|
||||
export interface ImageDTO {
|
||||
id?: number;
|
||||
type?: string;
|
||||
url?: string;
|
||||
thumbUrl?: string;
|
||||
subtitle?: string;
|
||||
source?: string;
|
||||
copyright?: string;
|
||||
}
|
||||
7
libs/swagger/src/lib/print/models/ipublic-user-info.ts
Normal file
7
libs/swagger/src/lib/print/models/ipublic-user-info.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* tslint:disable */
|
||||
export interface IPublicUserInfo {
|
||||
alias?: string;
|
||||
displayName?: string;
|
||||
username?: string;
|
||||
isAuthenticated: boolean;
|
||||
}
|
||||
30
libs/swagger/src/lib/print/models/item-dto.ts
Normal file
30
libs/swagger/src/lib/print/models/item-dto.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTO } from './entity-dto';
|
||||
import { ItemType } from './item-type';
|
||||
import { ProductDTO } from './product-dto';
|
||||
import { SpecDTO } from './spec-dto';
|
||||
import { TextDTO } from './text-dto';
|
||||
import { ImageDTO } from './image-dto';
|
||||
import { AvailabilityDTO } from './availability-dto';
|
||||
import { StockInfoDTO } from './stock-info-dto';
|
||||
import { ShelfInfoDTO } from './shelf-info-dto';
|
||||
import { ReviewDTO } from './review-dto';
|
||||
export interface ItemDTO extends EntityDTO {
|
||||
scoring?: number;
|
||||
ids?: {[key: string]: number};
|
||||
type?: ItemType;
|
||||
labels?: {[key: string]: string};
|
||||
product?: ProductDTO;
|
||||
specs?: Array<SpecDTO>;
|
||||
texts?: Array<TextDTO>;
|
||||
images?: Array<ImageDTO>;
|
||||
catalogAvailability?: AvailabilityDTO;
|
||||
storeAvailabilities?: Array<AvailabilityDTO>;
|
||||
shippingAvailabilities?: Array<AvailabilityDTO>;
|
||||
stockInfos?: Array<StockInfoDTO>;
|
||||
shelfInfos?: Array<ShelfInfoDTO>;
|
||||
successor?: ItemDTO;
|
||||
family?: Array<ItemDTO>;
|
||||
promoPoints?: number;
|
||||
reviews?: Array<ReviewDTO>;
|
||||
}
|
||||
2
libs/swagger/src/lib/print/models/item-type.ts
Normal file
2
libs/swagger/src/lib/print/models/item-type.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type ItemType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192;
|
||||
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
export interface KeyValueDTOOfStringAndString {
|
||||
enabled: boolean;
|
||||
key?: string;
|
||||
value?: string;
|
||||
selected?: boolean;
|
||||
description?: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString } from './response-args-of-ienumerable-of-key-value-dtoof-string-and-string';
|
||||
export interface ListResponseArgsOfKeyValueDTOOfStringAndString extends ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString {
|
||||
skip?: number;
|
||||
take?: number;
|
||||
completed?: boolean;
|
||||
hits?: number;
|
||||
}
|
||||
7
libs/swagger/src/lib/print/models/price-dto.ts
Normal file
7
libs/swagger/src/lib/print/models/price-dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* tslint:disable */
|
||||
import { PriceValueDTO } from './price-value-dto';
|
||||
import { VATValueDTO } from './vatvalue-dto';
|
||||
export interface PriceDTO {
|
||||
value?: PriceValueDTO;
|
||||
vat?: VATValueDTO;
|
||||
}
|
||||
6
libs/swagger/src/lib/print/models/price-value-dto.ts
Normal file
6
libs/swagger/src/lib/print/models/price-value-dto.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
export interface PriceValueDTO {
|
||||
value?: number;
|
||||
currency?: string;
|
||||
currencySymbol?: string;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
/* tslint:disable */
|
||||
import { PrintRequest } from './print-request';
|
||||
export interface PrintRequestOfIEnumerableOfInt64 extends PrintRequest {
|
||||
data?: Array<number>;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { PrintRequest } from './print-request';
|
||||
import { ItemDTO } from './item-dto';
|
||||
export interface PrintRequestOfIEnumerableOfItemDTO extends PrintRequest {
|
||||
data?: Array<ItemDTO>;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
/* tslint:disable */
|
||||
import { PrintRequest } from './print-request';
|
||||
export interface PrintRequestOfInt64 extends PrintRequest {
|
||||
data: number;
|
||||
}
|
||||
4
libs/swagger/src/lib/print/models/print-request.ts
Normal file
4
libs/swagger/src/lib/print/models/print-request.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
/* tslint:disable */
|
||||
export interface PrintRequest {
|
||||
printer?: string;
|
||||
}
|
||||
22
libs/swagger/src/lib/print/models/product-dto.ts
Normal file
22
libs/swagger/src/lib/print/models/product-dto.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/* tslint:disable */
|
||||
import { SizeOfString } from './size-of-string';
|
||||
import { WeightOfAvoirdupois } from './weight-of-avoirdupois';
|
||||
export interface ProductDTO {
|
||||
name?: string;
|
||||
additionalName?: string;
|
||||
ean?: string;
|
||||
supplierProductNumber?: string;
|
||||
catalogProductNumber?: string;
|
||||
contributors?: string;
|
||||
manufacturer?: string;
|
||||
publicationDate?: string;
|
||||
productGroup?: string;
|
||||
edition?: string;
|
||||
volume?: string;
|
||||
serial?: string;
|
||||
format?: string;
|
||||
formatDetail?: string;
|
||||
locale?: string;
|
||||
size?: SizeOfString;
|
||||
weight?: WeightOfAvoirdupois;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
import { KeyValueDTOOfStringAndString } from './key-value-dtoof-string-and-string';
|
||||
export interface ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString extends ResponseArgs {
|
||||
result?: Array<KeyValueDTOOfStringAndString>;
|
||||
}
|
||||
9
libs/swagger/src/lib/print/models/response-args.ts
Normal file
9
libs/swagger/src/lib/print/models/response-args.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* tslint:disable */
|
||||
import { IPublicUserInfo } from './ipublic-user-info';
|
||||
export interface ResponseArgs {
|
||||
error: boolean;
|
||||
message?: string;
|
||||
requestId?: number;
|
||||
userInfo?: IPublicUserInfo;
|
||||
invalidProperties?: {[key: string]: string};
|
||||
}
|
||||
10
libs/swagger/src/lib/print/models/review-dto.ts
Normal file
10
libs/swagger/src/lib/print/models/review-dto.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* tslint:disable */
|
||||
export interface ReviewDTO {
|
||||
id?: string;
|
||||
author?: string;
|
||||
created: string;
|
||||
rating: number;
|
||||
title?: string;
|
||||
text?: string;
|
||||
branch?: string;
|
||||
}
|
||||
5
libs/swagger/src/lib/print/models/shelf-info-dto.ts
Normal file
5
libs/swagger/src/lib/print/models/shelf-info-dto.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
/* tslint:disable */
|
||||
export interface ShelfInfoDTO {
|
||||
label?: string;
|
||||
assortment?: string;
|
||||
}
|
||||
3
libs/swagger/src/lib/print/models/shop-dto.ts
Normal file
3
libs/swagger/src/lib/print/models/shop-dto.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
/* tslint:disable */
|
||||
export interface ShopDTO {
|
||||
}
|
||||
7
libs/swagger/src/lib/print/models/size-of-string.ts
Normal file
7
libs/swagger/src/lib/print/models/size-of-string.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* tslint:disable */
|
||||
export interface SizeOfString {
|
||||
height: number;
|
||||
width: number;
|
||||
length: number;
|
||||
unit?: string;
|
||||
}
|
||||
7
libs/swagger/src/lib/print/models/spec-dto.ts
Normal file
7
libs/swagger/src/lib/print/models/spec-dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* tslint:disable */
|
||||
export interface SpecDTO {
|
||||
id?: number;
|
||||
key?: string;
|
||||
label?: string;
|
||||
value?: string;
|
||||
}
|
||||
6
libs/swagger/src/lib/print/models/stock-info-dto.ts
Normal file
6
libs/swagger/src/lib/print/models/stock-info-dto.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
export interface StockInfoDTO {
|
||||
id?: number;
|
||||
inStock?: number;
|
||||
compartment?: string;
|
||||
}
|
||||
7
libs/swagger/src/lib/print/models/text-dto.ts
Normal file
7
libs/swagger/src/lib/print/models/text-dto.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* tslint:disable */
|
||||
export interface TextDTO {
|
||||
id?: number;
|
||||
key?: string;
|
||||
label?: string;
|
||||
value?: string;
|
||||
}
|
||||
2
libs/swagger/src/lib/print/models/vattype.ts
Normal file
2
libs/swagger/src/lib/print/models/vattype.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type VATType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
|
||||
8
libs/swagger/src/lib/print/models/vatvalue-dto.ts
Normal file
8
libs/swagger/src/lib/print/models/vatvalue-dto.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* tslint:disable */
|
||||
import { VATType } from './vattype';
|
||||
export interface VATValueDTO {
|
||||
label?: string;
|
||||
inPercent?: number;
|
||||
vatType: VATType;
|
||||
value?: number;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* tslint:disable */
|
||||
import { Avoirdupois } from './avoirdupois';
|
||||
export interface WeightOfAvoirdupois {
|
||||
value: number;
|
||||
unit: Avoirdupois;
|
||||
}
|
||||
12
libs/swagger/src/lib/print/print-configuration.ts
Normal file
12
libs/swagger/src/lib/print/print-configuration.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
/**
|
||||
* Global configuration for Print services
|
||||
*/
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class PrintConfiguration {
|
||||
rootUrl: string = 'https://isa.paragon-data.de/print/v1';
|
||||
}
|
||||
24
libs/swagger/src/lib/print/print.module.ts
Normal file
24
libs/swagger/src/lib/print/print.module.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/* tslint:disable */
|
||||
import { NgModule } from '@angular/core';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { PrintConfiguration } from './print-configuration';
|
||||
|
||||
import { PrintService } from './services/print.service';
|
||||
|
||||
/**
|
||||
* Provider for all Print services, plus PrintConfiguration
|
||||
*/
|
||||
@NgModule({
|
||||
imports: [
|
||||
HttpClientModule
|
||||
],
|
||||
exports: [
|
||||
HttpClientModule
|
||||
],
|
||||
declarations: [],
|
||||
providers: [
|
||||
PrintConfiguration,
|
||||
PrintService
|
||||
],
|
||||
})
|
||||
export class PrintModule { }
|
||||
1
libs/swagger/src/lib/print/services.ts
Normal file
1
libs/swagger/src/lib/print/services.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { PrintService } from './services/print.service';
|
||||
268
libs/swagger/src/lib/print/services/print.service.ts
Normal file
268
libs/swagger/src/lib/print/services/print.service.ts
Normal file
@@ -0,0 +1,268 @@
|
||||
/* tslint:disable */
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http';
|
||||
import { BaseService as __BaseService } from '../base-service';
|
||||
import { PrintConfiguration as __Configuration } from '../print-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 { ListResponseArgsOfKeyValueDTOOfStringAndString } from '../models/list-response-args-of-key-value-dtoof-string-and-string';
|
||||
import { ResponseArgs } from '../models/response-args';
|
||||
import { PrintRequest } from '../models/print-request';
|
||||
import { PrintRequestOfIEnumerableOfInt64 } from '../models/print-request-of-ienumerable-of-int-64';
|
||||
import { PrintRequestOfInt64 } from '../models/print-request-of-int-64';
|
||||
import { PrintRequestOfIEnumerableOfItemDTO } from '../models/print-request-of-ienumerable-of-item-dto';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
class PrintService extends __BaseService {
|
||||
static readonly PrintPrintersPath = '/printers';
|
||||
static readonly PrintTestPath = '/print/test';
|
||||
static readonly PrintAbholscheinPath = '/print/abholschein';
|
||||
static readonly PrintAbholfachzettelPath = '/print/abholfachzettel';
|
||||
static readonly PrintWarenkorbPath = '/print/cart';
|
||||
static readonly PrintArtikelDetailPath = '/print/article/detail';
|
||||
static readonly PrintArtikelListePath = '/print/article/list';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
http: HttpClient
|
||||
) {
|
||||
super(config, http);
|
||||
}
|
||||
PrintPrintersResponse(): __Observable<__StrictHttpResponse<ListResponseArgsOfKeyValueDTOOfStringAndString>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
let req = new HttpRequest<any>(
|
||||
'GET',
|
||||
this.rootUrl + `/printers`,
|
||||
__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<ListResponseArgsOfKeyValueDTOOfStringAndString>;
|
||||
})
|
||||
);
|
||||
} PrintPrinters(): __Observable<ListResponseArgsOfKeyValueDTOOfStringAndString> {
|
||||
return this.PrintPrintersResponse().pipe(
|
||||
__map(_r => _r.body as ListResponseArgsOfKeyValueDTOOfStringAndString)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintTestResponse(data: PrintRequest): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print/test`,
|
||||
__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<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintTest(data: PrintRequest): __Observable<ResponseArgs> {
|
||||
return this.PrintTestResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintAbholscheinResponse(data: PrintRequestOfIEnumerableOfInt64): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print/abholschein`,
|
||||
__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<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintAbholschein(data: PrintRequestOfIEnumerableOfInt64): __Observable<ResponseArgs> {
|
||||
return this.PrintAbholscheinResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintAbholfachzettelResponse(data: PrintRequestOfIEnumerableOfInt64): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print/abholfachzettel`,
|
||||
__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<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintAbholfachzettel(data: PrintRequestOfIEnumerableOfInt64): __Observable<ResponseArgs> {
|
||||
return this.PrintAbholfachzettelResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintWarenkorbResponse(data: PrintRequestOfInt64): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print/cart`,
|
||||
__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<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintWarenkorb(data: PrintRequestOfInt64): __Observable<ResponseArgs> {
|
||||
return this.PrintWarenkorbResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintArtikelDetailResponse(data: PrintRequestOfIEnumerableOfItemDTO): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print/article/detail`,
|
||||
__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<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintArtikelDetail(data: PrintRequestOfIEnumerableOfItemDTO): __Observable<ResponseArgs> {
|
||||
return this.PrintArtikelDetailResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintArtikelListeResponse(data: PrintRequestOfIEnumerableOfItemDTO): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print/article/list`,
|
||||
__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<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintArtikelListe(data: PrintRequestOfIEnumerableOfItemDTO): __Observable<ResponseArgs> {
|
||||
return this.PrintArtikelListeResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module PrintService {
|
||||
}
|
||||
|
||||
export { PrintService }
|
||||
9
libs/swagger/src/lib/print/strict-http-response.ts
Normal file
9
libs/swagger/src/lib/print/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;
|
||||
}
|
||||
Reference in New Issue
Block a user