@open-tender/cloud 0.1.5 → 0.1.6

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.
@@ -10,7 +10,7 @@ export declare enum OrderRatingActionType {
10
10
  UpdateOrderRating = "orderRating/updateOrderRating",
11
11
  UnsubscribeOrderRating = "orderRating/unsubscribeOrderRating"
12
12
  }
13
- export declare const fetchOrderRating: import("@reduxjs/toolkit").AsyncThunk<OrderRatingWithOrder, number, {
13
+ export declare const fetchOrderRating: import("@reduxjs/toolkit").AsyncThunk<OrderRatingWithOrder, string, {
14
14
  state: AppState;
15
15
  rejectValue: RequestError;
16
16
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -33,7 +33,7 @@ export declare const updateOrderRating: import("@reduxjs/toolkit").AsyncThunk<Or
33
33
  fulfilledMeta?: unknown;
34
34
  rejectedMeta?: unknown;
35
35
  }>;
36
- export declare const unsubscribeOrderRating: import("@reduxjs/toolkit").AsyncThunk<void, number, {
36
+ export declare const unsubscribeOrderRating: import("@reduxjs/toolkit").AsyncThunk<void, string, {
37
37
  state: AppState;
38
38
  rejectValue: RequestError;
39
39
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -15,12 +15,12 @@ var OrderRatingActionType;
15
15
  OrderRatingActionType["UpdateOrderRating"] = "orderRating/updateOrderRating";
16
16
  OrderRatingActionType["UnsubscribeOrderRating"] = "orderRating/unsubscribeOrderRating";
17
17
  })(OrderRatingActionType = exports.OrderRatingActionType || (exports.OrderRatingActionType = {}));
18
- exports.fetchOrderRating = (0, toolkit_1.createAsyncThunk)(OrderRatingActionType.FetchOrderRating, (ratingUuid, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
18
+ exports.fetchOrderRating = (0, toolkit_1.createAsyncThunk)(OrderRatingActionType.FetchOrderRating, (orderUuid, { getState, rejectWithValue }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
19
19
  const { api } = getState().config;
20
20
  if (!api)
21
21
  return;
22
22
  try {
23
- return yield api.getOrderRating(ratingUuid);
23
+ return yield api.getOrderRating(orderUuid);
24
24
  }
25
25
  catch (err) {
26
26
  return rejectWithValue(err);
@@ -10,7 +10,7 @@ export declare enum OrderRatingActionType {
10
10
  UpdateOrderRating = "orderRating/updateOrderRating",
11
11
  UnsubscribeOrderRating = "orderRating/unsubscribeOrderRating"
12
12
  }
13
- export declare const fetchOrderRating: import("@reduxjs/toolkit").AsyncThunk<OrderRatingWithOrder, number, {
13
+ export declare const fetchOrderRating: import("@reduxjs/toolkit").AsyncThunk<OrderRatingWithOrder, string, {
14
14
  state: AppState;
15
15
  rejectValue: RequestError;
16
16
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -33,7 +33,7 @@ export declare const updateOrderRating: import("@reduxjs/toolkit").AsyncThunk<Or
33
33
  fulfilledMeta?: unknown;
34
34
  rejectedMeta?: unknown;
35
35
  }>;
36
- export declare const unsubscribeOrderRating: import("@reduxjs/toolkit").AsyncThunk<void, number, {
36
+ export declare const unsubscribeOrderRating: import("@reduxjs/toolkit").AsyncThunk<void, string, {
37
37
  state: AppState;
38
38
  rejectValue: RequestError;
39
39
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -12,12 +12,12 @@ export var OrderRatingActionType;
12
12
  OrderRatingActionType["UpdateOrderRating"] = "orderRating/updateOrderRating";
13
13
  OrderRatingActionType["UnsubscribeOrderRating"] = "orderRating/unsubscribeOrderRating";
14
14
  })(OrderRatingActionType || (OrderRatingActionType = {}));
15
- export const fetchOrderRating = createAsyncThunk(OrderRatingActionType.FetchOrderRating, (ratingUuid, { getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
15
+ export const fetchOrderRating = createAsyncThunk(OrderRatingActionType.FetchOrderRating, (orderUuid, { getState, rejectWithValue }) => __awaiter(void 0, void 0, void 0, function* () {
16
16
  const { api } = getState().config;
17
17
  if (!api)
18
18
  return;
19
19
  try {
20
- return yield api.getOrderRating(ratingUuid);
20
+ return yield api.getOrderRating(orderUuid);
21
21
  }
22
22
  catch (err) {
23
23
  return rejectWithValue(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/cloud",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
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",