@bzbs/react-api-client 2.1.1 → 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.d.mts CHANGED
@@ -1471,7 +1471,7 @@ declare class AuthenticateApi extends BaseService {
1471
1471
  options?: {
1472
1472
  [key: string]: unknown;
1473
1473
  };
1474
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
1474
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<LoginResponse>>;
1475
1475
  /**
1476
1476
  * Connect with LINE. If authorization token is provided, it will connect current user with given LINE credentials.
1477
1477
  * Otherwise, it tries to login with those credentials.
package/dist/index.d.ts CHANGED
@@ -1471,7 +1471,7 @@ declare class AuthenticateApi extends BaseService {
1471
1471
  options?: {
1472
1472
  [key: string]: unknown;
1473
1473
  };
1474
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
1474
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<LoginResponse>>;
1475
1475
  /**
1476
1476
  * Connect with LINE. If authorization token is provided, it will connect current user with given LINE credentials.
1477
1477
  * Otherwise, it tries to login with those credentials.
package/dist/index.js CHANGED
@@ -444,10 +444,10 @@ var AuthenticateApi = class extends BaseService {
444
444
  * @param params.options - (Optional) Additional params for the request.
445
445
  * @returns A promise that resolves to a ServiceResponse containing the login response.
446
446
  */
447
- usernamePasswordLogin(params, requestOptions) {
447
+ usernamePasswordLogin(params, requestOptions, version = 2) {
448
448
  return __async(this, null, function* () {
449
449
  return yield this.post(
450
- "auth/bzbs_login",
450
+ `auth/bzbs_login${version}`,
451
451
  __spreadValues({
452
452
  username: params.username,
453
453
  password: params.password,