@open-tender/cloud 0.4.7 → 0.4.10

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.
@@ -6,7 +6,8 @@ export interface CustomerTplsState {
6
6
  loading: RequestStatus;
7
7
  }
8
8
  export declare enum CustomerTplsActionType {
9
- FetchCustomerTpls = "customer/fetchCustomerTpls"
9
+ FetchCustomerTpls = "customer/fetchCustomerTpls",
10
+ VerifyCustomerTpls = "customer/verifyCustomerTpls"
10
11
  }
11
12
  export declare const fetchCustomerTpls: import("@reduxjs/toolkit").AsyncThunk<TPLS, void, {
12
13
  state: AppState;
@@ -14,6 +14,7 @@ const initialState = {
14
14
  var CustomerTplsActionType;
15
15
  (function (CustomerTplsActionType) {
16
16
  CustomerTplsActionType["FetchCustomerTpls"] = "customer/fetchCustomerTpls";
17
+ CustomerTplsActionType["VerifyCustomerTpls"] = "customer/verifyCustomerTpls";
17
18
  })(CustomerTplsActionType = exports.CustomerTplsActionType || (exports.CustomerTplsActionType = {}));
18
19
  exports.fetchCustomerTpls = (0, toolkit_1.createAsyncThunk)(CustomerTplsActionType.FetchCustomerTpls, (_, { dispatch, getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
19
20
  try {
@@ -29,7 +30,7 @@ exports.fetchCustomerTpls = (0, toolkit_1.createAsyncThunk)(CustomerTplsActionTy
29
30
  return (0, account_1.checkAuth)(error, dispatch, () => rejectWithValue(error));
30
31
  }
31
32
  }));
32
- exports.verifyCustomerTpls = (0, toolkit_1.createAsyncThunk)(CustomerTplsActionType.FetchCustomerTpls, (_, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
33
+ exports.verifyCustomerTpls = (0, toolkit_1.createAsyncThunk)(CustomerTplsActionType.VerifyCustomerTpls, (_, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
33
34
  try {
34
35
  const api = getState().config.api;
35
36
  return yield api.postCustomerTplsVerify();
@@ -6,7 +6,8 @@ export interface CustomerTplsState {
6
6
  loading: RequestStatus;
7
7
  }
8
8
  export declare enum CustomerTplsActionType {
9
- FetchCustomerTpls = "customer/fetchCustomerTpls"
9
+ FetchCustomerTpls = "customer/fetchCustomerTpls",
10
+ VerifyCustomerTpls = "customer/verifyCustomerTpls"
10
11
  }
11
12
  export declare const fetchCustomerTpls: import("@reduxjs/toolkit").AsyncThunk<TPLS, void, {
12
13
  state: AppState;
@@ -11,6 +11,7 @@ const initialState = {
11
11
  export var CustomerTplsActionType;
12
12
  (function (CustomerTplsActionType) {
13
13
  CustomerTplsActionType["FetchCustomerTpls"] = "customer/fetchCustomerTpls";
14
+ CustomerTplsActionType["VerifyCustomerTpls"] = "customer/verifyCustomerTpls";
14
15
  })(CustomerTplsActionType || (CustomerTplsActionType = {}));
15
16
  export const fetchCustomerTpls = createAsyncThunk(CustomerTplsActionType.FetchCustomerTpls, (_, { dispatch, getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
16
17
  try {
@@ -26,7 +27,7 @@ export const fetchCustomerTpls = createAsyncThunk(CustomerTplsActionType.FetchCu
26
27
  return checkAuth(error, dispatch, () => rejectWithValue(error));
27
28
  }
28
29
  }));
29
- export const verifyCustomerTpls = createAsyncThunk(CustomerTplsActionType.FetchCustomerTpls, (_, { getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
30
+ export const verifyCustomerTpls = createAsyncThunk(CustomerTplsActionType.VerifyCustomerTpls, (_, { getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
30
31
  try {
31
32
  const api = getState().config.api;
32
33
  return yield api.postCustomerTplsVerify();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.4.7",
3
+ "version": "0.4.10",
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",