@vendure/admin-ui 1.0.2 → 1.0.3
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/bundles/vendure-admin-ui-core.umd.js +2 -2
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.min.js +1 -1
- package/bundles/vendure-admin-ui-core.umd.min.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +15 -2
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.min.js +1 -1
- package/bundles/vendure-admin-ui-order.umd.min.js.map +1 -1
- package/core/common/generated-types.d.ts +8 -2
- package/core/common/version.d.ts +1 -1
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/data/definitions/order-definitions.js +11 -1
- package/esm2015/order/components/order-detail/order-detail.component.js +17 -4
- package/fesm2015/vendure-admin-ui-core.js +11 -1
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +16 -3
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
|
@@ -1509,15 +1509,28 @@
|
|
|
1509
1509
|
}), operators.switchMap(function (result) { return _this.refetchOrder(result).pipe(operators.mapTo(result)); }))
|
|
1510
1510
|
.subscribe(function (result) {
|
|
1511
1511
|
if (result) {
|
|
1512
|
-
|
|
1512
|
+
var addFulfillmentToOrder = result.addFulfillmentToOrder;
|
|
1513
|
+
switch (addFulfillmentToOrder.__typename) {
|
|
1513
1514
|
case 'Fulfillment':
|
|
1514
1515
|
_this.notificationService.success(ngxTranslateExtractMarker.marker('order.create-fulfillment-success'));
|
|
1515
1516
|
break;
|
|
1516
1517
|
case 'EmptyOrderLineSelectionError':
|
|
1517
1518
|
case 'InsufficientStockOnHandError':
|
|
1518
1519
|
case 'ItemsAlreadyFulfilledError':
|
|
1519
|
-
|
|
1520
|
+
case 'InvalidFulfillmentHandlerError':
|
|
1521
|
+
_this.notificationService.error(addFulfillmentToOrder.message);
|
|
1520
1522
|
break;
|
|
1523
|
+
case 'FulfillmentStateTransitionError':
|
|
1524
|
+
_this.notificationService.error(addFulfillmentToOrder.transitionError);
|
|
1525
|
+
break;
|
|
1526
|
+
case 'CreateFulfillmentError':
|
|
1527
|
+
_this.notificationService.error(addFulfillmentToOrder.fulfillmentHandlerError);
|
|
1528
|
+
break;
|
|
1529
|
+
case undefined:
|
|
1530
|
+
_this.notificationService.error(JSON.stringify(addFulfillmentToOrder));
|
|
1531
|
+
break;
|
|
1532
|
+
default:
|
|
1533
|
+
sharedUtils.assertNever(addFulfillmentToOrder);
|
|
1521
1534
|
}
|
|
1522
1535
|
}
|
|
1523
1536
|
});
|