@devite/shopware-client 1.3.0 → 1.3.2
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/dist/index.cjs +139 -134
- package/dist/index.d.cts +53 -13
- package/dist/index.d.mts +53 -13
- package/dist/index.d.ts +53 -13
- package/dist/index.mjs +135 -135
- package/dist/types/api/global/filter/EqualsFilter.d.ts +1 -1
- package/dist/types/api/global/filter/RangeFilter.d.ts +2 -2
- package/dist/types/api/store/product/ProductListingResult.d.ts +5 -2
- package/dist/types/clients/store/OrderClient.d.ts +1 -2
- package/package.json +4 -1
package/dist/index.d.cts
CHANGED
|
@@ -99,7 +99,7 @@ interface SimpleFilter {
|
|
|
99
99
|
interface EqualsFilter {
|
|
100
100
|
type: "equals";
|
|
101
101
|
field: string;
|
|
102
|
-
value:
|
|
102
|
+
value: string | number | boolean | null;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
interface MultiNotFilter {
|
|
@@ -111,12 +111,12 @@ interface MultiNotFilter {
|
|
|
111
111
|
interface RangeFilter {
|
|
112
112
|
type: "range";
|
|
113
113
|
field: string;
|
|
114
|
-
parameters:
|
|
114
|
+
parameters: {
|
|
115
115
|
gte?: number;
|
|
116
116
|
gt?: number;
|
|
117
117
|
lte?: number;
|
|
118
118
|
lt?: number;
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
type Filters = Array<SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter>;
|
|
@@ -1754,18 +1754,13 @@ interface CrossSellingElement {
|
|
|
1754
1754
|
streamId: string;
|
|
1755
1755
|
}
|
|
1756
1756
|
|
|
1757
|
-
|
|
1758
|
-
apiAlias: "
|
|
1759
|
-
entity?:
|
|
1757
|
+
type ProductListingResult = {
|
|
1758
|
+
apiAlias: "product_listing";
|
|
1759
|
+
entity?: "product";
|
|
1760
1760
|
total?: number;
|
|
1761
1761
|
aggregations?: Array<object>;
|
|
1762
1762
|
page?: number;
|
|
1763
1763
|
limit?: number;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
type ProductListingResult = EntitySearchResult & {
|
|
1767
|
-
apiAlias: "product_listing";
|
|
1768
|
-
entity?: "product";
|
|
1769
1764
|
currentFilters: Array<{
|
|
1770
1765
|
navigationId: string;
|
|
1771
1766
|
manufacturer: Array<string>;
|
|
@@ -1829,6 +1824,15 @@ interface Sitemap {
|
|
|
1829
1824
|
created: string;
|
|
1830
1825
|
}
|
|
1831
1826
|
|
|
1827
|
+
interface EntitySearchResult {
|
|
1828
|
+
apiAlias: "dal_entity_search_result";
|
|
1829
|
+
entity?: string;
|
|
1830
|
+
total?: number;
|
|
1831
|
+
aggregations?: Array<object>;
|
|
1832
|
+
page?: number;
|
|
1833
|
+
limit?: number;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1832
1836
|
type OrderDeliveryPosition = OrderDeliveryPosition$1 & {
|
|
1833
1837
|
orderDelivery?: OrderDelivery;
|
|
1834
1838
|
orderLineItem?: OrderLineItem;
|
|
@@ -12261,7 +12265,7 @@ type OrderListRequest = Criteria & {
|
|
|
12261
12265
|
checkPromotion?: boolean;
|
|
12262
12266
|
};
|
|
12263
12267
|
interface OrderListResponse {
|
|
12264
|
-
orders: Array<Order$1
|
|
12268
|
+
orders: Array<Order$1>;
|
|
12265
12269
|
paymentChangeable: Record<string, boolean>;
|
|
12266
12270
|
}
|
|
12267
12271
|
interface OrderUpdatePaymentMethodRequest {
|
|
@@ -12546,4 +12550,40 @@ declare class ShopwareError extends Error {
|
|
|
12546
12550
|
constructor(message: string, response: ClientResponse);
|
|
12547
12551
|
}
|
|
12548
12552
|
|
|
12549
|
-
|
|
12553
|
+
declare class BinaryPayload extends Payload<Blob> {
|
|
12554
|
+
static CONTENT_TYPE: string;
|
|
12555
|
+
data?: Blob;
|
|
12556
|
+
constructor(data?: Blob);
|
|
12557
|
+
contentType(): string;
|
|
12558
|
+
/**
|
|
12559
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12560
|
+
*/
|
|
12561
|
+
deserialize(data: Blob): Promise<void>;
|
|
12562
|
+
serialize(): Blob | undefined;
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
declare class HtmlPayload extends Payload<string> {
|
|
12566
|
+
static CONTENT_TYPE: string;
|
|
12567
|
+
data?: string;
|
|
12568
|
+
constructor(data?: string);
|
|
12569
|
+
contentType(): string;
|
|
12570
|
+
/**
|
|
12571
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12572
|
+
*/
|
|
12573
|
+
deserialize(data: Blob): Promise<void>;
|
|
12574
|
+
serialize(): string | undefined;
|
|
12575
|
+
}
|
|
12576
|
+
|
|
12577
|
+
declare class JsonPayload extends Payload<string> {
|
|
12578
|
+
static CONTENT_TYPE: string;
|
|
12579
|
+
data?: object;
|
|
12580
|
+
constructor(data?: object);
|
|
12581
|
+
contentType(): string;
|
|
12582
|
+
/**
|
|
12583
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12584
|
+
*/
|
|
12585
|
+
deserialize(data: Blob): Promise<void>;
|
|
12586
|
+
serialize(): string | undefined;
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
export { AdminShopwareClient, BinaryPayload, type ClientRequestOptions, type ClientResponse, HTTPRequestMethod, HtmlPayload, JsonPayload, type OAuthResponseBody, type OAuthScope, Payload, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
|
package/dist/index.d.mts
CHANGED
|
@@ -99,7 +99,7 @@ interface SimpleFilter {
|
|
|
99
99
|
interface EqualsFilter {
|
|
100
100
|
type: "equals";
|
|
101
101
|
field: string;
|
|
102
|
-
value:
|
|
102
|
+
value: string | number | boolean | null;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
interface MultiNotFilter {
|
|
@@ -111,12 +111,12 @@ interface MultiNotFilter {
|
|
|
111
111
|
interface RangeFilter {
|
|
112
112
|
type: "range";
|
|
113
113
|
field: string;
|
|
114
|
-
parameters:
|
|
114
|
+
parameters: {
|
|
115
115
|
gte?: number;
|
|
116
116
|
gt?: number;
|
|
117
117
|
lte?: number;
|
|
118
118
|
lt?: number;
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
type Filters = Array<SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter>;
|
|
@@ -1754,18 +1754,13 @@ interface CrossSellingElement {
|
|
|
1754
1754
|
streamId: string;
|
|
1755
1755
|
}
|
|
1756
1756
|
|
|
1757
|
-
|
|
1758
|
-
apiAlias: "
|
|
1759
|
-
entity?:
|
|
1757
|
+
type ProductListingResult = {
|
|
1758
|
+
apiAlias: "product_listing";
|
|
1759
|
+
entity?: "product";
|
|
1760
1760
|
total?: number;
|
|
1761
1761
|
aggregations?: Array<object>;
|
|
1762
1762
|
page?: number;
|
|
1763
1763
|
limit?: number;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
type ProductListingResult = EntitySearchResult & {
|
|
1767
|
-
apiAlias: "product_listing";
|
|
1768
|
-
entity?: "product";
|
|
1769
1764
|
currentFilters: Array<{
|
|
1770
1765
|
navigationId: string;
|
|
1771
1766
|
manufacturer: Array<string>;
|
|
@@ -1829,6 +1824,15 @@ interface Sitemap {
|
|
|
1829
1824
|
created: string;
|
|
1830
1825
|
}
|
|
1831
1826
|
|
|
1827
|
+
interface EntitySearchResult {
|
|
1828
|
+
apiAlias: "dal_entity_search_result";
|
|
1829
|
+
entity?: string;
|
|
1830
|
+
total?: number;
|
|
1831
|
+
aggregations?: Array<object>;
|
|
1832
|
+
page?: number;
|
|
1833
|
+
limit?: number;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1832
1836
|
type OrderDeliveryPosition = OrderDeliveryPosition$1 & {
|
|
1833
1837
|
orderDelivery?: OrderDelivery;
|
|
1834
1838
|
orderLineItem?: OrderLineItem;
|
|
@@ -12261,7 +12265,7 @@ type OrderListRequest = Criteria & {
|
|
|
12261
12265
|
checkPromotion?: boolean;
|
|
12262
12266
|
};
|
|
12263
12267
|
interface OrderListResponse {
|
|
12264
|
-
orders: Array<Order$1
|
|
12268
|
+
orders: Array<Order$1>;
|
|
12265
12269
|
paymentChangeable: Record<string, boolean>;
|
|
12266
12270
|
}
|
|
12267
12271
|
interface OrderUpdatePaymentMethodRequest {
|
|
@@ -12546,4 +12550,40 @@ declare class ShopwareError extends Error {
|
|
|
12546
12550
|
constructor(message: string, response: ClientResponse);
|
|
12547
12551
|
}
|
|
12548
12552
|
|
|
12549
|
-
|
|
12553
|
+
declare class BinaryPayload extends Payload<Blob> {
|
|
12554
|
+
static CONTENT_TYPE: string;
|
|
12555
|
+
data?: Blob;
|
|
12556
|
+
constructor(data?: Blob);
|
|
12557
|
+
contentType(): string;
|
|
12558
|
+
/**
|
|
12559
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12560
|
+
*/
|
|
12561
|
+
deserialize(data: Blob): Promise<void>;
|
|
12562
|
+
serialize(): Blob | undefined;
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
declare class HtmlPayload extends Payload<string> {
|
|
12566
|
+
static CONTENT_TYPE: string;
|
|
12567
|
+
data?: string;
|
|
12568
|
+
constructor(data?: string);
|
|
12569
|
+
contentType(): string;
|
|
12570
|
+
/**
|
|
12571
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12572
|
+
*/
|
|
12573
|
+
deserialize(data: Blob): Promise<void>;
|
|
12574
|
+
serialize(): string | undefined;
|
|
12575
|
+
}
|
|
12576
|
+
|
|
12577
|
+
declare class JsonPayload extends Payload<string> {
|
|
12578
|
+
static CONTENT_TYPE: string;
|
|
12579
|
+
data?: object;
|
|
12580
|
+
constructor(data?: object);
|
|
12581
|
+
contentType(): string;
|
|
12582
|
+
/**
|
|
12583
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12584
|
+
*/
|
|
12585
|
+
deserialize(data: Blob): Promise<void>;
|
|
12586
|
+
serialize(): string | undefined;
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
export { AdminShopwareClient, BinaryPayload, type ClientRequestOptions, type ClientResponse, HTTPRequestMethod, HtmlPayload, JsonPayload, type OAuthResponseBody, type OAuthScope, Payload, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ interface SimpleFilter {
|
|
|
99
99
|
interface EqualsFilter {
|
|
100
100
|
type: "equals";
|
|
101
101
|
field: string;
|
|
102
|
-
value:
|
|
102
|
+
value: string | number | boolean | null;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
interface MultiNotFilter {
|
|
@@ -111,12 +111,12 @@ interface MultiNotFilter {
|
|
|
111
111
|
interface RangeFilter {
|
|
112
112
|
type: "range";
|
|
113
113
|
field: string;
|
|
114
|
-
parameters:
|
|
114
|
+
parameters: {
|
|
115
115
|
gte?: number;
|
|
116
116
|
gt?: number;
|
|
117
117
|
lte?: number;
|
|
118
118
|
lt?: number;
|
|
119
|
-
}
|
|
119
|
+
};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
type Filters = Array<SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter>;
|
|
@@ -1754,18 +1754,13 @@ interface CrossSellingElement {
|
|
|
1754
1754
|
streamId: string;
|
|
1755
1755
|
}
|
|
1756
1756
|
|
|
1757
|
-
|
|
1758
|
-
apiAlias: "
|
|
1759
|
-
entity?:
|
|
1757
|
+
type ProductListingResult = {
|
|
1758
|
+
apiAlias: "product_listing";
|
|
1759
|
+
entity?: "product";
|
|
1760
1760
|
total?: number;
|
|
1761
1761
|
aggregations?: Array<object>;
|
|
1762
1762
|
page?: number;
|
|
1763
1763
|
limit?: number;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
type ProductListingResult = EntitySearchResult & {
|
|
1767
|
-
apiAlias: "product_listing";
|
|
1768
|
-
entity?: "product";
|
|
1769
1764
|
currentFilters: Array<{
|
|
1770
1765
|
navigationId: string;
|
|
1771
1766
|
manufacturer: Array<string>;
|
|
@@ -1829,6 +1824,15 @@ interface Sitemap {
|
|
|
1829
1824
|
created: string;
|
|
1830
1825
|
}
|
|
1831
1826
|
|
|
1827
|
+
interface EntitySearchResult {
|
|
1828
|
+
apiAlias: "dal_entity_search_result";
|
|
1829
|
+
entity?: string;
|
|
1830
|
+
total?: number;
|
|
1831
|
+
aggregations?: Array<object>;
|
|
1832
|
+
page?: number;
|
|
1833
|
+
limit?: number;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1832
1836
|
type OrderDeliveryPosition = OrderDeliveryPosition$1 & {
|
|
1833
1837
|
orderDelivery?: OrderDelivery;
|
|
1834
1838
|
orderLineItem?: OrderLineItem;
|
|
@@ -12261,7 +12265,7 @@ type OrderListRequest = Criteria & {
|
|
|
12261
12265
|
checkPromotion?: boolean;
|
|
12262
12266
|
};
|
|
12263
12267
|
interface OrderListResponse {
|
|
12264
|
-
orders: Array<Order$1
|
|
12268
|
+
orders: Array<Order$1>;
|
|
12265
12269
|
paymentChangeable: Record<string, boolean>;
|
|
12266
12270
|
}
|
|
12267
12271
|
interface OrderUpdatePaymentMethodRequest {
|
|
@@ -12546,4 +12550,40 @@ declare class ShopwareError extends Error {
|
|
|
12546
12550
|
constructor(message: string, response: ClientResponse);
|
|
12547
12551
|
}
|
|
12548
12552
|
|
|
12549
|
-
|
|
12553
|
+
declare class BinaryPayload extends Payload<Blob> {
|
|
12554
|
+
static CONTENT_TYPE: string;
|
|
12555
|
+
data?: Blob;
|
|
12556
|
+
constructor(data?: Blob);
|
|
12557
|
+
contentType(): string;
|
|
12558
|
+
/**
|
|
12559
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12560
|
+
*/
|
|
12561
|
+
deserialize(data: Blob): Promise<void>;
|
|
12562
|
+
serialize(): Blob | undefined;
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
declare class HtmlPayload extends Payload<string> {
|
|
12566
|
+
static CONTENT_TYPE: string;
|
|
12567
|
+
data?: string;
|
|
12568
|
+
constructor(data?: string);
|
|
12569
|
+
contentType(): string;
|
|
12570
|
+
/**
|
|
12571
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12572
|
+
*/
|
|
12573
|
+
deserialize(data: Blob): Promise<void>;
|
|
12574
|
+
serialize(): string | undefined;
|
|
12575
|
+
}
|
|
12576
|
+
|
|
12577
|
+
declare class JsonPayload extends Payload<string> {
|
|
12578
|
+
static CONTENT_TYPE: string;
|
|
12579
|
+
data?: object;
|
|
12580
|
+
constructor(data?: object);
|
|
12581
|
+
contentType(): string;
|
|
12582
|
+
/**
|
|
12583
|
+
* @throws {SyntaxError} if the data is not a valid JSON string
|
|
12584
|
+
*/
|
|
12585
|
+
deserialize(data: Blob): Promise<void>;
|
|
12586
|
+
serialize(): string | undefined;
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
export { AdminShopwareClient, BinaryPayload, type ClientRequestOptions, type ClientResponse, HTTPRequestMethod, HtmlPayload, JsonPayload, type OAuthResponseBody, type OAuthScope, Payload, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
|