@open-tender/cloud 0.1.14 → 0.1.16
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppState } from '../../app';
|
|
2
|
-
import {
|
|
2
|
+
import { GiftCardPurchase, GiftCards, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
3
|
export interface CustomerGiftCardsState {
|
|
4
4
|
entities: GiftCards;
|
|
5
5
|
error: RequestError;
|
|
@@ -28,7 +28,7 @@ export declare const fetchCustomerGiftCards: import("@reduxjs/toolkit").AsyncThu
|
|
|
28
28
|
}>;
|
|
29
29
|
export declare const updateCustomerGiftCard: import("@reduxjs/toolkit").AsyncThunk<GiftCards, {
|
|
30
30
|
giftCardId: number;
|
|
31
|
-
data:
|
|
31
|
+
data: GiftCardPurchase;
|
|
32
32
|
callback?: (() => void) | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
state: AppState;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AppState } from '../app';
|
|
2
|
-
import {
|
|
2
|
+
import { GiftCardsPurchase, GiftCardsPurchased, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
3
|
export interface GiftCardsState {
|
|
4
4
|
loading: RequestStatus;
|
|
5
5
|
error: RequestError;
|
|
6
6
|
success: boolean;
|
|
7
|
-
giftCards:
|
|
7
|
+
giftCards: GiftCardsPurchased;
|
|
8
8
|
}
|
|
9
9
|
export declare enum GiftCardsActionType {
|
|
10
10
|
PurchaseGiftCards = "giftCards/purchaseGiftCards"
|
|
11
11
|
}
|
|
12
|
-
export declare const purchaseGiftCards: import("@reduxjs/toolkit").AsyncThunk<
|
|
12
|
+
export declare const purchaseGiftCards: import("@reduxjs/toolkit").AsyncThunk<GiftCardsPurchased, {
|
|
13
13
|
data: GiftCardsPurchase;
|
|
14
14
|
callback?: (() => void) | undefined;
|
|
15
15
|
}, {
|
|
@@ -27,6 +27,6 @@ export declare const selectGiftCards: (state: AppState) => {
|
|
|
27
27
|
success: boolean;
|
|
28
28
|
loading: RequestStatus;
|
|
29
29
|
error: RequestError;
|
|
30
|
-
giftCards:
|
|
30
|
+
giftCards: GiftCardsPurchased;
|
|
31
31
|
};
|
|
32
32
|
export declare const giftCardsReducer: import("redux").Reducer<GiftCardsState, import("redux").AnyAction>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppState } from '../../app';
|
|
2
|
-
import {
|
|
2
|
+
import { GiftCardPurchase, GiftCards, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
3
|
export interface CustomerGiftCardsState {
|
|
4
4
|
entities: GiftCards;
|
|
5
5
|
error: RequestError;
|
|
@@ -28,7 +28,7 @@ export declare const fetchCustomerGiftCards: import("@reduxjs/toolkit").AsyncThu
|
|
|
28
28
|
}>;
|
|
29
29
|
export declare const updateCustomerGiftCard: import("@reduxjs/toolkit").AsyncThunk<GiftCards, {
|
|
30
30
|
giftCardId: number;
|
|
31
|
-
data:
|
|
31
|
+
data: GiftCardPurchase;
|
|
32
32
|
callback?: (() => void) | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
state: AppState;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AppState } from '../app';
|
|
2
|
-
import {
|
|
2
|
+
import { GiftCardsPurchase, GiftCardsPurchased, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
3
|
export interface GiftCardsState {
|
|
4
4
|
loading: RequestStatus;
|
|
5
5
|
error: RequestError;
|
|
6
6
|
success: boolean;
|
|
7
|
-
giftCards:
|
|
7
|
+
giftCards: GiftCardsPurchased;
|
|
8
8
|
}
|
|
9
9
|
export declare enum GiftCardsActionType {
|
|
10
10
|
PurchaseGiftCards = "giftCards/purchaseGiftCards"
|
|
11
11
|
}
|
|
12
|
-
export declare const purchaseGiftCards: import("@reduxjs/toolkit").AsyncThunk<
|
|
12
|
+
export declare const purchaseGiftCards: import("@reduxjs/toolkit").AsyncThunk<GiftCardsPurchased, {
|
|
13
13
|
data: GiftCardsPurchase;
|
|
14
14
|
callback?: (() => void) | undefined;
|
|
15
15
|
}, {
|
|
@@ -27,6 +27,6 @@ export declare const selectGiftCards: (state: AppState) => {
|
|
|
27
27
|
success: boolean;
|
|
28
28
|
loading: RequestStatus;
|
|
29
29
|
error: RequestError;
|
|
30
|
-
giftCards:
|
|
30
|
+
giftCards: GiftCardsPurchased;
|
|
31
31
|
};
|
|
32
32
|
export declare const giftCardsReducer: import("redux").Reducer<GiftCardsState, import("redux").AnyAction>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|