@scayle/storefront-core 7.34.1 → 7.35.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.35.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Change `oauthForgetPassword` payload signature to accept `email` only
8
+
3
9
  ## 7.34.1
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import type { Optional } from 'utility-types';
2
- import type { GuestRequest, LoginRequest, ParamRpcHandler, RegisterRequest, RpcHandler, SendResetPasswordEmailRequest, UpdatePasswordByHashRequest } from '../../types';
2
+ import type { GuestRequest, LoginRequest, ParamRpcHandler, RegisterRequest, RpcHandler, UpdatePasswordByHashRequest } from '../../types';
3
3
  /**
4
4
  * Ensure error is a fetch error with one of the status codes
5
5
  */
@@ -13,7 +13,9 @@ export declare const refreshAccessToken: RpcHandler<{
13
13
  export declare const oauthRevokeToken: RpcHandler<{
14
14
  result: boolean;
15
15
  }>;
16
- export declare const oauthForgetPassword: RpcHandler<SendResetPasswordEmailRequest, {
16
+ export declare const oauthForgetPassword: RpcHandler<{
17
+ email: string;
18
+ }, {
17
19
  success: boolean;
18
20
  }>;
19
21
  export declare const updatePasswordByHash: ParamRpcHandler<Optional<UpdatePasswordByHashRequest, 'shop_id'>, undefined>;
@@ -105,6 +105,23 @@ export type NumberOfInstallmentsChosenByTheCustomerForTheOrder = number;
105
105
  export type IfTrueTheCustomerElectedToHaveADelayInPaymentCapture = boolean;
106
106
  export type TimestampOfOrderCreation = string;
107
107
  export type TimestampOfLastOrderUpdate = string;
108
+ export interface ThisFieldHoldsDetailsAboutTheIncludedVATTax {
109
+ amount: TheIncludedVATAmount;
110
+ rate: TheIncludedVATRateInPercentAsIntegerRepresentation;
111
+ }
112
+ /**
113
+ * When an item cannot be shipped within the regular delivery timeframe, and the warehouse is already aware of this, prior to the customer placing the order (ie it is not an unintentionally delayed delivery). This is generally the case when the item is out of stock and: the warehouse is waiting for incoming returns to restock the item, the warehouse has ordered fresh stocks from the supplier/manufacturer and is waiting for these to be shipped to the warehouse.
114
+ */
115
+ export interface DeliveryForecastFromWarehouse {
116
+ deliverable?: {
117
+ key?: string;
118
+ [k: string]: unknown;
119
+ };
120
+ subsequentDelivery?: {
121
+ key?: 'endOfJanuary' | 'endOfFebruary' | 'endOfMarch' | 'endOfApril' | 'endOfMay' | 'endOfJune' | 'endOfJuly' | 'endOfAugust' | 'endOfSeptember' | 'endOfOctober' | 'endOfNovember' | 'endOfDecember' | 'midOfJanuary' | 'midOfFebruary' | 'midOfMarch' | 'midOfApril' | 'midOfMay' | 'midOfJune' | 'midOfJuly' | 'midOfAugust' | 'midOfSeptember' | 'midOfOctober' | 'midOfNovember' | 'midOfDecember' | 'easter' | 'christmas' | 'available' | 'directShipping' | 'outsold';
122
+ [k: string]: unknown;
123
+ };
124
+ }
108
125
  export interface Order {
109
126
  /**
110
127
  * This `id` can be applied as a parameter on the url to retrieve an individual order in the [Fetch Order by ID](#fetch-order-by-id) endpoint.
@@ -535,20 +552,3 @@ export interface Order {
535
552
  createdAt: TimestampOfOrderCreation;
536
553
  updatedAt: TimestampOfLastOrderUpdate;
537
554
  }
538
- export interface ThisFieldHoldsDetailsAboutTheIncludedVATTax {
539
- amount: TheIncludedVATAmount;
540
- rate: TheIncludedVATRateInPercentAsIntegerRepresentation;
541
- }
542
- /**
543
- * When an item cannot be shipped within the regular delivery timeframe, and the warehouse is already aware of this, prior to the customer placing the order (ie it is not an unintentionally delayed delivery). This is generally the case when the item is out of stock and: the warehouse is waiting for incoming returns to restock the item, the warehouse has ordered fresh stocks from the supplier/manufacturer and is waiting for these to be shipped to the warehouse.
544
- */
545
- export interface DeliveryForecastFromWarehouse {
546
- deliverable?: {
547
- key?: string;
548
- [k: string]: unknown;
549
- };
550
- subsequentDelivery?: {
551
- key?: 'endOfJanuary' | 'endOfFebruary' | 'endOfMarch' | 'endOfApril' | 'endOfMay' | 'endOfJune' | 'endOfJuly' | 'endOfAugust' | 'endOfSeptember' | 'endOfOctober' | 'endOfNovember' | 'endOfDecember' | 'midOfJanuary' | 'midOfFebruary' | 'midOfMarch' | 'midOfApril' | 'midOfMay' | 'midOfJune' | 'midOfJuly' | 'midOfAugust' | 'midOfSeptember' | 'midOfOctober' | 'midOfNovember' | 'midOfDecember' | 'easter' | 'christmas' | 'available' | 'directShipping' | 'outsold';
552
- [k: string]: unknown;
553
- };
554
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "7.34.1",
3
+ "version": "7.35.0",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "test:ci": "vitest --run --passWithNoTests --coverage --reporter=default --reporter=junit"
60
60
  },
61
61
  "dependencies": {
62
- "@aboutyou/backbone": "16.0.1",
62
+ "@aboutyou/backbone": "16.0.2",
63
63
  "crypto-js": "4.2.0",
64
64
  "jose": "^4.14.4",
65
65
  "radash": "^11.0.0",
@@ -72,9 +72,9 @@
72
72
  "@scayle/eslint-config-storefront": "3.2.6",
73
73
  "@scayle/prettier-config-storefront": "2.0.2",
74
74
  "@types/crypto-js": "4.2.1",
75
- "@types/node": "20.10.6",
75
+ "@types/node": "20.10.7",
76
76
  "@types/webpack-env": "1.18.4",
77
- "@vitest/coverage-v8": "1.1.1",
77
+ "@vitest/coverage-v8": "1.1.3",
78
78
  "eslint": "8.56.0",
79
79
  "eslint-formatter-gitlab": "5.1.0",
80
80
  "prettier": "3.0.0",
@@ -84,7 +84,7 @@
84
84
  "typescript": "5.3.3",
85
85
  "unbuild": "2.0.0",
86
86
  "unstorage": "1.10.1",
87
- "vitest": "1.1.1"
87
+ "vitest": "1.1.3"
88
88
  },
89
89
  "optionalDependencies": {
90
90
  "redis": "4"