@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.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -696,6 +696,16 @@ interface ProfileResponse {
|
|
|
696
696
|
LineMarketing?: number;
|
|
697
697
|
updated_points?: UpdatedPoints;
|
|
698
698
|
Token?: string;
|
|
699
|
+
Info1?: string;
|
|
700
|
+
Info2?: string;
|
|
701
|
+
Info3?: string;
|
|
702
|
+
Info4?: string;
|
|
703
|
+
Info5?: string;
|
|
704
|
+
Info6?: string;
|
|
705
|
+
Info7?: string;
|
|
706
|
+
Info8?: string;
|
|
707
|
+
Info9?: string;
|
|
708
|
+
Info10?: string;
|
|
699
709
|
}
|
|
700
710
|
|
|
701
711
|
interface Purchase {
|
package/dist/index.d.ts
CHANGED
|
@@ -696,6 +696,16 @@ interface ProfileResponse {
|
|
|
696
696
|
LineMarketing?: number;
|
|
697
697
|
updated_points?: UpdatedPoints;
|
|
698
698
|
Token?: string;
|
|
699
|
+
Info1?: string;
|
|
700
|
+
Info2?: string;
|
|
701
|
+
Info3?: string;
|
|
702
|
+
Info4?: string;
|
|
703
|
+
Info5?: string;
|
|
704
|
+
Info6?: string;
|
|
705
|
+
Info7?: string;
|
|
706
|
+
Info8?: string;
|
|
707
|
+
Info9?: string;
|
|
708
|
+
Info10?: string;
|
|
699
709
|
}
|
|
700
710
|
|
|
701
711
|
interface Purchase {
|
package/dist/index.js
CHANGED
|
@@ -1186,7 +1186,7 @@ var HistoryApi = class extends BaseService {
|
|
|
1186
1186
|
*/
|
|
1187
1187
|
redeemHistories(params, requestOptions) {
|
|
1188
1188
|
return __async(this, null, function* () {
|
|
1189
|
-
|
|
1189
|
+
const response = yield this.get(
|
|
1190
1190
|
"redeem",
|
|
1191
1191
|
__spreadValues({
|
|
1192
1192
|
byConfig: params.byConfig,
|
|
@@ -1199,6 +1199,18 @@ var HistoryApi = class extends BaseService {
|
|
|
1199
1199
|
}, params.options),
|
|
1200
1200
|
requestOptions
|
|
1201
1201
|
);
|
|
1202
|
+
if (response.type === "success") {
|
|
1203
|
+
const purchases = response.model.map((item) => {
|
|
1204
|
+
var _a, _b;
|
|
1205
|
+
return __spreadProps(__spreadValues({}, item), {
|
|
1206
|
+
ParcelNo: (_b = (_a = item.ParcelNo) != null ? _a : item.PacelNo) != null ? _b : void 0
|
|
1207
|
+
});
|
|
1208
|
+
});
|
|
1209
|
+
return __spreadProps(__spreadValues({}, response), {
|
|
1210
|
+
model: purchases
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
return response;
|
|
1202
1214
|
});
|
|
1203
1215
|
}
|
|
1204
1216
|
/**
|