@shopware/api-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -173,2 +173,13 @@ { | ||
], | ||
"ListPrice": { | ||
"type": "object", | ||
"description": "", | ||
"properties": { | ||
"discount": { "type": "number" }, | ||
"percentage": { "type": "number" }, | ||
"price": { "type": "number" }, | ||
"apiAlias": { "type": "string", "enum": ["cart_list_price"] } | ||
}, | ||
"required": ["apiAlias"] | ||
}, | ||
"LineItem": [ | ||
@@ -354,2 +365,44 @@ { | ||
], | ||
"ReferencePrice": { | ||
"type": "object", | ||
"properties": { | ||
"purchaseUnit": { "type": "number" }, | ||
"referenceUnit": { "type": "number" }, | ||
"unitName": { "type": "string" }, | ||
"price": { "type": "number" }, | ||
"apiAlias": { "type": "string", "enum": ["cart_price_reference"] }, | ||
"listPrice": { | ||
"oneOf": [ | ||
{ "$ref": "#/components/schemas/ListPrice" }, | ||
{ "type": "null" } | ||
] | ||
}, | ||
"regulationPrice": { | ||
"type": "object", | ||
"properties": { | ||
"price": { "type": "number" }, | ||
"apiAlias": { | ||
"type": "string", | ||
"enum": ["cart_regulation_price"] | ||
} | ||
}, | ||
"nullable": true | ||
}, | ||
"hasRange": { "type": "boolean" }, | ||
"variantId": { | ||
"type": "string", | ||
"format": "^[0-9a-f]{32}$", | ||
"nullable": true | ||
} | ||
}, | ||
"required": [ | ||
"hasRange", | ||
"regulationPrice", | ||
"listPrice", | ||
"calculatedTaxes", | ||
"totalPrice", | ||
"quantity", | ||
"unitName" | ||
] | ||
}, | ||
"SalesChannelContext": [ | ||
@@ -595,2 +648,73 @@ { | ||
}, | ||
"/checkout/cart/line-item": { | ||
"post": [ | ||
{ | ||
"requestBody": { | ||
"required": true, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object", | ||
"required": ["items"], | ||
"properties": { | ||
"items": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "object", | ||
"required": ["id", "type", "quantity"], | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"referencedId": { | ||
"type": "string" | ||
}, | ||
"quantity": { | ||
"type": "number" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"product", | ||
"custom", | ||
"credit", | ||
"discount", | ||
"container" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "object", | ||
"required": ["referencedId", "type"], | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"referencedId": { | ||
"type": "string" | ||
}, | ||
"quantity": { | ||
"type": "number" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": ["promotion"] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"$ref": "_DELETE_" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"/quote/detail/{id}": { | ||
@@ -597,0 +721,0 @@ "post": [ |
@@ -112,21 +112,2 @@ import { components as mainComponents } from "./storeApiTypes"; | ||
}; | ||
"addLineItem post /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][addLineItem] - add proper request body type with required fields | ||
items: Array<{ | ||
id?: string; // TODO: [OpenAPI][addLineItem] - check if this is used at all? | ||
referencedId: string; | ||
quantity?: number; | ||
type: "product" | "promotion" | "custom" | "credit"; // TODO: [OpenAPI][addLineItem] - add proper type -> see also #456 | ||
}>; | ||
}; | ||
response: components["schemas"]["Cart"]; | ||
responseCode: 200; | ||
}; | ||
"updateLineItem patch /checkout/cart/line-item": { | ||
@@ -133,0 +114,0 @@ contentType?: "application/json"; |
{ | ||
"name": "@shopware/api-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Shopware client for API connection.", | ||
@@ -45,9 +45,9 @@ "author": "Shopware", | ||
"devDependencies": { | ||
"@codspeed/vitest-plugin": "3.1.0", | ||
"@codspeed/vitest-plugin": "3.1.1", | ||
"@types/prettier": "3.0.0", | ||
"@vitest/coverage-v8": "1.6.0", | ||
"prettier": "3.3.2", | ||
"@vitest/coverage-v8": "2.0.4", | ||
"prettier": "3.3.3", | ||
"unbuild": "2.0.0", | ||
"vitest": "1.6.0", | ||
"eslint-config-shopware": "0.0.9", | ||
"vitest": "2.0.4", | ||
"eslint-config-shopware": "1.0.0", | ||
"tsconfig": "0.0.0" | ||
@@ -54,0 +54,0 @@ }, |
@@ -266,6 +266,8 @@ # shopware/frontends - api-client | ||
### Latest changes: 1.0.1 | ||
### Latest changes: 1.0.2 | ||
### Patch Changes | ||
- [#1078](https://github.com/shopware/frontends/pull/1078) [`19f2800`](https://github.com/shopware/frontends/commit/19f28003cf937bcb630257cb7cfd2bd131b7cf9d) Thanks [@patzick](https://github.com/patzick)! - Patch for missing `sw-include-seo-url` in OpenAPI schema. | ||
- [#1089](https://github.com/shopware/frontends/pull/1089) [`db7c93f`](https://github.com/shopware/frontends/commit/db7c93ff8cbb581221c11a492e77068af8faa8d6) Thanks [@mkucmus](https://github.com/mkucmus)! - Migrate eslint config to flat format | ||
- [#1074](https://github.com/shopware/frontends/pull/1074) [`b688163`](https://github.com/shopware/frontends/commit/b68816391ee8ed1ac94a6462a2a016d708f259b4) Thanks [@mkucmus](https://github.com/mkucmus)! - Update default schemas' `translated` properties as required |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15
206114
273
17041906