@xmobitea/gn-typescript-client 2.6.3 → 2.6.5

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 (70) hide show
  1. package/{GNServerSettingsConfig.debug.json → GNServerSettings.debug.json} +1 -0
  2. package/dist/gn.js.client.js +5018 -5374
  3. package/dist/gn.js.client.min.js +1 -1
  4. package/dist/index.d.ts +2 -4
  5. package/dist/index.js +5015 -5371
  6. package/dist/runtime/GNNetwork.d.ts +11 -11
  7. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +24 -24
  8. package/dist/runtime/GNNetworkDashboardApi.d.ts +6 -6
  9. package/dist/runtime/GNNetworkGamePlayerApi.d.ts +30 -30
  10. package/dist/runtime/GNNetworkGroupApi.d.ts +18 -18
  11. package/dist/runtime/GNNetworkInventoryApi.d.ts +6 -6
  12. package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +12 -12
  13. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +6 -6
  14. package/dist/runtime/config/GNServerSettings.d.ts +4 -0
  15. package/dist/runtime/constant/EventCode.d.ts +6 -6
  16. package/dist/runtime/constant/OperationCode.d.ts +219 -219
  17. package/dist/runtime/constant/errorCode/{GNErrorCode.d.ts → ErrorCode.d.ts} +2 -2
  18. package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +610 -0
  19. package/dist/runtime/entity/OperationEvent.d.ts +2 -5
  20. package/dist/runtime/entity/OperationHelper.d.ts +2 -2
  21. package/dist/runtime/entity/OperationRequest.d.ts +2 -5
  22. package/dist/runtime/entity/OperationResponse.d.ts +2 -5
  23. package/dist/runtime/entity/models/AuthenticateModels.d.ts +3 -0
  24. package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +36 -54
  25. package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +1 -1
  26. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +16 -16
  27. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +236 -289
  28. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +4 -4
  29. package/dist/runtime/entity/models/CloudScriptModels.d.ts +3 -2
  30. package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +20 -25
  31. package/dist/runtime/entity/models/ContentRequestModels.d.ts +28 -35
  32. package/dist/runtime/entity/models/DashboardModels.d.ts +39 -39
  33. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +58 -84
  34. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +3 -3
  35. package/dist/runtime/entity/models/GamePlayerModels.d.ts +19 -19
  36. package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +238 -290
  37. package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +5 -5
  38. package/dist/runtime/entity/models/GroupModels.d.ts +13 -13
  39. package/dist/runtime/entity/models/GroupRequestModels.d.ts +178 -218
  40. package/dist/runtime/entity/models/GroupResponseModels.d.ts +3 -3
  41. package/dist/runtime/entity/models/InventoryModels.d.ts +7 -7
  42. package/dist/runtime/entity/models/InventoryRequestModels.d.ts +142 -176
  43. package/dist/runtime/entity/models/InventoryResponseModels.d.ts +1 -1
  44. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +13 -11
  45. package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +354 -440
  46. package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +3 -3
  47. package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +40 -50
  48. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +11 -11
  49. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +62 -76
  50. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +1 -1
  51. package/dist/runtime/entity/request/CustomOperationRequest.d.ts +3 -4
  52. package/dist/runtime/entity/response/CustomOperationResponse.d.ts +1 -1
  53. package/dist/runtime/helper/CodeHelper.d.ts +8 -8
  54. package/dist/runtime/helper/EnumUtility.d.ts +6 -0
  55. package/dist/runtime/networking/IPeer.d.ts +1 -1
  56. package/dist/runtime/networking/NetworkingPeer.d.ts +2 -2
  57. package/dist/runtime/networking/OperationPending.d.ts +3 -3
  58. package/dist/runtime/networking/PeerBase.d.ts +3 -3
  59. package/dist/runtime/networking/handler/IServerEventHandler.d.ts +1 -1
  60. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +1 -1
  61. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +1 -1
  62. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +1 -1
  63. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +1 -1
  64. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +1 -1
  65. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +3 -1
  66. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +1 -1
  67. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +10 -12
  68. package/dist/runtime/networking/socket/SocketPeer.d.ts +2 -2
  69. package/package.json +1 -1
  70. package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +0 -599
@@ -7,7 +7,7 @@ import { OperationResponse } from "./../entity/OperationResponse";
7
7
  export declare class OperationPending {
8
8
  private operationRequest;
9
9
  private requestType;
10
- private requestRole;
10
+ private role;
11
11
  private authToken;
12
12
  private secretKey;
13
13
  private gameId;
@@ -16,9 +16,9 @@ export declare class OperationPending {
16
16
  private timeout;
17
17
  private firstSend;
18
18
  private secondsSend;
19
- constructor(requestType: RequestType, requestRole: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string);
19
+ constructor(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string);
20
20
  getRequestType(): RequestType;
21
- getRequestRole(): RequestRole;
21
+ getRole(): RequestRole;
22
22
  getAuthToken(): string;
23
23
  getSecretKey(): string;
24
24
  getGameId(): string;
@@ -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.5",
4
4
  "description": "GearN Typescript Client SDK by XmobiTea (Pro)",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",