@scayle/storefront-core 7.29.0 → 7.30.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 7.30.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Allow `null` values for `promotionId` within the basket payload
8
+
3
9
  ## 7.29.0
4
10
 
5
11
  ### Minor Changes
@@ -16,19 +16,19 @@ export declare class OAuthClient {
16
16
  * Register a user and retrieve a token set
17
17
  * @param payload
18
18
  */
19
- register(payload: RegisterRequest): Oauth;
19
+ register(payload: RegisterRequest): Promise<Oauth>;
20
20
  /**
21
21
  * Execute a user login on the OAuth API and receive a token set
22
22
  * @param payload
23
23
  */
24
24
  login(payload: LoginRequest & {
25
25
  shopId: string;
26
- }): Oauth;
26
+ }): Promise<Oauth>;
27
27
  /**
28
28
  * Execute a guest user login on the OAuth API and receive a token set
29
29
  * @param payload
30
30
  */
31
- guestLogin(payload: GuestRequest): Oauth;
31
+ guestLogin(payload: GuestRequest): Promise<Oauth>;
32
32
  /**
33
33
  * Send a password reset email
34
34
  * @param payload
@@ -38,7 +38,7 @@ export declare class OAuthClient {
38
38
  * Update password by hash
39
39
  * @param payload
40
40
  */
41
- updatePasswordByHash(payload: UpdatePasswordByHashRequest): Oauth;
41
+ updatePasswordByHash(payload: UpdatePasswordByHashRequest): Promise<Oauth>;
42
42
  /**
43
43
  * Generate a new access token via a refresh token
44
44
  * @param payload
@@ -13,7 +13,7 @@ export type AddOrUpdateItemType = {
13
13
  };
14
14
  itemGroup?: ItemGroup;
15
15
  includeItemsWithoutProductData?: boolean;
16
- promotionId?: string;
16
+ promotionId?: string | null;
17
17
  };
18
18
  export interface BasketWithOptions extends BasketWith {
19
19
  pricePromotionKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "7.29.0",
3
+ "version": "7.30.0",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -66,7 +66,7 @@
66
66
  "utility-types": "^3.10.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@scayle/eslint-config-storefront": "3.2.5",
69
+ "@scayle/eslint-config-storefront": "3.2.6",
70
70
  "@scayle/prettier-config-storefront": "2.0.2",
71
71
  "@types/crypto-js": "4.2.1",
72
72
  "@types/jest": "29.5.11",
@@ -81,7 +81,7 @@
81
81
  "publint": "0.2.6",
82
82
  "rimraf": "5.0.5",
83
83
  "ts-jest": "29.1.1",
84
- "ts-node": "10.9.1",
84
+ "ts-node": "10.9.2",
85
85
  "typescript": "5.3.3",
86
86
  "unstorage": "1.10.1"
87
87
  },