@bzbs/react-api-client 1.0.0 → 1.0.2

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/dist/index.mjs CHANGED
@@ -1143,7 +1143,7 @@ var HistoryApi = class extends BaseService {
1143
1143
  */
1144
1144
  redeemHistories(params, requestOptions) {
1145
1145
  return __async(this, null, function* () {
1146
- return yield this.get(
1146
+ const response = yield this.get(
1147
1147
  "redeem",
1148
1148
  __spreadValues({
1149
1149
  byConfig: params.byConfig,
@@ -1156,6 +1156,18 @@ var HistoryApi = class extends BaseService {
1156
1156
  }, params.options),
1157
1157
  requestOptions
1158
1158
  );
1159
+ if (response.type === "success") {
1160
+ const purchases = response.model.map((item) => {
1161
+ var _a, _b;
1162
+ return __spreadProps(__spreadValues({}, item), {
1163
+ ParcelNo: (_b = (_a = item.ParcelNo) != null ? _a : item.PacelNo) != null ? _b : void 0
1164
+ });
1165
+ });
1166
+ return __spreadProps(__spreadValues({}, response), {
1167
+ model: purchases
1168
+ });
1169
+ }
1170
+ return response;
1159
1171
  });
1160
1172
  }
1161
1173
  /**