@wearejh/m2-pwa-cart 0.22.0 → 0.23.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 +16 -0
- package/lib/epics/cartItemDelete.epic.ts +2 -2
- package/lib/epics/cartItemUpdate.epic.ts +2 -2
- package/lib/epics/guestCartCreateEpic.ts +2 -2
- package/lib/utils/commitItemToCart.ts +2 -2
- package/lib/utils/fetchMineCart.ts +3 -3
- package/lib/utils/fetchQuestCart.ts +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.23.0](https://github.com/WeareJH/mage-mono/compare/v0.22.1...v0.23.0) (2024-04-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @wearejh/m2-pwa-cart
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.22.1](https://github.com/WeareJH/mage-mono/compare/v0.22.0...v0.22.1) (2023-12-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @wearejh/m2-pwa-cart
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [0.22.0](https://github.com/WeareJH/mage-mono/compare/v0.21.0...v0.22.0) (2023-10-11)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @wearejh/m2-pwa-cart
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable, of } from 'rxjs';
|
|
2
2
|
import { mergeMap, withLatestFrom } from 'rxjs/operators';
|
|
3
|
-
import { execute as deleteMineItemAjax } from '@wearejh/swagger-rxjs/lib/
|
|
4
|
-
import { execute as deleteGuestItemAjax } from '@wearejh/swagger-rxjs/lib/
|
|
3
|
+
import { execute as deleteMineItemAjax } from '@wearejh/swagger-rxjs/lib/DeleteV1CartsMineItemsItemId';
|
|
4
|
+
import { execute as deleteGuestItemAjax } from '@wearejh/swagger-rxjs/lib/DeleteV1GuestcartsCartIdItemsItemId';
|
|
5
5
|
import { ofType } from 'redux-observable';
|
|
6
6
|
import { EpicDeps } from '@wearejh/m2-pwa-engine/lib/types';
|
|
7
7
|
import { catchableUnauthenticated } from '@wearejh/m2-pwa-user/lib/utils/user.utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable, of } from 'rxjs';
|
|
2
2
|
import { mergeMap, withLatestFrom } from 'rxjs/operators';
|
|
3
|
-
import { execute as updateMineItemAjax } from '@wearejh/swagger-rxjs/lib/
|
|
4
|
-
import { execute as updateGuestItemAjax } from '@wearejh/swagger-rxjs/lib/
|
|
3
|
+
import { execute as updateMineItemAjax } from '@wearejh/swagger-rxjs/lib/PutV1CartsMineItemsItemId';
|
|
4
|
+
import { execute as updateGuestItemAjax } from '@wearejh/swagger-rxjs/lib/PutV1GuestcartsCartIdItemsItemId';
|
|
5
5
|
import { ofType } from 'redux-observable';
|
|
6
6
|
import { EpicDeps } from '@wearejh/m2-pwa-engine/lib/types';
|
|
7
7
|
import { catchableUnauthenticated } from '@wearejh/m2-pwa-user/lib/utils/user.utils';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable, concat, of, forkJoin, EMPTY } from 'rxjs';
|
|
2
2
|
import { mergeMap, switchMap, map, catchError } from 'rxjs/operators';
|
|
3
3
|
import { ofType } from 'redux-observable';
|
|
4
|
-
import { execute as createGuestCartAjax } from '@wearejh/swagger-rxjs/lib/
|
|
5
|
-
import { execute as getTotals } from '@wearejh/swagger-rxjs/lib/
|
|
4
|
+
import { execute as createGuestCartAjax } from '@wearejh/swagger-rxjs/lib/PostV1Guestcarts';
|
|
5
|
+
import { execute as getTotals } from '@wearejh/swagger-rxjs/lib/GetV1GuestcartsCartIdTotals';
|
|
6
6
|
import { DataStatus, EpicDeps } from '@wearejh/m2-pwa-engine/lib/types';
|
|
7
7
|
|
|
8
8
|
import { CartActions, Msg } from '../cart.actions';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { catchError, map, mapTo, mergeMap, take } from 'rxjs/operators';
|
|
2
2
|
import { concat, Observable, of, race } from 'rxjs';
|
|
3
|
-
import { execute as guestItemAddAjax } from '@wearejh/swagger-rxjs/lib/
|
|
4
|
-
import { execute as mineItemAddAjax } from '@wearejh/swagger-rxjs/lib/
|
|
3
|
+
import { execute as guestItemAddAjax } from '@wearejh/swagger-rxjs/lib/PostV1GuestcartsCartIdItems';
|
|
4
|
+
import { execute as mineItemAddAjax } from '@wearejh/swagger-rxjs/lib/PostV1CartsMineItems';
|
|
5
5
|
import { ofType } from 'redux-observable';
|
|
6
6
|
import { QuoteDataCartItemInterface } from '@wearejh/swagger-rxjs/lib/Definitions';
|
|
7
7
|
import { DataStatus, EpicDeps, MessageType } from '@wearejh/m2-pwa-engine/lib/types';
|
|
@@ -2,9 +2,9 @@ import { forkJoin, Notification, Observable, throwError } from 'rxjs';
|
|
|
2
2
|
import { catchError, delay, map, materialize, mergeMap, retryWhen, take } from 'rxjs/operators';
|
|
3
3
|
import { EpicDeps } from '@wearejh/m2-pwa-engine/lib/types';
|
|
4
4
|
import { QuoteDataTotalsInterface } from '@wearejh/swagger-rxjs/lib/Definitions';
|
|
5
|
-
import { execute as createCart } from '@wearejh/swagger-rxjs/lib/
|
|
6
|
-
import { execute as getCartTotalsAjax } from '@wearejh/swagger-rxjs/lib/
|
|
7
|
-
import { execute as getCart } from '@wearejh/swagger-rxjs/lib/
|
|
5
|
+
import { execute as createCart } from '@wearejh/swagger-rxjs/lib/PostV1CartsMine';
|
|
6
|
+
import { execute as getCartTotalsAjax } from '@wearejh/swagger-rxjs/lib/GetV1CartsMineTotals';
|
|
7
|
+
import { execute as getCart } from '@wearejh/swagger-rxjs/lib/GetV1CartsMine';
|
|
8
8
|
|
|
9
9
|
export type Output = Notification<{ totals: QuoteDataTotalsInterface; cartId: string | number }>;
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@ import { Notification, Observable, throwError } from 'rxjs';
|
|
|
2
2
|
import { catchError, delay, map, materialize, mergeMap, retryWhen, take } from 'rxjs/operators';
|
|
3
3
|
import { EpicDeps } from '@wearejh/m2-pwa-engine/lib/types';
|
|
4
4
|
import { QuoteDataTotalsInterface } from '@wearejh/swagger-rxjs/lib/Definitions';
|
|
5
|
-
import { execute as getTotalsAjax } from '@wearejh/swagger-rxjs/lib/
|
|
6
|
-
import { execute as createCart } from '@wearejh/swagger-rxjs/lib/
|
|
5
|
+
import { execute as getTotalsAjax } from '@wearejh/swagger-rxjs/lib/GetV1GuestcartsCartIdTotals';
|
|
6
|
+
import { execute as createCart } from '@wearejh/swagger-rxjs/lib/PostV1Guestcarts';
|
|
7
7
|
|
|
8
8
|
export type Output = Notification<{ totals: QuoteDataTotalsInterface; cartId: string | number }>;
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wearejh/m2-pwa-cart",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "m2 cart",
|
|
5
5
|
"author": "Shane Osbourne <shane.osbourne8@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@wearejh/m2-pwa-engine": "^0.
|
|
21
|
-
"@wearejh/m2-pwa-user": "^0.
|
|
22
|
-
"@wearejh/rx-form": "^0.
|
|
23
|
-
"@wearejh/swagger-rxjs": "^0.
|
|
20
|
+
"@wearejh/m2-pwa-engine": "^0.23.0",
|
|
21
|
+
"@wearejh/m2-pwa-user": "^0.23.0",
|
|
22
|
+
"@wearejh/rx-form": "^0.23.0",
|
|
23
|
+
"@wearejh/swagger-rxjs": "^0.23.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "bd042cbf54cdc079b6a0ea4f70b00465957f06a3"
|
|
26
26
|
}
|