@daffodil/order 0.41.0 → 0.42.0
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/driver/magento/2.4.0/errors/codes.mjs +1 -1
- package/esm2020/driver/magento/2.4.1/errors/codes.mjs +1 -1
- package/esm2020/models/composite-order-item.mjs +1 -1
- package/esm2020/models/configurable-order-item.mjs +1 -1
- package/esm2020/models/order-item.mjs +1 -1
- package/esm2020/models/order-payment.mjs +1 -1
- package/esm2020/routing/guards/placed-order/placed-order.guard.mjs +1 -1
- package/esm2020/state/effects/order.effects.mjs +1 -1
- package/esm2020/state/facades/order/order-facade.interface.mjs +1 -1
- package/esm2020/state/selectors/order-entities.selector.mjs +1 -1
- package/esm2020/testing/factories/composite-order-item.factory.mjs +1 -1
- package/esm2020/testing/factories/configurable-order-item.factory.mjs +1 -1
- package/fesm2015/daffodil-order-driver-magento-2.4.0.mjs.map +1 -1
- package/fesm2015/daffodil-order-driver-magento-2.4.1.mjs.map +1 -1
- package/fesm2015/daffodil-order-routing.mjs.map +1 -1
- package/fesm2015/daffodil-order-state.mjs.map +1 -1
- package/fesm2015/daffodil-order-testing.mjs.map +1 -1
- package/fesm2015/daffodil-order.mjs.map +1 -1
- package/fesm2020/daffodil-order-driver-magento-2.4.0.mjs.map +1 -1
- package/fesm2020/daffodil-order-driver-magento-2.4.1.mjs.map +1 -1
- package/fesm2020/daffodil-order-routing.mjs.map +1 -1
- package/fesm2020/daffodil-order-state.mjs.map +1 -1
- package/fesm2020/daffodil-order-testing.mjs.map +1 -1
- package/fesm2020/daffodil-order.mjs.map +1 -1
- package/package.json +5 -5
@@ -2,4 +2,4 @@ export var MagentoOrderGraphQlErrorCode;
|
|
2
2
|
(function (MagentoOrderGraphQlErrorCode) {
|
3
3
|
MagentoOrderGraphQlErrorCode["CART_NOT_FOUND"] = "graphql-no-such-entity";
|
4
4
|
})(MagentoOrderGraphQlErrorCode || (MagentoOrderGraphQlErrorCode = {}));
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL29yZGVyL2RyaXZlci9tYWdlbnRvLzIuNC4wL3NyYy9lcnJvcnMvY29kZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksNEJBRVg7QUFGRCxXQUFZLDRCQUE0QjtJQUN0Qyx5RUFBeUMsQ0FBQTtBQUMzQyxDQUFDLEVBRlcsNEJBQTRCLEtBQTVCLDRCQUE0QixRQUV2QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIE1hZ2VudG9PcmRlckdyYXBoUWxFcnJvckNvZGUge1xuICBDQVJUX05PVF9GT1VORCA9ICdncmFwaHFsLW5vLXN1Y2gtZW50aXR5Jyxcbn1cbiJdfQ==
|
@@ -2,4 +2,4 @@ export var MagentoOrderGraphQlErrorCode;
|
|
2
2
|
(function (MagentoOrderGraphQlErrorCode) {
|
3
3
|
MagentoOrderGraphQlErrorCode["CART_NOT_FOUND"] = "graphql-no-such-entity";
|
4
4
|
})(MagentoOrderGraphQlErrorCode || (MagentoOrderGraphQlErrorCode = {}));
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL29yZGVyL2RyaXZlci9tYWdlbnRvLzIuNC4xL3NyYy9lcnJvcnMvY29kZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksNEJBRVg7QUFGRCxXQUFZLDRCQUE0QjtJQUN0Qyx5RUFBeUMsQ0FBQTtBQUMzQyxDQUFDLEVBRlcsNEJBQTRCLEtBQTVCLDRCQUE0QixRQUV2QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIE1hZ2VudG9PcmRlckdyYXBoUWxFcnJvckNvZGUge1xuICBDQVJUX05PVF9GT1VORCA9ICdncmFwaHFsLW5vLXN1Y2gtZW50aXR5Jyxcbn1cbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9zaXRlLW9yZGVyLWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL29yZGVyL3NyYy9tb2RlbHMvY29tcG9zaXRlLW9yZGVyLWl0ZW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERhZmZPcmRlckl0ZW0gfSBmcm9tICcuL29yZGVyLWl0ZW0nO1xuXG5leHBvcnQgaW50ZXJmYWNlIERhZmZDb21wb3NpdGVPcmRlckl0ZW0gZXh0ZW5kcyBEYWZmT3JkZXJJdGVtIHtcbiAgb3B0aW9uczogRGFmZkNvbXBvc2l0ZU9yZGVySXRlbU9wdGlvbltdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIERhZmZDb21wb3NpdGVPcmRlckl0ZW1PcHRpb24ge1xuICBvcHRpb25fbGFiZWw6IHN0cmluZztcbiAgdmFsdWVfbGFiZWw6IHN0cmluZztcbn1cbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhYmxlLW9yZGVyLWl0ZW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL29yZGVyL3NyYy9tb2RlbHMvY29uZmlndXJhYmxlLW9yZGVyLWl0ZW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERhZmZPcmRlckl0ZW0gfSBmcm9tICcuL29yZGVyLWl0ZW0nO1xuXG5leHBvcnQgaW50ZXJmYWNlIERhZmZDb25maWd1cmFibGVPcmRlckl0ZW0gZXh0ZW5kcyBEYWZmT3JkZXJJdGVtIHtcbiAgYXR0cmlidXRlczogRGFmZkNvbmZpZ3VyYWJsZU9yZGVySXRlbUF0dHJpYnV0ZVtdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIERhZmZDb25maWd1cmFibGVPcmRlckl0ZW1BdHRyaWJ1dGUge1xuICBhdHRyaWJ1dGVfbGFiZWw6IHN0cmluZztcbiAgdmFsdWVfbGFiZWw6IHN0cmluZztcbn1cbiJdfQ==
|
@@ -4,4 +4,4 @@ export var DaffOrderItemType;
|
|
4
4
|
DaffOrderItemType["Composite"] = "composite";
|
5
5
|
DaffOrderItemType["Configurable"] = "configurable";
|
6
6
|
})(DaffOrderItemType || (DaffOrderItemType = {}));
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItaXRlbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvc3JjL21vZGVscy9vcmRlci1pdGVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE1BQU0sQ0FBTixJQUFZLGlCQUlYO0FBSkQsV0FBWSxpQkFBaUI7SUFDM0Isc0NBQWlCLENBQUE7SUFDakIsNENBQXVCLENBQUE7SUFDdkIsa0RBQTZCLENBQUE7QUFDL0IsQ0FBQyxFQUpXLGlCQUFpQixLQUFq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O1xuICBkaXNjb3VudF9hbW91bnQ6IG51bWJlcjtcbiAgdGF4X3BlcmNlbnQ6IG51bWJlcjtcbiAgdGF4X2Ftb3VudDogbnVtYmVyO1xuICByb3dfdG90YWw6IG51bWJlcjtcbiAgcm93X3RvdGFsX3dpdGhfZGlzY291bnQ6IG51bWJlcjtcbiAgcm93X3dlaWdodDogbnVtYmVyO1xuICB0YXhfYmVmb3JlX2Rpc2NvdW50OiBudW1iZXI7XG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItcGF5bWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvc3JjL21vZGVscy9vcmRlci1wYXltZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBEYWZmSWRlbnRpZmlhYmxlLFxuICBJRCxcbn0gZnJvbSAnQGRhZmZvZGlsL2NvcmUnO1xuXG5pbXBvcnQgeyBEYWZmT3JkZXIgfSBmcm9tICcuL29yZGVyJztcblxuZXhwb3J0IGludGVyZmFjZSBEYWZmT3JkZXJDcmVkaXRDYXJkUGF5bWVudCBleHRlbmRzIERhZmZJZGVudGlmaWFibGUge1xuICAvKipcbiAgICogQGRlcHJlY2F0ZWQgdXNlIGlkIGluc3RlYWQuXG4gICAqL1xuICBwYXltZW50X2lkOiBJRDtcbiAgb3JkZXJfaWQ6IERhZmZPcmRlclsnaWQnXTtcbiAgY3JlYXRlZF9hdDogc3RyaW5nO1xuICB1cGRhdGVkX2F0OiBzdHJpbmc7XG4gIG1ldGhvZDogc3RyaW5nOyAvL3RvZG86IGFjdHVhbGx5IGFuIGVudW1cbiAgY2NfdHlwZTogc3RyaW5nO1xuICBjY19sYXN0NDogc3RyaW5nO1xuICBjY19vd25lcjogc3RyaW5nO1xuICBjY19leHBfbW9udGg6IHN0cmluZztcbiAgY2NfZXhwX3llYXI6IHN0cmluZztcbn1cblxuZXhwb3J0IHR5cGUgRGFmZk9yZGVyUGF5bWVudCA9IERhZmZPcmRlckNyZWRpdENhcmRQYXltZW50O1xuIl19
|
@@ -35,4 +35,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
35
35
|
type: Inject,
|
36
36
|
args: [DaffPlacedOrderGuardRedirectUrl]
|
37
37
|
}] }]; } });
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhY2VkLW9yZGVyLmd1YXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9vcmRlci9yb3V0aW5nL3NyYy9ndWFyZHMvcGxhY2VkLW9yZGVyL3BsYWNlZC1vcmRlci5ndWFyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsVUFBVSxFQUNWLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBRUwsTUFBTSxHQUNQLE1BQU0saUJBQWlCLENBQUM7QUFFekIsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXJDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUV4RCxPQUFPLEVBQUUsK0JBQStCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQzs7OztBQUV0Rjs7O0dBR0c7QUFJSCxNQUFNLE9BQU8sb0JBQW9CO0lBQy9CLFlBQ1UsTUFBdUIsRUFDdkIsTUFBYyxFQUMyQixXQUFtQjtRQUY1RCxXQU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xEYWZmT3JkZXJUb3RhbD47XG59XG4iXX0=
|
@@ -73,4 +73,4 @@ export const getDaffOrderEntitySelectors = (() => {
|
|
73
73
|
let cache;
|
74
74
|
return () => cache = cache || createOrderEntitySelectors();
|
75
75
|
})();
|
76
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItZW50aXRpZXMuc2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL29yZGVyL3N0YXRlL3NyYy9zZWxlY3RvcnMvb3JkZXItZW50aXRpZXMuc2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUNMLGNBQWMsRUFDZCxjQUFjLEdBRWYsTUFBTSxhQUFhLENBQUM7QUFFckIsT0FBTyxFQUNMLG9CQUFvQixHQUVyQixNQUFNLHNCQUFzQixDQUFDO0FBQzlCLE9BQU8sRUFJTCxzQkFBc0IsR0FDdkIsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBRUwsbUJBQW1CLEdBRXBCLE1BQU0sd0JBQXdCLENBQUM7QUFDaEMsT0FBTyxFQUFFLGlDQUFpQyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFtRzdFLE1BQU0sMEJBQTBCLEdBQUcsR0FBb0MsRUFBRTtJQUN2RSxNQUFNLEVBQUUsdUJBQXVCLEVBQUUsR0FBRyxpQ0FBaUMsRUFBSyxDQUFDO0lBQzNFLE1BQU0sd0JBQXdCLEdBQUcsY0FBYyxDQUM3Qyx1QkFBdUIsRUFDdkIsS0FBSyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUN0QixDQUFDO0lBQ0YsTUFBTSxFQUFFLFNBQVMsRUFBRSxjQUFjLEVBQUUsU0FBUyxFQUFFLFdBQVcsRUFBRSxHQUFHLG1CQUFtQixFQUFLLENBQUMsWUFBW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AgICBzZWxlY3RPcmRlclRvdGFscyxcbiAgICBzZWxlY3RPcmRlckFwcGxpZWRDb2RlcyxcbiAgICBzZWxlY3RPcmRlckl0ZW1zLFxuICAgIHNlbGVjdE9yZGVyQmlsbGluZ0FkZHJlc3NlcyxcbiAgICBzZWxlY3RPcmRlclNoaXBwaW5nVG90YWxBZGRyZXNzZXMsXG4gICAgc2VsZWN0T3JkZXJTaGlwbWVudHMsXG4gICAgc2VsZWN0T3JkZXJQYXltZW50LFxuICAgIHNlbGVjdE9yZGVySW52b2ljZXMsXG4gICAgc2VsZWN0T3JkZXJDcmVkaXRzLFxuICAgIHNlbGVjdE9yZGVySXRlbSxcblxuICAgIHNlbGVjdE9yZGVyR3JhbmRUb3RhbCxcbiAgICBzZWxlY3RPcmRlclN1YnRvdGFsLFxuICAgIHNlbGVjdE9yZGVyU2hpcHBpbmdUb3RhbCxcbiAgICBzZWxlY3RPcmRlckRpc2NvdW50VG90YWwsXG4gICAgc2VsZWN0T3JkZXJIYXNEaXNjb3VudCxcbiAgICBzZWxlY3RPcmRlclRheFRvdGFsLFxuICB9O1xufTtcblxuZXhwb3J0IGNvbnN0IGdldERhZmZPcmRlckVudGl0eVNlbGVjdG9ycyA9ICgoKSA9PiB7XG4gIGxldCBjYWNoZTtcbiAgcmV0dXJuIDxUIGV4dGVuZHMgRGFmZk9yZGVyID0gRGFmZk9yZGVyPigpOiBEYWZmT3JkZXJFbnRpdHlTZWxlY3RvcnM8VD4gPT5cbiAgICBjYWNoZSA9IGNhY2hlIHx8IGNyZWF0ZU9yZGVyRW50aXR5U2VsZWN0b3JzPFQ+KCk7XG59KSgpO1xuXG4iXX0=
|
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
33
33
|
providedIn: 'root',
|
34
34
|
}]
|
35
35
|
}], ctorParameters: function () { return []; } });
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
36
|
+
//# sourceMappingURL=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pLFxuXHQgIH0sXG4gIF07XG59XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmQ29tcG9zaXRlT3JkZXJJdGVtRmFjdG9yeSBleHRlbmRzIERhZmZNb2RlbEZhY3Rvcnk8RGFmZkNvbXBvc2l0ZU9yZGVySXRlbT4ge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcihNb2NrQ29tcG9zaXRlT3JkZXJJdGVtKTtcbiAgfVxufVxuIl19
|
@@ -32,4 +32,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
32
32
|
providedIn: 'root',
|
33
33
|
}]
|
34
34
|
}], ctorParameters: function () { return []; } });
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlndXJhYmxlLW9yZGVyLWl0ZW0uZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvdGVzdGluZy9zcmMvZmFjdG9yaWVzL2NvbmZpZ3VyYWJsZS1vcmRlci1pdGVtLmZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUczQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUMxRCxPQUFPLEVBRUwsaUJBQWlCLEdBQ2xCLE1BQU0saUJBQWlCLENBQUM7QUFFekIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHNCQUFzQixDQUFDOztBQUVyRCxNQUFNLE9BQU8seUJBQTBCLFNBQVEsYUFBYTtJQUE1RDs7UUFDRSxTQUFJLEdBQ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AgdHlwZSA9IERhZmZPcmRlckl0ZW1UeXBlLkNvbmZpZ3VyYWJsZTtcbiAgYXR0cmlidXRlcyA9IFtcblx0ICB7XG5cdCAgICBhdHRyaWJ1dGVfbGFiZWw6ICdDb2xvcicsXG5cdCAgICB2YWx1ZV9sYWJlbDogJ1JlZCcsXG5cdCAgfSxcblx0ICB7XG5cdCAgICBhdHRyaWJ1dGVfbGFiZWw6ICdTaXplJyxcblx0ICAgIHZhbHVlX2xhYmVsOiAnTScsXG5cdCAgfSxcbiAgXTtcbn1cblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZDb25maWd1cmFibGVPcmRlckl0ZW1GYWN0b3J5IGV4dGVuZHMgRGFmZk1vZGVsRmFjdG9yeTxEYWZmQ29uZmlndXJhYmxlT3JkZXJJdGVtPiB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKE1vY2tDb25maWd1cmFibGVPcmRlckl0ZW0pO1xuICB9XG59XG4iXX0=
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"daffodil-order-driver-magento-2.4.0.mjs","sources":["../../../libs/order/driver/magento/2.4.0/src/transforms/responses/order.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-address.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-payment.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-item.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-shipment-item.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-invoice.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-shipment-tracking.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-shipment.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order.ts","../../../libs/order/driver/magento/2.4.0/src/queries/get-guest-orders.ts","../../../libs/order/driver/magento/2.4.0/src/injection-tokens/fragments/order.ts","../../../libs/order/driver/magento/2.4.0/src/errors/codes.ts","../../../libs/order/driver/magento/2.4.0/src/errors/map.ts","../../../libs/order/driver/magento/2.4.0/src/errors/transform.ts","../../../libs/order/driver/magento/2.4.0/src/validators/get-orders.ts","../../../libs/order/driver/magento/2.4.0/src/order.service.ts","../../../libs/order/driver/magento/2.4.0/src/order-driver.module.ts","../../../libs/order/driver/magento/2.4.0/src/daffodil-order-driver-magento-2.4.0.ts"],"sourcesContent":["import {\n DaffOrder,\n DaffOrderTotal,\n DaffOrderItem,\n DaffOrderAddress,\n DaffOrderShipment,\n DaffOrderShipmentItem,\n DaffOrderShipmentTracking,\n DaffOrderPayment,\n DaffOrderInvoice,\n DaffOrderTotalTypeEnum,\n DaffOrderItemType,\n} from '@daffodil/order';\n\nimport {\n MagentoGraycoreOrder,\n MagentoGraycoreOrderItem,\n MagentoGraycoreOrderShipment,\n MagentoGraycoreOrderAddress,\n MagentoGraycoreOrderShipmentItem,\n MagentoGraycoreOrderShipmentTracking,\n MagentoGraycoreOrderPayment,\n MagentoGraycoreOrderInvoice,\n} from '../../models/responses/public_api';\n\nfunction transformTotals(totals: {\n grand_total: number;\n subtotal: number;\n shipping: number;\n discount: number;\n tax: number;\n}): DaffOrderTotal[] {\n return [\n {\n label: 'Grand Total',\n type: DaffOrderTotalTypeEnum.GrandTotal,\n value: totals.grand_total,\n sort_order: 1,\n },\n {\n label: 'Subtotal',\n type: DaffOrderTotalTypeEnum.Subtotal,\n value: totals.subtotal,\n sort_order: 0,\n },\n {\n label: 'Shipping',\n type: DaffOrderTotalTypeEnum.Shipping,\n value: totals.shipping,\n sort_order: 2,\n },\n {\n label: 'Tax',\n type: DaffOrderTotalTypeEnum.Tax,\n value: totals.tax,\n sort_order: 3,\n },\n {\n label: 'Discount',\n type: DaffOrderTotalTypeEnum.Discount,\n value: totals.discount,\n sort_order: 4,\n },\n ];\n}\n\nfunction transformItem(item: MagentoGraycoreOrderItem): DaffOrderItem {\n return {\n id: null,\n item_id: null,\n type: DaffOrderItemType.Simple,\n qty_ordered: item.qty_ordered,\n qty_canceled: item.qty_canceled,\n qty_fulfilled: item.qty_fulfilled,\n qty: item.qty,\n image: {\n url: item.image,\n id: null,\n label: null,\n },\n order_id: item.order_id,\n created_at: item.created_at,\n updated_at: item.updated_at,\n product_id: String(item.product_id),\n parent_item_id: null,\n sku: item.sku,\n name: item.name,\n weight: item.weight,\n price: item.price,\n discount_percent: item.discount_percent,\n discount_amount: item.discount_amount,\n tax_percent: item.tax_percent,\n tax_amount: item.tax_amount,\n row_total: item.row_total,\n row_total_with_discount: item.row_total_with_discount,\n row_weight: item.row_weight,\n tax_before_discount: item.tax_before_discount,\n };\n}\n\nfunction transformAddress(address: MagentoGraycoreOrderAddress): DaffOrderAddress {\n return {\n order_id: String(address.order_id),\n prefix: address.prefix,\n suffix: address.suffix,\n firstname: address.firstname,\n middlename: address.middlename,\n lastname: address.lastname,\n telephone: address.telephone,\n email: address.email,\n street: address.street[0],\n street2: address.street[1],\n city: address.city,\n region: address.region_id,\n country: address.country_code,\n postcode: address.postcode,\n };\n}\n\nfunction transformShipmentItem(shipmentItem: MagentoGraycoreOrderShipmentItem): DaffOrderShipmentItem {\n return {\n item: transformItem(shipmentItem.item),\n qty: shipmentItem.qty,\n };\n}\n\nfunction transformShipmentTracking(tracking: MagentoGraycoreOrderShipmentTracking): DaffOrderShipmentTracking {\n return {\n tracking_number: tracking.tracking_number,\n tracking_url: null,\n carrier: tracking.carrier,\n title: tracking.title,\n carrier_logo: null,\n };\n}\n\nfunction transformShipment(shipment: MagentoGraycoreOrderShipment): DaffOrderShipment {\n return {\n carrier: null,\n carrier_title: null,\n code: null,\n method: null,\n method_description: null,\n tracking: shipment.tracking.map(transformShipmentTracking),\n items: shipment.items.map(transformShipmentItem),\n };\n}\n\nfunction transformPayment(payment: MagentoGraycoreOrderPayment): DaffOrderPayment {\n return {\n id: String(payment.payment_id),\n payment_id: String(payment.payment_id),\n order_id: String(payment.order_id),\n created_at: null,\n updated_at: null,\n method: payment.method,\n cc_type: payment.cc_type,\n cc_last4: payment.cc_last4,\n cc_owner: payment.cc_owner,\n cc_exp_month: payment.cc_exp_month,\n cc_exp_year: payment.cc_exp_year,\n };\n}\n\nfunction transformInvoice(invoice: MagentoGraycoreOrderInvoice): DaffOrderInvoice {\n return {\n totals: transformTotals(invoice),\n billing_address: transformAddress(invoice.billing_address),\n shipping_address: transformAddress(invoice.shipping_address),\n payment: transformPayment(invoice.payment),\n items: invoice.items.map(transformShipmentItem),\n shipping_method: null,\n };\n}\n\n/**\n * Transforms the MagentoGraycoreOrder from the magento order query into a DaffOrder.\n */\nexport function daffMagentoTransformOrder(order: MagentoGraycoreOrder): DaffOrder {\n return {\n extra_attributes: order,\n\n id: String(order.order_number),\n customer_id: String(order.customer_id),\n created_at: order.created_at,\n updated_at: order.updated_at,\n status: order.status,\n\n totals: transformTotals(order),\n applied_codes: order.applied_codes.map(code => ({ code })),\n items: order.items.map(transformItem),\n billing_addresses: [\n transformAddress(order.billing_address),\n ],\n shipping_addresses: [\n transformAddress(order.shipping_address),\n ],\n shipments: order.shipments.map(transformShipment),\n payment: transformPayment(order.payment),\n invoices: order.invoices.map(transformInvoice),\n credits: order.credits.map(transformInvoice),\n };\n}\n","import { gql } from 'apollo-angular';\n\n\nexport const orderAddressFragment = gql`\n fragment orderAddress on GraycoreOrderAddress {\n order_id\n prefix\n suffix\n firstname\n middlename\n lastname\n telephone\n email\n street\n city\n region\n region_id\n country_code\n postcode\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderPaymentFragment = gql`\n fragment orderPayment on GraycoreOrderPayment {\n payment_id\n order_id\n method\n cc_type\n cc_last4\n cc_owner\n cc_exp_month\n cc_exp_year\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderItemFragment = gql`\n fragment orderItem on GraycoreOrderItem {\n qty_ordered\n image\n qty_canceled\n qty_fulfilled\n order_id\n created_at\n updated_at\n product_id\n sku\n name\n weight\n qty\n price\n discount_percent\n discount_amount\n tax_percent\n tax_amount\n row_total\n row_total_with_discount\n row_weight\n tax_before_discount\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderShipmentItemFragment = gql`\n fragment orderShipmentItem on GraycoreOrderShipmentItem {\n qty\n item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderAddressFragment } from './order-address';\nimport { orderPaymentFragment } from './order-payment';\nimport { orderShipmentItemFragment } from './order-shipment-item';\n\nexport const orderInvoiceFragment = gql`\n fragment orderInvoice on GraycoreOrderInvoice {\n items {\n ...orderShipmentItem\n }\n grand_total\n subtotal\n shipping\n discount\n tax\n billing_address {\n ...orderAddress\n }\n shipping_address {\n ...orderAddress\n\t\t}\n\t\tpayment {\n\t\t\t...orderPayment\n\t\t}\n }\n ${orderShipmentItemFragment}\n ${orderAddressFragment}\n ${orderPaymentFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderShipmentTrackingFragment = gql`\n fragment orderShipmentTracking on GraycoreOrderShipmentTracking {\n tracking_number\n carrier\n title\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderShipmentItemFragment } from './order-shipment-item';\nimport { orderShipmentTrackingFragment } from './order-shipment-tracking';\n\nexport const orderShipmentFragment = gql`\n fragment orderShipment on GraycoreOrderShipment {\n tracking {\n ...orderShipmentTracking\n }\n items {\n ...orderShipmentItem\n }\n }\n ${orderShipmentItemFragment}\n ${orderShipmentTrackingFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderAddressFragment } from './order-address';\nimport { orderInvoiceFragment } from './order-invoice';\nimport { orderItemFragment } from './order-item';\nimport { orderPaymentFragment } from './order-payment';\nimport { orderShipmentFragment } from './order-shipment';\n\nexport const orderFragment = gql`\n fragment order on GraycoreOrder {\n id\n order_number\n customer_id\n created_at\n updated_at\n grand_total\n subtotal\n shipping\n discount\n tax\n status\n applied_codes\n items {\n ...orderItem\n }\n billing_address {\n ...orderAddress\n }\n shipping_address {\n ...orderAddress\n }\n shipments {\n ...orderShipment\n }\n payment {\n ...orderPayment\n }\n invoices {\n ...orderInvoice\n }\n credits {\n ...orderInvoice\n }\n }\n ${orderItemFragment}\n ${orderShipmentFragment}\n ${orderPaymentFragment}\n ${orderInvoiceFragment}\n ${orderAddressFragment}\n`;\n","import { gql } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\n\nimport {\n daffBuildFragmentNameSpread,\n daffBuildFragmentDefinition,\n} from '@daffodil/core/graphql';\n\nimport { orderFragment } from './fragments/public_api';\n\nexport const getGuestOrders = (extraOrderFragments: DocumentNode[] = []) => gql`\n query MagentoGetGuestOrders($cartId: String!) {\n graycoreGuestOrders(cartId: $cartId) {\n orders {\n ...order\n ${daffBuildFragmentNameSpread(...extraOrderFragments)}\n }\n }\n }\n ${orderFragment}\n ${daffBuildFragmentDefinition(...extraOrderFragments)}\n`;\n","import { InjectionToken } from '@angular/core';\nimport { DocumentNode } from 'graphql';\n\n/**\n * An multi-provider injection token for providing extra GraphQL fragments that will be spread into order queries.\n * This can be used to retrieve additional data that is not covered by the standard Daffodil interfaces.\n * The data will appear in DaffOrder#extra_attributes.\n *\n * Fragment structure is platform-specific and this feature should be used with care.\n */\nexport const DaffMagentoExtraOrderFragments = new InjectionToken<DocumentNode[]>('DaffMagentoExtraOrderFragments', { factory: () => []});\n","export enum MagentoOrderGraphQlErrorCode {\n\tCART_NOT_FOUND = 'graphql-no-such-entity',\n}\n","import { DaffCartNotFoundError } from '@daffodil/cart/driver';\nimport { DaffErrorCodeMap } from '@daffodil/core';\n\nimport { MagentoOrderGraphQlErrorCode } from './codes';\n\nexport const DaffOrderMagentoErrorMap: DaffErrorCodeMap = {\n [MagentoOrderGraphQlErrorCode.CART_NOT_FOUND]: DaffCartNotFoundError,\n};\n","import { daffTransformMagentoError } from '@daffodil/driver/magento';\n\nimport { DaffOrderMagentoErrorMap } from './map';\n\nexport function transformMagentoOrderError(error: any) {\n return daffTransformMagentoError(error, DaffOrderMagentoErrorMap);\n}\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffOrderInvalidAPIResponseError } from '@daffodil/order/driver';\n\nimport { MagentoGetGuestOrdersResponse } from '../queries/public_api';\n\nexport const validateGetOrdersResponse = (response: ApolloQueryResult<MagentoGetGuestOrdersResponse>) => {\n if (response.data?.graycoreGuestOrders?.orders) {\n if (response.data.graycoreGuestOrders.orders.reduce((acc, order) => acc && !!(\n order.billing_address\n && order.shipping_address\n && order.payment\n ), true)) {\n return response;\n } else {\n throw new DaffOrderInvalidAPIResponseError('One of the orders does not contain required fields.');\n }\n } else {\n throw new DaffOrderInvalidAPIResponseError('Get orders response does not contain a valid list of orders.');\n }\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffCart } from '@daffodil/cart';\nimport { DaffOrder } from '@daffodil/order';\nimport {\n DaffOrderServiceInterface,\n DaffOrderNotFoundError,\n} from '@daffodil/order/driver';\n\nimport { transformMagentoOrderError } from './errors/transform';\nimport { DaffMagentoExtraOrderFragments } from './injection-tokens/public_api';\nimport {\n getGuestOrders,\n MagentoGetGuestOrdersResponse,\n} from './queries/public_api';\nimport { daffMagentoTransformOrder } from './transforms/responses/order';\nimport { validateGetOrdersResponse } from './validators/public_api';\n\n/**\n * A service for making Magento GraphQL queries for orders.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderMagentoService implements DaffOrderServiceInterface {\n constructor(\n private apollo: Apollo,\n @Inject(DaffMagentoExtraOrderFragments) public extraOrderFragments: DocumentNode[],\n ) {}\n\n list(cartId?: DaffCart['id']): Observable<DaffOrder[]> {\n return this.apollo.query<MagentoGetGuestOrdersResponse>({\n query: getGuestOrders(this.extraOrderFragments),\n variables: {\n cartId,\n },\n }).pipe(\n map(validateGetOrdersResponse),\n map(result => result.data.graycoreGuestOrders.orders.map(daffMagentoTransformOrder)),\n catchError(err => throwError(() => transformMagentoOrderError(err))),\n );\n }\n\n get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder> {\n return this.list(cartId).pipe(\n map(orders => {\n for (const order of orders) {\n if (order.id === orderId) {\n return order;\n }\n }\n\n // order not found\n throw new DaffOrderNotFoundError(`Could not find an order with ID ${orderId}`);\n }),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffOrderDriver } from '@daffodil/order/driver';\n\nimport { DaffOrderMagentoService } from './order.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffOrderMagentoDriverModule {\n static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule> {\n return {\n ngModule: DaffOrderMagentoDriverModule,\n providers: [\n {\n provide: DaffOrderDriver,\n useExisting: DaffOrderMagentoService,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAyBA,SAAS,eAAe,CAAC,MAMxB,EAAA;IACC,OAAO;AACL,QAAA;AACE,YAAA,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,sBAAsB,CAAC,UAAU;YACvC,KAAK,EAAE,MAAM,CAAC,WAAW;AACzB,YAAA,UAAU,EAAE,CAAC;AACd,SAAA;AACD,QAAA;AACE,YAAA,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,sBAAsB,CAAC,QAAQ;YACrC,KAAK,EAAE,MAAM,CAAC,QAAQ;AACtB,YAAA,UAAU,EAAE,CAAC;AACd,SAAA;AACD,QAAA;AACE,YAAA,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,sBAAsB,CAAC,QAAQ;YACrC,KAAK,EAAE,MAAM,CAAC,QAAQ;AACtB,YAAA,UAAU,EAAE,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2FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;8BAII,MAAM;+BAAC,8BAA8B,CAAA;;;;MC3B7B,4BAA4B,CAAA;AACvC,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,4BAA4B;AACtC,YAAA,SAAS,EAAE;AACT,gBAAA;AACE,oBAAA,OAAO,EAAE,eAAe;AACxB,oBAAA,WAAW,EAAE,uBAAuB;AACrC,iBAAA;AACF,aAAA;SACF,CAAC;KACH;;+JAXU,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA5B,sCAAA,4BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,YAHrC,YAAY,CAAA,EAAA,CAAA,CAAA;AAGH,sCAAA,4BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,EAJ9B,OAAA,EAAA,CAAA;YACP,YAAY;SACb,CAAA,EAAA,CAAA,CAAA;2FAEU,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"daffodil-order-driver-magento-2.4.0.mjs","sources":["../../../libs/order/driver/magento/2.4.0/src/transforms/responses/order.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-address.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-payment.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-item.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-shipment-item.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-invoice.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-shipment-tracking.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order-shipment.ts","../../../libs/order/driver/magento/2.4.0/src/queries/fragments/order.ts","../../../libs/order/driver/magento/2.4.0/src/queries/get-guest-orders.ts","../../../libs/order/driver/magento/2.4.0/src/injection-tokens/fragments/order.ts","../../../libs/order/driver/magento/2.4.0/src/errors/codes.ts","../../../libs/order/driver/magento/2.4.0/src/errors/map.ts","../../../libs/order/driver/magento/2.4.0/src/errors/transform.ts","../../../libs/order/driver/magento/2.4.0/src/validators/get-orders.ts","../../../libs/order/driver/magento/2.4.0/src/order.service.ts","../../../libs/order/driver/magento/2.4.0/src/order-driver.module.ts","../../../libs/order/driver/magento/2.4.0/src/daffodil-order-driver-magento-2.4.0.ts"],"sourcesContent":["import {\n DaffOrder,\n DaffOrderTotal,\n DaffOrderItem,\n DaffOrderAddress,\n DaffOrderShipment,\n DaffOrderShipmentItem,\n DaffOrderShipmentTracking,\n DaffOrderPayment,\n DaffOrderInvoice,\n DaffOrderTotalTypeEnum,\n DaffOrderItemType,\n} from '@daffodil/order';\n\nimport {\n MagentoGraycoreOrder,\n MagentoGraycoreOrderItem,\n MagentoGraycoreOrderShipment,\n MagentoGraycoreOrderAddress,\n MagentoGraycoreOrderShipmentItem,\n MagentoGraycoreOrderShipmentTracking,\n MagentoGraycoreOrderPayment,\n MagentoGraycoreOrderInvoice,\n} from '../../models/responses/public_api';\n\nfunction transformTotals(totals: {\n grand_total: number;\n subtotal: number;\n shipping: number;\n discount: number;\n tax: number;\n}): DaffOrderTotal[] {\n return [\n {\n label: 'Grand Total',\n type: DaffOrderTotalTypeEnum.GrandTotal,\n value: totals.grand_total,\n sort_order: 1,\n },\n {\n label: 'Subtotal',\n type: DaffOrderTotalTypeEnum.Subtotal,\n value: totals.subtotal,\n sort_order: 0,\n },\n {\n label: 'Shipping',\n type: DaffOrderTotalTypeEnum.Shipping,\n value: totals.shipping,\n sort_order: 2,\n },\n {\n label: 'Tax',\n type: DaffOrderTotalTypeEnum.Tax,\n value: totals.tax,\n sort_order: 3,\n },\n {\n label: 'Discount',\n type: DaffOrderTotalTypeEnum.Discount,\n value: totals.discount,\n sort_order: 4,\n },\n ];\n}\n\nfunction transformItem(item: MagentoGraycoreOrderItem): DaffOrderItem {\n return {\n id: null,\n item_id: null,\n type: DaffOrderItemType.Simple,\n qty_ordered: item.qty_ordered,\n qty_canceled: item.qty_canceled,\n qty_fulfilled: item.qty_fulfilled,\n qty: item.qty,\n image: {\n url: item.image,\n id: null,\n label: null,\n },\n order_id: item.order_id,\n created_at: item.created_at,\n updated_at: item.updated_at,\n product_id: String(item.product_id),\n parent_item_id: null,\n sku: item.sku,\n name: item.name,\n weight: item.weight,\n price: item.price,\n discount_percent: item.discount_percent,\n discount_amount: item.discount_amount,\n tax_percent: item.tax_percent,\n tax_amount: item.tax_amount,\n row_total: item.row_total,\n row_total_with_discount: item.row_total_with_discount,\n row_weight: item.row_weight,\n tax_before_discount: item.tax_before_discount,\n };\n}\n\nfunction transformAddress(address: MagentoGraycoreOrderAddress): DaffOrderAddress {\n return {\n order_id: String(address.order_id),\n prefix: address.prefix,\n suffix: address.suffix,\n firstname: address.firstname,\n middlename: address.middlename,\n lastname: address.lastname,\n telephone: address.telephone,\n email: address.email,\n street: address.street[0],\n street2: address.street[1],\n city: address.city,\n region: address.region_id,\n country: address.country_code,\n postcode: address.postcode,\n };\n}\n\nfunction transformShipmentItem(shipmentItem: MagentoGraycoreOrderShipmentItem): DaffOrderShipmentItem {\n return {\n item: transformItem(shipmentItem.item),\n qty: shipmentItem.qty,\n };\n}\n\nfunction transformShipmentTracking(tracking: MagentoGraycoreOrderShipmentTracking): DaffOrderShipmentTracking {\n return {\n tracking_number: tracking.tracking_number,\n tracking_url: null,\n carrier: tracking.carrier,\n title: tracking.title,\n carrier_logo: null,\n };\n}\n\nfunction transformShipment(shipment: MagentoGraycoreOrderShipment): DaffOrderShipment {\n return {\n carrier: null,\n carrier_title: null,\n code: null,\n method: null,\n method_description: null,\n tracking: shipment.tracking.map(transformShipmentTracking),\n items: shipment.items.map(transformShipmentItem),\n };\n}\n\nfunction transformPayment(payment: MagentoGraycoreOrderPayment): DaffOrderPayment {\n return {\n id: String(payment.payment_id),\n payment_id: String(payment.payment_id),\n order_id: String(payment.order_id),\n created_at: null,\n updated_at: null,\n method: payment.method,\n cc_type: payment.cc_type,\n cc_last4: payment.cc_last4,\n cc_owner: payment.cc_owner,\n cc_exp_month: payment.cc_exp_month,\n cc_exp_year: payment.cc_exp_year,\n };\n}\n\nfunction transformInvoice(invoice: MagentoGraycoreOrderInvoice): DaffOrderInvoice {\n return {\n totals: transformTotals(invoice),\n billing_address: transformAddress(invoice.billing_address),\n shipping_address: transformAddress(invoice.shipping_address),\n payment: transformPayment(invoice.payment),\n items: invoice.items.map(transformShipmentItem),\n shipping_method: null,\n };\n}\n\n/**\n * Transforms the MagentoGraycoreOrder from the magento order query into a DaffOrder.\n */\nexport function daffMagentoTransformOrder(order: MagentoGraycoreOrder): DaffOrder {\n return {\n extra_attributes: order,\n\n id: String(order.order_number),\n customer_id: String(order.customer_id),\n created_at: order.created_at,\n updated_at: order.updated_at,\n status: order.status,\n\n totals: transformTotals(order),\n applied_codes: order.applied_codes.map(code => ({ code })),\n items: order.items.map(transformItem),\n billing_addresses: [\n transformAddress(order.billing_address),\n ],\n shipping_addresses: [\n transformAddress(order.shipping_address),\n ],\n shipments: order.shipments.map(transformShipment),\n payment: transformPayment(order.payment),\n invoices: order.invoices.map(transformInvoice),\n credits: order.credits.map(transformInvoice),\n };\n}\n","import { gql } from 'apollo-angular';\n\n\nexport const orderAddressFragment = gql`\n fragment orderAddress on GraycoreOrderAddress {\n order_id\n prefix\n suffix\n firstname\n middlename\n lastname\n telephone\n email\n street\n city\n region\n region_id\n country_code\n postcode\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderPaymentFragment = gql`\n fragment orderPayment on GraycoreOrderPayment {\n payment_id\n order_id\n method\n cc_type\n cc_last4\n cc_owner\n cc_exp_month\n cc_exp_year\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderItemFragment = gql`\n fragment orderItem on GraycoreOrderItem {\n qty_ordered\n image\n qty_canceled\n qty_fulfilled\n order_id\n created_at\n updated_at\n product_id\n sku\n name\n weight\n qty\n price\n discount_percent\n discount_amount\n tax_percent\n tax_amount\n row_total\n row_total_with_discount\n row_weight\n tax_before_discount\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderShipmentItemFragment = gql`\n fragment orderShipmentItem on GraycoreOrderShipmentItem {\n qty\n item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderAddressFragment } from './order-address';\nimport { orderPaymentFragment } from './order-payment';\nimport { orderShipmentItemFragment } from './order-shipment-item';\n\nexport const orderInvoiceFragment = gql`\n fragment orderInvoice on GraycoreOrderInvoice {\n items {\n ...orderShipmentItem\n }\n grand_total\n subtotal\n shipping\n discount\n tax\n billing_address {\n ...orderAddress\n }\n shipping_address {\n ...orderAddress\n\t\t}\n\t\tpayment {\n\t\t\t...orderPayment\n\t\t}\n }\n ${orderShipmentItemFragment}\n ${orderAddressFragment}\n ${orderPaymentFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderShipmentTrackingFragment = gql`\n fragment orderShipmentTracking on GraycoreOrderShipmentTracking {\n tracking_number\n carrier\n title\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderShipmentItemFragment } from './order-shipment-item';\nimport { orderShipmentTrackingFragment } from './order-shipment-tracking';\n\nexport const orderShipmentFragment = gql`\n fragment orderShipment on GraycoreOrderShipment {\n tracking {\n ...orderShipmentTracking\n }\n items {\n ...orderShipmentItem\n }\n }\n ${orderShipmentItemFragment}\n ${orderShipmentTrackingFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderAddressFragment } from './order-address';\nimport { orderInvoiceFragment } from './order-invoice';\nimport { orderItemFragment } from './order-item';\nimport { orderPaymentFragment } from './order-payment';\nimport { orderShipmentFragment } from './order-shipment';\n\nexport const orderFragment = gql`\n fragment order on GraycoreOrder {\n id\n order_number\n customer_id\n created_at\n updated_at\n grand_total\n subtotal\n shipping\n discount\n tax\n status\n applied_codes\n items {\n ...orderItem\n }\n billing_address {\n ...orderAddress\n }\n shipping_address {\n ...orderAddress\n }\n shipments {\n ...orderShipment\n }\n payment {\n ...orderPayment\n }\n invoices {\n ...orderInvoice\n }\n credits {\n ...orderInvoice\n }\n }\n ${orderItemFragment}\n ${orderShipmentFragment}\n ${orderPaymentFragment}\n ${orderInvoiceFragment}\n ${orderAddressFragment}\n`;\n","import { gql } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\n\nimport {\n daffBuildFragmentNameSpread,\n daffBuildFragmentDefinition,\n} from '@daffodil/core/graphql';\n\nimport { orderFragment } from './fragments/public_api';\n\nexport const getGuestOrders = (extraOrderFragments: DocumentNode[] = []) => gql`\n query MagentoGetGuestOrders($cartId: String!) {\n graycoreGuestOrders(cartId: $cartId) {\n orders {\n ...order\n ${daffBuildFragmentNameSpread(...extraOrderFragments)}\n }\n }\n }\n ${orderFragment}\n ${daffBuildFragmentDefinition(...extraOrderFragments)}\n`;\n","import { InjectionToken } from '@angular/core';\nimport { DocumentNode } from 'graphql';\n\n/**\n * An multi-provider injection token for providing extra GraphQL fragments that will be spread into order queries.\n * This can be used to retrieve additional data that is not covered by the standard Daffodil interfaces.\n * The data will appear in DaffOrder#extra_attributes.\n *\n * Fragment structure is platform-specific and this feature should be used with care.\n */\nexport const DaffMagentoExtraOrderFragments = new InjectionToken<DocumentNode[]>('DaffMagentoExtraOrderFragments', { factory: () => []});\n","export enum MagentoOrderGraphQlErrorCode {\n CART_NOT_FOUND = 'graphql-no-such-entity',\n}\n","import { DaffCartNotFoundError } from '@daffodil/cart/driver';\nimport { DaffErrorCodeMap } from '@daffodil/core';\n\nimport { MagentoOrderGraphQlErrorCode } from './codes';\n\nexport const DaffOrderMagentoErrorMap: DaffErrorCodeMap = {\n [MagentoOrderGraphQlErrorCode.CART_NOT_FOUND]: DaffCartNotFoundError,\n};\n","import { daffTransformMagentoError } from '@daffodil/driver/magento';\n\nimport { DaffOrderMagentoErrorMap } from './map';\n\nexport function transformMagentoOrderError(error: any) {\n return daffTransformMagentoError(error, DaffOrderMagentoErrorMap);\n}\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffOrderInvalidAPIResponseError } from '@daffodil/order/driver';\n\nimport { MagentoGetGuestOrdersResponse } from '../queries/public_api';\n\nexport const validateGetOrdersResponse = (response: ApolloQueryResult<MagentoGetGuestOrdersResponse>) => {\n if (response.data?.graycoreGuestOrders?.orders) {\n if (response.data.graycoreGuestOrders.orders.reduce((acc, order) => acc && !!(\n order.billing_address\n && order.shipping_address\n && order.payment\n ), true)) {\n return response;\n } else {\n throw new DaffOrderInvalidAPIResponseError('One of the orders does not contain required fields.');\n }\n } else {\n throw new DaffOrderInvalidAPIResponseError('Get orders response does not contain a valid list of orders.');\n }\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffCart } from '@daffodil/cart';\nimport { DaffOrder } from '@daffodil/order';\nimport {\n DaffOrderServiceInterface,\n DaffOrderNotFoundError,\n} from '@daffodil/order/driver';\n\nimport { transformMagentoOrderError } from './errors/transform';\nimport { DaffMagentoExtraOrderFragments } from './injection-tokens/public_api';\nimport {\n getGuestOrders,\n MagentoGetGuestOrdersResponse,\n} from './queries/public_api';\nimport { daffMagentoTransformOrder } from './transforms/responses/order';\nimport { validateGetOrdersResponse } from './validators/public_api';\n\n/**\n * A service for making Magento GraphQL queries for orders.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderMagentoService implements DaffOrderServiceInterface {\n constructor(\n private apollo: Apollo,\n @Inject(DaffMagentoExtraOrderFragments) public extraOrderFragments: DocumentNode[],\n ) {}\n\n list(cartId?: DaffCart['id']): Observable<DaffOrder[]> {\n return this.apollo.query<MagentoGetGuestOrdersResponse>({\n query: getGuestOrders(this.extraOrderFragments),\n variables: {\n cartId,\n },\n }).pipe(\n map(validateGetOrdersResponse),\n map(result => result.data.graycoreGuestOrders.orders.map(daffMagentoTransformOrder)),\n catchError(err => throwError(() => transformMagentoOrderError(err))),\n );\n }\n\n get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder> {\n return this.list(cartId).pipe(\n map(orders => {\n for (const order of orders) {\n if (order.id === orderId) {\n return order;\n }\n }\n\n // order not found\n throw new DaffOrderNotFoundError(`Could not find an order with ID ${orderId}`);\n }),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffOrderDriver } from '@daffodil/order/driver';\n\nimport { DaffOrderMagentoService } from './order.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffOrderMagentoDriverModule {\n static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule> {\n return {\n ngModule: DaffOrderMagentoDriverModule,\n providers: [\n {\n provide: DaffOrderDriver,\n useExisting: DaffOrderMagentoService,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAyBA,SAAS,eAAe,CAAC,MAMxB,EAAA;IACC,OAAO;AACL,QAAA;AACE,YAAA,KAA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A,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,EAJ9B,OAAA,EAAA,CAAA;YACP,YAAY;SACb,CAAA,EAAA,CAAA,CAAA;2FAEU,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"daffodil-order-driver-magento-2.4.1.mjs","sources":["../../../libs/order/driver/magento/2.4.1/src/models/responses/order-item.ts","../../../libs/order/driver/magento/2.4.1/src/transforms/responses/order.ts","../../../libs/order/driver/magento/2.4.1/src/models/responses/order-invoice-item.ts","../../../libs/order/driver/magento/2.4.1/src/models/responses/order-shipment-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-address.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-credit-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-credit-total.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-credit.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-invoice-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-invoice-total.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-invoice.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-payment.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-shipment-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-shipment-tracking.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-shipment.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-total.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order.ts","../../../libs/order/driver/magento/2.4.1/src/queries/get-guest-orders.ts","../../../libs/order/driver/magento/2.4.1/src/injection-tokens/fragments/order.ts","../../../libs/order/driver/magento/2.4.1/src/errors/codes.ts","../../../libs/order/driver/magento/2.4.1/src/errors/map.ts","../../../libs/order/driver/magento/2.4.1/src/errors/transform.ts","../../../libs/order/driver/magento/2.4.1/src/validators/get-orders.ts","../../../libs/order/driver/magento/2.4.1/src/order.service.ts","../../../libs/order/driver/magento/2.4.1/src/order-driver.module.ts","../../../libs/order/driver/magento/2.4.1/src/daffodil-order-driver-magento-2.4.1.ts"],"sourcesContent":["import { MagentoMoney } from '@daffodil/driver/magento';\n\nimport { MagentoDiscount } from './discount';\n\nexport enum MagentoOrderItemType {\n Simple = 'simple',\n Configurable = 'configurable',\n Bundle = 'bundle'\n};\n\nexport type MagentoOrderItemTypenames =\n 'OrderItem' |\n 'BundleOrderItem' |\n 'GiftCardOrderItem' |\n 'DownloadableOrderItem';\n\nexport interface MagentoOrderItemOption {\n __typename?: string;\n label: string;\n value: string;\n};\n\nexport interface MagentoOrderItem {\n __typename?: MagentoOrderItemTypenames;\n discounts: MagentoDiscount[];\n product_name: string;\n product_sale_price: MagentoMoney;\n product_sku: string;\n product_type: MagentoOrderItemType;\n product_url_key: string;\n quantity_canceled: number;\n quantity_invoiced: number;\n quantity_ordered: number;\n quantity_refunded: number;\n quantity_returned: number;\n quantity_shipped: number;\n selected_options: MagentoOrderItemOption[];\n entered_options: MagentoOrderItemOption[];\n status: string;\n}\n\nexport interface MagentoOrderBundleItemSelectedOption {\n __typename?: string;\n label: string;\n values: MagentoOrderBundleItemSelectedOptionValue[];\n};\n\nexport interface MagentoOrderBundleItemSelectedOptionValue {\n price: MagentoMoney;\n product_name: string;\n product_sku: string;\n quantity: number;\n};\n\nexport interface MagentoOrderBundleItem extends MagentoOrderItem {\n bundle_options: MagentoOrderBundleItemSelectedOption[];\n};\n","import {\n daffAdd,\n daffSubtract,\n} from '@daffodil/core';\nimport {\n DaffOrder,\n DaffOrderTotal,\n DaffOrderItem,\n DaffOrderAddress,\n DaffOrderShipment,\n DaffOrderShipmentItem,\n DaffOrderShipmentTracking,\n DaffOrderPayment,\n DaffOrderInvoice,\n DaffOrderTotalTypeEnum,\n DaffCompositeOrderItemOption,\n DaffOrderItemType,\n DaffConfigurableOrderItemAttribute,\n DaffOrderCoupon,\n} from '@daffodil/order';\n\nimport { MagentoDiscount } from '../../models/responses/discount';\nimport { MagentoOrderCredit } from '../../models/responses/order-credit';\nimport { MagentoOrderCreditItem } from '../../models/responses/order-credit-item';\nimport { MagentoOrderInvoiceItem } from '../../models/responses/order-invoice-item';\nimport {\n MagentoOrderBundleItem,\n MagentoOrderBundleItemSelectedOption,\n MagentoOrderItemOption,\n MagentoOrderItemType,\n} from '../../models/responses/order-item';\nimport { MagentoOrderTotal } from '../../models/responses/order-total';\nimport {\n MagentoOrder,\n MagentoOrderItem,\n MagentoOrderShipment,\n MagentoOrderAddress,\n MagentoOrderShipmentItem,\n MagentoOrderShipmentTracking,\n MagentoOrderPayment,\n MagentoOrderInvoice,\n} from '../../models/responses/public_api';\n\nfunction transformTotals(totals: MagentoOrderTotal): DaffOrderTotal[] {\n return [\n {\n label: 'Grand Total',\n type: DaffOrderTotalTypeEnum.GrandTotal,\n value: totals.grand_total.value,\n sort_order: 1,\n },\n {\n label: 'Subtotal',\n type: DaffOrderTotalTypeEnum.Subtotal,\n value: totals.subtotal.value,\n sort_order: 0,\n },\n {\n label: 'Shipping',\n type: DaffOrderTotalTypeEnum.Shipping,\n value: totals.total_shipping.value,\n sort_order: 2,\n },\n {\n label: 'Tax',\n type: DaffOrderTotalTypeEnum.Tax,\n value: totals.total_tax.value,\n sort_order: 3,\n },\n {\n label: 'Discount',\n type: DaffOrderTotalTypeEnum.Discount,\n value: totals.discounts.reduce((acc, discount) => daffAdd(acc, discount.amount.value), 0),\n sort_order: 4,\n },\n ];\n}\n\nfunction transformCouponDiscount(discount: MagentoDiscount): DaffOrderCoupon {\n return {\n code: discount.label,\n };\n}\n\nfunction transformConfigurableOption(option: MagentoOrderItemOption): DaffConfigurableOrderItemAttribute {\n return {\n attribute_label: option.label,\n\t value_label: option.value,\n };\n}\n\nfunction transformBundleOption(option: MagentoOrderBundleItemSelectedOption): DaffCompositeOrderItemOption {\n return {\n option_label: option.label,\n\t value_label: option.values && option.values[0] && option.values[0].product_name,\n };\n}\n\nfunction transformAdditionalItemFields(item: MagentoOrderItem) {\n switch (item.product_type) {\n case MagentoOrderItemType.Bundle:\n return {\n type: DaffOrderItemType.Composite,\n options: (<MagentoOrderBundleItem>item).bundle_options.map(transformBundleOption),\n };\n case MagentoOrderItemType.Configurable:\n return {\n type: DaffOrderItemType.Configurable,\n attributes: item.selected_options.map(transformConfigurableOption),\n };\n case MagentoOrderItemType.Simple:\n return {\n type: DaffOrderItemType.Simple,\n };\n default:\n return {};\n }\n}\n\nfunction transformItem(item: MagentoOrderItem, order: MagentoOrder, qty: number): DaffOrderItem {\n const discount = item.discounts.reduce((acc, d) => daffAdd(acc, d.amount.value), 0);\n const rowTotal = qty * item.product_sale_price.value;\n const rowTotalWithDiscount = qty * daffSubtract(item.product_sale_price.value, discount);\n\n return {\n type: DaffOrderItemType.Simple,\n id: null,\n item_id: null,\n qty_ordered: item.quantity_ordered,\n qty_canceled: item.quantity_canceled,\n qty_fulfilled: item.quantity_shipped,\n qty,\n image: {\n url: item.product_url_key,\n id: null,\n label: null,\n },\n order_id: order.id,\n created_at: null,\n updated_at: null,\n product_id: null,\n parent_item_id: null,\n sku: item.product_sku,\n name: item.product_name,\n weight: null,\n price: item.product_sale_price.value,\n discount_percent: Math.floor(discount / item.product_sale_price.value * 100),\n discount_amount: discount,\n tax_percent: null,\n tax_amount: null,\n row_total: rowTotal,\n row_total_with_discount: rowTotalWithDiscount,\n row_weight: null,\n tax_before_discount: null,\n ...transformAdditionalItemFields(item),\n };\n}\n\nfunction transformAddress(address: MagentoOrderAddress, order: MagentoOrder): DaffOrderAddress {\n return {\n order_id: order.id,\n prefix: address.prefix,\n suffix: address.suffix,\n firstname: address.firstname,\n middlename: address.middlename,\n lastname: address.lastname,\n telephone: address.telephone,\n email: null,\n street: address.street[0],\n street2: address.street[1],\n city: address.city,\n region: address.region_code,\n country: address.country_code,\n postcode: address.postcode,\n };\n}\n\nfunction transformShipmentItem(shipmentItem: MagentoOrderShipmentItem, order: MagentoOrder): DaffOrderShipmentItem {\n return {\n item: transformItem(shipmentItem.order_item, order, shipmentItem.quantity_shipped),\n qty: shipmentItem.quantity_shipped,\n };\n}\n\nfunction transformShipmentTracking(tracking: MagentoOrderShipmentTracking): DaffOrderShipmentTracking {\n return {\n tracking_number: tracking.number,\n tracking_url: null,\n carrier: tracking.carrier,\n title: tracking.title,\n carrier_logo: null,\n };\n}\n\nfunction transformShipment(shipment: MagentoOrderShipment, order: MagentoOrder): DaffOrderShipment {\n return {\n carrier: order.carrier,\n carrier_title: null,\n code: null,\n method: order.shipping_method,\n method_description: null,\n tracking: shipment.tracking.map(transformShipmentTracking),\n items: shipment.items.map(item => transformShipmentItem(item, order)),\n };\n}\n\nfunction transformPayment(payment: MagentoOrderPayment, order: MagentoOrder): DaffOrderPayment {\n const findAdditionalData = key => {\n const index = payment.additional_data.findIndex(({ name }) => name === key);\n\n return index > -1 ? payment.additional_data[index].value : null;\n };\n return {\n id: null,\n payment_id: null,\n order_id: order.id,\n created_at: null,\n updated_at: null,\n method: payment.type,\n cc_type: findAdditionalData('cc_type'),\n cc_last4: findAdditionalData('cc_last4'),\n cc_owner: findAdditionalData('cc_owner'),\n cc_exp_month: findAdditionalData('cc_exp_month'),\n cc_exp_year: findAdditionalData('cc_exp_year'),\n };\n}\n\nfunction transformInvoiceItem(invoiceItem: MagentoOrderInvoiceItem, order: MagentoOrder): DaffOrderShipmentItem {\n return {\n item: transformItem(invoiceItem.order_item, order, invoiceItem.quantity_invoiced),\n qty: invoiceItem.quantity_invoiced,\n };\n}\n\nfunction transformInvoice(invoice: MagentoOrderInvoice, order: MagentoOrder, payment: MagentoOrderPayment): DaffOrderInvoice {\n return {\n totals: transformTotals(invoice.total),\n billing_address: transformAddress(order.billing_address, order),\n shipping_address: transformAddress(order.shipping_address, order),\n payment: transformPayment(payment, order),\n items: invoice.items.map(item => transformInvoiceItem(item, order)),\n shipping_method: null,\n };\n}\n\nfunction transformCreditItem(creditItem: MagentoOrderCreditItem, order: MagentoOrder): DaffOrderShipmentItem {\n return {\n item: transformItem(creditItem.order_item, order, creditItem.quantity_refunded),\n qty: creditItem.quantity_refunded,\n };\n}\n\nfunction transformCredit(credit: MagentoOrderCredit, order: MagentoOrder): DaffOrderInvoice {\n return {\n totals: transformTotals(credit.total),\n billing_address: transformAddress(order.billing_address, order),\n shipping_address: transformAddress(order.shipping_address, order),\n payment: transformPayment(order.payment_methods[0], order),\n items: credit.items.map(item => transformCreditItem(item, order)),\n shipping_method: null,\n };\n}\n\n/**\n * Transforms the MagentoOrder from the magento order query into a DaffOrder.\n */\nexport function daffMagentoTransformOrder(order: MagentoOrder): DaffOrder {\n return {\n extra_attributes: order,\n\n id: order.number,\n customer_id: null,\n updated_at: null,\n created_at: order.order_date,\n status: order.status,\n\n totals: transformTotals(order.total),\n applied_codes: order.total.discounts.map(transformCouponDiscount),\n items: order.items.map(item => transformItem(item, order, item.quantity_ordered)),\n billing_addresses: [\n transformAddress(order.billing_address, order),\n ],\n shipping_addresses: [\n transformAddress(order.shipping_address, order),\n ],\n shipments: order.shipments.map(shipment => transformShipment(shipment, order)),\n payment: transformPayment(order.payment_methods[0], order),\n // TODO: find out if the index is the correct payment for invoice\n invoices: order.invoices.map((invoice, index) => transformInvoice(invoice, order, order.payment_methods[index])),\n credits: order.credit_memos.map(credit => transformCredit(credit, order)),\n };\n}\n","import {\n MagentoOrderBundleItemSelectedOption,\n MagentoOrderItem,\n} from './order-item';\n\nexport type MagentoOrderInvoiceItemTypenames =\n 'InvoiceItem' |\n 'BundleInvoiceItem' |\n 'GiftCardInvoiceItem' |\n 'DownloadableInvoiceItem';\n\nexport interface MagentoOrderInvoiceItem {\n __typename?: MagentoOrderInvoiceItemTypenames;\n order_item: MagentoOrderItem;\n quantity_invoiced: number;\n};\n\nexport interface MagentoOrderInvoiceBundleItem extends MagentoOrderInvoiceItem {\n bundle_options: MagentoOrderBundleItemSelectedOption[];\n};\n","import {\n MagentoOrderBundleItemSelectedOption,\n MagentoOrderItem,\n} from './order-item';\n\nexport type MagentoOrderShipmentItemTypenames =\n 'ShipmentItem' |\n 'BundleShipmentItem' |\n 'GiftCardShipmentItem';\n\nexport interface MagentoOrderShipmentItem {\n __typename?: MagentoOrderShipmentItemTypenames;\n order_item: MagentoOrderItem;\n quantity_shipped: number;\n};\n\nexport interface MagentoOrderShipmentBundleItem extends MagentoOrderShipmentItem {\n bundle_options: MagentoOrderBundleItemSelectedOption[];\n};\n","import { gql } from 'apollo-angular';\n\n\nexport const orderAddressFragment = gql`\n fragment orderAddress on OrderAddress {\n city\n company\n country_code\n fax\n firstname\n middlename\n lastname\n postcode\n prefix\n region\n region_code\n street\n suffix\n telephone\n }\n`;\n","import { gql } from 'apollo-angular';\n\nexport const orderBundleItemSelectedOptionFragment = gql`\n fragment orderBundleItemSelectedOption on ItemSelectedBundleOption {\n label\n values {\n product_name\n }\n }\n`;\n\nexport const orderItemFragment = gql`\n fragment orderItem on OrderItemInterface {\n quantity_ordered\n quantity_canceled\n quantity_shipped\n quantity_invoiced\n product_url_key\n product_sku\n product_name\n product_type\n product_sale_price {\n value\n }\n discounts {\n amount {\n value\n }\n }\n selected_options {\n label\n value\n }\n ... on BundleOrderItem {\n bundle_options {\n ...orderBundleItemSelectedOption\n }\n }\n }\n ${orderBundleItemSelectedOptionFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderCreditItemFragment = gql`\n fragment orderCreditItem on CreditMemoItemInterface {\n quantity_refunded\n order_item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderCreditTotalFragment = gql`\n fragment orderCreditTotal on CreditMemoTotal {\n discounts {\n amount {\n value\n }\n label\n }\n grand_total {\n value\n }\n subtotal {\n value\n }\n total_tax {\n value\n }\n total_shipping {\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderCreditItemFragment } from './order-credit-item';\nimport { orderCreditTotalFragment } from './order-credit-total';\n\nexport const orderCreditFragment = gql`\n fragment orderCredit on CreditMemo {\n items {\n ...orderCreditItem\n }\n total {\n ...orderCreditTotal\n }\n }\n ${orderCreditItemFragment}\n ${orderCreditTotalFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderInvoiceItemFragment = gql`\n fragment orderInvoiceItem on InvoiceItemInterface {\n quantity_invoiced\n order_item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderInvoiceTotalFragment = gql`\n fragment orderInvoiceTotal on InvoiceTotal {\n discounts {\n amount {\n value\n }\n label\n }\n grand_total {\n value\n }\n subtotal {\n value\n }\n total_tax {\n value\n }\n total_shipping {\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderInvoiceItemFragment } from './order-invoice-item';\nimport { orderInvoiceTotalFragment } from './order-invoice-total';\n\nexport const orderInvoiceFragment = gql`\n fragment orderInvoice on Invoice {\n items {\n ...orderInvoiceItem\n }\n total {\n ...orderInvoiceTotal\n }\n }\n ${orderInvoiceItemFragment}\n ${orderInvoiceTotalFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderPaymentFragment = gql`\n fragment orderPayment on OrderPaymentMethod {\n name\n type\n additional_data {\n name\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderShipmentItemFragment = gql`\n fragment orderShipmentItem on ShipmentItemInterface {\n quantity_shipped\n order_item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderShipmentTrackingFragment = gql`\n fragment orderShipmentTracking on ShipmentTracking {\n number\n carrier\n title\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderShipmentItemFragment } from './order-shipment-item';\nimport { orderShipmentTrackingFragment } from './order-shipment-tracking';\n\nexport const orderShipmentFragment = gql`\n fragment orderShipment on OrderShipment {\n tracking {\n ...orderShipmentTracking\n }\n items {\n ...orderShipmentItem\n }\n }\n ${orderShipmentItemFragment}\n ${orderShipmentTrackingFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderTotalFragment = gql`\n fragment orderTotal on OrderTotal {\n discounts {\n amount {\n value\n }\n label\n }\n grand_total {\n value\n }\n subtotal {\n value\n }\n total_tax {\n value\n }\n total_shipping {\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderAddressFragment } from './order-address';\nimport { orderCreditFragment } from './order-credit';\nimport { orderInvoiceFragment } from './order-invoice';\nimport { orderItemFragment } from './order-item';\nimport { orderPaymentFragment } from './order-payment';\nimport { orderShipmentFragment } from './order-shipment';\nimport { orderTotalFragment } from './order-total';\n\nexport const orderFragment = gql`\n fragment order on GraycoreGuestOrder {\n id\n order_date\n status\n carrier\n number\n shipping_method\n items {\n ...orderItem\n }\n billing_address {\n ...orderAddress\n }\n shipping_address {\n ...orderAddress\n }\n shipments {\n ...orderShipment\n }\n payment_methods {\n ...orderPayment\n }\n invoices {\n ...orderInvoice\n }\n credit_memos {\n ...orderCredit\n }\n total {\n ...orderTotal\n }\n }\n ${orderItemFragment}\n ${orderShipmentFragment}\n ${orderPaymentFragment}\n ${orderInvoiceFragment}\n ${orderCreditFragment}\n ${orderAddressFragment}\n ${orderTotalFragment}\n`;\n","import { gql } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\n\nimport {\n daffBuildFragmentNameSpread,\n daffBuildFragmentDefinition,\n} from '@daffodil/core/graphql';\n\nimport { orderFragment } from './fragments/public_api';\n\nexport const getGuestOrders = (extraOrderFragments: DocumentNode[] = []) => gql`\n query MagentoGetGuestOrders($cartId: String!) {\n graycoreGuestOrders(cartId: $cartId) {\n items {\n ...order\n ${daffBuildFragmentNameSpread(...extraOrderFragments)}\n }\n }\n }\n ${orderFragment}\n ${daffBuildFragmentDefinition(...extraOrderFragments)}\n`;\n","import { InjectionToken } from '@angular/core';\nimport { DocumentNode } from 'graphql';\n\n/**\n * An multi-provider injection token for providing extra GraphQL fragments that will be spread into order queries.\n * This can be used to retrieve additional data that is not covered by the standard Daffodil interfaces.\n * The data will appear in DaffOrder#extra_attributes.\n *\n * Fragment structure is platform-specific and this feature should be used with care.\n */\nexport const DaffMagentoExtraOrderFragments = new InjectionToken<DocumentNode[]>('DaffMagentoExtraOrderFragments', { factory: () => []});\n","export enum MagentoOrderGraphQlErrorCode {\n\tCART_NOT_FOUND = 'graphql-no-such-entity',\n}\n","import { DaffCartNotFoundError } from '@daffodil/cart/driver';\nimport { DaffErrorCodeMap } from '@daffodil/core';\n\nimport { MagentoOrderGraphQlErrorCode } from './codes';\n\nexport const DaffOrderMagentoErrorMap: DaffErrorCodeMap = {\n [MagentoOrderGraphQlErrorCode.CART_NOT_FOUND]: DaffCartNotFoundError,\n};\n","import { daffTransformMagentoError } from '@daffodil/driver/magento';\n\nimport { DaffOrderMagentoErrorMap } from './map';\n\nexport function transformMagentoOrderError(error: any) {\n return daffTransformMagentoError(error, DaffOrderMagentoErrorMap);\n}\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffOrderInvalidAPIResponseError } from '@daffodil/order/driver';\n\nimport { MagentoGetGuestOrdersResponse } from '../queries/public_api';\n\nexport const validateGetOrdersResponse = (response: ApolloQueryResult<MagentoGetGuestOrdersResponse>) => {\n if (response.data?.graycoreGuestOrders?.items) {\n if (response.data.graycoreGuestOrders.items.reduce((acc, order) => acc && !!(\n order.billing_address\n && order.shipping_address\n && order.payment_methods\n ), true)) {\n return response;\n } else {\n throw new DaffOrderInvalidAPIResponseError('One of the orders does not contain required fields.');\n }\n } else {\n throw new DaffOrderInvalidAPIResponseError('Get orders response does not contain a valid list of orders.');\n }\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffCart } from '@daffodil/cart';\nimport { DaffOrder } from '@daffodil/order';\nimport {\n DaffOrderServiceInterface,\n DaffOrderNotFoundError,\n} from '@daffodil/order/driver';\n\nimport { transformMagentoOrderError } from './errors/transform';\nimport { DaffMagentoExtraOrderFragments } from './injection-tokens/public_api';\nimport {\n getGuestOrders,\n MagentoGetGuestOrdersResponse,\n} from './queries/public_api';\nimport { daffMagentoTransformOrder } from './transforms/responses/order';\nimport { validateGetOrdersResponse } from './validators/public_api';\n\n/**\n * A service for making Magento GraphQL queries for orders.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderMagentoService implements DaffOrderServiceInterface {\n constructor(\n private apollo: Apollo,\n @Inject(DaffMagentoExtraOrderFragments) public extraOrderFragments: DocumentNode[],\n ) {}\n\n list(cartId?: DaffCart['id']): Observable<DaffOrder[]> {\n return this.apollo.query<MagentoGetGuestOrdersResponse>({\n query: getGuestOrders(this.extraOrderFragments),\n variables: {\n cartId,\n },\n }).pipe(\n map(validateGetOrdersResponse),\n map(result => result.data.graycoreGuestOrders.items.map(daffMagentoTransformOrder)),\n catchError(err => throwError(() => transformMagentoOrderError(err))),\n );\n }\n\n get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder> {\n return this.list(cartId).pipe(\n map(orders => {\n for (const order of orders) {\n if (order.id === orderId) {\n return order;\n }\n }\n\n // order not found\n throw new DaffOrderNotFoundError(`Could not find an order with ID ${orderId}`);\n }),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffOrderDriver } from '@daffodil/order/driver';\n\nimport { DaffOrderMagentoService } from './order.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffOrderMagentoDriverModule {\n static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule> {\n return {\n ngModule: DaffOrderMagentoDriverModule,\n providers: [\n {\n provide: DaffOrderDriver,\n useExisting: DaffOrderMagentoService,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIY,IAAA,qBAIX;AAJD,CAAA,UAAY,oBAAoB,EAAA;AAC9B,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,oBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B,CAAA;AAC7B,IAAA,oBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,GAI/B,EAAA,CAAA,CAAA,CAAA;AAAA,CAAC;AAYD,CAAC;AAyBD,CAAC;AAOD,CAAC;AAID;;ACbD,SAAS,eAAe,CAAC,MAAyB,EAAA;IAChD,OAAO;AACL,QAAA;AACE,YAAA,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,sBAAsB,CAAC,UAAU;AACvC,YAAA,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,KAAK;AAC/B,YAAA,UAAU,EAAE,CAAC;AACd,SAAA;AACD,QAAA;AACE,YAAA,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,sBAAsB,CAAC,QAAQ;AACrC,YAAA,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK;AAC5B,YAAA,UAAU,EAAE,CAAC;AACd,SAAA;AACD,QAAA;AACE,YAAA,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,sBAAsB,CAAC,QAAQ;AACrC,YAAA,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,KAAK;AAClC,YAAA,UAAU,EAAE,CAAC;AACd,SA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EAAE;wBACP,YAAY;AACb,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"daffodil-order-driver-magento-2.4.1.mjs","sources":["../../../libs/order/driver/magento/2.4.1/src/models/responses/order-item.ts","../../../libs/order/driver/magento/2.4.1/src/transforms/responses/order.ts","../../../libs/order/driver/magento/2.4.1/src/models/responses/order-invoice-item.ts","../../../libs/order/driver/magento/2.4.1/src/models/responses/order-shipment-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-address.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-credit-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-credit-total.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-credit.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-invoice-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-invoice-total.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-invoice.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-payment.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-shipment-item.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-shipment-tracking.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-shipment.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order-total.ts","../../../libs/order/driver/magento/2.4.1/src/queries/fragments/order.ts","../../../libs/order/driver/magento/2.4.1/src/queries/get-guest-orders.ts","../../../libs/order/driver/magento/2.4.1/src/injection-tokens/fragments/order.ts","../../../libs/order/driver/magento/2.4.1/src/errors/codes.ts","../../../libs/order/driver/magento/2.4.1/src/errors/map.ts","../../../libs/order/driver/magento/2.4.1/src/errors/transform.ts","../../../libs/order/driver/magento/2.4.1/src/validators/get-orders.ts","../../../libs/order/driver/magento/2.4.1/src/order.service.ts","../../../libs/order/driver/magento/2.4.1/src/order-driver.module.ts","../../../libs/order/driver/magento/2.4.1/src/daffodil-order-driver-magento-2.4.1.ts"],"sourcesContent":["import { MagentoMoney } from '@daffodil/driver/magento';\n\nimport { MagentoDiscount } from './discount';\n\nexport enum MagentoOrderItemType {\n Simple = 'simple',\n Configurable = 'configurable',\n Bundle = 'bundle'\n};\n\nexport type MagentoOrderItemTypenames =\n 'OrderItem' |\n 'BundleOrderItem' |\n 'GiftCardOrderItem' |\n 'DownloadableOrderItem';\n\nexport interface MagentoOrderItemOption {\n __typename?: string;\n label: string;\n value: string;\n};\n\nexport interface MagentoOrderItem {\n __typename?: MagentoOrderItemTypenames;\n discounts: MagentoDiscount[];\n product_name: string;\n product_sale_price: MagentoMoney;\n product_sku: string;\n product_type: MagentoOrderItemType;\n product_url_key: string;\n quantity_canceled: number;\n quantity_invoiced: number;\n quantity_ordered: number;\n quantity_refunded: number;\n quantity_returned: number;\n quantity_shipped: number;\n selected_options: MagentoOrderItemOption[];\n entered_options: MagentoOrderItemOption[];\n status: string;\n}\n\nexport interface MagentoOrderBundleItemSelectedOption {\n __typename?: string;\n label: string;\n values: MagentoOrderBundleItemSelectedOptionValue[];\n};\n\nexport interface MagentoOrderBundleItemSelectedOptionValue {\n price: MagentoMoney;\n product_name: string;\n product_sku: string;\n quantity: number;\n};\n\nexport interface MagentoOrderBundleItem extends MagentoOrderItem {\n bundle_options: MagentoOrderBundleItemSelectedOption[];\n};\n","import {\n daffAdd,\n daffSubtract,\n} from '@daffodil/core';\nimport {\n DaffOrder,\n DaffOrderTotal,\n DaffOrderItem,\n DaffOrderAddress,\n DaffOrderShipment,\n DaffOrderShipmentItem,\n DaffOrderShipmentTracking,\n DaffOrderPayment,\n DaffOrderInvoice,\n DaffOrderTotalTypeEnum,\n DaffCompositeOrderItemOption,\n DaffOrderItemType,\n DaffConfigurableOrderItemAttribute,\n DaffOrderCoupon,\n} from '@daffodil/order';\n\nimport { MagentoDiscount } from '../../models/responses/discount';\nimport { MagentoOrderCredit } from '../../models/responses/order-credit';\nimport { MagentoOrderCreditItem } from '../../models/responses/order-credit-item';\nimport { MagentoOrderInvoiceItem } from '../../models/responses/order-invoice-item';\nimport {\n MagentoOrderBundleItem,\n MagentoOrderBundleItemSelectedOption,\n MagentoOrderItemOption,\n MagentoOrderItemType,\n} from '../../models/responses/order-item';\nimport { MagentoOrderTotal } from '../../models/responses/order-total';\nimport {\n MagentoOrder,\n MagentoOrderItem,\n MagentoOrderShipment,\n MagentoOrderAddress,\n MagentoOrderShipmentItem,\n MagentoOrderShipmentTracking,\n MagentoOrderPayment,\n MagentoOrderInvoice,\n} from '../../models/responses/public_api';\n\nfunction transformTotals(totals: MagentoOrderTotal): DaffOrderTotal[] {\n return [\n {\n label: 'Grand Total',\n type: DaffOrderTotalTypeEnum.GrandTotal,\n value: totals.grand_total.value,\n sort_order: 1,\n },\n {\n label: 'Subtotal',\n type: DaffOrderTotalTypeEnum.Subtotal,\n value: totals.subtotal.value,\n sort_order: 0,\n },\n {\n label: 'Shipping',\n type: DaffOrderTotalTypeEnum.Shipping,\n value: totals.total_shipping.value,\n sort_order: 2,\n },\n {\n label: 'Tax',\n type: DaffOrderTotalTypeEnum.Tax,\n value: totals.total_tax.value,\n sort_order: 3,\n },\n {\n label: 'Discount',\n type: DaffOrderTotalTypeEnum.Discount,\n value: totals.discounts.reduce((acc, discount) => daffAdd(acc, discount.amount.value), 0),\n sort_order: 4,\n },\n ];\n}\n\nfunction transformCouponDiscount(discount: MagentoDiscount): DaffOrderCoupon {\n return {\n code: discount.label,\n };\n}\n\nfunction transformConfigurableOption(option: MagentoOrderItemOption): DaffConfigurableOrderItemAttribute {\n return {\n attribute_label: option.label,\n\t value_label: option.value,\n };\n}\n\nfunction transformBundleOption(option: MagentoOrderBundleItemSelectedOption): DaffCompositeOrderItemOption {\n return {\n option_label: option.label,\n\t value_label: option.values && option.values[0] && option.values[0].product_name,\n };\n}\n\nfunction transformAdditionalItemFields(item: MagentoOrderItem) {\n switch (item.product_type) {\n case MagentoOrderItemType.Bundle:\n return {\n type: DaffOrderItemType.Composite,\n options: (<MagentoOrderBundleItem>item).bundle_options.map(transformBundleOption),\n };\n case MagentoOrderItemType.Configurable:\n return {\n type: DaffOrderItemType.Configurable,\n attributes: item.selected_options.map(transformConfigurableOption),\n };\n case MagentoOrderItemType.Simple:\n return {\n type: DaffOrderItemType.Simple,\n };\n default:\n return {};\n }\n}\n\nfunction transformItem(item: MagentoOrderItem, order: MagentoOrder, qty: number): DaffOrderItem {\n const discount = item.discounts.reduce((acc, d) => daffAdd(acc, d.amount.value), 0);\n const rowTotal = qty * item.product_sale_price.value;\n const rowTotalWithDiscount = qty * daffSubtract(item.product_sale_price.value, discount);\n\n return {\n type: DaffOrderItemType.Simple,\n id: null,\n item_id: null,\n qty_ordered: item.quantity_ordered,\n qty_canceled: item.quantity_canceled,\n qty_fulfilled: item.quantity_shipped,\n qty,\n image: {\n url: item.product_url_key,\n id: null,\n label: null,\n },\n order_id: order.id,\n created_at: null,\n updated_at: null,\n product_id: null,\n parent_item_id: null,\n sku: item.product_sku,\n name: item.product_name,\n weight: null,\n price: item.product_sale_price.value,\n discount_percent: Math.floor(discount / item.product_sale_price.value * 100),\n discount_amount: discount,\n tax_percent: null,\n tax_amount: null,\n row_total: rowTotal,\n row_total_with_discount: rowTotalWithDiscount,\n row_weight: null,\n tax_before_discount: null,\n ...transformAdditionalItemFields(item),\n };\n}\n\nfunction transformAddress(address: MagentoOrderAddress, order: MagentoOrder): DaffOrderAddress {\n return {\n order_id: order.id,\n prefix: address.prefix,\n suffix: address.suffix,\n firstname: address.firstname,\n middlename: address.middlename,\n lastname: address.lastname,\n telephone: address.telephone,\n email: null,\n street: address.street[0],\n street2: address.street[1],\n city: address.city,\n region: address.region_code,\n country: address.country_code,\n postcode: address.postcode,\n };\n}\n\nfunction transformShipmentItem(shipmentItem: MagentoOrderShipmentItem, order: MagentoOrder): DaffOrderShipmentItem {\n return {\n item: transformItem(shipmentItem.order_item, order, shipmentItem.quantity_shipped),\n qty: shipmentItem.quantity_shipped,\n };\n}\n\nfunction transformShipmentTracking(tracking: MagentoOrderShipmentTracking): DaffOrderShipmentTracking {\n return {\n tracking_number: tracking.number,\n tracking_url: null,\n carrier: tracking.carrier,\n title: tracking.title,\n carrier_logo: null,\n };\n}\n\nfunction transformShipment(shipment: MagentoOrderShipment, order: MagentoOrder): DaffOrderShipment {\n return {\n carrier: order.carrier,\n carrier_title: null,\n code: null,\n method: order.shipping_method,\n method_description: null,\n tracking: shipment.tracking.map(transformShipmentTracking),\n items: shipment.items.map(item => transformShipmentItem(item, order)),\n };\n}\n\nfunction transformPayment(payment: MagentoOrderPayment, order: MagentoOrder): DaffOrderPayment {\n const findAdditionalData = key => {\n const index = payment.additional_data.findIndex(({ name }) => name === key);\n\n return index > -1 ? payment.additional_data[index].value : null;\n };\n return {\n id: null,\n payment_id: null,\n order_id: order.id,\n created_at: null,\n updated_at: null,\n method: payment.type,\n cc_type: findAdditionalData('cc_type'),\n cc_last4: findAdditionalData('cc_last4'),\n cc_owner: findAdditionalData('cc_owner'),\n cc_exp_month: findAdditionalData('cc_exp_month'),\n cc_exp_year: findAdditionalData('cc_exp_year'),\n };\n}\n\nfunction transformInvoiceItem(invoiceItem: MagentoOrderInvoiceItem, order: MagentoOrder): DaffOrderShipmentItem {\n return {\n item: transformItem(invoiceItem.order_item, order, invoiceItem.quantity_invoiced),\n qty: invoiceItem.quantity_invoiced,\n };\n}\n\nfunction transformInvoice(invoice: MagentoOrderInvoice, order: MagentoOrder, payment: MagentoOrderPayment): DaffOrderInvoice {\n return {\n totals: transformTotals(invoice.total),\n billing_address: transformAddress(order.billing_address, order),\n shipping_address: transformAddress(order.shipping_address, order),\n payment: transformPayment(payment, order),\n items: invoice.items.map(item => transformInvoiceItem(item, order)),\n shipping_method: null,\n };\n}\n\nfunction transformCreditItem(creditItem: MagentoOrderCreditItem, order: MagentoOrder): DaffOrderShipmentItem {\n return {\n item: transformItem(creditItem.order_item, order, creditItem.quantity_refunded),\n qty: creditItem.quantity_refunded,\n };\n}\n\nfunction transformCredit(credit: MagentoOrderCredit, order: MagentoOrder): DaffOrderInvoice {\n return {\n totals: transformTotals(credit.total),\n billing_address: transformAddress(order.billing_address, order),\n shipping_address: transformAddress(order.shipping_address, order),\n payment: transformPayment(order.payment_methods[0], order),\n items: credit.items.map(item => transformCreditItem(item, order)),\n shipping_method: null,\n };\n}\n\n/**\n * Transforms the MagentoOrder from the magento order query into a DaffOrder.\n */\nexport function daffMagentoTransformOrder(order: MagentoOrder): DaffOrder {\n return {\n extra_attributes: order,\n\n id: order.number,\n customer_id: null,\n updated_at: null,\n created_at: order.order_date,\n status: order.status,\n\n totals: transformTotals(order.total),\n applied_codes: order.total.discounts.map(transformCouponDiscount),\n items: order.items.map(item => transformItem(item, order, item.quantity_ordered)),\n billing_addresses: [\n transformAddress(order.billing_address, order),\n ],\n shipping_addresses: [\n transformAddress(order.shipping_address, order),\n ],\n shipments: order.shipments.map(shipment => transformShipment(shipment, order)),\n payment: transformPayment(order.payment_methods[0], order),\n // TODO: find out if the index is the correct payment for invoice\n invoices: order.invoices.map((invoice, index) => transformInvoice(invoice, order, order.payment_methods[index])),\n credits: order.credit_memos.map(credit => transformCredit(credit, order)),\n };\n}\n","import {\n MagentoOrderBundleItemSelectedOption,\n MagentoOrderItem,\n} from './order-item';\n\nexport type MagentoOrderInvoiceItemTypenames =\n 'InvoiceItem' |\n 'BundleInvoiceItem' |\n 'GiftCardInvoiceItem' |\n 'DownloadableInvoiceItem';\n\nexport interface MagentoOrderInvoiceItem {\n __typename?: MagentoOrderInvoiceItemTypenames;\n order_item: MagentoOrderItem;\n quantity_invoiced: number;\n};\n\nexport interface MagentoOrderInvoiceBundleItem extends MagentoOrderInvoiceItem {\n bundle_options: MagentoOrderBundleItemSelectedOption[];\n};\n","import {\n MagentoOrderBundleItemSelectedOption,\n MagentoOrderItem,\n} from './order-item';\n\nexport type MagentoOrderShipmentItemTypenames =\n 'ShipmentItem' |\n 'BundleShipmentItem' |\n 'GiftCardShipmentItem';\n\nexport interface MagentoOrderShipmentItem {\n __typename?: MagentoOrderShipmentItemTypenames;\n order_item: MagentoOrderItem;\n quantity_shipped: number;\n};\n\nexport interface MagentoOrderShipmentBundleItem extends MagentoOrderShipmentItem {\n bundle_options: MagentoOrderBundleItemSelectedOption[];\n};\n","import { gql } from 'apollo-angular';\n\n\nexport const orderAddressFragment = gql`\n fragment orderAddress on OrderAddress {\n city\n company\n country_code\n fax\n firstname\n middlename\n lastname\n postcode\n prefix\n region\n region_code\n street\n suffix\n telephone\n }\n`;\n","import { gql } from 'apollo-angular';\n\nexport const orderBundleItemSelectedOptionFragment = gql`\n fragment orderBundleItemSelectedOption on ItemSelectedBundleOption {\n label\n values {\n product_name\n }\n }\n`;\n\nexport const orderItemFragment = gql`\n fragment orderItem on OrderItemInterface {\n quantity_ordered\n quantity_canceled\n quantity_shipped\n quantity_invoiced\n product_url_key\n product_sku\n product_name\n product_type\n product_sale_price {\n value\n }\n discounts {\n amount {\n value\n }\n }\n selected_options {\n label\n value\n }\n ... on BundleOrderItem {\n bundle_options {\n ...orderBundleItemSelectedOption\n }\n }\n }\n ${orderBundleItemSelectedOptionFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderCreditItemFragment = gql`\n fragment orderCreditItem on CreditMemoItemInterface {\n quantity_refunded\n order_item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderCreditTotalFragment = gql`\n fragment orderCreditTotal on CreditMemoTotal {\n discounts {\n amount {\n value\n }\n label\n }\n grand_total {\n value\n }\n subtotal {\n value\n }\n total_tax {\n value\n }\n total_shipping {\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderCreditItemFragment } from './order-credit-item';\nimport { orderCreditTotalFragment } from './order-credit-total';\n\nexport const orderCreditFragment = gql`\n fragment orderCredit on CreditMemo {\n items {\n ...orderCreditItem\n }\n total {\n ...orderCreditTotal\n }\n }\n ${orderCreditItemFragment}\n ${orderCreditTotalFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderInvoiceItemFragment = gql`\n fragment orderInvoiceItem on InvoiceItemInterface {\n quantity_invoiced\n order_item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderInvoiceTotalFragment = gql`\n fragment orderInvoiceTotal on InvoiceTotal {\n discounts {\n amount {\n value\n }\n label\n }\n grand_total {\n value\n }\n subtotal {\n value\n }\n total_tax {\n value\n }\n total_shipping {\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderInvoiceItemFragment } from './order-invoice-item';\nimport { orderInvoiceTotalFragment } from './order-invoice-total';\n\nexport const orderInvoiceFragment = gql`\n fragment orderInvoice on Invoice {\n items {\n ...orderInvoiceItem\n }\n total {\n ...orderInvoiceTotal\n }\n }\n ${orderInvoiceItemFragment}\n ${orderInvoiceTotalFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderPaymentFragment = gql`\n fragment orderPayment on OrderPaymentMethod {\n name\n type\n additional_data {\n name\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderItemFragment } from './order-item';\n\nexport const orderShipmentItemFragment = gql`\n fragment orderShipmentItem on ShipmentItemInterface {\n quantity_shipped\n order_item {\n ...orderItem\n }\n }\n ${orderItemFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderShipmentTrackingFragment = gql`\n fragment orderShipmentTracking on ShipmentTracking {\n number\n carrier\n title\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderShipmentItemFragment } from './order-shipment-item';\nimport { orderShipmentTrackingFragment } from './order-shipment-tracking';\n\nexport const orderShipmentFragment = gql`\n fragment orderShipment on OrderShipment {\n tracking {\n ...orderShipmentTracking\n }\n items {\n ...orderShipmentItem\n }\n }\n ${orderShipmentItemFragment}\n ${orderShipmentTrackingFragment}\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const orderTotalFragment = gql`\n fragment orderTotal on OrderTotal {\n discounts {\n amount {\n value\n }\n label\n }\n grand_total {\n value\n }\n subtotal {\n value\n }\n total_tax {\n value\n }\n total_shipping {\n value\n }\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { orderAddressFragment } from './order-address';\nimport { orderCreditFragment } from './order-credit';\nimport { orderInvoiceFragment } from './order-invoice';\nimport { orderItemFragment } from './order-item';\nimport { orderPaymentFragment } from './order-payment';\nimport { orderShipmentFragment } from './order-shipment';\nimport { orderTotalFragment } from './order-total';\n\nexport const orderFragment = gql`\n fragment order on GraycoreGuestOrder {\n id\n order_date\n status\n carrier\n number\n shipping_method\n items {\n ...orderItem\n }\n billing_address {\n ...orderAddress\n }\n shipping_address {\n ...orderAddress\n }\n shipments {\n ...orderShipment\n }\n payment_methods {\n ...orderPayment\n }\n invoices {\n ...orderInvoice\n }\n credit_memos {\n ...orderCredit\n }\n total {\n ...orderTotal\n }\n }\n ${orderItemFragment}\n ${orderShipmentFragment}\n ${orderPaymentFragment}\n ${orderInvoiceFragment}\n ${orderCreditFragment}\n ${orderAddressFragment}\n ${orderTotalFragment}\n`;\n","import { gql } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\n\nimport {\n daffBuildFragmentNameSpread,\n daffBuildFragmentDefinition,\n} from '@daffodil/core/graphql';\n\nimport { orderFragment } from './fragments/public_api';\n\nexport const getGuestOrders = (extraOrderFragments: DocumentNode[] = []) => gql`\n query MagentoGetGuestOrders($cartId: String!) {\n graycoreGuestOrders(cartId: $cartId) {\n items {\n ...order\n ${daffBuildFragmentNameSpread(...extraOrderFragments)}\n }\n }\n }\n ${orderFragment}\n ${daffBuildFragmentDefinition(...extraOrderFragments)}\n`;\n","import { InjectionToken } from '@angular/core';\nimport { DocumentNode } from 'graphql';\n\n/**\n * An multi-provider injection token for providing extra GraphQL fragments that will be spread into order queries.\n * This can be used to retrieve additional data that is not covered by the standard Daffodil interfaces.\n * The data will appear in DaffOrder#extra_attributes.\n *\n * Fragment structure is platform-specific and this feature should be used with care.\n */\nexport const DaffMagentoExtraOrderFragments = new InjectionToken<DocumentNode[]>('DaffMagentoExtraOrderFragments', { factory: () => []});\n","export enum MagentoOrderGraphQlErrorCode {\n CART_NOT_FOUND = 'graphql-no-such-entity',\n}\n","import { DaffCartNotFoundError } from '@daffodil/cart/driver';\nimport { DaffErrorCodeMap } from '@daffodil/core';\n\nimport { MagentoOrderGraphQlErrorCode } from './codes';\n\nexport const DaffOrderMagentoErrorMap: DaffErrorCodeMap = {\n [MagentoOrderGraphQlErrorCode.CART_NOT_FOUND]: DaffCartNotFoundError,\n};\n","import { daffTransformMagentoError } from '@daffodil/driver/magento';\n\nimport { DaffOrderMagentoErrorMap } from './map';\n\nexport function transformMagentoOrderError(error: any) {\n return daffTransformMagentoError(error, DaffOrderMagentoErrorMap);\n}\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffOrderInvalidAPIResponseError } from '@daffodil/order/driver';\n\nimport { MagentoGetGuestOrdersResponse } from '../queries/public_api';\n\nexport const validateGetOrdersResponse = (response: ApolloQueryResult<MagentoGetGuestOrdersResponse>) => {\n if (response.data?.graycoreGuestOrders?.items) {\n if (response.data.graycoreGuestOrders.items.reduce((acc, order) => acc && !!(\n order.billing_address\n && order.shipping_address\n && order.payment_methods\n ), true)) {\n return response;\n } else {\n throw new DaffOrderInvalidAPIResponseError('One of the orders does not contain required fields.');\n }\n } else {\n throw new DaffOrderInvalidAPIResponseError('Get orders response does not contain a valid list of orders.');\n }\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport { DocumentNode } from 'graphql';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffCart } from '@daffodil/cart';\nimport { DaffOrder } from '@daffodil/order';\nimport {\n DaffOrderServiceInterface,\n DaffOrderNotFoundError,\n} from '@daffodil/order/driver';\n\nimport { transformMagentoOrderError } from './errors/transform';\nimport { DaffMagentoExtraOrderFragments } from './injection-tokens/public_api';\nimport {\n getGuestOrders,\n MagentoGetGuestOrdersResponse,\n} from './queries/public_api';\nimport { daffMagentoTransformOrder } from './transforms/responses/order';\nimport { validateGetOrdersResponse } from './validators/public_api';\n\n/**\n * A service for making Magento GraphQL queries for orders.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderMagentoService implements DaffOrderServiceInterface {\n constructor(\n private apollo: Apollo,\n @Inject(DaffMagentoExtraOrderFragments) public extraOrderFragments: DocumentNode[],\n ) {}\n\n list(cartId?: DaffCart['id']): Observable<DaffOrder[]> {\n return this.apollo.query<MagentoGetGuestOrdersResponse>({\n query: getGuestOrders(this.extraOrderFragments),\n variables: {\n cartId,\n },\n }).pipe(\n map(validateGetOrdersResponse),\n map(result => result.data.graycoreGuestOrders.items.map(daffMagentoTransformOrder)),\n catchError(err => throwError(() => transformMagentoOrderError(err))),\n );\n }\n\n get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder> {\n return this.list(cartId).pipe(\n map(orders => {\n for (const order of orders) {\n if (order.id === orderId) {\n return order;\n }\n }\n\n // order not found\n throw new DaffOrderNotFoundError(`Could not find an order with ID ${orderId}`);\n }),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffOrderDriver } from '@daffodil/order/driver';\n\nimport { DaffOrderMagentoService } from './order.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffOrderMagentoDriverModule {\n static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule> {\n return {\n ngModule: DaffOrderMagentoDriverModule,\n providers: [\n {\n provide: DaffOrderDriver,\n useExisting: DaffOrderMagentoService,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n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