@bzbs/react-api-client 2.1.0 → 2.1.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
@@ -399,10 +399,10 @@ var AuthenticateApi = class extends BaseService {
399
399
  * @param params.options - (Optional) Additional params for the request.
400
400
  * @returns A promise that resolves to a ServiceResponse containing the login response.
401
401
  */
402
- usernamePasswordLogin(params, requestOptions) {
402
+ usernamePasswordLogin(params, requestOptions, version = 2) {
403
403
  return __async(this, null, function* () {
404
404
  return yield this.post(
405
- "auth/bzbs_login",
405
+ `auth/bzbs_login${version}`,
406
406
  __spreadValues({
407
407
  username: params.username,
408
408
  password: params.password,
@@ -1670,8 +1670,8 @@ var PointApi = class extends BaseService {
1670
1670
  return yield this.get(
1671
1671
  "point/balance",
1672
1672
  __spreadValues({
1673
- units: params == null ? void 0 : params.units,
1674
- boxIds: params == null ? void 0 : params.boxIds,
1673
+ "units[]": params == null ? void 0 : params.units,
1674
+ "boxIds[]": params == null ? void 0 : params.boxIds,
1675
1675
  onlyVisible: params == null ? void 0 : params.onlyVisible
1676
1676
  }, params == null ? void 0 : params.options),
1677
1677
  requestOptions
@@ -1694,8 +1694,8 @@ var PointApi = class extends BaseService {
1694
1694
  return yield this.get(
1695
1695
  "point/detail",
1696
1696
  __spreadValues({
1697
- units: params == null ? void 0 : params.units,
1698
- boxIds: params == null ? void 0 : params.boxIds,
1697
+ "units[]": params == null ? void 0 : params.units,
1698
+ "boxIds[]": params == null ? void 0 : params.boxIds,
1699
1699
  onlyVisible: params == null ? void 0 : params.onlyVisible
1700
1700
  }, params == null ? void 0 : params.options),
1701
1701
  requestOptions
@@ -1735,14 +1735,14 @@ var PointApi = class extends BaseService {
1735
1735
  skip: params.skip,
1736
1736
  top: params.top,
1737
1737
  sortType: params.sortType,
1738
- units: params.units,
1739
- boxIds: params.boxIds,
1740
- references: params.references,
1741
- transactionIds: params.transactionIds,
1742
- includeActions: params.includeActions,
1743
- excludeActions: params.excludeActions,
1744
- includeTypes: params.includeTypes,
1745
- excludeTypes: params.excludeTypes
1738
+ "units[]": params.units,
1739
+ "boxIds[]": params.boxIds,
1740
+ "references[]": params.references,
1741
+ "transactionIds[]": params.transactionIds,
1742
+ "includeActions[]": params.includeActions,
1743
+ "excludeActions[]": params.excludeActions,
1744
+ "includeTypes[]": params.includeTypes,
1745
+ "excludeTypes[]": params.excludeTypes
1746
1746
  }, params.options),
1747
1747
  requestOptions
1748
1748
  );