@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.cjs +1051 -2310
- package/dist/index.d.cts +25 -10
- package/dist/index.d.mts +25 -10
- package/dist/index.d.ts +25 -10
- package/dist/index.mjs +1051 -2311
- package/dist/types/api/global/query/Criteria.d.ts +1 -1
- package/dist/types/api/store/DeliveryTime.d.ts +1 -0
- package/dist/types/api/store/EntitySearchResult.d.ts +1 -0
- package/dist/types/api/store/Tag.d.ts +1 -0
- package/dist/types/api/store/media/ProductMedia.d.ts +1 -0
- package/dist/types/api/store/product/ProductConfiguratorSetting.d.ts +1 -0
- package/dist/types/api/store/product/ProductListingResult.d.ts +5 -2
- package/dist/types/api/store/propertyGroup/PropertyGroupOption.d.ts +1 -0
- package/dist/types/clients/store/OrderClient.d.ts +1 -2
- package/package.json +4 -1
|
@@ -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;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { EntitySearchResult } from "../EntitySearchResult";
|
|
2
1
|
import { Product } from "./Product";
|
|
3
|
-
export type ProductListingResult =
|
|
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>;
|
|
@@ -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;
|
|
@@ -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
|
|
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
|
+
"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",
|