Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(structure): Move sw6-connector to packages/shopware-6-client/
Browse files Browse the repository at this point in the history
  • Loading branch information
rmakara committed Oct 10, 2019
1 parent d003f99 commit df67110
Show file tree
Hide file tree
Showing 107 changed files with 438 additions and 463 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import { ErrorCollection } from "./error/ErrorCollection";
import { DeliveryCollection } from "../delivery/DeliveryCollection";
import { TransactionCollection } from "./transaction/TransactionCollection";

interface Cart {
name: string;
token: string;
price: CartPrice;
lineItems: LineItemCollection;
errors: ErrorCollection;
deliveries: DeliveryCollection;
transactions: TransactionCollection
modified: boolean;
interface Cart {
name: string;
token: string;
price: CartPrice;
lineItems: LineItemCollection;
errors: ErrorCollection;
deliveries: DeliveryCollection;
transactions: TransactionCollection;
modified: boolean;
}


Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface Error {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Collection } from "../../../framework/struct/Collection";
import { Error } from "./Error";
export interface ErrorCollection extends Collection {
[index: number]: Error;
[index: number]: Error;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { CalculatedPrice } from "../price/CalculatedPrice";
import { Media } from "../../../content/media/Media";
import { Rule } from "../../../framework/rule/Rule";
import { DeliveryInformation } from "../../delivery/DeliveryInformation";
import { PriceDefinitionInterface } from "../price/PriceDefinitionInterface";
import { QuantityInformation } from "./QuantityInformation";
import { LineItemCollection } from "./LineItemCollection";
export interface LineItem {
id: string;
referencedId: string | null;
label: string | null;
quantity: number;
type: string;
payload: [];
priceDefinition: PriceDefinitionInterface | null;
price: CalculatedPrice | null;
good: boolean;
description: string | null;
cover: Media | null;
deliveryInformation: DeliveryInformation | null;
children: LineItemCollection;
requirement: Rule | null;
removable: boolean;
stackable: boolean;
quantityInformation: QuantityInformation | null;
modified: boolean;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LineItem } from "./LineItem";
export interface LineItemCollection {
[index: number]: LineItem;
[index: number]: LineItem;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface QuantityInformation {
minPurchase: number;
maxPurchase: number | null;
purchaseSteps: number | null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { CalculatedTaxCollection } from "../../../system/tax/CalculatedTaxCollec
import { TaxRuleCollection } from "../../../system/tax/TaxRuleCollection";
import { ReferencePrice } from "./ReferencePrice";
export interface CalculatedPrice {
unitPrice: number;
quantity: number;
totalPrice: number;
calculatedTaxes: CalculatedTaxCollection;
taxRules: TaxRuleCollection;
referencePRice: ReferencePrice;
unitPrice: number;
quantity: number;
totalPrice: number;
calculatedTaxes: CalculatedTaxCollection;
taxRules: TaxRuleCollection;
referencePRice: ReferencePrice;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { CalculatedTaxCollection } from "../../../system/tax/CalculatedTaxCollection";
import { TaxRuleCollection } from "../../../system/tax/TaxRuleCollection";
export interface CartPrice {
netPrice: number;
totalPrice: number;
calculatedTaxes: CalculatedTaxCollection;
taxRules: TaxRuleCollection;
positionPrice: number;
taxStatus: string;
netPrice: number;
totalPrice: number;
calculatedTaxes: CalculatedTaxCollection;
taxRules: TaxRuleCollection;
positionPrice: number;
taxStatus: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface PriceDefinitionInterface {}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface ReferencePrice {
price: number;
price: number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { CalculatedTaxCollection } from "../../../system/tax/CalculatedTaxCollec
import { TaxRuleCollection } from "../../../system/tax/TaxRuleCollection";
import { ReferencePrice } from "../price/ReferencePrice";
export interface CalculatedPrice {
unitPrice: number;
quantity: number;
totalPrice: number;
calculatedTaxes: CalculatedTaxCollection;
taxRules: TaxRuleCollection;
referencePRice: ReferencePrice;
unitPrice: number;
quantity: number;
totalPrice: number;
calculatedTaxes: CalculatedTaxCollection;
taxRules: TaxRuleCollection;
referencePRice: ReferencePrice;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { ShippingLocation } from "../../delivery/ShippingLocation";
import { DeliveryDate } from "../../delivery/DeliveryDate";

export interface Delivery {
positions: OrderDeliveryPositionCollection;
location: ShippingLocation;
deliveryDate: DeliveryDate;
shippingMethod: ShippingMethodEntity;
shippingCosts: CalculatedPrice;
positions: OrderDeliveryPositionCollection;
location: ShippingLocation;
deliveryDate: DeliveryDate;
shippingMethod: ShippingMethodEntity;
shippingCosts: CalculatedPrice;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import { Collection } from "../../../framework/struct/Collection";
export interface TransactionCollection extends Collection {
}
export interface TransactionCollection extends Collection {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { CustomerAddress } from "./CustomerAddress";
export interface BillingAddress extends CustomerAddress {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { ProductReview } from "../../content/product/ProductReview";
import { PaymentMethod } from "../payment/PaymentMethod";
import { CustomerGroup } from "./CustomerGroup";
import { OrderCustomer } from "../../checkout/order/OrderCustomer";
import { ShippingAddress } from "./ShippingAddress";
import { BillingAddress } from "./BillingAddress";
import { CustomerAddress } from "./CustomerAddress";
import { Tag, CustomField, Extension } from "../../Common";
import { Promotion } from "../promotion/Promotion";

export interface Customer {
id: string;
groupId: string;
defaultPaymentMethodId: string;
salesChannelId: string;
languageId: string;
lastPaymentMethodId: string | null;
defaultBillingAddressId: string | null;
defaultShippingAddressId: string | null;
customerNumber: number;
salutationId: string | null;
firstName: string;
lastName: string;
company: string | null;
email: string;
title: string | null;
active: boolean;
guest: boolean;
firstLogin: Date | null;
lastLogin: Date | null;
newsletter: boolean;
birthday: Date;
lastOrderDate: Date;
orderCount: number;
createdAt: Date;
updatedAt: Date;
group: CustomerGroup;
defaultPaymentMethod: PaymentMethod;
defaultBillingAddress: BillingAddress;
defaultShippingAddress: ShippingAddress;
activeBillingAddress: BillingAddress;
activeShippingAddress: ShippingAddress;
addresses: Array<CustomerAddress>;
orderCustomers: Array<OrderCustomer> | null;
autoIncrement: number;
tags: Array<Tag> | null;
promotions: Array<Promotion> | null;
customFields: Array<CustomField> | null;
productReviews: Array<ProductReview>;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CustomerAddress } from "./CustomerAddress";

export interface CustomerAddressCollection {
[index: number]: CustomerAddress;
}
[index: number]: CustomerAddress;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Customer } from "./Customer";

export default interface CustomerCollection {
[index: number]: Customer;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export interface CustomerGroup {
id: string;
name: string;
display_gross: boolean;
customFields: any;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

import { CustomerGroup } from "./CustomerGroup";
import { CustomField } from "../../Common";
export interface CustomerGroupTranslation {
customerGroupId: string;
name: string | null;
customerGroup: CustomerGroup | null;
customFields: CustomField | null;
customerGroupId: string;
name: string | null;
customerGroup: CustomerGroup | null;
customFields: CustomField | null;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CustomerGroupTranslation } from "./CustomerGroupTranslation";
export interface CustomerGroupTranslationCollection {
[index: number]: CustomerGroupTranslation;
[index: number]: CustomerGroupTranslation;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { CustomerAddress } from "./CustomerAddress";
export interface ShippingAddress extends CustomerAddress {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { ShippingLocation } from "./ShippingLocation";
import { DeliveryDate } from "./DeliveryDate";

export interface Delivery {
positions: OrderDeliveryPositionCollection;
location: ShippingLocation;
deliveryDate: DeliveryDate;
shippingMethod: ShippingMethodEntity;
shippingCosts: CalculatedPrice;
positions: OrderDeliveryPositionCollection;
location: ShippingLocation;
deliveryDate: DeliveryDate;
shippingMethod: ShippingMethodEntity;
shippingCosts: CalculatedPrice;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Collection } from "../../framework/struct/Collection";
import { Delivery } from "./Delivery";
export interface DeliveryCollection extends Collection {
[index: number]: Delivery;
[index: number]: Delivery;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface DeliveryDate {
readonly earliest: Date;
readonly latest: Date;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { DeliveryTime } from "./DeliveryTime";
export interface DeliveryInformation {
stock: number;
weight: number;
freeDelivery: boolean;
restockTime: number | null;
deliveryTime: DeliveryTime | null;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ShippingMethodCollection } from "../shipping/ShippingMethodCollection";
import { EntityCollection } from "../../framework/struct/EntityCollection";
export interface DeliveryTime {
name: string | null;
min: number;
max: number;
unit: string;
shippingMethods: ShippingMethodCollection | null;
translations: EntityCollection;
customFields: [] | null;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DeliveryTime } from "./DeliveryTime";
export interface DeliveryTimeCollection {
[index: number]: DeliveryTime;
[index: number]: DeliveryTime;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Country } from "../../system/country/Country";
import { CountryState } from "../../system/country/CountryState";
import { iCustomerAddress } from "../customer/Address";
export interface ShippingLocation {
country: Country;
state: CountryState;
address: iCustomerAddress;
country: Country;
state: CountryState;
address: iCustomerAddress;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface DocumentBaseConfigCollection {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface DocumentBaseConfigDefinition {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface DocumentCollection {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { iCustomField } from "../../Common";
export interface DocumentTypeTranslation {
documentTypeId: string;
documentType: DocumentType | null;
name: string | null;
customFields: iCustomField;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DocumentTypeTranslation } from "./DocumentTypeTranslation";
export interface DocumentTypeTranslationCollection {
[index: number]: DocumentTypeTranslation;
[index: number]: DocumentTypeTranslation;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface Order {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export interface OrderAddress {}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OrderAddress } from "./OrderAddress";
export interface OrderAddressCollection {
[index: number]: OrderAddress;
[index: number]: OrderAddress;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Order } from "./Order";
export interface OrderCollection {
[index: number]: Order;
[index: number]: Order;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { iCustomer } from "../customer/Customer";
import { Order } from "./Order";
import { Salutation } from "../../system/salutation/Salutation";
export interface OrderCustomer {
email: string;
orderId: string;
salutationId: string;
firstName: string;
lastName: string;
title: string | null;
company: string | null;
customerNumber: string | null;
customerId: string;
customer: iCustomer | null;
salutation: Salutation | null;
order: Order | null;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OrderCustomer } from "./OrderCustomer";
export interface OrderCustomerCollection {
[index: number]: OrderCustomer;
[index: number]: OrderCustomer;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Order } from "./Order";
import { ShippingMethodPrice } from "../shipping/ShippingMethodPrice";
import { StateMachineStateEntity } from "../../system/state-machine/StateMachineStateEntity";
import { CalculatedPrice } from "../cart/price/CalculatedPrice";
import { OrderAddress } from "./OrderAddress";
import { OrderDeliveryPositionCollection } from "./OrderDeliveryPositionCollection";
export interface OrderDelivery {
orderId: string;
shippingOrderAddressId: string;
shippingMethodId: string;
trackingCode: string | null;
shippingDateEarliest: Date;
shippingDateLatest: Date;
shippingCosts: CalculatedPrice;
shippingOrderAddress: OrderAddress | null;
stateId: string;
stateMachineState: StateMachineStateEntity | null;
shippingMethod: ShippingMethodPrice | null;
order: Order | null;
positions: OrderDeliveryPositionCollection | null;
}
Loading

0 comments on commit df67110

Please sign in to comment.