@open-tender/cloud 0.1.31 → 0.1.32

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,7 +1,7 @@
1
1
  import { AppState } from '../../app';
2
2
  import { Order, OrderRating, RequestError, RequestStatus } from '@open-tender/types';
3
3
  export interface CustomerOrderState {
4
- entity: Order | Partial<Order>;
4
+ entity: Order | null;
5
5
  error: RequestError;
6
6
  loading: RequestStatus;
7
7
  }
@@ -34,7 +34,7 @@ export declare const updateCustomerOrderRating: import("@reduxjs/toolkit").Async
34
34
  }>;
35
35
  export declare const resetCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"order/resetCustomerOrder">, resetCustomerOrderError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"order/resetCustomerOrderError">, setCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "order/setCustomerOrder">;
36
36
  export declare const selectCustomerOrder: (state: AppState) => {
37
- order: Order | Partial<Order>;
37
+ order: Order | null;
38
38
  loading: RequestStatus;
39
39
  error: RequestError;
40
40
  };
@@ -9,7 +9,7 @@ const types_2 = require("@open-tender/types");
9
9
  const account_1 = require("./account");
10
10
  const notifications_1 = require("../notifications");
11
11
  const initialState = {
12
- entity: {},
12
+ entity: null,
13
13
  error: null,
14
14
  loading: 'idle'
15
15
  };
@@ -1,5 +1,5 @@
1
1
  import { AppState } from '../app';
2
- import { Discounts, Discount, RequestError, RequestStatus } from '@open-tender/types';
2
+ import { Discount, Discounts, RequestError, RequestStatus } from '@open-tender/types';
3
3
  export interface DealState {
4
4
  entities: Discounts;
5
5
  error: RequestError;
@@ -1,7 +1,7 @@
1
1
  import { AppState } from '../../app';
2
2
  import { Order, OrderRating, RequestError, RequestStatus } from '@open-tender/types';
3
3
  export interface CustomerOrderState {
4
- entity: Order | Partial<Order>;
4
+ entity: Order | null;
5
5
  error: RequestError;
6
6
  loading: RequestStatus;
7
7
  }
@@ -34,7 +34,7 @@ export declare const updateCustomerOrderRating: import("@reduxjs/toolkit").Async
34
34
  }>;
35
35
  export declare const resetCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"order/resetCustomerOrder">, resetCustomerOrderError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"order/resetCustomerOrderError">, setCustomerOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "order/setCustomerOrder">;
36
36
  export declare const selectCustomerOrder: (state: AppState) => {
37
- order: Order | Partial<Order>;
37
+ order: Order | null;
38
38
  loading: RequestStatus;
39
39
  error: RequestError;
40
40
  };
@@ -5,7 +5,7 @@ import { MISSING_CUSTOMER } from '@open-tender/types';
5
5
  import { checkAuth, selectToken } from './account';
6
6
  import { showNotification } from '../notifications';
7
7
  const initialState = {
8
- entity: {},
8
+ entity: null,
9
9
  error: null,
10
10
  loading: 'idle'
11
11
  };
@@ -1,5 +1,5 @@
1
1
  import { AppState } from '../app';
2
- import { Discounts, Discount, RequestError, RequestStatus } from '@open-tender/types';
2
+ import { Discount, Discounts, RequestError, RequestStatus } from '@open-tender/types';
3
3
  export interface DealState {
4
4
  entities: Discounts;
5
5
  error: RequestError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
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",
@@ -49,8 +49,8 @@
49
49
  "typescript": "^4.8.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@open-tender/types": "^0.2.18",
53
- "@open-tender/utils": "^0.1.80",
52
+ "@open-tender/types": "^0.2.19",
53
+ "@open-tender/utils": "^0.1.83",
54
54
  "@reduxjs/toolkit": "^1.8.5",
55
55
  "react": "^18.2.0"
56
56
  },