@xmobitea/gn-typescript-client 2.6.3 → 2.6.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.
Files changed (65) hide show
  1. package/dist/gn.js.client.js +4635 -5021
  2. package/dist/gn.js.client.min.js +1 -1
  3. package/dist/index.d.ts +2 -4
  4. package/dist/index.js +4634 -5020
  5. package/dist/runtime/GNNetwork.d.ts +8 -8
  6. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +12 -12
  7. package/dist/runtime/GNNetworkDashboardApi.d.ts +6 -6
  8. package/dist/runtime/GNNetworkGamePlayerApi.d.ts +18 -18
  9. package/dist/runtime/GNNetworkGroupApi.d.ts +6 -6
  10. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +6 -6
  11. package/dist/runtime/constant/EventCode.d.ts +6 -6
  12. package/dist/runtime/constant/OperationCode.d.ts +219 -219
  13. package/dist/runtime/constant/errorCode/{GNErrorCode.d.ts → ErrorCode.d.ts} +1 -1
  14. package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +596 -0
  15. package/dist/runtime/entity/OperationEvent.d.ts +2 -5
  16. package/dist/runtime/entity/OperationHelper.d.ts +2 -2
  17. package/dist/runtime/entity/OperationRequest.d.ts +2 -5
  18. package/dist/runtime/entity/OperationResponse.d.ts +2 -5
  19. package/dist/runtime/entity/models/AuthenticateModels.d.ts +3 -0
  20. package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +36 -54
  21. package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +1 -1
  22. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +6 -6
  23. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +224 -277
  24. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +2 -2
  25. package/dist/runtime/entity/models/CloudScriptModels.d.ts +3 -2
  26. package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +20 -25
  27. package/dist/runtime/entity/models/ContentRequestModels.d.ts +28 -35
  28. package/dist/runtime/entity/models/DashboardModels.d.ts +23 -23
  29. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +58 -84
  30. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +3 -3
  31. package/dist/runtime/entity/models/GamePlayerModels.d.ts +9 -9
  32. package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +226 -278
  33. package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +3 -3
  34. package/dist/runtime/entity/models/GroupModels.d.ts +3 -3
  35. package/dist/runtime/entity/models/GroupRequestModels.d.ts +166 -206
  36. package/dist/runtime/entity/models/GroupResponseModels.d.ts +1 -1
  37. package/dist/runtime/entity/models/InventoryRequestModels.d.ts +136 -170
  38. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +3 -1
  39. package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +342 -428
  40. package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +1 -1
  41. package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +40 -50
  42. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +4 -4
  43. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +62 -76
  44. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +1 -1
  45. package/dist/runtime/entity/request/CustomOperationRequest.d.ts +3 -4
  46. package/dist/runtime/entity/response/CustomOperationResponse.d.ts +1 -1
  47. package/dist/runtime/helper/CodeHelper.d.ts +0 -8
  48. package/dist/runtime/helper/EnumUtility.d.ts +6 -0
  49. package/dist/runtime/networking/IPeer.d.ts +1 -1
  50. package/dist/runtime/networking/NetworkingPeer.d.ts +2 -2
  51. package/dist/runtime/networking/OperationPending.d.ts +3 -3
  52. package/dist/runtime/networking/PeerBase.d.ts +3 -3
  53. package/dist/runtime/networking/handler/IServerEventHandler.d.ts +1 -1
  54. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +1 -1
  55. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +1 -1
  56. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +1 -1
  57. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +1 -1
  58. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +1 -1
  59. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +3 -1
  60. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +1 -1
  61. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +10 -12
  62. package/dist/runtime/networking/socket/SocketPeer.d.ts +2 -2
  63. package/package.json +1 -1
  64. package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +0 -599
  65. /package/{GNServerSettingsConfig.debug.json → GNServerSettings.debug.json} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { RequestRole } from "./../constant/enumType/RequestRole";
2
2
  import { RequestType } from "./../constant/enumType/RequestType";
3
3
  import { Action1 } from "./../common/Action1";
4
- import { GNArray, GNHashtable } from "./../common/GNData";
4
+ import { GNHashtable } from "./../common/GNData";
5
5
  import { OperationRequest } from "./../entity/OperationRequest";
6
6
  import { OperationResponse } from "./../entity/OperationResponse";
7
7
  import { IPeer } from "./IPeer";
@@ -21,11 +21,11 @@ export declare abstract class PeerBase implements IPeer {
21
21
  initPeer(): void;
22
22
  private initSendRate;
23
23
  protected abstract initGNSocketObject(): void;
24
- enqueue(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
24
+ enqueue(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
25
25
  protected abstract onEnqueue(operationPending: OperationPending): void;
26
26
  isUsing(): boolean;
27
27
  service(): void;
28
- protected onResponseHandler(obj: GNArray, isEncrypted: boolean): void;
28
+ protected onResponseHandler(obj: GNHashtable): void;
29
29
  send(operationPending: OperationPending): void;
30
30
  addPing(value: number): void;
31
31
  }
@@ -1,6 +1,6 @@
1
1
  import { OperationEvent } from "./../../entity/OperationEvent";
2
2
  export interface IServerEventHandler {
3
- getEventCode(): number;
3
+ getEventCode(): string;
4
4
  handle(operationEvent: OperationEvent): void;
5
5
  }
6
6
  export declare namespace IServerEventHandler {
@@ -8,6 +8,6 @@ export declare class CharacterPlayerFriendUpdate {
8
8
  }
9
9
  export declare class OnCharacterPlayerFriendUpdateEventHandler implements IServerEventHandler {
10
10
  static onUpdate: Action1<CharacterPlayerFriendUpdate>;
11
- getEventCode(): number;
11
+ getEventCode(): string;
12
12
  handle(operationEvent: OperationEvent): void;
13
13
  }
@@ -8,6 +8,6 @@ export declare class CharacterPlayerGroupUpdate {
8
8
  }
9
9
  export declare class OnCharacterPlayerGroupUpdateEventHandler implements IServerEventHandler {
10
10
  static onUpdate: Action1<CharacterPlayerGroupUpdate>;
11
- getEventCode(): number;
11
+ getEventCode(): string;
12
12
  handle(operationEvent: OperationEvent): void;
13
13
  }
@@ -8,6 +8,6 @@ export declare class GamePlayerFriendUpdate {
8
8
  }
9
9
  export declare class OnGamePlayerFriendUpdateEventHandler implements IServerEventHandler {
10
10
  static onUpdate: Action1<GamePlayerFriendUpdate>;
11
- getEventCode(): number;
11
+ getEventCode(): string;
12
12
  handle(operationEvent: OperationEvent): void;
13
13
  }
@@ -8,6 +8,6 @@ export declare class GamePlayerGroupUpdate {
8
8
  }
9
9
  export declare class OnGamePlayerGroupUpdateEventHandler implements IServerEventHandler {
10
10
  static onUpdate: Action1<GamePlayerGroupUpdate>;
11
- getEventCode(): number;
11
+ getEventCode(): string;
12
12
  handle(operationEvent: OperationEvent): void;
13
13
  }
@@ -7,6 +7,6 @@ export declare class GroupMemberUpdate {
7
7
  }
8
8
  export declare class OnGroupMemberUpdateEventHandler implements IServerEventHandler {
9
9
  static onUpdate: Action1<GroupMemberUpdate>;
10
- getEventCode(): number;
10
+ getEventCode(): string;
11
11
  handle(operationEvent: OperationEvent): void;
12
12
  }
@@ -4,9 +4,11 @@ import { GroupModels } from "./../../entity/models/GroupModels";
4
4
  import { IServerEventHandler } from "./IServerEventHandler";
5
5
  export declare class GroupMessageUpdate {
6
6
  groupMessages: Array<GroupModels.GroupMessageResponseData>;
7
+ groupId: string;
8
+ characterId?: string;
7
9
  }
8
10
  export declare class OnGroupMessageUpdateEventHandler implements IServerEventHandler {
9
11
  static onUpdate: Action1<GroupMessageUpdate>;
10
- getEventCode(): number;
12
+ getEventCode(): string;
11
13
  handle(operationEvent: OperationEvent): void;
12
14
  }
@@ -18,7 +18,7 @@ export declare class NetworkingPeerSocketIOClient extends NetworkingSocketPeerBa
18
18
  private onDisconnect;
19
19
  private onError;
20
20
  init(url: string, reconnectDelay: number, pingInterval: number, pingTimeout: number): void;
21
- protected emit(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
21
+ protected emit(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
22
22
  close(_onSocketDisconnect: Action0): void;
23
23
  connect(_onSocketConnect: Action0): void;
24
24
  }
@@ -1,13 +1,13 @@
1
1
  import { Action0 } from "./../../common/Action0";
2
- import { Action2 } from "./../../common/Action2";
3
- import { GNArray, GNHashtable } from "./../../common/GNData";
2
+ import { Action1 } from "./../../common/Action1";
3
+ import { GNHashtable } from "./../../common/GNData";
4
4
  import { RequestRole } from "./../../constant/enumType/RequestRole";
5
5
  import { RequestType } from "./../../constant/enumType/RequestType";
6
6
  import { OperationRequest } from "./../../entity/OperationRequest";
7
7
  export declare class SocketPacket {
8
8
  obj: any;
9
- encrypted: boolean;
10
- constructor(obj: any, encrypted: boolean);
9
+ isMsgPack: boolean;
10
+ constructor(obj: any, isMsgPack: boolean);
11
11
  }
12
12
  export declare abstract class NetworkingSocketPeerBase {
13
13
  protected reconnectDelay: number;
@@ -29,8 +29,8 @@ export declare abstract class NetworkingSocketPeerBase {
29
29
  connect(_onSocketConnect: Action0): void;
30
30
  close(_onSocketDisconnect: Action0): void;
31
31
  sendRequestAuthSocket(): void;
32
- send(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
33
- protected emit(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
32
+ send(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
33
+ protected emit(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
34
34
  reInitNewSocket(): void;
35
35
  setOnConnectHandler(_onConnectHandler: Action0): void;
36
36
  setOnDisconnectHandler(_onDisconnectHandler: Action0): void;
@@ -38,11 +38,9 @@ export declare abstract class NetworkingSocketPeerBase {
38
38
  removeOnDisconnectHandler(_onDisconnectHandler: Action0): void;
39
39
  onConnectHandler(): void;
40
40
  onDisconnectHandler(): void;
41
- setOnEventHandler(_onEventHandler: Action2<GNArray, boolean>): void;
42
- onEventHandler(obj: GNArray, isEncrypted: boolean): void;
43
- setOnResponseHandler(_onResponseHandler: Action2<GNArray, boolean>): void;
44
- onResponseHandler(obj: GNArray, isEncrypted: boolean): void;
45
- static fromMsgList(objects: any[]): any[];
46
- static fromJsonList(objects: any): any[];
41
+ setOnEventHandler(_onEventHandler: Action1<GNHashtable>): void;
42
+ onEventHandler(obj: GNHashtable): void;
43
+ setOnResponseHandler(_onResponseHandler: Action1<GNHashtable>): void;
44
+ onResponseHandler(obj: GNHashtable): void;
47
45
  service(): void;
48
46
  }
@@ -1,6 +1,6 @@
1
1
  import { Action1 } from "./../../common/Action1";
2
2
  import { Action0 } from "./../../common/Action0";
3
- import { GNArray } from "./../../common/GNData";
3
+ import { GNHashtable } from "./../../common/GNData";
4
4
  import { OperationEvent } from "./../../entity/OperationEvent";
5
5
  import { IServerEventHandler } from "./../handler/IServerEventHandler";
6
6
  import { OperationPending } from "./../OperationPending";
@@ -24,6 +24,6 @@ export declare class SocketPeer extends PeerBase {
24
24
  setOnEventHandler(_onEventHandler: Action1<OperationEvent>): void;
25
25
  send(operationPending: OperationPending): void;
26
26
  protected onEnqueue(operationPending: OperationPending): void;
27
- onEventHandler(obj: GNArray, isEncrypted: boolean): void;
27
+ onEventHandler(obj: GNHashtable): void;
28
28
  service(): void;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmobitea/gn-typescript-client",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "GearN Typescript Client SDK by XmobiTea (Pro)",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",