ps99-api 1.0.1 → 1.1.0
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/.github/actions/test/action.yml +27 -0
- package/.github/workflows/release-on-main.yml +1 -13
- package/.github/workflows/test-on-branch.yml +18 -0
- package/.idea/jsLibraryMappings.xml +6 -0
- package/README.md +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/ps99-api.d.ts +2 -3
- package/dist/ps99-api.js.map +1 -1
- package/dist/responses/activeClanBattle.d.ts +34 -29
- package/dist/responses/clan.d.ts +81 -88
- package/dist/responses/clans.d.ts +11 -18
- package/dist/responses/collection.d.ts +1355 -1240
- package/dist/responses/collections.d.ts +1 -1
- package/dist/responses/exists.d.ts +11 -29
- package/dist/responses/rap.d.ts +12 -36
- package/dump-result.js +9 -0
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/ps99-api-live.ts.snap +98822 -0
- package/src/__tests__/ps99-api-changes.ts +36 -0
- package/src/__tests__/ps99-api-live.ts +177 -0
- package/src/index.ts +1 -1
- package/src/ps99-api.ts +3 -4
- package/src/responses/activeClanBattle.ts +42 -19
- package/src/responses/clan.ts +90 -64
- package/src/responses/clans.ts +11 -21
- package/src/responses/collection.ts +1543 -1261
- package/src/responses/collections.ts +1 -1
- package/src/responses/exists.ts +13 -18
- package/src/responses/rap.ts +14 -27
- package/dist/common.d.ts +0 -2
- package/dist/common.js +0 -3
- package/dist/common.js.map +0 -1
- package/src/common.ts +0 -2
|
@@ -1,32 +1,14 @@
|
|
|
1
|
+
export type ExistsData = {
|
|
2
|
+
category: string;
|
|
3
|
+
configData: ExistsConfigData;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export type ExistsConfigData = {
|
|
7
|
+
id: string;
|
|
8
|
+
pt?: number;
|
|
9
|
+
sh?: boolean;
|
|
10
|
+
};
|
|
1
11
|
export type ExistsResponseBody = {
|
|
2
12
|
status: string;
|
|
3
|
-
data:
|
|
4
|
-
category: string;
|
|
5
|
-
configData: {
|
|
6
|
-
id: string;
|
|
7
|
-
};
|
|
8
|
-
value: number;
|
|
9
|
-
} | {
|
|
10
|
-
category: string;
|
|
11
|
-
configData: {
|
|
12
|
-
id: string;
|
|
13
|
-
pt: number;
|
|
14
|
-
};
|
|
15
|
-
value: number;
|
|
16
|
-
} | {
|
|
17
|
-
category: string;
|
|
18
|
-
configData: {
|
|
19
|
-
id: string;
|
|
20
|
-
sh: boolean;
|
|
21
|
-
};
|
|
22
|
-
value: number;
|
|
23
|
-
} | {
|
|
24
|
-
category: string;
|
|
25
|
-
configData: {
|
|
26
|
-
id: string;
|
|
27
|
-
pt: number;
|
|
28
|
-
sh: boolean;
|
|
29
|
-
};
|
|
30
|
-
value: number;
|
|
31
|
-
})[];
|
|
13
|
+
data: ExistsData[];
|
|
32
14
|
};
|
package/dist/responses/rap.d.ts
CHANGED
|
@@ -1,39 +1,15 @@
|
|
|
1
|
+
export type RapData = {
|
|
2
|
+
category: string;
|
|
3
|
+
configData: RapConfigData;
|
|
4
|
+
value: number;
|
|
5
|
+
};
|
|
6
|
+
export type RapConfigData = {
|
|
7
|
+
id: string;
|
|
8
|
+
pt?: number;
|
|
9
|
+
sh?: boolean;
|
|
10
|
+
tn?: number;
|
|
11
|
+
};
|
|
1
12
|
export type RAPResponseBody = {
|
|
2
13
|
status: string;
|
|
3
|
-
data:
|
|
4
|
-
category: string;
|
|
5
|
-
configData: {
|
|
6
|
-
id: string;
|
|
7
|
-
pt: number;
|
|
8
|
-
};
|
|
9
|
-
value: number;
|
|
10
|
-
} | {
|
|
11
|
-
category: string;
|
|
12
|
-
configData: {
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
value: number;
|
|
16
|
-
} | {
|
|
17
|
-
category: string;
|
|
18
|
-
configData: {
|
|
19
|
-
id: string;
|
|
20
|
-
sh: boolean;
|
|
21
|
-
};
|
|
22
|
-
value: number;
|
|
23
|
-
} | {
|
|
24
|
-
category: string;
|
|
25
|
-
configData: {
|
|
26
|
-
id: string;
|
|
27
|
-
pt: number;
|
|
28
|
-
sh: boolean;
|
|
29
|
-
};
|
|
30
|
-
value: number;
|
|
31
|
-
} | {
|
|
32
|
-
category: string;
|
|
33
|
-
configData: {
|
|
34
|
-
id: string;
|
|
35
|
-
tn: number;
|
|
36
|
-
};
|
|
37
|
-
value: number;
|
|
38
|
-
})[];
|
|
14
|
+
data: RapData[];
|
|
39
15
|
};
|
package/dump-result.js
ADDED