@shopware/api-client 1.2.0 → 1.2.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/README.md +3 -3
- package/api-types/storeApiSchema.json +1372 -377
- package/api-types/storeApiSchema.overrides.json +170 -1
- package/api-types/storeApiTypes.d.ts +866 -385
- package/api-types/storeApiTypes.overrides.ts +1 -67
- package/dist/index.d.cts +839 -358
- package/dist/index.d.mts +839 -358
- package/dist/index.d.ts +839 -358
- package/package.json +5 -5
|
@@ -43,72 +43,6 @@ export type Schemas = {
|
|
|
43
43
|
entity?: "product";
|
|
44
44
|
sorting?: string;
|
|
45
45
|
};
|
|
46
|
-
SwagPaypalVaultToken: {
|
|
47
|
-
// TODO: [OpenAPI][SwagPaypalVaultToken] - add SwagPaypalVaultToken definition to schema
|
|
48
|
-
/** Format: date-time */
|
|
49
|
-
createdAt: string;
|
|
50
|
-
customer?: components["schemas"]["Customer"];
|
|
51
|
-
customerId: string;
|
|
52
|
-
id?: string;
|
|
53
|
-
identifier: string;
|
|
54
|
-
mainMapping?: components["schemas"]["SwagPaypalVaultTokenMapping"];
|
|
55
|
-
paymentMethod?: components["schemas"]["PaymentMethod"];
|
|
56
|
-
paymentMethodId: string;
|
|
57
|
-
/** Format: date-time */
|
|
58
|
-
updatedAt?: string;
|
|
59
|
-
};
|
|
60
46
|
};
|
|
61
47
|
|
|
62
|
-
export type operations = {
|
|
63
|
-
"updateLineItem patch /checkout/cart/line-item": {
|
|
64
|
-
contentType?: "application/json";
|
|
65
|
-
accept?: "application/json";
|
|
66
|
-
headers?: {
|
|
67
|
-
/** Instructs Shopware to return the response in the given language. */
|
|
68
|
-
"sw-language-id"?: string;
|
|
69
|
-
};
|
|
70
|
-
body: {
|
|
71
|
-
// TODO: [OpenAPI][updateLineItem] - add proper request body type with required fields
|
|
72
|
-
items: Array<{
|
|
73
|
-
id: string;
|
|
74
|
-
quantity: number;
|
|
75
|
-
}>;
|
|
76
|
-
};
|
|
77
|
-
response: components["schemas"]["Cart"];
|
|
78
|
-
responseCode: 200;
|
|
79
|
-
};
|
|
80
|
-
"readProduct post /product": {
|
|
81
|
-
contentType?: "application/json";
|
|
82
|
-
accept?: "application/json";
|
|
83
|
-
headers?: {
|
|
84
|
-
/** Instructs Shopware to return the response in the given language. */
|
|
85
|
-
"sw-language-id"?: string;
|
|
86
|
-
};
|
|
87
|
-
body?: components["schemas"]["Criteria"];
|
|
88
|
-
response: {
|
|
89
|
-
elements: components["schemas"]["Product"][]; // TODO: [OpenAPI][readProduct]: add elements property as required
|
|
90
|
-
} & components["schemas"]["EntitySearchResult"];
|
|
91
|
-
responseCode: 200;
|
|
92
|
-
};
|
|
93
|
-
"readShippingMethod post /shipping-method": {
|
|
94
|
-
contentType?: "application/json";
|
|
95
|
-
accept?: "application/json";
|
|
96
|
-
headers?: {
|
|
97
|
-
/** Instructs Shopware to return the response in the given language. */
|
|
98
|
-
"sw-language-id"?: string;
|
|
99
|
-
};
|
|
100
|
-
query?: {
|
|
101
|
-
/** List only available shipping methods. This filters shipping methods methods which can not be used in the actual context because of their availability rule. */
|
|
102
|
-
onlyAvailable?: boolean;
|
|
103
|
-
};
|
|
104
|
-
body?: components["schemas"]["Criteria"];
|
|
105
|
-
response: {
|
|
106
|
-
/** aggregation result */
|
|
107
|
-
aggregations?: Record<string, never>;
|
|
108
|
-
elements: components["schemas"]["ShippingMethod"][]; // TODO: [OpenAPI][readShippingMethod]: response should be `EntitySearchResult` and elements should be required
|
|
109
|
-
/** Total amount */
|
|
110
|
-
total?: number;
|
|
111
|
-
};
|
|
112
|
-
responseCode: 200;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
48
|
+
// export type operations = {};
|