Skip to content

Commit 84a8cbe

Browse files
feat(core): Add addItemsToOrder mutation to add multiple items to cart (#3500)
1 parent a60fd70 commit 84a8cbe

21 files changed

+29921
-72452
lines changed

packages/admin-ui/src/lib/core/src/common/generated-types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6669,6 +6669,9 @@ export type UpdateOrderInput = {
66696669
id: Scalars['ID']['input'];
66706670
};
66716671

6672+
/** Union type of all possible errors that can occur when adding or removing items from an Order. */
6673+
export type UpdateOrderItemErrorResult = InsufficientStockError | NegativeQuantityError | OrderInterceptorError | OrderLimitError | OrderModificationError;
6674+
66726675
export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderInterceptorError | OrderLimitError | OrderModificationError;
66736676

66746677
export type UpdateOrderNoteInput = {

packages/admin-ui/src/lib/core/src/common/introspection-result.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,13 @@
334334
"ChannelDefaultLanguageError",
335335
"GlobalSettings"
336336
],
337+
"UpdateOrderItemErrorResult": [
338+
"InsufficientStockError",
339+
"NegativeQuantityError",
340+
"OrderInterceptorError",
341+
"OrderLimitError",
342+
"OrderModificationError"
343+
],
337344
"UpdateOrderItemsResult": [
338345
"InsufficientStockError",
339346
"NegativeQuantityError",

0 commit comments

Comments
 (0)