@devite/shopware-client 1.1.3 → 1.3.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.
@@ -11,7 +11,7 @@ export interface Criteria {
11
11
  filter?: Filters;
12
12
  ids?: Array<string>;
13
13
  query?: Array<Query>;
14
- associations?: Array<Criteria>;
14
+ associations?: Record<string, Criteria>;
15
15
  "post-filter"?: Filters;
16
16
  sort?: Array<Sort>;
17
17
  aggregations?: Aggregation;
@@ -1,5 +1,6 @@
1
1
  import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  export interface DeliveryTime {
3
+ apiAlias: "delivery_time";
3
4
  id: string;
4
5
  name: string;
5
6
  min: number;
@@ -1,4 +1,5 @@
1
1
  export interface EntitySearchResult {
2
+ apiAlias: "dal_entity_search_result";
2
3
  entity?: string;
3
4
  total?: number;
4
5
  aggregations?: Array<object>;
@@ -1,4 +1,5 @@
1
1
  export interface Tag {
2
+ apiAlias: "tag";
2
3
  id: string;
3
4
  name: string;
4
5
  readonly createdAt?: string;
@@ -2,6 +2,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  import { MediaThumbnail } from "./MediaThumbnail";
3
3
  import { Media } from "./Media";
4
4
  export interface ProductMedia {
5
+ apiAlias: "product_media";
5
6
  id: string;
6
7
  versionId?: string;
7
8
  productId: string;
@@ -2,6 +2,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  import { Media } from "../media/Media";
3
3
  import { PropertyGroupOption } from "#types/api/store/propertyGroup/PropertyGroupOption";
4
4
  export interface ProductConfiguratorSetting {
5
+ apiAlias: "product_configurator_setting";
5
6
  id: string;
6
7
  versionId?: string;
7
8
  productId: string;
@@ -2,6 +2,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
2
2
  import { Media } from "../media/Media";
3
3
  import { PropertyGroup } from "./PropertyGroup";
4
4
  export interface PropertyGroupOption {
5
+ apiAlias: "property_group_option";
5
6
  id: string;
6
7
  groupId: string;
7
8
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devite/shopware-client",
3
- "version": "1.1.3",
3
+ "version": "1.3.0",
4
4
  "description": "Third party API client for Shopware 6.",
5
5
  "repository": "devite-io/shopware-client",
6
6
  "license": "MIT",
@@ -52,7 +52,8 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ofetch": "^1.4.1",
55
- "ohash": "^1.1.4"
55
+ "ohash": "^1.1.4",
56
+ "qs": "^6.13.1"
56
57
  },
57
58
  "scripts": {
58
59
  "build": "export NODE_ENV=production && unbuild && pnpm build:types",