@shopware/api-client
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -86,2 +86,7 @@ { | ||
], | ||
"CartItems": [ | ||
{ | ||
"required": ["items"] | ||
} | ||
], | ||
"Category": [ | ||
@@ -558,2 +563,24 @@ { | ||
} | ||
}, | ||
{ | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": "_DELETE_" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": ["firstName", "lastName"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
@@ -597,3 +624,3 @@ ] | ||
"/account/register": { | ||
"post":[ | ||
"post": [ | ||
{ | ||
@@ -661,2 +688,32 @@ "requestBody": { | ||
} | ||
}, | ||
{ | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": "_DELETE_" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": [ | ||
"email", | ||
"password", | ||
"firstName", | ||
"lastName", | ||
"acceptedDataProtection", | ||
"storefrontUrl", | ||
"billingAddress" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
@@ -786,4 +843,86 @@ ] | ||
} | ||
], | ||
"patch": [ | ||
{ | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "_DELETE_", | ||
"type": "object", | ||
"required": ["items"], | ||
"properties": { | ||
"items": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"required": ["id", "quantity"], | ||
"properties": { | ||
"id": { "type": "string" }, | ||
"quantity": { "type": "number" } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"/contact-form": { | ||
"post": [ | ||
{ | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": "_DELETE_" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": ["email", "subject", "comment"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"/employee/{id}": { | ||
"get": { | ||
"operationId": "readB2bEmployee", | ||
"parameters": [ | ||
{ | ||
"name": "id", | ||
"in": "path", | ||
"description": "Identifier of the employee to be read", | ||
"required": true, | ||
"schema": { | ||
"type": "string", | ||
"format": "uuid" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Employee", | ||
"content": { | ||
"application/json": { | ||
"schema": { "$ref": "#/components/schemas/B2bEmployee" } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/quote/detail/{id}": { | ||
@@ -812,2 +951,17 @@ "post": [ | ||
}, | ||
"/product": { | ||
"post": { | ||
"responses": { | ||
"200": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": ["elements"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/product/{productId}": { | ||
@@ -860,4 +1014,19 @@ "post": [ | ||
} | ||
}, | ||
"/shipping-method": { | ||
"post": { | ||
"responses": { | ||
"200": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"required": ["elements"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
@@ -46,70 +46,4 @@ import type { components as mainComponents } from "./storeApiTypes"; | ||
}; | ||
SwagPaypalVaultToken: { | ||
// TODO: [OpenAPI][SwagPaypalVaultToken] - add SwagPaypalVaultToken definition to schema | ||
/** Format: date-time */ | ||
createdAt: string; | ||
customer?: components["schemas"]["Customer"]; | ||
customerId: string; | ||
id?: string; | ||
identifier: string; | ||
mainMapping?: components["schemas"]["SwagPaypalVaultTokenMapping"]; | ||
paymentMethod?: components["schemas"]["PaymentMethod"]; | ||
paymentMethodId: string; | ||
/** Format: date-time */ | ||
updatedAt?: string; | ||
}; | ||
}; | ||
export type operations = { | ||
"updateLineItem patch /checkout/cart/line-item": { | ||
contentType?: "application/json"; | ||
accept?: "application/json"; | ||
headers?: { | ||
/** Instructs Shopware to return the response in the given language. */ | ||
"sw-language-id"?: string; | ||
}; | ||
body: { | ||
// TODO: [OpenAPI][updateLineItem] - add proper request body type with required fields | ||
items: Array<{ | ||
id: string; | ||
quantity: number; | ||
}>; | ||
}; | ||
response: components["schemas"]["Cart"]; | ||
responseCode: 200; | ||
}; | ||
"readProduct post /product": { | ||
contentType?: "application/json"; | ||
accept?: "application/json"; | ||
headers?: { | ||
/** Instructs Shopware to return the response in the given language. */ | ||
"sw-language-id"?: string; | ||
}; | ||
body?: components["schemas"]["Criteria"]; | ||
response: { | ||
elements: components["schemas"]["Product"][]; // TODO: [OpenAPI][readProduct]: add elements property as required | ||
} & components["schemas"]["EntitySearchResult"]; | ||
responseCode: 200; | ||
}; | ||
"readShippingMethod post /shipping-method": { | ||
contentType?: "application/json"; | ||
accept?: "application/json"; | ||
headers?: { | ||
/** Instructs Shopware to return the response in the given language. */ | ||
"sw-language-id"?: string; | ||
}; | ||
query?: { | ||
/** List only available shipping methods. This filters shipping methods methods which can not be used in the actual context because of their availability rule. */ | ||
onlyAvailable?: boolean; | ||
}; | ||
body?: components["schemas"]["Criteria"]; | ||
response: { | ||
/** aggregation result */ | ||
aggregations?: Record<string, never>; | ||
elements: components["schemas"]["ShippingMethod"][]; // TODO: [OpenAPI][readShippingMethod]: response should be `EntitySearchResult` and elements should be required | ||
/** Total amount */ | ||
total?: number; | ||
}; | ||
responseCode: 200; | ||
}; | ||
}; | ||
// export type operations = {}; |
{ | ||
"name": "@shopware/api-client", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Shopware client for API connection.", | ||
@@ -46,9 +46,9 @@ "author": "Shopware", | ||
"@biomejs/biome": "1.8.3", | ||
"@codspeed/vitest-plugin": "3.1.1", | ||
"@codspeed/vitest-plugin": "4.0.0", | ||
"@types/prettier": "3.0.0", | ||
"@vitest/coverage-v8": "2.1.8", | ||
"@vitest/coverage-v8": "3.0.5", | ||
"jsdom": "^25.0.1", | ||
"prettier": "3.4.2", | ||
"prettier": "3.5.1", | ||
"unbuild": "2.0.0", | ||
"vitest": "2.1.8", | ||
"vitest": "3.0.5", | ||
"tsconfig": "0.0.0" | ||
@@ -55,0 +55,0 @@ }, |
@@ -282,6 +282,6 @@ # shopware/frontends - api-client | ||
### Latest changes: 1.2.0 | ||
### Latest changes: 1.2.1 | ||
### Minor Changes | ||
### Patch Changes | ||
- [#1468](https://github.com/shopware/frontends/pull/1468) [`a87bbcf`](https://github.com/shopware/frontends/commit/a87bbcfa3f5aa440265b1e8f0fc72a204863befc) Thanks [@JimTacobs](https://github.com/JimTacobs)! - Added fetchOptions to both API clients to allow for base configuration of http client | ||
- [#1685](https://github.com/shopware/frontends/pull/1685) [`7324620`](https://github.com/shopware/frontends/commit/7324620a3f39c1b62f7cc294192a3e8b8b336d09) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Overwrite API schemas to remove requirements from 'salutationId` property |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
18597825
226523