qing-client 1.1.2 → 1.1.4

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.
@@ -15,7 +15,7 @@ export declare class AuthService extends BaseClient {
15
15
  logout(token: string, options?: RequestOptions): Promise<void>;
16
16
  getTokenInfo(options?: RequestOptions): Promise<TokenInfoResponse>;
17
17
  revokeToken(token?: string, options?: RequestOptions): Promise<RevokeTokenResponse>;
18
- switchProject(configid: string, options?: RequestOptions): Promise<LoginResponse>;
18
+ switchProject(configId: string, options?: RequestOptions): Promise<LoginResponse>;
19
19
  }
20
20
  declare module '../../core/Client' {
21
21
  interface Services {
@@ -118,8 +118,8 @@ class AuthService extends BaseClient_1.BaseClient {
118
118
  body: JSON.stringify(body),
119
119
  });
120
120
  }
121
- async switchProject(configid, options) {
122
- if (!configid || configid.trim().length === 0) {
121
+ async switchProject(configId, options) {
122
+ if (!configId || configId.trim().length === 0) {
123
123
  throw new Error('项目配置ID不能为空');
124
124
  }
125
125
  return this.request('/switch-project', {
@@ -129,7 +129,7 @@ class AuthService extends BaseClient_1.BaseClient {
129
129
  ...options?.headers,
130
130
  'Content-Type': 'application/json',
131
131
  },
132
- body: { configid },
132
+ body: { configId },
133
133
  });
134
134
  }
135
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qing-client",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Qing 平台统一 SDK - 插件化架构",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",