@devite/shopware-client 1.2.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
@@ -196,7 +196,7 @@ interface Criteria {
196
196
  filter?: Filters;
197
197
  ids?: Array<string>;
198
198
  query?: Array<Query>;
199
- associations?: Array<Criteria>;
199
+ associations?: Record<string, Criteria>;
200
200
  "post-filter"?: Filters;
201
201
  sort?: Array<Sort>;
202
202
  aggregations?: Aggregation;
@@ -465,6 +465,7 @@ type OrderAddress$1 = CustomerAddressBody & {
465
465
  };
466
466
 
467
467
  interface DeliveryTime$1 {
468
+ apiAlias: "delivery_time";
468
469
  id: string;
469
470
  name: string;
470
471
  min: number;
@@ -556,6 +557,7 @@ interface Media$1 {
556
557
  }
557
558
 
558
559
  interface Tag$1 {
560
+ apiAlias: "tag";
559
561
  id: string;
560
562
  name: string;
561
563
  readonly createdAt?: string;
@@ -1041,6 +1043,7 @@ interface Unit$1 {
1041
1043
  }
1042
1044
 
1043
1045
  interface ProductMedia$1 {
1046
+ apiAlias: "product_media";
1044
1047
  id: string;
1045
1048
  versionId?: string;
1046
1049
  productId: string;
@@ -1221,6 +1224,7 @@ interface PropertyGroup$1 {
1221
1224
  }
1222
1225
 
1223
1226
  interface PropertyGroupOption$1 {
1227
+ apiAlias: "property_group_option";
1224
1228
  id: string;
1225
1229
  groupId: string;
1226
1230
  name: string;
@@ -1237,6 +1241,7 @@ interface PropertyGroupOption$1 {
1237
1241
  }
1238
1242
 
1239
1243
  interface ProductConfiguratorSetting$1 {
1244
+ apiAlias: "product_configurator_setting";
1240
1245
  id: string;
1241
1246
  versionId?: string;
1242
1247
  productId: string;
@@ -1749,17 +1754,13 @@ interface CrossSellingElement {
1749
1754
  streamId: string;
1750
1755
  }
1751
1756
 
1752
- interface EntitySearchResult {
1753
- entity?: string;
1757
+ type ProductListingResult = {
1758
+ apiAlias: "product_listing";
1759
+ entity?: "product";
1754
1760
  total?: number;
1755
1761
  aggregations?: Array<object>;
1756
1762
  page?: number;
1757
1763
  limit?: number;
1758
- }
1759
-
1760
- type ProductListingResult = EntitySearchResult & {
1761
- apiAlias: "product_listing";
1762
- entity?: "product";
1763
1764
  currentFilters: Array<{
1764
1765
  navigationId: string;
1765
1766
  manufacturer: Array<string>;
@@ -1823,6 +1824,15 @@ interface Sitemap {
1823
1824
  created: string;
1824
1825
  }
1825
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
+
1826
1836
  type OrderDeliveryPosition = OrderDeliveryPosition$1 & {
1827
1837
  orderDelivery?: OrderDelivery;
1828
1838
  orderLineItem?: OrderLineItem;
@@ -12255,7 +12265,7 @@ type OrderListRequest = Criteria & {
12255
12265
  checkPromotion?: boolean;
12256
12266
  };
12257
12267
  interface OrderListResponse {
12258
- orders: Array<Order$1> & EntitySearchResult;
12268
+ orders: Array<Order$1>;
12259
12269
  paymentChangeable: Record<string, boolean>;
12260
12270
  }
12261
12271
  interface OrderUpdatePaymentMethodRequest {
@@ -12535,4 +12545,9 @@ declare class StoreShopwareClient extends ShopwareClient {
12535
12545
  forWishlist(): WishlistClient;
12536
12546
  }
12537
12547
 
12538
- export { AdminShopwareClient, type ClientRequestOptions, type ClientResponse, type OAuthResponseBody, type OAuthScope, type RequestCacheEntry, ShopwareClient, StoreShopwareClient };
12548
+ declare class ShopwareError extends Error {
12549
+ readonly response: ClientResponse;
12550
+ constructor(message: string, response: ClientResponse);
12551
+ }
12552
+
12553
+ export { AdminShopwareClient, type ClientRequestOptions, type ClientResponse, type OAuthResponseBody, type OAuthScope, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
package/dist/index.d.mts CHANGED
@@ -196,7 +196,7 @@ interface Criteria {
196
196
  filter?: Filters;
197
197
  ids?: Array<string>;
198
198
  query?: Array<Query>;
199
- associations?: Array<Criteria>;
199
+ associations?: Record<string, Criteria>;
200
200
  "post-filter"?: Filters;
201
201
  sort?: Array<Sort>;
202
202
  aggregations?: Aggregation;
@@ -465,6 +465,7 @@ type OrderAddress$1 = CustomerAddressBody & {
465
465
  };
466
466
 
467
467
  interface DeliveryTime$1 {
468
+ apiAlias: "delivery_time";
468
469
  id: string;
469
470
  name: string;
470
471
  min: number;
@@ -556,6 +557,7 @@ interface Media$1 {
556
557
  }
557
558
 
558
559
  interface Tag$1 {
560
+ apiAlias: "tag";
559
561
  id: string;
560
562
  name: string;
561
563
  readonly createdAt?: string;
@@ -1041,6 +1043,7 @@ interface Unit$1 {
1041
1043
  }
1042
1044
 
1043
1045
  interface ProductMedia$1 {
1046
+ apiAlias: "product_media";
1044
1047
  id: string;
1045
1048
  versionId?: string;
1046
1049
  productId: string;
@@ -1221,6 +1224,7 @@ interface PropertyGroup$1 {
1221
1224
  }
1222
1225
 
1223
1226
  interface PropertyGroupOption$1 {
1227
+ apiAlias: "property_group_option";
1224
1228
  id: string;
1225
1229
  groupId: string;
1226
1230
  name: string;
@@ -1237,6 +1241,7 @@ interface PropertyGroupOption$1 {
1237
1241
  }
1238
1242
 
1239
1243
  interface ProductConfiguratorSetting$1 {
1244
+ apiAlias: "product_configurator_setting";
1240
1245
  id: string;
1241
1246
  versionId?: string;
1242
1247
  productId: string;
@@ -1749,17 +1754,13 @@ interface CrossSellingElement {
1749
1754
  streamId: string;
1750
1755
  }
1751
1756
 
1752
- interface EntitySearchResult {
1753
- entity?: string;
1757
+ type ProductListingResult = {
1758
+ apiAlias: "product_listing";
1759
+ entity?: "product";
1754
1760
  total?: number;
1755
1761
  aggregations?: Array<object>;
1756
1762
  page?: number;
1757
1763
  limit?: number;
1758
- }
1759
-
1760
- type ProductListingResult = EntitySearchResult & {
1761
- apiAlias: "product_listing";
1762
- entity?: "product";
1763
1764
  currentFilters: Array<{
1764
1765
  navigationId: string;
1765
1766
  manufacturer: Array<string>;
@@ -1823,6 +1824,15 @@ interface Sitemap {
1823
1824
  created: string;
1824
1825
  }
1825
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
+
1826
1836
  type OrderDeliveryPosition = OrderDeliveryPosition$1 & {
1827
1837
  orderDelivery?: OrderDelivery;
1828
1838
  orderLineItem?: OrderLineItem;
@@ -12255,7 +12265,7 @@ type OrderListRequest = Criteria & {
12255
12265
  checkPromotion?: boolean;
12256
12266
  };
12257
12267
  interface OrderListResponse {
12258
- orders: Array<Order$1> & EntitySearchResult;
12268
+ orders: Array<Order$1>;
12259
12269
  paymentChangeable: Record<string, boolean>;
12260
12270
  }
12261
12271
  interface OrderUpdatePaymentMethodRequest {
@@ -12535,4 +12545,9 @@ declare class StoreShopwareClient extends ShopwareClient {
12535
12545
  forWishlist(): WishlistClient;
12536
12546
  }
12537
12547
 
12538
- export { AdminShopwareClient, type ClientRequestOptions, type ClientResponse, type OAuthResponseBody, type OAuthScope, type RequestCacheEntry, ShopwareClient, StoreShopwareClient };
12548
+ declare class ShopwareError extends Error {
12549
+ readonly response: ClientResponse;
12550
+ constructor(message: string, response: ClientResponse);
12551
+ }
12552
+
12553
+ export { AdminShopwareClient, type ClientRequestOptions, type ClientResponse, type OAuthResponseBody, type OAuthScope, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };
package/dist/index.d.ts CHANGED
@@ -196,7 +196,7 @@ interface Criteria {
196
196
  filter?: Filters;
197
197
  ids?: Array<string>;
198
198
  query?: Array<Query>;
199
- associations?: Array<Criteria>;
199
+ associations?: Record<string, Criteria>;
200
200
  "post-filter"?: Filters;
201
201
  sort?: Array<Sort>;
202
202
  aggregations?: Aggregation;
@@ -465,6 +465,7 @@ type OrderAddress$1 = CustomerAddressBody & {
465
465
  };
466
466
 
467
467
  interface DeliveryTime$1 {
468
+ apiAlias: "delivery_time";
468
469
  id: string;
469
470
  name: string;
470
471
  min: number;
@@ -556,6 +557,7 @@ interface Media$1 {
556
557
  }
557
558
 
558
559
  interface Tag$1 {
560
+ apiAlias: "tag";
559
561
  id: string;
560
562
  name: string;
561
563
  readonly createdAt?: string;
@@ -1041,6 +1043,7 @@ interface Unit$1 {
1041
1043
  }
1042
1044
 
1043
1045
  interface ProductMedia$1 {
1046
+ apiAlias: "product_media";
1044
1047
  id: string;
1045
1048
  versionId?: string;
1046
1049
  productId: string;
@@ -1221,6 +1224,7 @@ interface PropertyGroup$1 {
1221
1224
  }
1222
1225
 
1223
1226
  interface PropertyGroupOption$1 {
1227
+ apiAlias: "property_group_option";
1224
1228
  id: string;
1225
1229
  groupId: string;
1226
1230
  name: string;
@@ -1237,6 +1241,7 @@ interface PropertyGroupOption$1 {
1237
1241
  }
1238
1242
 
1239
1243
  interface ProductConfiguratorSetting$1 {
1244
+ apiAlias: "product_configurator_setting";
1240
1245
  id: string;
1241
1246
  versionId?: string;
1242
1247
  productId: string;
@@ -1749,17 +1754,13 @@ interface CrossSellingElement {
1749
1754
  streamId: string;
1750
1755
  }
1751
1756
 
1752
- interface EntitySearchResult {
1753
- entity?: string;
1757
+ type ProductListingResult = {
1758
+ apiAlias: "product_listing";
1759
+ entity?: "product";
1754
1760
  total?: number;
1755
1761
  aggregations?: Array<object>;
1756
1762
  page?: number;
1757
1763
  limit?: number;
1758
- }
1759
-
1760
- type ProductListingResult = EntitySearchResult & {
1761
- apiAlias: "product_listing";
1762
- entity?: "product";
1763
1764
  currentFilters: Array<{
1764
1765
  navigationId: string;
1765
1766
  manufacturer: Array<string>;
@@ -1823,6 +1824,15 @@ interface Sitemap {
1823
1824
  created: string;
1824
1825
  }
1825
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
+
1826
1836
  type OrderDeliveryPosition = OrderDeliveryPosition$1 & {
1827
1837
  orderDelivery?: OrderDelivery;
1828
1838
  orderLineItem?: OrderLineItem;
@@ -12255,7 +12265,7 @@ type OrderListRequest = Criteria & {
12255
12265
  checkPromotion?: boolean;
12256
12266
  };
12257
12267
  interface OrderListResponse {
12258
- orders: Array<Order$1> & EntitySearchResult;
12268
+ orders: Array<Order$1>;
12259
12269
  paymentChangeable: Record<string, boolean>;
12260
12270
  }
12261
12271
  interface OrderUpdatePaymentMethodRequest {
@@ -12535,4 +12545,9 @@ declare class StoreShopwareClient extends ShopwareClient {
12535
12545
  forWishlist(): WishlistClient;
12536
12546
  }
12537
12547
 
12538
- export { AdminShopwareClient, type ClientRequestOptions, type ClientResponse, type OAuthResponseBody, type OAuthScope, type RequestCacheEntry, ShopwareClient, StoreShopwareClient };
12548
+ declare class ShopwareError extends Error {
12549
+ readonly response: ClientResponse;
12550
+ constructor(message: string, response: ClientResponse);
12551
+ }
12552
+
12553
+ export { AdminShopwareClient, type ClientRequestOptions, type ClientResponse, type OAuthResponseBody, type OAuthScope, type RequestCacheEntry, ShopwareClient, ShopwareError, StoreShopwareClient };