@shopware/api-client 1.3.0 → 1.4.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.
- package/README.md +70 -13
- package/api-types/adminApiSchema.json +76278 -51743
- package/api-types/adminApiTypes.d.ts +17039 -25893
- package/api-types/storeApiSchema.6.6.10.json +25865 -0
- package/api-types/storeApiSchema.6.6.10.overrides.json +1011 -0
- package/api-types/storeApiSchema.b2b.overrides.json +1 -29
- package/api-types/storeApiSchema.json +2321 -1025
- package/api-types/storeApiSchema.overrides.json +43 -857
- package/api-types/storeApiTypes.d.ts +1629 -1161
- package/dist/helpers.cjs +13 -0
- package/dist/helpers.d.cts +9 -0
- package/dist/helpers.d.mts +9 -0
- package/dist/helpers.d.ts +9 -0
- package/dist/helpers.mjs +11 -0
- package/dist/index.d.cts +22750 -31136
- package/dist/index.d.mts +22750 -31136
- package/dist/index.d.ts +22750 -31136
- package/package.json +16 -6
- package/api-types/storeApiTypes.overrides.ts +0 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Shopware client for API connection.",
|
|
5
5
|
"author": "Shopware",
|
|
6
6
|
"type": "module",
|
|
@@ -37,19 +37,29 @@
|
|
|
37
37
|
"default": "./dist/index.mjs"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
+
"./helpers": {
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/helpers.d.cts",
|
|
43
|
+
"default": "./dist/helpers.cjs"
|
|
44
|
+
},
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/helpers.d.mts",
|
|
47
|
+
"default": "./dist/helpers.mjs"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
40
50
|
"./api-types": "./api-types/storeApiTypes.d.ts",
|
|
41
51
|
"./store-api-types": "./api-types/storeApiTypes.d.ts",
|
|
42
52
|
"./admin-api-types": "./api-types/adminApiTypes.d.ts"
|
|
43
53
|
},
|
|
44
54
|
"devDependencies": {
|
|
45
55
|
"@biomejs/biome": "1.8.3",
|
|
46
|
-
"@codspeed/vitest-plugin": "4.0.1",
|
|
47
56
|
"@types/prettier": "3.0.0",
|
|
48
|
-
"@vitest/coverage-v8": "3.
|
|
49
|
-
"
|
|
50
|
-
"
|
|
57
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
58
|
+
"fflate": "0.8.2",
|
|
59
|
+
"happy-dom": "20.0.11",
|
|
60
|
+
"prettier": "3.7.4",
|
|
51
61
|
"unbuild": "2.0.0",
|
|
52
|
-
"vitest": "3.
|
|
62
|
+
"vitest": "3.2.4",
|
|
53
63
|
"tsconfig": "0.0.0"
|
|
54
64
|
},
|
|
55
65
|
"dependencies": {
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { components as mainComponents } from "./storeApiTypes";
|
|
2
|
-
|
|
3
|
-
export type components = mainComponents;
|
|
4
|
-
// & {
|
|
5
|
-
// schemas: schemas;
|
|
6
|
-
// };
|
|
7
|
-
|
|
8
|
-
export type Schemas = {
|
|
9
|
-
ProductListingResult: components["schemas"]["EntitySearchResult"] & {
|
|
10
|
-
/** @enum {string} */
|
|
11
|
-
apiAlias: "product_listing";
|
|
12
|
-
/** Contains the available sorting. These can be used to show a sorting select-box in the product listing. */
|
|
13
|
-
availableSortings: {
|
|
14
|
-
/** @enum {string} */
|
|
15
|
-
apiAlias: "product_sorting";
|
|
16
|
-
key: string;
|
|
17
|
-
label: string;
|
|
18
|
-
priority: number;
|
|
19
|
-
translated: {
|
|
20
|
-
apiAlias?: string;
|
|
21
|
-
key?: string;
|
|
22
|
-
label: string;
|
|
23
|
-
};
|
|
24
|
-
}[];
|
|
25
|
-
/** Contains the state of the filters. These can be used to create listing filters. */
|
|
26
|
-
currentFilters: {
|
|
27
|
-
manufacturer: string[];
|
|
28
|
-
navigationId: string;
|
|
29
|
-
price: {
|
|
30
|
-
/** @default 0 */
|
|
31
|
-
max: number;
|
|
32
|
-
/** @default 0 */
|
|
33
|
-
min: number;
|
|
34
|
-
};
|
|
35
|
-
properties: string[];
|
|
36
|
-
rating?: number; // TODO: [OpenAPI][ProductListingResult] - rating should be defined the same as in body of the request
|
|
37
|
-
search: string; // TODO: [OpenAPI][ProductListingResult] - search should be required as is required in body of the request, otherwise everywhere optional
|
|
38
|
-
/** @default false */
|
|
39
|
-
"shipping-free": boolean;
|
|
40
|
-
};
|
|
41
|
-
elements: components["schemas"]["Product"][];
|
|
42
|
-
/** @enum {string} */
|
|
43
|
-
entity?: "product";
|
|
44
|
-
sorting?: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
// export type operations = {};
|