@devite/shopware-client 1.3.0 → 1.3.1

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.d.cts CHANGED
@@ -1754,18 +1754,13 @@ interface CrossSellingElement {
1754
1754
  streamId: string;
1755
1755
  }
1756
1756
 
1757
- interface EntitySearchResult {
1758
- apiAlias: "dal_entity_search_result";
1759
- entity?: string;
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> & EntitySearchResult;
12268
+ orders: Array<Order$1>;
12265
12269
  paymentChangeable: Record<string, boolean>;
12266
12270
  }
12267
12271
  interface OrderUpdatePaymentMethodRequest {
package/dist/index.d.mts CHANGED
@@ -1754,18 +1754,13 @@ interface CrossSellingElement {
1754
1754
  streamId: string;
1755
1755
  }
1756
1756
 
1757
- interface EntitySearchResult {
1758
- apiAlias: "dal_entity_search_result";
1759
- entity?: string;
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> & EntitySearchResult;
12268
+ orders: Array<Order$1>;
12265
12269
  paymentChangeable: Record<string, boolean>;
12266
12270
  }
12267
12271
  interface OrderUpdatePaymentMethodRequest {
package/dist/index.d.ts CHANGED
@@ -1754,18 +1754,13 @@ interface CrossSellingElement {
1754
1754
  streamId: string;
1755
1755
  }
1756
1756
 
1757
- interface EntitySearchResult {
1758
- apiAlias: "dal_entity_search_result";
1759
- entity?: string;
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> & EntitySearchResult;
12268
+ orders: Array<Order$1>;
12265
12269
  paymentChangeable: Record<string, boolean>;
12266
12270
  }
12267
12271
  interface OrderUpdatePaymentMethodRequest {
@@ -1,8 +1,11 @@
1
- import { EntitySearchResult } from "../EntitySearchResult";
2
1
  import { Product } from "./Product";
3
- export type ProductListingResult = EntitySearchResult & {
2
+ export type ProductListingResult = {
4
3
  apiAlias: "product_listing";
5
4
  entity?: "product";
5
+ total?: number;
6
+ aggregations?: Array<object>;
7
+ page?: number;
8
+ limit?: number;
6
9
  currentFilters: Array<{
7
10
  navigationId: string;
8
11
  manufacturer: Array<string>;
@@ -1,7 +1,6 @@
1
1
  import { StateMachineState } from "#types/api/store/StateMachineState";
2
2
  import { Order } from "#types/api/store/order/Order";
3
3
  import { Criteria } from "#types/api/global/query/Criteria";
4
- import { EntitySearchResult } from "#types/api/store/EntitySearchResult";
5
4
  export interface OrderPaymentInitiateRequest {
6
5
  orderId: string;
7
6
  finishUrl?: string;
@@ -25,7 +24,7 @@ export type OrderListRequest = Criteria & {
25
24
  checkPromotion?: boolean;
26
25
  };
27
26
  export interface OrderListResponse {
28
- orders: Array<Order> & EntitySearchResult;
27
+ orders: Array<Order>;
29
28
  paymentChangeable: Record<string, boolean>;
30
29
  }
31
30
  export interface OrderUpdatePaymentMethodRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/shopware-client",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Third party API client for Shopware 6.",
5
5
  "repository": "devite-io/shopware-client",
6
6
  "license": "MIT",
@@ -55,6 +55,9 @@
55
55
  "ohash": "^1.1.4",
56
56
  "qs": "^6.13.1"
57
57
  },
58
+ "imports": {
59
+ "#types/*": "./dist/types/*.d.ts"
60
+ },
58
61
  "scripts": {
59
62
  "build": "export NODE_ENV=production && unbuild && pnpm build:types",
60
63
  "build:types": "tsc --declaration --emitDeclarationOnly",