@devite/shopware-client 1.3.2 → 1.3.3

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
@@ -175,19 +175,77 @@ interface AggregationRange {
175
175
  }>;
176
176
  }
177
177
 
178
+ interface Price {
179
+ currencyId: string;
180
+ gross: number;
181
+ net: number;
182
+ linked?: boolean;
183
+ listPrice?: {
184
+ currencyId?: string;
185
+ gross: number;
186
+ net: number;
187
+ linked?: boolean;
188
+ };
189
+ regulationPrice: {
190
+ currencyId?: string;
191
+ gross: number;
192
+ net: number;
193
+ linked?: boolean;
194
+ };
195
+ }
196
+
197
+ type ProductListingCriteria = Criteria & {
198
+ order?: string;
199
+ limit?: number;
200
+ p?: number;
201
+ manufacturer?: string;
202
+ "min-price"?: number;
203
+ "max-price"?: number;
204
+ rating?: number;
205
+ "shipping-free"?: boolean;
206
+ properties?: string;
207
+ "manufacturer-filter"?: boolean;
208
+ "price-filter"?: boolean;
209
+ "rating-filter"?: boolean;
210
+ "shipping-free-filter"?: boolean;
211
+ "property-filter"?: boolean;
212
+ "property-whitelist"?: string;
213
+ "reduce-aggregations"?: string | null;
214
+ } & {
215
+ filter?: Filters | SimpleFilter;
216
+ sort?: Array<Sort> | Sort;
217
+ "post-filter"?: Filters | SimpleFilter;
218
+ };
219
+
220
+ interface ProductListingFlags {
221
+ "no-aggregations"?: string | null;
222
+ "only-aggregations"?: string | null;
223
+ }
224
+
225
+ type Includes = Record<string, Array<string>>;
226
+
227
+ type TotalCountMode = "none" | "exact" | "next-pages";
228
+
229
+ type GenericRecord = never | null | string | Array<string> | number | {
230
+ [key: string]: GenericRecord;
231
+ };
232
+
233
+ interface Rounding {
234
+ decimals: number;
235
+ interval: number;
236
+ roundForNet: boolean;
237
+ }
238
+
178
239
  interface AggregationTerms {
179
240
  name: string;
180
241
  type: "terms";
181
242
  field: string;
182
243
  limit?: number;
183
244
  sort?: Array<Sort>;
245
+ aggregation?: Aggregation;
184
246
  }
185
247
 
186
- type Aggregation = Array<AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms>;
187
-
188
- type TotalCountMode = "none" | "exact" | "next-pages";
189
-
190
- type Includes = Record<string, Array<string>>;
248
+ type Aggregation = AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms;
191
249
 
192
250
  interface Criteria {
193
251
  page?: number;
@@ -199,7 +257,7 @@ interface Criteria {
199
257
  associations?: Record<string, Criteria>;
200
258
  "post-filter"?: Filters;
201
259
  sort?: Array<Sort>;
202
- aggregations?: Aggregation;
260
+ aggregations?: Array<Aggregation>;
203
261
  fields?: Array<string>;
204
262
  grouping?: Array<string>;
205
263
  /** @default "none" */
@@ -207,10 +265,6 @@ interface Criteria {
207
265
  includes?: Includes;
208
266
  }
209
267
 
210
- type GenericRecord = never | null | string | Array<string> | number | {
211
- [key: string]: GenericRecord;
212
- };
213
-
214
268
  interface Locale$1 {
215
269
  id: string;
216
270
  code: string;
@@ -262,12 +316,6 @@ interface SalesChannel$1 {
262
316
  analyticsId?: string;
263
317
  }
264
318
 
265
- interface Rounding {
266
- decimals: number;
267
- interval: number;
268
- roundForNet: boolean;
269
- }
270
-
271
319
  interface Currency$1 {
272
320
  id: string;
273
321
  factor: number;
@@ -487,25 +535,6 @@ interface Rule$1 {
487
535
  extensions?: any;
488
536
  }
489
537
 
490
- interface Price {
491
- currencyId: string;
492
- gross: number;
493
- net: number;
494
- linked?: boolean;
495
- listPrice?: {
496
- currencyId?: string;
497
- gross: number;
498
- net: number;
499
- linked?: boolean;
500
- };
501
- regulationPrice: {
502
- currencyId?: string;
503
- gross: number;
504
- net: number;
505
- linked?: boolean;
506
- };
507
- }
508
-
509
538
  interface ShippingMethodPrice$1 {
510
539
  id: string;
511
540
  shippingMethodId: string;
@@ -1415,7 +1444,7 @@ interface Product$1 {
1415
1444
  cover?: ProductMedia$1;
1416
1445
  cmsPage?: CmsPage$1;
1417
1446
  canonicalProduct?: Product$1;
1418
- media?: Array<Media$1>;
1447
+ media?: Array<ProductMedia$1>;
1419
1448
  crossSellings?: Array<ProductCrossSelling$1>;
1420
1449
  configuratorSettings?: Array<ProductConfiguratorSetting$1>;
1421
1450
  productReviews?: Array<ProductReview$1>;
@@ -2681,7 +2710,7 @@ type Product = Product$1 & {
2681
2710
  featureSet?: ProductFeatureSet;
2682
2711
  cmsPage?: CmsPage;
2683
2712
  canonicalProduct?: Product;
2684
- media?: Array<Media>;
2713
+ media?: Array<ProductMedia>;
2685
2714
  crossSellings?: Array<ProductCrossSelling>;
2686
2715
  crossSellingAssignedProducts?: Array<ProductCrossSellingAssignedProduct>;
2687
2716
  configuratorSettings?: Array<ProductConfiguratorSetting>;
@@ -12042,29 +12071,6 @@ declare class CategoryClient extends Client {
12042
12071
  getNavigationMenu(activeId: string, rootId: string, includeSeoUrls: boolean, request?: NavigationMenuRequest): Promise<NavigationMenuResponse>;
12043
12072
  }
12044
12073
 
12045
- type ProductListingCriteria = Criteria & {
12046
- order?: string;
12047
- limit?: number;
12048
- p?: number;
12049
- manufacturer?: string;
12050
- "min-price"?: number;
12051
- "max-price"?: number;
12052
- rating?: number;
12053
- "shipping-free"?: boolean;
12054
- properties?: string;
12055
- "manufacturer-filter"?: boolean;
12056
- "price-filter"?: boolean;
12057
- "rating-filter"?: boolean;
12058
- "shipping-free-filter"?: boolean;
12059
- "property-filter"?: boolean;
12060
- "property-whitelist"?: string;
12061
- "reduce-aggregations"?: string | null;
12062
- } & {
12063
- filter?: Filters | SimpleFilter;
12064
- sort?: Array<Sort> | Sort;
12065
- "post-filter"?: Filters | SimpleFilter;
12066
- };
12067
-
12068
12074
  type CMSPageResolveResponse = CmsPage$1;
12069
12075
  interface ContactFormSubmitRequest {
12070
12076
  salutationId: string;
@@ -12303,11 +12309,6 @@ declare class OrderClient extends Client {
12303
12309
  createFromCart(request?: OrderFromCartRequest): Promise<OrderFromCartResponse>;
12304
12310
  }
12305
12311
 
12306
- interface ProductListingFlags {
12307
- "no-aggregations"?: string | null;
12308
- "only-aggregations"?: string | null;
12309
- }
12310
-
12311
12312
  type ProductListRequest = Criteria;
12312
12313
  type ProductListResponse = EntitySearchResult & {
12313
12314
  elements?: Array<Product$1>;
package/dist/index.d.mts CHANGED
@@ -175,19 +175,77 @@ interface AggregationRange {
175
175
  }>;
176
176
  }
177
177
 
178
+ interface Price {
179
+ currencyId: string;
180
+ gross: number;
181
+ net: number;
182
+ linked?: boolean;
183
+ listPrice?: {
184
+ currencyId?: string;
185
+ gross: number;
186
+ net: number;
187
+ linked?: boolean;
188
+ };
189
+ regulationPrice: {
190
+ currencyId?: string;
191
+ gross: number;
192
+ net: number;
193
+ linked?: boolean;
194
+ };
195
+ }
196
+
197
+ type ProductListingCriteria = Criteria & {
198
+ order?: string;
199
+ limit?: number;
200
+ p?: number;
201
+ manufacturer?: string;
202
+ "min-price"?: number;
203
+ "max-price"?: number;
204
+ rating?: number;
205
+ "shipping-free"?: boolean;
206
+ properties?: string;
207
+ "manufacturer-filter"?: boolean;
208
+ "price-filter"?: boolean;
209
+ "rating-filter"?: boolean;
210
+ "shipping-free-filter"?: boolean;
211
+ "property-filter"?: boolean;
212
+ "property-whitelist"?: string;
213
+ "reduce-aggregations"?: string | null;
214
+ } & {
215
+ filter?: Filters | SimpleFilter;
216
+ sort?: Array<Sort> | Sort;
217
+ "post-filter"?: Filters | SimpleFilter;
218
+ };
219
+
220
+ interface ProductListingFlags {
221
+ "no-aggregations"?: string | null;
222
+ "only-aggregations"?: string | null;
223
+ }
224
+
225
+ type Includes = Record<string, Array<string>>;
226
+
227
+ type TotalCountMode = "none" | "exact" | "next-pages";
228
+
229
+ type GenericRecord = never | null | string | Array<string> | number | {
230
+ [key: string]: GenericRecord;
231
+ };
232
+
233
+ interface Rounding {
234
+ decimals: number;
235
+ interval: number;
236
+ roundForNet: boolean;
237
+ }
238
+
178
239
  interface AggregationTerms {
179
240
  name: string;
180
241
  type: "terms";
181
242
  field: string;
182
243
  limit?: number;
183
244
  sort?: Array<Sort>;
245
+ aggregation?: Aggregation;
184
246
  }
185
247
 
186
- type Aggregation = Array<AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms>;
187
-
188
- type TotalCountMode = "none" | "exact" | "next-pages";
189
-
190
- type Includes = Record<string, Array<string>>;
248
+ type Aggregation = AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms;
191
249
 
192
250
  interface Criteria {
193
251
  page?: number;
@@ -199,7 +257,7 @@ interface Criteria {
199
257
  associations?: Record<string, Criteria>;
200
258
  "post-filter"?: Filters;
201
259
  sort?: Array<Sort>;
202
- aggregations?: Aggregation;
260
+ aggregations?: Array<Aggregation>;
203
261
  fields?: Array<string>;
204
262
  grouping?: Array<string>;
205
263
  /** @default "none" */
@@ -207,10 +265,6 @@ interface Criteria {
207
265
  includes?: Includes;
208
266
  }
209
267
 
210
- type GenericRecord = never | null | string | Array<string> | number | {
211
- [key: string]: GenericRecord;
212
- };
213
-
214
268
  interface Locale$1 {
215
269
  id: string;
216
270
  code: string;
@@ -262,12 +316,6 @@ interface SalesChannel$1 {
262
316
  analyticsId?: string;
263
317
  }
264
318
 
265
- interface Rounding {
266
- decimals: number;
267
- interval: number;
268
- roundForNet: boolean;
269
- }
270
-
271
319
  interface Currency$1 {
272
320
  id: string;
273
321
  factor: number;
@@ -487,25 +535,6 @@ interface Rule$1 {
487
535
  extensions?: any;
488
536
  }
489
537
 
490
- interface Price {
491
- currencyId: string;
492
- gross: number;
493
- net: number;
494
- linked?: boolean;
495
- listPrice?: {
496
- currencyId?: string;
497
- gross: number;
498
- net: number;
499
- linked?: boolean;
500
- };
501
- regulationPrice: {
502
- currencyId?: string;
503
- gross: number;
504
- net: number;
505
- linked?: boolean;
506
- };
507
- }
508
-
509
538
  interface ShippingMethodPrice$1 {
510
539
  id: string;
511
540
  shippingMethodId: string;
@@ -1415,7 +1444,7 @@ interface Product$1 {
1415
1444
  cover?: ProductMedia$1;
1416
1445
  cmsPage?: CmsPage$1;
1417
1446
  canonicalProduct?: Product$1;
1418
- media?: Array<Media$1>;
1447
+ media?: Array<ProductMedia$1>;
1419
1448
  crossSellings?: Array<ProductCrossSelling$1>;
1420
1449
  configuratorSettings?: Array<ProductConfiguratorSetting$1>;
1421
1450
  productReviews?: Array<ProductReview$1>;
@@ -2681,7 +2710,7 @@ type Product = Product$1 & {
2681
2710
  featureSet?: ProductFeatureSet;
2682
2711
  cmsPage?: CmsPage;
2683
2712
  canonicalProduct?: Product;
2684
- media?: Array<Media>;
2713
+ media?: Array<ProductMedia>;
2685
2714
  crossSellings?: Array<ProductCrossSelling>;
2686
2715
  crossSellingAssignedProducts?: Array<ProductCrossSellingAssignedProduct>;
2687
2716
  configuratorSettings?: Array<ProductConfiguratorSetting>;
@@ -12042,29 +12071,6 @@ declare class CategoryClient extends Client {
12042
12071
  getNavigationMenu(activeId: string, rootId: string, includeSeoUrls: boolean, request?: NavigationMenuRequest): Promise<NavigationMenuResponse>;
12043
12072
  }
12044
12073
 
12045
- type ProductListingCriteria = Criteria & {
12046
- order?: string;
12047
- limit?: number;
12048
- p?: number;
12049
- manufacturer?: string;
12050
- "min-price"?: number;
12051
- "max-price"?: number;
12052
- rating?: number;
12053
- "shipping-free"?: boolean;
12054
- properties?: string;
12055
- "manufacturer-filter"?: boolean;
12056
- "price-filter"?: boolean;
12057
- "rating-filter"?: boolean;
12058
- "shipping-free-filter"?: boolean;
12059
- "property-filter"?: boolean;
12060
- "property-whitelist"?: string;
12061
- "reduce-aggregations"?: string | null;
12062
- } & {
12063
- filter?: Filters | SimpleFilter;
12064
- sort?: Array<Sort> | Sort;
12065
- "post-filter"?: Filters | SimpleFilter;
12066
- };
12067
-
12068
12074
  type CMSPageResolveResponse = CmsPage$1;
12069
12075
  interface ContactFormSubmitRequest {
12070
12076
  salutationId: string;
@@ -12303,11 +12309,6 @@ declare class OrderClient extends Client {
12303
12309
  createFromCart(request?: OrderFromCartRequest): Promise<OrderFromCartResponse>;
12304
12310
  }
12305
12311
 
12306
- interface ProductListingFlags {
12307
- "no-aggregations"?: string | null;
12308
- "only-aggregations"?: string | null;
12309
- }
12310
-
12311
12312
  type ProductListRequest = Criteria;
12312
12313
  type ProductListResponse = EntitySearchResult & {
12313
12314
  elements?: Array<Product$1>;
package/dist/index.d.ts CHANGED
@@ -175,19 +175,77 @@ interface AggregationRange {
175
175
  }>;
176
176
  }
177
177
 
178
+ interface Price {
179
+ currencyId: string;
180
+ gross: number;
181
+ net: number;
182
+ linked?: boolean;
183
+ listPrice?: {
184
+ currencyId?: string;
185
+ gross: number;
186
+ net: number;
187
+ linked?: boolean;
188
+ };
189
+ regulationPrice: {
190
+ currencyId?: string;
191
+ gross: number;
192
+ net: number;
193
+ linked?: boolean;
194
+ };
195
+ }
196
+
197
+ type ProductListingCriteria = Criteria & {
198
+ order?: string;
199
+ limit?: number;
200
+ p?: number;
201
+ manufacturer?: string;
202
+ "min-price"?: number;
203
+ "max-price"?: number;
204
+ rating?: number;
205
+ "shipping-free"?: boolean;
206
+ properties?: string;
207
+ "manufacturer-filter"?: boolean;
208
+ "price-filter"?: boolean;
209
+ "rating-filter"?: boolean;
210
+ "shipping-free-filter"?: boolean;
211
+ "property-filter"?: boolean;
212
+ "property-whitelist"?: string;
213
+ "reduce-aggregations"?: string | null;
214
+ } & {
215
+ filter?: Filters | SimpleFilter;
216
+ sort?: Array<Sort> | Sort;
217
+ "post-filter"?: Filters | SimpleFilter;
218
+ };
219
+
220
+ interface ProductListingFlags {
221
+ "no-aggregations"?: string | null;
222
+ "only-aggregations"?: string | null;
223
+ }
224
+
225
+ type Includes = Record<string, Array<string>>;
226
+
227
+ type TotalCountMode = "none" | "exact" | "next-pages";
228
+
229
+ type GenericRecord = never | null | string | Array<string> | number | {
230
+ [key: string]: GenericRecord;
231
+ };
232
+
233
+ interface Rounding {
234
+ decimals: number;
235
+ interval: number;
236
+ roundForNet: boolean;
237
+ }
238
+
178
239
  interface AggregationTerms {
179
240
  name: string;
180
241
  type: "terms";
181
242
  field: string;
182
243
  limit?: number;
183
244
  sort?: Array<Sort>;
245
+ aggregation?: Aggregation;
184
246
  }
185
247
 
186
- type Aggregation = Array<AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms>;
187
-
188
- type TotalCountMode = "none" | "exact" | "next-pages";
189
-
190
- type Includes = Record<string, Array<string>>;
248
+ type Aggregation = AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms;
191
249
 
192
250
  interface Criteria {
193
251
  page?: number;
@@ -199,7 +257,7 @@ interface Criteria {
199
257
  associations?: Record<string, Criteria>;
200
258
  "post-filter"?: Filters;
201
259
  sort?: Array<Sort>;
202
- aggregations?: Aggregation;
260
+ aggregations?: Array<Aggregation>;
203
261
  fields?: Array<string>;
204
262
  grouping?: Array<string>;
205
263
  /** @default "none" */
@@ -207,10 +265,6 @@ interface Criteria {
207
265
  includes?: Includes;
208
266
  }
209
267
 
210
- type GenericRecord = never | null | string | Array<string> | number | {
211
- [key: string]: GenericRecord;
212
- };
213
-
214
268
  interface Locale$1 {
215
269
  id: string;
216
270
  code: string;
@@ -262,12 +316,6 @@ interface SalesChannel$1 {
262
316
  analyticsId?: string;
263
317
  }
264
318
 
265
- interface Rounding {
266
- decimals: number;
267
- interval: number;
268
- roundForNet: boolean;
269
- }
270
-
271
319
  interface Currency$1 {
272
320
  id: string;
273
321
  factor: number;
@@ -487,25 +535,6 @@ interface Rule$1 {
487
535
  extensions?: any;
488
536
  }
489
537
 
490
- interface Price {
491
- currencyId: string;
492
- gross: number;
493
- net: number;
494
- linked?: boolean;
495
- listPrice?: {
496
- currencyId?: string;
497
- gross: number;
498
- net: number;
499
- linked?: boolean;
500
- };
501
- regulationPrice: {
502
- currencyId?: string;
503
- gross: number;
504
- net: number;
505
- linked?: boolean;
506
- };
507
- }
508
-
509
538
  interface ShippingMethodPrice$1 {
510
539
  id: string;
511
540
  shippingMethodId: string;
@@ -1415,7 +1444,7 @@ interface Product$1 {
1415
1444
  cover?: ProductMedia$1;
1416
1445
  cmsPage?: CmsPage$1;
1417
1446
  canonicalProduct?: Product$1;
1418
- media?: Array<Media$1>;
1447
+ media?: Array<ProductMedia$1>;
1419
1448
  crossSellings?: Array<ProductCrossSelling$1>;
1420
1449
  configuratorSettings?: Array<ProductConfiguratorSetting$1>;
1421
1450
  productReviews?: Array<ProductReview$1>;
@@ -2681,7 +2710,7 @@ type Product = Product$1 & {
2681
2710
  featureSet?: ProductFeatureSet;
2682
2711
  cmsPage?: CmsPage;
2683
2712
  canonicalProduct?: Product;
2684
- media?: Array<Media>;
2713
+ media?: Array<ProductMedia>;
2685
2714
  crossSellings?: Array<ProductCrossSelling>;
2686
2715
  crossSellingAssignedProducts?: Array<ProductCrossSellingAssignedProduct>;
2687
2716
  configuratorSettings?: Array<ProductConfiguratorSetting>;
@@ -12042,29 +12071,6 @@ declare class CategoryClient extends Client {
12042
12071
  getNavigationMenu(activeId: string, rootId: string, includeSeoUrls: boolean, request?: NavigationMenuRequest): Promise<NavigationMenuResponse>;
12043
12072
  }
12044
12073
 
12045
- type ProductListingCriteria = Criteria & {
12046
- order?: string;
12047
- limit?: number;
12048
- p?: number;
12049
- manufacturer?: string;
12050
- "min-price"?: number;
12051
- "max-price"?: number;
12052
- rating?: number;
12053
- "shipping-free"?: boolean;
12054
- properties?: string;
12055
- "manufacturer-filter"?: boolean;
12056
- "price-filter"?: boolean;
12057
- "rating-filter"?: boolean;
12058
- "shipping-free-filter"?: boolean;
12059
- "property-filter"?: boolean;
12060
- "property-whitelist"?: string;
12061
- "reduce-aggregations"?: string | null;
12062
- } & {
12063
- filter?: Filters | SimpleFilter;
12064
- sort?: Array<Sort> | Sort;
12065
- "post-filter"?: Filters | SimpleFilter;
12066
- };
12067
-
12068
12074
  type CMSPageResolveResponse = CmsPage$1;
12069
12075
  interface ContactFormSubmitRequest {
12070
12076
  salutationId: string;
@@ -12303,11 +12309,6 @@ declare class OrderClient extends Client {
12303
12309
  createFromCart(request?: OrderFromCartRequest): Promise<OrderFromCartResponse>;
12304
12310
  }
12305
12311
 
12306
- interface ProductListingFlags {
12307
- "no-aggregations"?: string | null;
12308
- "only-aggregations"?: string | null;
12309
- }
12310
-
12311
12312
  type ProductListRequest = Criteria;
12312
12313
  type ProductListResponse = EntitySearchResult & {
12313
12314
  elements?: Array<Product$1>;
@@ -7,7 +7,6 @@ import { Unit } from "../Unit";
7
7
  import { ProductMedia } from "./ProductMedia";
8
8
  import { ProductFeatureSet } from "./ProductFeatureSet";
9
9
  import { CmsPage } from "../cms/CmsPage";
10
- import { Media } from "../media/Media";
11
10
  import { ProductCrossSelling } from "./crossSelling/ProductCrossSelling";
12
11
  import { ProductCrossSellingAssignedProduct } from "./crossSelling/ProductCrossSellingAssignedProduct";
13
12
  import { ProductConfiguratorSetting } from "./ProductConfiguratorSetting";
@@ -44,7 +43,7 @@ export type Product = StoreApiProduct & {
44
43
  featureSet?: ProductFeatureSet;
45
44
  cmsPage?: CmsPage;
46
45
  canonicalProduct?: Product;
47
- media?: Array<Media>;
46
+ media?: Array<ProductMedia>;
48
47
  crossSellings?: Array<ProductCrossSelling>;
49
48
  crossSellingAssignedProducts?: Array<ProductCrossSellingAssignedProduct>;
50
49
  configuratorSettings?: Array<ProductConfiguratorSetting>;
@@ -4,4 +4,4 @@ import { AggregationHistogram } from "./AggregationHistogram";
4
4
  import { AggregationMetrics } from "./AggregationMetrics";
5
5
  import { AggregationRange } from "./AggregationRange";
6
6
  import { AggregationTerms } from "./AggregationTerms";
7
- export type Aggregation = Array<AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms>;
7
+ export type Aggregation = AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms;
@@ -1,8 +1,10 @@
1
1
  import { Sort } from "../query/Sort";
2
+ import { Aggregation } from "#types/api/global";
2
3
  export interface AggregationTerms {
3
4
  name: string;
4
5
  type: "terms";
5
6
  field: string;
6
7
  limit?: number;
7
8
  sort?: Array<Sort>;
9
+ aggregation?: Aggregation;
8
10
  }
@@ -14,7 +14,7 @@ export interface Criteria {
14
14
  associations?: Record<string, Criteria>;
15
15
  "post-filter"?: Filters;
16
16
  sort?: Array<Sort>;
17
- aggregations?: Aggregation;
17
+ aggregations?: Array<Aggregation>;
18
18
  fields?: Array<string>;
19
19
  grouping?: Array<string>;
20
20
  /** @default "none" */
@@ -6,7 +6,6 @@ import { Tax } from "../Tax";
6
6
  import { ProductManufacturer } from "./ProductManufacturer";
7
7
  import { Unit } from "../Unit";
8
8
  import { ProductMedia } from "../media/ProductMedia";
9
- import { Media } from "../media/Media";
10
9
  import { CmsPage } from "../cms/CmsPage";
11
10
  import { ProductCrossSelling } from "./crossSelling/ProductCrossSelling";
12
11
  import { ProductConfiguratorSetting } from "./ProductConfiguratorSetting";
@@ -93,7 +92,7 @@ export interface Product {
93
92
  cover?: ProductMedia;
94
93
  cmsPage?: CmsPage;
95
94
  canonicalProduct?: Product;
96
- media?: Array<Media>;
95
+ media?: Array<ProductMedia>;
97
96
  crossSellings?: Array<ProductCrossSelling>;
98
97
  configuratorSettings?: Array<ProductConfiguratorSetting>;
99
98
  productReviews?: Array<ProductReview>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/shopware-client",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Third party API client for Shopware 6.",
5
5
  "repository": "devite-io/shopware-client",
6
6
  "license": "MIT",