@shopware/api-client
Advanced tools
Comparing version 0.0.0-canary-20240718113427 to 0.0.0-canary-20240718114954
@@ -646,2 +646,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}": { | ||
@@ -648,0 +719,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": "0.0.0-canary-20240718113427", | ||
"version": "0.0.0-canary-20240718114954", | ||
"description": "Shopware client for API connection.", | ||
@@ -51,3 +51,3 @@ "author": "Shopware", | ||
"vitest": "1.6.0", | ||
"eslint-config-shopware": "0.0.0-canary-20240718113427", | ||
"eslint-config-shopware": "0.0.0-canary-20240718114954", | ||
"tsconfig": "0.0.0" | ||
@@ -54,0 +54,0 @@ }, |
@@ -266,3 +266,3 @@ # shopware/frontends - api-client | ||
### Latest changes: 0.0.0-canary-20240718113427 | ||
### Latest changes: 0.0.0-canary-20240718114954 | ||
@@ -269,0 +269,0 @@ ### Patch Changes |
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
17041972
206114