cloud189-sdk 1.0.0 → 1.0.1

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.
@@ -26,14 +26,6 @@ interface FamilyUserSignResponse extends APIResponse {
26
26
  signTime: string;
27
27
  userId: string;
28
28
  }
29
- interface UserSizeInfoResponse extends APIResponse {
30
- cloudCapacityInfo: {
31
- totalSize: number;
32
- };
33
- familyCapacityInfo: {
34
- totalSize: number;
35
- };
36
- }
37
29
  interface UserSignResponse {
38
30
  isSign: boolean;
39
31
  netdiskBonus: number;
@@ -60,7 +52,7 @@ declare class CloudClient {
60
52
  * */
61
53
  login: () => Promise<any>;
62
54
  fetchAPI: (task: any) => Promise<any>;
63
- getUserSizeInfo: () => Promise<UserSizeInfoResponse>;
55
+ getUserSizeInfo: () => Promise<any>;
64
56
  userSign: () => Promise<UserSignResponse>;
65
57
  taskSign: () => Promise<TaskResponse>;
66
58
  taskPhoto: () => Promise<TaskResponse>;
@@ -150,7 +150,12 @@ class CloudClient {
150
150
  };
151
151
  this.getUserSizeInfo = () => {
152
152
  return got_1.default
153
- .get("https://cloud.189.cn/api/portal/getUserSizeInfo.action")
153
+ .get("https://cloud.189.cn/api/portal/getUserSizeInfo.action", {
154
+ headers: {
155
+ Accept: "application/json;charset=UTF-8",
156
+ },
157
+ cookieJar,
158
+ })
154
159
  .json();
155
160
  };
156
161
  this.userSign = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud189-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "cloud189-sdk",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",