dna-api 0.6.4 → 0.6.6
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.ts +2 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +8 -8
- package/dist/modules/game.d.ts +2 -1
- package/dist/modules/h5.d.ts +7 -0
- package/dist/modules/utils.d.ts +8 -0
- package/dist/type-generated.d.ts +19 -0
- package/package.json +1 -1
package/dist/modules/game.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { DNACharDetailEntity, DNAPushStringBean, DNARoleEntity, DNAShortNoteEntity, DNASoulTaskBean, DNAWeaponDetailEntity } from "../type-generated";
|
|
1
|
+
import type { DNACharDetailEntity, DNAItemWeeklyReport, DNAPushStringBean, DNARoleEntity, DNAShortNoteEntity, DNASoulTaskBean, DNAWeaponDetailEntity } from "../type-generated";
|
|
2
2
|
import { DNASubModule } from "./base";
|
|
3
3
|
export declare class GameAPI extends DNASubModule {
|
|
4
4
|
defaultRoleForTool(type?: number, otherUserId?: string): Promise<import("..").TimeBasicResponse<DNARoleEntity>>;
|
|
5
|
+
getItemWeeklyReport(weekType?: number): Promise<import("..").TimeBasicResponse<DNAItemWeeklyReport>>;
|
|
5
6
|
getMhSwitchStatus(): Promise<import("..").TimeBasicResponse<DNAPushStringBean>>;
|
|
6
7
|
getRoleDetail(char_id: number | string, char_eid: string, otherUserId?: string): Promise<import("..").TimeBasicResponse<DNACharDetailEntity>>;
|
|
7
8
|
/**
|
package/dist/modules/h5.d.ts
CHANGED
|
@@ -89,6 +89,13 @@ export interface DNAEmoji {
|
|
|
89
89
|
url: string;
|
|
90
90
|
}
|
|
91
91
|
export declare class H5API extends DNASubModule {
|
|
92
|
+
/**
|
|
93
|
+
* 发送 H5 版短信验证码。
|
|
94
|
+
* @param mobile 手机号
|
|
95
|
+
* @param vJson 阿里云验证码校验参数
|
|
96
|
+
* @returns 请求响应
|
|
97
|
+
*/
|
|
98
|
+
getSmsCode(mobile: string, vJson: string): Promise<import("..").TimeBasicResponse<any>>;
|
|
92
99
|
getMapMatterCategorizeOptions(): Promise<import("..").TimeBasicResponse<DNAMapMatterCategorizeOption[]>>;
|
|
93
100
|
getMapCategorizeList(): Promise<import("..").TimeBasicResponse<DNAMapCategorizeListRes>>;
|
|
94
101
|
getMapDetail(id: number): Promise<import("..").TimeBasicResponse<DNAMapDetailRes>>;
|
package/dist/modules/utils.d.ts
CHANGED
|
@@ -38,6 +38,14 @@ export declare function sign_shuffled(params: Record<string, any>, app_key: stri
|
|
|
38
38
|
export declare function xor_encode(text: string, key: string): string;
|
|
39
39
|
export declare function build_signature120(pk: string, payload: Record<string, any>, token?: string): Record<string, any>;
|
|
40
40
|
export declare function build_signature122(pk: string, payload: Record<string, any>, token?: string): Record<string, any>;
|
|
41
|
+
/**
|
|
42
|
+
* 生成 H5 版请求签名。
|
|
43
|
+
* @param pk RSA 公钥
|
|
44
|
+
* @param payload 请求参数
|
|
45
|
+
* @param token 可选 token
|
|
46
|
+
* @returns 包含 rk、tn、sa 的签名数据
|
|
47
|
+
*/
|
|
48
|
+
export declare function build_signatureh5(pk: string, payload: Record<string, any>, token?: string): Record<string, any>;
|
|
41
49
|
/**
|
|
42
50
|
* 生成 1.3.0 版本的请求签名。
|
|
43
51
|
* @param pk RSA 公钥
|
package/dist/type-generated.d.ts
CHANGED
|
@@ -2,6 +2,25 @@ export interface DNARoleEntity {
|
|
|
2
2
|
instanceInfo: DNAInstanceInfoBean[];
|
|
3
3
|
roleInfo: DNARoleInfoBean;
|
|
4
4
|
}
|
|
5
|
+
export interface DNAItemWeeklyReport {
|
|
6
|
+
categories: DNAItemWeeklyCategory[];
|
|
7
|
+
endDate: string;
|
|
8
|
+
startDate: string;
|
|
9
|
+
weekType: number;
|
|
10
|
+
}
|
|
11
|
+
export interface DNAItemWeeklyCategory {
|
|
12
|
+
categoryName: string;
|
|
13
|
+
isBase: boolean;
|
|
14
|
+
items: DNAItemWeeklyItem[];
|
|
15
|
+
type: number;
|
|
16
|
+
}
|
|
17
|
+
export interface DNAItemWeeklyItem {
|
|
18
|
+
icon: string;
|
|
19
|
+
itemId: number;
|
|
20
|
+
itemName: string;
|
|
21
|
+
quality: number;
|
|
22
|
+
totalNum: string;
|
|
23
|
+
}
|
|
5
24
|
export interface DNAPushStringBean {
|
|
6
25
|
config: string;
|
|
7
26
|
}
|