@devite/shopware-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +52 -0
- package/dist/index.cjs +1330 -0
- package/dist/index.d.cts +2186 -0
- package/dist/index.d.mts +2186 -0
- package/dist/index.d.ts +2186 -0
- package/dist/index.mjs +1314 -0
- package/dist/src/ShopwareClient.d.ts +31 -0
- package/dist/src/auth/AuthenticationStore.d.ts +8 -0
- package/dist/src/auth/AuthenticationType.d.ts +5 -0
- package/dist/src/auth/entries/AuthenticationEntry.d.ts +10 -0
- package/dist/src/auth/entries/ContextTokenEntry.d.ts +13 -0
- package/dist/src/auth/entries/OAuthEntry.d.ts +15 -0
- package/dist/src/auth/entries/index.d.ts +3 -0
- package/dist/src/auth/errors/ExpiredError.d.ts +4 -0
- package/dist/src/auth/errors/NotSavedError.d.ts +4 -0
- package/dist/src/auth/errors/index.d.ts +2 -0
- package/dist/src/auth/index.d.ts +4 -0
- package/dist/src/clients/AccountClient.d.ts +16 -0
- package/dist/src/clients/AddressClient.d.ts +11 -0
- package/dist/src/clients/CartClient.d.ts +10 -0
- package/dist/src/clients/CategoryClient.d.ts +8 -0
- package/dist/src/clients/Client.d.ts +16 -0
- package/dist/src/clients/ContentClient.d.ts +9 -0
- package/dist/src/clients/ContextClient.d.ts +7 -0
- package/dist/src/clients/CustomerAuthenticationClient.d.ts +11 -0
- package/dist/src/clients/DocumentClient.d.ts +6 -0
- package/dist/src/clients/GatewayClient.d.ts +6 -0
- package/dist/src/clients/NewsletterClient.d.ts +8 -0
- package/dist/src/clients/OrderClient.d.ts +10 -0
- package/dist/src/clients/PaymentClient.d.ts +6 -0
- package/dist/src/clients/ProductClient.d.ts +14 -0
- package/dist/src/clients/SeoClient.d.ts +8 -0
- package/dist/src/clients/SystemClient.d.ts +12 -0
- package/dist/src/clients/WishlistClient.d.ts +9 -0
- package/dist/src/clients/index.d.ts +17 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/payloads/BinaryPayload.d.ts +10 -0
- package/dist/src/payloads/JsonPayload.d.ts +10 -0
- package/dist/src/payloads/Payload.d.ts +6 -0
- package/dist/src/payloads/index.d.ts +3 -0
- package/dist/tests/auth/AuthenticationStore.test.d.ts +1 -0
- package/dist/tests/auth/entries/ContextTokenEntry.test.d.ts +1 -0
- package/dist/tests/auth/entries/OAuthEntry.test.d.ts +1 -0
- package/dist/types/ClientRequestOptions.d.ts +8 -0
- package/dist/types/ClientResponse.d.ts +7 -0
- package/dist/types/HTTPRequestMethod.d.ts +8 -0
- package/dist/types/RequestCacheEntry.d.ts +5 -0
- package/dist/types/auth/OAuthResponseBody.d.ts +5 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/clients/AccountClient.d.ts +70 -0
- package/dist/types/clients/AddressClient.d.ts +7 -0
- package/dist/types/clients/CartClient.d.ts +17 -0
- package/dist/types/clients/CategoryClient.d.ts +12 -0
- package/dist/types/clients/ContentClient.d.ts +29 -0
- package/dist/types/clients/ContextClient.d.ts +18 -0
- package/dist/types/clients/CustomerAuthenticationClient.d.ts +44 -0
- package/dist/types/clients/DocumentClient.d.ts +3 -0
- package/dist/types/clients/GatewayClient.d.ts +18 -0
- package/dist/types/clients/NewsletterClient.d.ts +21 -0
- package/dist/types/clients/OrderClient.d.ts +26 -0
- package/dist/types/clients/PaymentClient.d.ts +8 -0
- package/dist/types/clients/ProductClient.d.ts +49 -0
- package/dist/types/clients/SeoClient.d.ts +7 -0
- package/dist/types/clients/SystemClient.d.ts +33 -0
- package/dist/types/clients/WishlistClient.d.ts +21 -0
- package/dist/types/clients/index.d.ts +16 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/storeApi/Currency.d.ts +26 -0
- package/dist/types/storeApi/DeliveryTime.d.ts +12 -0
- package/dist/types/storeApi/EntitySearchResult.d.ts +7 -0
- package/dist/types/storeApi/GenericRecord.d.ts +3 -0
- package/dist/types/storeApi/PaymentMethod.d.ts +24 -0
- package/dist/types/storeApi/Rule.d.ts +10 -0
- package/dist/types/storeApi/Salutation.d.ts +11 -0
- package/dist/types/storeApi/StateMachineState.d.ts +10 -0
- package/dist/types/storeApi/Tag.d.ts +6 -0
- package/dist/types/storeApi/Tax.d.ts +10 -0
- package/dist/types/storeApi/TotalCountMode.d.ts +1 -0
- package/dist/types/storeApi/Unit.d.ts +10 -0
- package/dist/types/storeApi/aggregation/AggregationEntity.d.ts +6 -0
- package/dist/types/storeApi/aggregation/AggregationFilter.d.ts +6 -0
- package/dist/types/storeApi/aggregation/AggregationHistogram.d.ts +8 -0
- package/dist/types/storeApi/aggregation/AggregationMetrics.d.ts +5 -0
- package/dist/types/storeApi/aggregation/AggregationRange.d.ts +13 -0
- package/dist/types/storeApi/aggregation/AggregationTerms.d.ts +8 -0
- package/dist/types/storeApi/aggregation/Aggregations.d.ts +2 -0
- package/dist/types/storeApi/aggregation/index.d.ts +7 -0
- package/dist/types/storeApi/cart/Cart.d.ts +19 -0
- package/dist/types/storeApi/cart/CartDelivery.d.ts +13 -0
- package/dist/types/storeApi/cart/CartDeliveryDate.d.ts +4 -0
- package/dist/types/storeApi/cart/CartDeliveryInformation.d.ts +12 -0
- package/dist/types/storeApi/cart/CartDeliveryPosition.d.ts +9 -0
- package/dist/types/storeApi/cart/CartDeliveryShippingLocation.d.ts +7 -0
- package/dist/types/storeApi/cart/CartDeliveryTime.d.ts +7 -0
- package/dist/types/storeApi/cart/CartError.d.ts +8 -0
- package/dist/types/storeApi/cart/CartItems.d.ts +2 -0
- package/dist/types/storeApi/cart/index.d.ts +9 -0
- package/dist/types/storeApi/category/Category.d.ts +50 -0
- package/dist/types/storeApi/category/MainCategory.d.ts +10 -0
- package/dist/types/storeApi/category/index.d.ts +2 -0
- package/dist/types/storeApi/cms/BackgroundMediaMode.d.ts +1 -0
- package/dist/types/storeApi/cms/CmsBlock.d.ts +28 -0
- package/dist/types/storeApi/cms/CmsPage.d.ts +23 -0
- package/dist/types/storeApi/cms/CmsSection.d.ts +25 -0
- package/dist/types/storeApi/cms/CmsSlot.d.ts +20 -0
- package/dist/types/storeApi/cms/LandingPage.d.ts +23 -0
- package/dist/types/storeApi/cms/Visibility.d.ts +5 -0
- package/dist/types/storeApi/cms/index.d.ts +7 -0
- package/dist/types/storeApi/country/Country.d.ts +40 -0
- package/dist/types/storeApi/country/CountryState.d.ts +13 -0
- package/dist/types/storeApi/country/index.d.ts +2 -0
- package/dist/types/storeApi/customer/Customer.d.ts +61 -0
- package/dist/types/storeApi/customer/CustomerAddress.d.ts +7 -0
- package/dist/types/storeApi/customer/CustomerAddressBody.d.ts +23 -0
- package/dist/types/storeApi/customer/CustomerGroup.d.ts +20 -0
- package/dist/types/storeApi/customer/index.d.ts +4 -0
- package/dist/types/storeApi/document/ShopwareDocument.d.ts +29 -0
- package/dist/types/storeApi/document/ShopwareDocumentBaseConfig.d.ts +17 -0
- package/dist/types/storeApi/document/ShopwareDocumentType.d.ts +10 -0
- package/dist/types/storeApi/document/index.d.ts +3 -0
- package/dist/types/storeApi/filter/EqualsFilter.d.ts +5 -0
- package/dist/types/storeApi/filter/Filters.d.ts +2 -0
- package/dist/types/storeApi/filter/MultiNotFilter.d.ts +6 -0
- package/dist/types/storeApi/filter/RangeFilter.d.ts +10 -0
- package/dist/types/storeApi/filter/SimpleFilter.d.ts +5 -0
- package/dist/types/storeApi/filter/index.d.ts +5 -0
- package/dist/types/storeApi/index.d.ts +32 -0
- package/dist/types/storeApi/lineItem/LineItem.d.ts +32 -0
- package/dist/types/storeApi/lineItem/LineItemPayload.d.ts +74 -0
- package/dist/types/storeApi/lineItem/LineItemType.d.ts +1 -0
- package/dist/types/storeApi/lineItem/index.d.ts +3 -0
- package/dist/types/storeApi/link/Link.d.ts +4 -0
- package/dist/types/storeApi/link/Links.d.ts +2 -0
- package/dist/types/storeApi/link/index.d.ts +2 -0
- package/dist/types/storeApi/locale/Language.d.ts +16 -0
- package/dist/types/storeApi/locale/Locale.d.ts +11 -0
- package/dist/types/storeApi/locale/index.d.ts +2 -0
- package/dist/types/storeApi/media/Media.d.ts +25 -0
- package/dist/types/storeApi/media/MediaThumbnail.d.ts +12 -0
- package/dist/types/storeApi/media/ProductMedia.d.ts +15 -0
- package/dist/types/storeApi/media/index.d.ts +3 -0
- package/dist/types/storeApi/order/Order.d.ts +58 -0
- package/dist/types/storeApi/order/OrderAddress.d.ts +8 -0
- package/dist/types/storeApi/order/OrderCustomer.d.ts +18 -0
- package/dist/types/storeApi/order/OrderDelivery.d.ts +24 -0
- package/dist/types/storeApi/order/OrderDeliveryPosition.d.ts +17 -0
- package/dist/types/storeApi/order/OrderLineItem.d.ts +43 -0
- package/dist/types/storeApi/order/OrderLineItemDownload.d.ts +17 -0
- package/dist/types/storeApi/order/OrderReturn.d.ts +14 -0
- package/dist/types/storeApi/order/OrderReturnLineItem.d.ts +14 -0
- package/dist/types/storeApi/order/OrderReturnLineItemReason.d.ts +6 -0
- package/dist/types/storeApi/order/OrderTransaction.d.ts +22 -0
- package/dist/types/storeApi/order/OrderTransactionCapture.d.ts +20 -0
- package/dist/types/storeApi/order/OrderTransactionCaptureRefund.d.ts +21 -0
- package/dist/types/storeApi/order/OrderTransactionCaptureRefundPosition.d.ts +21 -0
- package/dist/types/storeApi/order/index.d.ts +14 -0
- package/dist/types/storeApi/price/CalculatedPrice.d.ts +25 -0
- package/dist/types/storeApi/price/CartListPrice.d.ts +6 -0
- package/dist/types/storeApi/price/CartPriceQuantity.d.ts +16 -0
- package/dist/types/storeApi/price/CartPriceReference.d.ts +12 -0
- package/dist/types/storeApi/price/CartRegulationPrice.d.ts +4 -0
- package/dist/types/storeApi/price/Price.d.ts +18 -0
- package/dist/types/storeApi/price/index.d.ts +6 -0
- package/dist/types/storeApi/product/Product.d.ts +107 -0
- package/dist/types/storeApi/product/ProductConfiguratorSetting.d.ts +17 -0
- package/dist/types/storeApi/product/ProductDownload.d.ts +16 -0
- package/dist/types/storeApi/product/ProductListingResult.d.ts +29 -0
- package/dist/types/storeApi/product/ProductManufacturer.d.ts +15 -0
- package/dist/types/storeApi/product/ProductReview.d.ts +16 -0
- package/dist/types/storeApi/product/ProductReviewSummary.d.ts +8 -0
- package/dist/types/storeApi/product/ProductStream.d.ts +10 -0
- package/dist/types/storeApi/product/crossSelling/CrossSellingElement.d.ts +9 -0
- package/dist/types/storeApi/product/crossSelling/ProductCrossSelling.d.ts +13 -0
- package/dist/types/storeApi/product/crossSelling/index.d.ts +2 -0
- package/dist/types/storeApi/product/index.d.ts +9 -0
- package/dist/types/storeApi/propertyGroup/PropertyGroup.d.ts +17 -0
- package/dist/types/storeApi/propertyGroup/PropertyGroupOption.d.ts +18 -0
- package/dist/types/storeApi/propertyGroup/index.d.ts +2 -0
- package/dist/types/storeApi/query/Criteria.d.ts +20 -0
- package/dist/types/storeApi/query/Include.d.ts +1 -0
- package/dist/types/storeApi/query/Query.d.ts +5 -0
- package/dist/types/storeApi/query/Sort.d.ts +6 -0
- package/dist/types/storeApi/query/index.d.ts +5 -0
- package/dist/types/storeApi/query/product/ProductListingCriteria.d.ts +25 -0
- package/dist/types/storeApi/query/product/ProductListingFlags.d.ts +4 -0
- package/dist/types/storeApi/query/product/index.d.ts +2 -0
- package/dist/types/storeApi/salesChannel/SalesChannel.d.ts +23 -0
- package/dist/types/storeApi/salesChannel/SalesChannelContext.d.ts +38 -0
- package/dist/types/storeApi/salesChannel/index.d.ts +2 -0
- package/dist/types/storeApi/seo/SeoUrlEntity.d.ts +18 -0
- package/dist/types/storeApi/seo/Sitemap.d.ts +4 -0
- package/dist/types/storeApi/seo/index.d.ts +2 -0
- package/dist/types/storeApi/shippingMethod/ShippingMethod.d.ts +29 -0
- package/dist/types/storeApi/shippingMethod/ShippingMethodPrice.d.ts +15 -0
- package/dist/types/storeApi/shippingMethod/index.d.ts +2 -0
- package/package.json +45 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
export type MediaThumbnail = {
|
|
3
|
+
id: string;
|
|
4
|
+
mediaId: string;
|
|
5
|
+
readonly width: number;
|
|
6
|
+
readonly height: number;
|
|
7
|
+
url: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
customFields?: GenericRecord;
|
|
10
|
+
readonly createdAt?: string;
|
|
11
|
+
readonly updatedAt?: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { Media, MediaThumbnail } from ".";
|
|
3
|
+
export type ProductMedia = {
|
|
4
|
+
id: string;
|
|
5
|
+
versionId?: string;
|
|
6
|
+
productId: string;
|
|
7
|
+
productVersionId?: string;
|
|
8
|
+
mediaId: string;
|
|
9
|
+
position?: number;
|
|
10
|
+
customFields?: GenericRecord;
|
|
11
|
+
readonly createdAt?: string;
|
|
12
|
+
readonly updatedAt?: string;
|
|
13
|
+
media?: Media;
|
|
14
|
+
thumbnails?: MediaThumbnail;
|
|
15
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { GenericRecord } from "../GenericRecord";
|
|
3
|
+
import { StateMachineState } from "../StateMachineState";
|
|
4
|
+
import { OrderAddress, OrderCustomer, OrderDelivery, OrderLineItem, OrderTransaction } from ".";
|
|
5
|
+
import { Currency } from "../Currency";
|
|
6
|
+
import { Language } from "../locale";
|
|
7
|
+
import { ShopwareDocument } from "../document";
|
|
8
|
+
import { Tag } from "../Tag";
|
|
9
|
+
export type Order = {
|
|
10
|
+
id: string;
|
|
11
|
+
versionId?: string;
|
|
12
|
+
orderNumber?: string;
|
|
13
|
+
billingAddressId: string;
|
|
14
|
+
billingAddressVersionId?: string;
|
|
15
|
+
currencyId: string;
|
|
16
|
+
languageId: string;
|
|
17
|
+
salesChannelId: string;
|
|
18
|
+
orderDateTime: string;
|
|
19
|
+
readonly orderDate: string;
|
|
20
|
+
price: {
|
|
21
|
+
netPrice: number;
|
|
22
|
+
totalPrice: number;
|
|
23
|
+
calculatedTaxes?: object;
|
|
24
|
+
taxRules?: object;
|
|
25
|
+
positionPrice: number;
|
|
26
|
+
rawTotal: number;
|
|
27
|
+
taxStatus: "Free" | "Net" | "Gross";
|
|
28
|
+
};
|
|
29
|
+
readonly amountTotal?: number;
|
|
30
|
+
readonly amountNet?: number;
|
|
31
|
+
readonly positionPrice?: number;
|
|
32
|
+
readonly taxStatus?: "Free" | "Net" | "Gross";
|
|
33
|
+
shippingCosts?: CalculatedPrice;
|
|
34
|
+
readonly shippingTotal?: number;
|
|
35
|
+
currencyFactor: number;
|
|
36
|
+
deepLinkCode?: string;
|
|
37
|
+
affiliateCode?: string;
|
|
38
|
+
campaignCode?: string;
|
|
39
|
+
customerComment?: string;
|
|
40
|
+
source?: string;
|
|
41
|
+
customFields?: GenericRecord;
|
|
42
|
+
createdById?: string;
|
|
43
|
+
updatedById?: string;
|
|
44
|
+
readonly createdAt?: string;
|
|
45
|
+
readonly updatedAt?: string;
|
|
46
|
+
stateMachineState: StateMachineState;
|
|
47
|
+
orderCustomer: OrderCustomer;
|
|
48
|
+
currency?: Currency;
|
|
49
|
+
language?: Language;
|
|
50
|
+
addresses?: Array<OrderAddress>;
|
|
51
|
+
billingAddress?: OrderAddress;
|
|
52
|
+
deliveries?: Array<OrderDelivery>;
|
|
53
|
+
lineItems?: Array<OrderLineItem>;
|
|
54
|
+
transactions?: Array<OrderTransaction>;
|
|
55
|
+
documents: Array<ShopwareDocument>;
|
|
56
|
+
tags?: Array<Tag>;
|
|
57
|
+
extensions?: object;
|
|
58
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { Salutation } from "../Salutation";
|
|
3
|
+
export type OrderCustomer = {
|
|
4
|
+
id: string;
|
|
5
|
+
versionId?: string;
|
|
6
|
+
email: string;
|
|
7
|
+
salutationId?: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
company?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
vatIds?: Array<string>;
|
|
13
|
+
customerNumber?: string;
|
|
14
|
+
customFields?: GenericRecord;
|
|
15
|
+
readonly createdAt?: string;
|
|
16
|
+
readonly updatedAt?: string;
|
|
17
|
+
salutation?: Salutation;
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { StateMachineState } from "../StateMachineState";
|
|
3
|
+
import { OrderAddress, OrderDeliveryPosition } from ".";
|
|
4
|
+
import { ShippingMethod } from "../shippingMethod";
|
|
5
|
+
export type OrderDelivery = {
|
|
6
|
+
id: string;
|
|
7
|
+
versionId?: string;
|
|
8
|
+
orderId: string;
|
|
9
|
+
orderVersionId?: string;
|
|
10
|
+
shippingOrderAddressId: string;
|
|
11
|
+
shippingOrderAddressVersionId?: string;
|
|
12
|
+
shippingMethodId: string;
|
|
13
|
+
stateId: string;
|
|
14
|
+
trackingCodes?: Array<string>;
|
|
15
|
+
shippingDateEarliest: string;
|
|
16
|
+
shippingDateLatest: string;
|
|
17
|
+
shippingCosts?: CalculatedPrice;
|
|
18
|
+
readonly createdAt?: string;
|
|
19
|
+
readonly updatedAt?: string;
|
|
20
|
+
stateMachineState?: StateMachineState;
|
|
21
|
+
shippingOrderAddress?: OrderAddress;
|
|
22
|
+
shippingMethod?: ShippingMethod;
|
|
23
|
+
positions?: Array<OrderDeliveryPosition>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { GenericRecord } from "../GenericRecord";
|
|
3
|
+
export type OrderDeliveryPosition = {
|
|
4
|
+
id: string;
|
|
5
|
+
versionId?: string;
|
|
6
|
+
orderDeliveryId: string;
|
|
7
|
+
orderDeliveryVersionId?: string;
|
|
8
|
+
orderLineItemId: string;
|
|
9
|
+
orderLineItemVersionId?: string;
|
|
10
|
+
price: CalculatedPrice;
|
|
11
|
+
unitPrice?: number;
|
|
12
|
+
totalPrice?: number;
|
|
13
|
+
quantity?: number;
|
|
14
|
+
customFields?: GenericRecord;
|
|
15
|
+
readonly createdAt?: string;
|
|
16
|
+
readonly updatedAt?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { LineItemPayload } from "../lineItem";
|
|
2
|
+
import { CartPriceQuantity } from "../price";
|
|
3
|
+
import { GenericRecord } from "../GenericRecord";
|
|
4
|
+
import { Media } from "../media";
|
|
5
|
+
import { OrderDeliveryPosition, OrderLineItemDownload } from ".";
|
|
6
|
+
export type OrderLineItem = {
|
|
7
|
+
apiAlias: "order_line_item";
|
|
8
|
+
id: string;
|
|
9
|
+
versionId?: string;
|
|
10
|
+
orderId: string;
|
|
11
|
+
orderVersionId?: string;
|
|
12
|
+
productId?: string;
|
|
13
|
+
productVersionId?: string;
|
|
14
|
+
promotionId?: string;
|
|
15
|
+
parentId?: string;
|
|
16
|
+
parentVersionId?: string;
|
|
17
|
+
coverId?: string;
|
|
18
|
+
identifier: string;
|
|
19
|
+
referencedId: string;
|
|
20
|
+
quantity: number;
|
|
21
|
+
label: string;
|
|
22
|
+
payload?: LineItemPayload;
|
|
23
|
+
good?: boolean;
|
|
24
|
+
removable?: boolean;
|
|
25
|
+
stackable?: boolean;
|
|
26
|
+
position?: number;
|
|
27
|
+
states: Array<string>;
|
|
28
|
+
priceDefinition?: CartPriceQuantity;
|
|
29
|
+
unitPrice?: number;
|
|
30
|
+
totalPrice?: number;
|
|
31
|
+
description?: string;
|
|
32
|
+
type?: string;
|
|
33
|
+
customFields?: GenericRecord;
|
|
34
|
+
readonly createdAt?: string;
|
|
35
|
+
readonly updatedAt?: string;
|
|
36
|
+
cover?: Media;
|
|
37
|
+
orderDeliveryPositions?: Array<OrderDeliveryPosition>;
|
|
38
|
+
downloads?: Array<OrderLineItemDownload>;
|
|
39
|
+
parent?: OrderLineItem;
|
|
40
|
+
children: Array<OrderLineItem>;
|
|
41
|
+
extensions?: object;
|
|
42
|
+
translated?: object;
|
|
43
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { OrderLineItem } from ".";
|
|
3
|
+
import { Media } from "../media";
|
|
4
|
+
export type OrderLineItemDownload = {
|
|
5
|
+
id: string;
|
|
6
|
+
versionId?: string;
|
|
7
|
+
orderLineItemId: string;
|
|
8
|
+
orderLineItemVersionId?: string;
|
|
9
|
+
mediaId: string;
|
|
10
|
+
position: number;
|
|
11
|
+
accessGranted: boolean;
|
|
12
|
+
customFields?: GenericRecord;
|
|
13
|
+
readonly createdAt?: string;
|
|
14
|
+
readonly updatedAt?: string;
|
|
15
|
+
orderLineItem?: OrderLineItem;
|
|
16
|
+
media?: Media;
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
export type OrderReturn = {
|
|
3
|
+
id?: string;
|
|
4
|
+
versionId?: string;
|
|
5
|
+
orderId?: string;
|
|
6
|
+
orderVersionId?: string;
|
|
7
|
+
price?: CalculatedPrice;
|
|
8
|
+
shippingCosts?: CalculatedPrice;
|
|
9
|
+
stateId?: string;
|
|
10
|
+
returnNumber?: string;
|
|
11
|
+
requestedAt?: string;
|
|
12
|
+
amountTotal?: number;
|
|
13
|
+
amountNet?: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type OrderReturnLineItem = {
|
|
2
|
+
id?: any;
|
|
3
|
+
versionId?: any;
|
|
4
|
+
orderReturnId?: any;
|
|
5
|
+
orderReturnVersionId?: any;
|
|
6
|
+
orderLineItemId?: any;
|
|
7
|
+
orderLineItemVersionId?: any;
|
|
8
|
+
reasonId?: any;
|
|
9
|
+
quantity?: any;
|
|
10
|
+
refundAmount?: any;
|
|
11
|
+
restockQuantity?: any;
|
|
12
|
+
customFields?: any;
|
|
13
|
+
stateId?: any;
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { GenericRecord } from "../GenericRecord";
|
|
3
|
+
import { StateMachineState } from "../StateMachineState";
|
|
4
|
+
import { PaymentMethod } from "../PaymentMethod";
|
|
5
|
+
import { OrderTransactionCapture } from ".";
|
|
6
|
+
export type OrderTransaction = {
|
|
7
|
+
id: string;
|
|
8
|
+
versionId?: string;
|
|
9
|
+
orderId: string;
|
|
10
|
+
orderVersionId?: string;
|
|
11
|
+
paymentMethodId: string;
|
|
12
|
+
amount: CalculatedPrice;
|
|
13
|
+
validationData?: object;
|
|
14
|
+
stateId: string;
|
|
15
|
+
customFields?: GenericRecord;
|
|
16
|
+
readonly createdAt?: string;
|
|
17
|
+
readonly updatedAt?: string;
|
|
18
|
+
stateMachineState?: StateMachineState;
|
|
19
|
+
paymentMethod?: PaymentMethod;
|
|
20
|
+
captures?: Array<OrderTransactionCapture>;
|
|
21
|
+
shippingCosts?: CalculatedPrice;
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { GenericRecord } from "../GenericRecord";
|
|
3
|
+
import { StateMachineState } from "../StateMachineState";
|
|
4
|
+
import { OrderTransaction, OrderTransactionCaptureRefund } from ".";
|
|
5
|
+
export type OrderTransactionCapture = {
|
|
6
|
+
id: string;
|
|
7
|
+
versionId?: string;
|
|
8
|
+
orderTransactionId: string;
|
|
9
|
+
orderTransactionVersionId?: string;
|
|
10
|
+
stateId: string;
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
amount: CalculatedPrice;
|
|
13
|
+
customFields?: GenericRecord;
|
|
14
|
+
readonly createdAt?: string;
|
|
15
|
+
readonly updatedAt?: string;
|
|
16
|
+
stateMachineState?: StateMachineState;
|
|
17
|
+
transaction?: OrderTransaction;
|
|
18
|
+
refunds?: Array<OrderTransactionCaptureRefund>;
|
|
19
|
+
shippingCosts?: CalculatedPrice;
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { GenericRecord } from "../GenericRecord";
|
|
3
|
+
import { StateMachineState } from "../StateMachineState";
|
|
4
|
+
import { OrderTransactionCapture, OrderTransactionCaptureRefundPosition } from ".";
|
|
5
|
+
export type OrderTransactionCaptureRefund = {
|
|
6
|
+
id: string;
|
|
7
|
+
versionId?: string;
|
|
8
|
+
captureId: string;
|
|
9
|
+
captureVersionId?: string;
|
|
10
|
+
stateId: string;
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
reason?: string;
|
|
13
|
+
amount: CalculatedPrice;
|
|
14
|
+
customFields?: GenericRecord;
|
|
15
|
+
readonly createdAt?: string;
|
|
16
|
+
readonly updatedAt?: string;
|
|
17
|
+
stateMachineState?: StateMachineState;
|
|
18
|
+
transactionCapture?: OrderTransactionCapture;
|
|
19
|
+
positions?: Array<OrderTransactionCaptureRefundPosition>;
|
|
20
|
+
shippingCosts?: CalculatedPrice;
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { GenericRecord } from "../GenericRecord";
|
|
3
|
+
import { OrderLineItem, OrderTransactionCaptureRefund } from ".";
|
|
4
|
+
export type OrderTransactionCaptureRefundPosition = {
|
|
5
|
+
id: string;
|
|
6
|
+
versionId?: string;
|
|
7
|
+
refundId: string;
|
|
8
|
+
refundVersionId?: string;
|
|
9
|
+
orderLineItemId: string;
|
|
10
|
+
orderLineItemVersionId?: string;
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
reason?: string;
|
|
13
|
+
quantity?: number;
|
|
14
|
+
amount: CalculatedPrice;
|
|
15
|
+
customFields?: GenericRecord;
|
|
16
|
+
readonly createdAt?: string;
|
|
17
|
+
readonly updatedAt?: string;
|
|
18
|
+
orderLineItem?: OrderLineItem;
|
|
19
|
+
orderTransactionCaptureRefund?: OrderTransactionCaptureRefund;
|
|
20
|
+
shippingCosts?: CalculatedPrice;
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Order } from "./Order";
|
|
2
|
+
export { OrderAddress } from "./OrderAddress";
|
|
3
|
+
export { OrderCustomer } from "./OrderCustomer";
|
|
4
|
+
export { OrderDelivery } from "./OrderDelivery";
|
|
5
|
+
export { OrderDeliveryPosition } from "./OrderDeliveryPosition";
|
|
6
|
+
export { OrderLineItem } from "./OrderLineItem";
|
|
7
|
+
export { OrderLineItemDownload } from "./OrderLineItemDownload";
|
|
8
|
+
export { OrderReturn } from "./OrderReturn";
|
|
9
|
+
export { OrderReturnLineItem } from "./OrderReturnLineItem";
|
|
10
|
+
export { OrderReturnLineItemReason } from "./OrderReturnLineItemReason";
|
|
11
|
+
export { OrderTransaction } from "./OrderTransaction";
|
|
12
|
+
export { OrderTransactionCapture } from "./OrderTransactionCapture";
|
|
13
|
+
export { OrderTransactionCaptureRefund } from "./OrderTransactionCaptureRefund";
|
|
14
|
+
export { OrderTransactionCaptureRefundPosition } from "./OrderTransactionCaptureRefundPosition";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CartListPrice, CartPriceReference, CartRegulationPrice } from ".";
|
|
2
|
+
export type CalculatedPrice = {
|
|
3
|
+
unitPrice: number;
|
|
4
|
+
quantity: number;
|
|
5
|
+
rawTotal?: number;
|
|
6
|
+
totalPrice: number;
|
|
7
|
+
calculatedTaxes: Array<{
|
|
8
|
+
apiAlias: "cart_tax_calculated";
|
|
9
|
+
tax: number;
|
|
10
|
+
taxRate: number;
|
|
11
|
+
price: number;
|
|
12
|
+
}>;
|
|
13
|
+
referencePrice: CartPriceReference | null;
|
|
14
|
+
listPrice: CartListPrice | null;
|
|
15
|
+
positionPrice: number;
|
|
16
|
+
netPrice: number;
|
|
17
|
+
regulationPrice: CartRegulationPrice | null;
|
|
18
|
+
hasRange: boolean;
|
|
19
|
+
variantId?: string | null;
|
|
20
|
+
apiAlias: "calculated_price";
|
|
21
|
+
taxRules: Array<{
|
|
22
|
+
taxRate?: number;
|
|
23
|
+
name?: string;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CartListPrice } from ".";
|
|
2
|
+
export type CartPriceQuantity = {
|
|
3
|
+
apiAlias: "cart_price_quantity";
|
|
4
|
+
isCalculated?: boolean;
|
|
5
|
+
listPrice?: CartListPrice;
|
|
6
|
+
price?: number;
|
|
7
|
+
quantity?: number;
|
|
8
|
+
regulationPrice?: {
|
|
9
|
+
price?: number;
|
|
10
|
+
};
|
|
11
|
+
taxRules?: Array<{
|
|
12
|
+
taxRate?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
}>;
|
|
15
|
+
type?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CartListPrice, CartRegulationPrice } from ".";
|
|
2
|
+
export type CartPriceReference = {
|
|
3
|
+
apiAlias: "cart_price_reference";
|
|
4
|
+
purchaseUnit?: number;
|
|
5
|
+
referenceUnit?: number;
|
|
6
|
+
unitName: string;
|
|
7
|
+
price?: number;
|
|
8
|
+
listPrice: CartListPrice | null;
|
|
9
|
+
regulationPrice: CartRegulationPrice | null;
|
|
10
|
+
hasRange: boolean;
|
|
11
|
+
variantId?: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Price = {
|
|
2
|
+
currencyId: string;
|
|
3
|
+
gross: number;
|
|
4
|
+
net: number;
|
|
5
|
+
linked?: boolean;
|
|
6
|
+
listPrice?: {
|
|
7
|
+
currencyId?: string;
|
|
8
|
+
gross: number;
|
|
9
|
+
net: number;
|
|
10
|
+
linked?: boolean;
|
|
11
|
+
};
|
|
12
|
+
regulationPrice: {
|
|
13
|
+
currencyId?: string;
|
|
14
|
+
gross: number;
|
|
15
|
+
net: number;
|
|
16
|
+
linked?: boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Price } from "./Price";
|
|
2
|
+
export { CartPriceQuantity } from "./CartPriceQuantity";
|
|
3
|
+
export { CartPriceReference } from "./CartPriceReference";
|
|
4
|
+
export { CalculatedPrice } from "./CalculatedPrice";
|
|
5
|
+
export { CartListPrice } from "./CartListPrice";
|
|
6
|
+
export { CartRegulationPrice } from "./CartRegulationPrice";
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { CalculatedPrice } from "../price";
|
|
3
|
+
import { ProductConfiguratorSetting, ProductCrossSelling, ProductDownload, ProductManufacturer, ProductReview, ProductStream } from ".";
|
|
4
|
+
import { DeliveryTime } from "../DeliveryTime";
|
|
5
|
+
import { Tax } from "../Tax";
|
|
6
|
+
import { Unit } from "../Unit";
|
|
7
|
+
import { Media, ProductMedia } from "../media";
|
|
8
|
+
import { CmsPage } from "../cms";
|
|
9
|
+
import { Category, MainCategory } from "../category";
|
|
10
|
+
import { SeoUrlEntity } from "../seo";
|
|
11
|
+
import { PropertyGroupOption } from "../propertyGroup";
|
|
12
|
+
import { Tag } from "../Tag";
|
|
13
|
+
export type Product = {
|
|
14
|
+
apiAlias: "product";
|
|
15
|
+
id: string;
|
|
16
|
+
versionId?: string;
|
|
17
|
+
parentId?: string;
|
|
18
|
+
parentVersionId?: string;
|
|
19
|
+
manufacturerId?: string;
|
|
20
|
+
productManufacturerVersionId?: string;
|
|
21
|
+
unitId?: string;
|
|
22
|
+
taxId: string;
|
|
23
|
+
coverId?: string;
|
|
24
|
+
productMediaVersionId?: string;
|
|
25
|
+
deliveryTimeId?: string;
|
|
26
|
+
canonicalProductId?: string;
|
|
27
|
+
canonicalProductVersionId?: string;
|
|
28
|
+
cmsPageId?: string;
|
|
29
|
+
cmsPageVersionId?: string;
|
|
30
|
+
productNumber: string;
|
|
31
|
+
restockTime: number;
|
|
32
|
+
active?: boolean;
|
|
33
|
+
readonly available?: boolean;
|
|
34
|
+
isCloseout?: boolean;
|
|
35
|
+
readonly availableStock?: number;
|
|
36
|
+
stock: number;
|
|
37
|
+
readonly displayGroup?: string;
|
|
38
|
+
manufacturerNumber?: string;
|
|
39
|
+
ean?: string;
|
|
40
|
+
purchaseSteps?: number;
|
|
41
|
+
maxPurchase?: number;
|
|
42
|
+
minPurchase?: number;
|
|
43
|
+
purchaseUnit?: number;
|
|
44
|
+
referenceUnit?: number;
|
|
45
|
+
shippingFree?: boolean;
|
|
46
|
+
markAsTopseller?: boolean;
|
|
47
|
+
weight?: number;
|
|
48
|
+
width?: number;
|
|
49
|
+
height?: number;
|
|
50
|
+
length?: number;
|
|
51
|
+
releaseDate?: string;
|
|
52
|
+
readonly ratingAverage?: number;
|
|
53
|
+
readonly categoryTree?: Array<string>;
|
|
54
|
+
readonly propertyIds?: Array<string>;
|
|
55
|
+
readonly optionIds?: Array<string>;
|
|
56
|
+
readonly streamIds?: Array<string>;
|
|
57
|
+
readonly tagIds?: Array<string>;
|
|
58
|
+
readonly categoryIds?: Array<string>;
|
|
59
|
+
readonly childCount?: number;
|
|
60
|
+
readonly sales?: number;
|
|
61
|
+
readonly states?: Array<string>;
|
|
62
|
+
metaDescription?: string;
|
|
63
|
+
name: string;
|
|
64
|
+
keywords?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
metaTitle?: string;
|
|
67
|
+
packUnit?: string;
|
|
68
|
+
packUnitPlural?: string;
|
|
69
|
+
customFields?: GenericRecord;
|
|
70
|
+
calculatedPrice: CalculatedPrice;
|
|
71
|
+
calculatedPrices: Array<CalculatedPrice>;
|
|
72
|
+
calculatedMaxPurchase?: number;
|
|
73
|
+
calculatedCheapestPrice?: CalculatedPrice;
|
|
74
|
+
isNew?: boolean;
|
|
75
|
+
sortedProperties: object;
|
|
76
|
+
readonly createdAt?: string;
|
|
77
|
+
readonly updatedAt?: string;
|
|
78
|
+
translated?: object;
|
|
79
|
+
downloads?: Array<ProductDownload>;
|
|
80
|
+
parent?: Product;
|
|
81
|
+
children?: Array<Product>;
|
|
82
|
+
deliveryTime?: DeliveryTime;
|
|
83
|
+
tax?: Tax;
|
|
84
|
+
manufacturer?: ProductManufacturer;
|
|
85
|
+
unit?: Unit;
|
|
86
|
+
cover?: ProductMedia;
|
|
87
|
+
cmsPage?: CmsPage;
|
|
88
|
+
canonicalProduct?: Product;
|
|
89
|
+
media?: Array<Media>;
|
|
90
|
+
crossSellings?: Array<ProductCrossSelling>;
|
|
91
|
+
configuratorSettings?: Array<ProductConfiguratorSetting>;
|
|
92
|
+
productReviews?: Array<ProductReview>;
|
|
93
|
+
mainCategories?: Array<MainCategory>;
|
|
94
|
+
seoUrls?: Array<SeoUrlEntity>;
|
|
95
|
+
options?: Array<PropertyGroupOption>;
|
|
96
|
+
properties?: Array<PropertyGroupOption>;
|
|
97
|
+
categories?: Array<MainCategory>;
|
|
98
|
+
streams?: Array<ProductStream>;
|
|
99
|
+
categoriesRo?: Array<Category>;
|
|
100
|
+
tags?: Array<Tag>;
|
|
101
|
+
seoCategory: Category;
|
|
102
|
+
variantListingConfig?: {
|
|
103
|
+
displayParent?: boolean;
|
|
104
|
+
} | null;
|
|
105
|
+
mainVariantId?: any;
|
|
106
|
+
externalReference?: any;
|
|
107
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { Media } from "../media";
|
|
3
|
+
import { PropertyGroupOption } from "../propertyGroup";
|
|
4
|
+
export type ProductConfiguratorSetting = {
|
|
5
|
+
id: string;
|
|
6
|
+
versionId?: string;
|
|
7
|
+
productId: string;
|
|
8
|
+
productVersionId?: string;
|
|
9
|
+
mediaId?: string;
|
|
10
|
+
optionId: string;
|
|
11
|
+
position?: number;
|
|
12
|
+
customFields?: GenericRecord;
|
|
13
|
+
readonly createdAt?: string;
|
|
14
|
+
readonly updatedAt?: string;
|
|
15
|
+
media?: Media;
|
|
16
|
+
option?: PropertyGroupOption;
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { Product } from ".";
|
|
3
|
+
import { Media } from "../media";
|
|
4
|
+
export type ProductDownload = {
|
|
5
|
+
id: string;
|
|
6
|
+
versionId?: string;
|
|
7
|
+
productId: string;
|
|
8
|
+
productVersionId?: string;
|
|
9
|
+
mediaId: string;
|
|
10
|
+
position?: number;
|
|
11
|
+
customFields?: GenericRecord;
|
|
12
|
+
readonly createdAt?: string;
|
|
13
|
+
readonly updatedAt?: string;
|
|
14
|
+
product?: Product;
|
|
15
|
+
media?: Media;
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EntitySearchResult } from "../EntitySearchResult";
|
|
2
|
+
import { Product } from ".";
|
|
3
|
+
export type ProductListingResult = EntitySearchResult & {
|
|
4
|
+
apiAlias: "product_listing";
|
|
5
|
+
entity?: "product";
|
|
6
|
+
currentFilters: Array<{
|
|
7
|
+
navigationId: string;
|
|
8
|
+
manufacturer: Array<string>;
|
|
9
|
+
price: {
|
|
10
|
+
min: number;
|
|
11
|
+
max: number;
|
|
12
|
+
};
|
|
13
|
+
rating: number | null;
|
|
14
|
+
"shipping-free": boolean;
|
|
15
|
+
properties: Array<string>;
|
|
16
|
+
search: string;
|
|
17
|
+
}>;
|
|
18
|
+
availableSortings: Array<{
|
|
19
|
+
apiAlias: "product_sorting";
|
|
20
|
+
label: string;
|
|
21
|
+
translated: {
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
key: string;
|
|
25
|
+
priority: number;
|
|
26
|
+
}>;
|
|
27
|
+
sorting?: string;
|
|
28
|
+
elements: Array<Product>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { Media } from "../media";
|
|
3
|
+
export type ProductManufacturer = {
|
|
4
|
+
id: string;
|
|
5
|
+
versionId?: string;
|
|
6
|
+
mediaId?: string;
|
|
7
|
+
link?: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
customFields?: GenericRecord;
|
|
11
|
+
readonly createdAt?: string;
|
|
12
|
+
readonly updatedAt?: string;
|
|
13
|
+
translated?: object;
|
|
14
|
+
media?: Media;
|
|
15
|
+
};
|