@evenicanpm/storefront-core 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/api-manager/datasources/d365/d365-order.datasource.ts +1 -1
- package/src/api-manager/datasources/d365/d365-organization.datasource.ts +1 -1
- package/src/api-manager/datasources/d365/d365-product.datasource.ts +2 -2
- package/src/api-manager/datasources/d365/d365-user.datasource.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evenicanpm/storefront-core",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Core module for D365/e4 Headless Storefront",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"esbuild": "0.19.11"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8227589295d3d63586f9b26fff8d643b070989b3"
|
|
53
53
|
}
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
type ICallerContext,
|
|
12
12
|
SearchLocation,
|
|
13
13
|
} from "@msdyn365-commerce/retail-proxy";
|
|
14
|
-
import type { IContext } from "@msdyn365-commerce/retail-proxy/dist/Interfaces/ICallerContext";
|
|
15
14
|
import { getSalesOrderDetailsByTransactionIdAsync } from "@msdyn365-commerce/retail-proxy/dist/DataActions/SalesOrdersDataActions.g";
|
|
15
|
+
import type { IContext } from "@msdyn365-commerce/retail-proxy/dist/Interfaces/ICallerContext";
|
|
16
16
|
import uniq from "lodash/uniq";
|
|
17
17
|
|
|
18
18
|
class D365OrderDatasource extends D365DatasourceBase implements OrderApi {
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
testMedia,
|
|
6
6
|
validateAndSetMediaUrls,
|
|
7
7
|
} from "@evenicanpm/storefront-core/src/api-manager/datasources/d365/utils/product-images-utils";
|
|
8
|
+
import type { CategoriesQuery } from "@evenicanpm/storefront-core/src/api-manager/datasources/e4/graphqlRequestSdk";
|
|
8
9
|
import type {
|
|
9
10
|
GetProductByIdInput,
|
|
10
11
|
GetProductByIdsInput,
|
|
@@ -15,7 +16,6 @@ import type {
|
|
|
15
16
|
SearchByCriteriaResponse,
|
|
16
17
|
searchProductsInput,
|
|
17
18
|
} from "@evenicanpm/storefront-core/src/api-manager/schemas/product.schema";
|
|
18
|
-
import type { CategoriesQuery } from "@evenicanpm/storefront-core/src/api-manager/datasources/e4/graphqlRequestSdk";
|
|
19
19
|
import type { ProductApi } from "@evenicanpm/storefront-core/src/api-manager/types/Datasource";
|
|
20
20
|
import {
|
|
21
21
|
executeAction,
|
|
@@ -58,7 +58,7 @@ const setFullProductImgUrl = async (
|
|
|
58
58
|
|
|
59
59
|
class D365ProductDatasource extends D365DatasourceBase implements ProductApi {
|
|
60
60
|
private getRetailContext(context: ICallerContext): IContext {
|
|
61
|
-
return
|
|
61
|
+
return context as unknown as IContext;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -53,7 +53,7 @@ function decodeIdTokenClaims(token: string): IdTokenClaims {
|
|
|
53
53
|
|
|
54
54
|
class D365UserDatasource extends D365DatasourceBase implements UserApi {
|
|
55
55
|
private getRetailContext(context: ICallerContext): IContext {
|
|
56
|
-
return
|
|
56
|
+
return context as unknown as IContext;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
async updateUser(user: User): Promise<User> {
|