@xmobitea/gn-typescript-client 1.0.7 → 2.0.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.
Files changed (175) hide show
  1. package/GNServerSettingsConfig.debug.json +5 -5
  2. package/dist/gn.js.client.min.js +1 -1
  3. package/dist/index.d.ts +124 -184
  4. package/dist/index.js +1 -1
  5. package/dist/runtime/GNNetwork.d.ts +35 -93
  6. package/dist/runtime/GNNetworkAuthenticateApi.d.ts +27 -0
  7. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +156 -0
  8. package/dist/runtime/GNNetworkContentApi.d.ts +33 -0
  9. package/dist/runtime/GNNetworkDashboardApi.d.ts +30 -0
  10. package/dist/runtime/GNNetworkGamePlayerApi.d.ts +153 -0
  11. package/dist/runtime/GNNetworkGroupApi.d.ts +120 -0
  12. package/dist/runtime/GNNetworkInventoryApi.d.ts +108 -0
  13. package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +217 -0
  14. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +39 -0
  15. package/dist/runtime/config/GNServerSettings.d.ts +12 -4
  16. package/dist/runtime/constant/Commands.d.ts +2 -1
  17. package/dist/runtime/constant/EventCode.d.ts +6 -4
  18. package/dist/runtime/constant/OperationCode.d.ts +169 -23
  19. package/dist/runtime/constant/ReturnCode.d.ts +2 -0
  20. package/dist/runtime/constant/enumType/FriendStatus.d.ts +1 -1
  21. package/dist/runtime/constant/enumType/GroupStatus.d.ts +6 -0
  22. package/dist/runtime/constant/enumType/ItemType.d.ts +4 -0
  23. package/dist/runtime/constant/enumType/OwnerType.d.ts +6 -0
  24. package/dist/runtime/constant/enumType/PermissionDataItem.d.ts +4 -0
  25. package/dist/runtime/constant/enumType/RequestRole.d.ts +5 -0
  26. package/dist/runtime/constant/enumType/RequestType.d.ts +12 -0
  27. package/dist/runtime/constant/enumType/StatisticsAggregationMethod.d.ts +6 -0
  28. package/dist/runtime/constant/errorCode/GNErrorCode.d.ts +39 -0
  29. package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +375 -0
  30. package/dist/runtime/entity/DataMember.d.ts +1 -0
  31. package/dist/runtime/entity/GNMetadata.d.ts +1 -0
  32. package/dist/runtime/entity/InvalidMember.d.ts +2 -2
  33. package/dist/runtime/entity/OperationEvent.d.ts +1 -1
  34. package/dist/runtime/entity/OperationHelper.d.ts +4 -13
  35. package/dist/runtime/entity/OperationRequest.d.ts +2 -4
  36. package/dist/runtime/entity/OperationResponse.d.ts +1 -1
  37. package/dist/runtime/entity/models/AuthenticateModels.d.ts +108 -0
  38. package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +111 -0
  39. package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +34 -0
  40. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +493 -0
  41. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +726 -0
  42. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +100 -0
  43. package/dist/runtime/entity/models/ContentModels.d.ts +90 -0
  44. package/dist/runtime/entity/models/ContentRequestModels.d.ts +111 -0
  45. package/dist/runtime/entity/models/ContentResponseModels.d.ts +18 -0
  46. package/dist/runtime/entity/models/DashboardModels.d.ts +545 -0
  47. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +132 -0
  48. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +40 -0
  49. package/dist/runtime/entity/models/GamePlayerModels.d.ts +531 -0
  50. package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +711 -0
  51. package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +98 -0
  52. package/dist/runtime/entity/models/GenericModels.d.ts +59 -0
  53. package/dist/runtime/entity/models/GroupModels.d.ts +387 -0
  54. package/dist/runtime/entity/models/GroupRequestModels.d.ts +546 -0
  55. package/dist/runtime/entity/models/GroupResponseModels.d.ts +76 -0
  56. package/dist/runtime/entity/models/InventoryModels.d.ts +331 -0
  57. package/dist/runtime/entity/models/InventoryRequestModels.d.ts +486 -0
  58. package/dist/runtime/entity/models/InventoryResponseModels.d.ts +68 -0
  59. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +767 -0
  60. package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +1033 -0
  61. package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +142 -0
  62. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +187 -0
  63. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +141 -0
  64. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +22 -0
  65. package/dist/runtime/entity/request/CustomOperationRequest.d.ts +11 -2
  66. package/dist/runtime/entity/response/CustomOperationResponse.d.ts +6 -1
  67. package/dist/runtime/helper/CodeHelper.d.ts +3 -4
  68. package/dist/runtime/helper/ConverterService.d.ts +8 -10
  69. package/dist/runtime/networking/AuthenticateStatus.d.ts +11 -0
  70. package/dist/runtime/networking/IPeer.d.ts +4 -1
  71. package/dist/runtime/networking/NetworkingPeer.d.ts +8 -84
  72. package/dist/runtime/networking/OperationPending.d.ts +14 -1
  73. package/dist/runtime/networking/PeerBase.d.ts +5 -3
  74. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +13 -0
  75. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +13 -0
  76. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +13 -0
  77. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +13 -0
  78. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +12 -0
  79. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +12 -0
  80. package/dist/runtime/networking/{HttpPeer.d.ts → http/HttpPeer.d.ts} +6 -11
  81. package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +11 -0
  82. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +13 -0
  83. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +25 -0
  84. package/dist/runtime/networking/{NetworkingPeerBase.d.ts → socket/NetworkingSocketPeerBase.d.ts} +9 -8
  85. package/dist/runtime/networking/{SocketPeer.d.ts → socket/SocketPeer.d.ts} +10 -10
  86. package/dist/runtime/typescript/ServiceUpdate.d.ts +6 -0
  87. package/package.json +1 -1
  88. package/dist/editor/GNServerSettingsEditor.d.ts +0 -2
  89. package/dist/runtime/constant/enumType/PlatformType.d.ts +0 -8
  90. package/dist/runtime/constant/errorCode/ChatErrorCode.d.ts +0 -4
  91. package/dist/runtime/constant/errorCode/DebugErrorCode.d.ts +0 -3
  92. package/dist/runtime/constant/errorCode/EnterDisplayNameErrorCode.d.ts +0 -3
  93. package/dist/runtime/constant/errorCode/FetchAllDataErrorCode.d.ts +0 -4
  94. package/dist/runtime/constant/errorCode/FetchSparkPlayerErrorCode.d.ts +0 -4
  95. package/dist/runtime/constant/errorCode/FileUploadInfoErrorCode.d.ts +0 -5
  96. package/dist/runtime/constant/errorCode/FriendErrorCode.d.ts +0 -4
  97. package/dist/runtime/constant/errorCode/GetAppConfigErrorCode.d.ts +0 -3
  98. package/dist/runtime/constant/errorCode/LoginErrorCode.d.ts +0 -11
  99. package/dist/runtime/constant/errorCode/RegisterSocketErrorCode.d.ts +0 -3
  100. package/dist/runtime/constant/parameterCode/ChatParameterCode.d.ts +0 -22
  101. package/dist/runtime/constant/parameterCode/DebugParameterCode.d.ts +0 -7
  102. package/dist/runtime/constant/parameterCode/EnterDisplayNameParameterCode.d.ts +0 -4
  103. package/dist/runtime/constant/parameterCode/FetchAllDataParameterCode.d.ts +0 -7
  104. package/dist/runtime/constant/parameterCode/FetchSparkPlayerParameterCode.d.ts +0 -15
  105. package/dist/runtime/constant/parameterCode/FileUploadInfoParameterCode.d.ts +0 -11
  106. package/dist/runtime/constant/parameterCode/FriendParameterCode.d.ts +0 -12
  107. package/dist/runtime/constant/parameterCode/GetAppConfigParameterCode.d.ts +0 -4
  108. package/dist/runtime/constant/parameterCode/LoginParameterCode.d.ts +0 -18
  109. package/dist/runtime/constant/parameterCode/RegisterSocketParameterCode.d.ts +0 -3
  110. package/dist/runtime/entity/request/AddFriendOperationRequest.d.ts +0 -6
  111. package/dist/runtime/entity/request/CreateNewFileUploadInfoOperationRequest.d.ts +0 -6
  112. package/dist/runtime/entity/request/DebugOperationRequest.d.ts +0 -7
  113. package/dist/runtime/entity/request/EditChatInfoChannelOperationRequest.d.ts +0 -7
  114. package/dist/runtime/entity/request/EditChatMessageChannelOperationRequest.d.ts +0 -6
  115. package/dist/runtime/entity/request/EditChatMessageUserOperationRequest.d.ts +0 -6
  116. package/dist/runtime/entity/request/EnterDisplayNameOperationRequest.d.ts +0 -6
  117. package/dist/runtime/entity/request/FetchAllDataOperationRequest.d.ts +0 -6
  118. package/dist/runtime/entity/request/FetchSparkPlayerOperationRequest.d.ts +0 -6
  119. package/dist/runtime/entity/request/FindPlayerOperationRequest.d.ts +0 -6
  120. package/dist/runtime/entity/request/GetAppConfigOperationRequest.d.ts +0 -7
  121. package/dist/runtime/entity/request/GetChatInfoChannelOperationRequest.d.ts +0 -6
  122. package/dist/runtime/entity/request/GetChatMemberChannelOperationRequest.d.ts +0 -6
  123. package/dist/runtime/entity/request/GetChatMessageChannelOperationRequest.d.ts +0 -6
  124. package/dist/runtime/entity/request/GetChatMessageUserOperationRequest.d.ts +0 -6
  125. package/dist/runtime/entity/request/GetFileUploadInfoOperationRequest.d.ts +0 -6
  126. package/dist/runtime/entity/request/GetFriendsOperationRequest.d.ts +0 -6
  127. package/dist/runtime/entity/request/JoinChatChannelOperationRequest.d.ts +0 -6
  128. package/dist/runtime/entity/request/LeaveChatChannelOperationRequest.d.ts +0 -6
  129. package/dist/runtime/entity/request/LoginOperationRequest.d.ts +0 -33
  130. package/dist/runtime/entity/request/LogoutOperationRequest.d.ts +0 -6
  131. package/dist/runtime/entity/request/RegisterAccountOperationRequest.d.ts +0 -6
  132. package/dist/runtime/entity/request/RegisterSocketOperationRequest.d.ts +0 -6
  133. package/dist/runtime/entity/request/RemoveFriendOperationRequest.d.ts +0 -6
  134. package/dist/runtime/entity/request/SendChatToChannelOperationRequest.d.ts +0 -6
  135. package/dist/runtime/entity/request/SendChatToUserOperationRequest.d.ts +0 -6
  136. package/dist/runtime/entity/request/TemplateOperationRequest.d.ts +0 -6
  137. package/dist/runtime/entity/response/AddFriendOperationResponse.d.ts +0 -5
  138. package/dist/runtime/entity/response/CreateNewFileUploadInfoOperationResponse.d.ts +0 -10
  139. package/dist/runtime/entity/response/DebugOperationResponse.d.ts +0 -11
  140. package/dist/runtime/entity/response/EditChatInfoChannelOperationResponse.d.ts +0 -5
  141. package/dist/runtime/entity/response/EditChatMessageChannelOperationResponse.d.ts +0 -5
  142. package/dist/runtime/entity/response/EditChatMessageUserOperationResponse.d.ts +0 -5
  143. package/dist/runtime/entity/response/EnterDisplayNameOperationResponse.d.ts +0 -7
  144. package/dist/runtime/entity/response/FetchAllDataOperationResponse.d.ts +0 -10
  145. package/dist/runtime/entity/response/FetchSparkPlayerOperationResponse.d.ts +0 -20
  146. package/dist/runtime/entity/response/FindPlayerOperationResponse.d.ts +0 -6
  147. package/dist/runtime/entity/response/GetAppConfigOperationResponse.d.ts +0 -6
  148. package/dist/runtime/entity/response/GetChatInfoChannelOperationResponse.d.ts +0 -18
  149. package/dist/runtime/entity/response/GetChatMemberChannelOperationResponse.d.ts +0 -14
  150. package/dist/runtime/entity/response/GetChatMessageChannelOperationResponse.d.ts +0 -20
  151. package/dist/runtime/entity/response/GetChatMessageUserOperationResponse.d.ts +0 -17
  152. package/dist/runtime/entity/response/GetFileUploadInfoOperationResponse.d.ts +0 -15
  153. package/dist/runtime/entity/response/GetFriendsOperationResponse.d.ts +0 -13
  154. package/dist/runtime/entity/response/JoinChatChannelOperationResponse.d.ts +0 -5
  155. package/dist/runtime/entity/response/LeaveChatChannelOperationResponse.d.ts +0 -5
  156. package/dist/runtime/entity/response/LoginOperationResponse.d.ts +0 -9
  157. package/dist/runtime/entity/response/LogoutOperationResponse.d.ts +0 -5
  158. package/dist/runtime/entity/response/PublicAddressGetRandomMessageOperationResponse.d.ts +0 -6
  159. package/dist/runtime/entity/response/RegisterAccountOperationResponse.d.ts +0 -5
  160. package/dist/runtime/entity/response/RegisterSocketOperationResponse.d.ts +0 -5
  161. package/dist/runtime/entity/response/RemoveFriendOperationResponse.d.ts +0 -5
  162. package/dist/runtime/entity/response/SendChatToChannelOperationResponse.d.ts +0 -5
  163. package/dist/runtime/entity/response/SendChatToUserOperationResponse.d.ts +0 -5
  164. package/dist/runtime/entity/response/TemplateOperationResponse.d.ts +0 -6
  165. package/dist/runtime/entity/server/AvatarChannel.d.ts +0 -4
  166. package/dist/runtime/entity/server/ChatChannel.d.ts +0 -13
  167. package/dist/runtime/entity/server/ChatMessage.d.ts +0 -10
  168. package/dist/runtime/entity/server/ChatUser.d.ts +0 -5
  169. package/dist/runtime/entity/server/FriendItem.d.ts +0 -7
  170. package/dist/runtime/entity/server/UserChannel.d.ts +0 -4
  171. package/dist/runtime/networking/NetworkingPeerSocket.d.ts +0 -22
  172. package/dist/runtime/networking/handler/OnChannelChatEventHandler.d.ts +0 -6
  173. package/dist/runtime/networking/handler/OnDebugEventHander.d.ts +0 -6
  174. package/dist/runtime/networking/handler/OnFriendUpdateEventHandler.d.ts +0 -6
  175. package/dist/runtime/networking/handler/OnUserChatEventHandler.d.ts +0 -6
@@ -1,4 +0,0 @@
1
- export declare class UserChannel {
2
- userId: string;
3
- tsJoin: number;
4
- }
@@ -1,22 +0,0 @@
1
- import { Action0 } from "./../common/Action0";
2
- import { OperationRequest } from "./../entity/OperationRequest";
3
- import { NetworkingPeerBase } from "./NetworkingPeerBase";
4
- export declare class NetworkingPeerSocket extends NetworkingPeerBase {
5
- private socketManager;
6
- private socket;
7
- private isConnected;
8
- isWsConnected: boolean;
9
- sendRequestAuthSocket(): void;
10
- reInitNewSocket(): void;
11
- private onResponseMsgPack;
12
- private onEventMsgPack;
13
- private onResponseJson;
14
- private onEventJson;
15
- private onConnect;
16
- private onDisconnect;
17
- private onError;
18
- init(url: string, reconnectDelay: number, pingInterval: number, pingTimeout: number): void;
19
- protected emit(operationRequest: OperationRequest): void;
20
- close(_onSocketDisconnect: Action0): void;
21
- connect(_onSocketConnect: Action0): void;
22
- }
@@ -1,6 +0,0 @@
1
- import { OperationEvent } from "./../../entity/OperationEvent";
2
- import { IServerEventHandler } from "./IServerEventHandler";
3
- export declare class OnChannelChatEventHandler implements IServerEventHandler {
4
- getEventCode(): number;
5
- handle(operationEvent: OperationEvent): void;
6
- }
@@ -1,6 +0,0 @@
1
- import { OperationEvent } from "./../../entity/OperationEvent";
2
- import { IServerEventHandler } from "./IServerEventHandler";
3
- export declare class OnDebugEventHander implements IServerEventHandler {
4
- getEventCode(): number;
5
- handle(operationEvent: OperationEvent): void;
6
- }
@@ -1,6 +0,0 @@
1
- import { OperationEvent } from "./../../entity/OperationEvent";
2
- import { IServerEventHandler } from "./IServerEventHandler";
3
- export declare class OnFriendUpdateEventHandler implements IServerEventHandler {
4
- getEventCode(): number;
5
- handle(operationEvent: OperationEvent): void;
6
- }
@@ -1,6 +0,0 @@
1
- import { OperationEvent } from "./../../entity/OperationEvent";
2
- import { IServerEventHandler } from "./IServerEventHandler";
3
- export declare class OnUserChatEventHandler implements IServerEventHandler {
4
- getEventCode(): number;
5
- handle(operationEvent: OperationEvent): void;
6
- }