@xmobitea/gn-typescript-client 2.4.10 → 2.5.0-esnext

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 (130) hide show
  1. package/GNServerSettingsConfig.debug.json +1 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +332 -36091
  4. package/dist/runtime/GNNetwork.js +258 -0
  5. package/dist/runtime/GNNetworkAuthenticateApi.js +167 -0
  6. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +6 -0
  7. package/dist/runtime/GNNetworkCharacterPlayerApi.js +1295 -0
  8. package/dist/runtime/GNNetworkCloudScriptApi.js +143 -0
  9. package/dist/runtime/GNNetworkContentApi.js +191 -0
  10. package/dist/runtime/GNNetworkDashboardApi.js +231 -0
  11. package/dist/runtime/GNNetworkGamePlayerApi.js +1271 -0
  12. package/dist/runtime/GNNetworkGroupApi.js +983 -0
  13. package/dist/runtime/GNNetworkInventoryApi.js +839 -0
  14. package/dist/runtime/GNNetworkMasterPlayerApi.js +2071 -0
  15. package/dist/runtime/GNNetworkMultiplayerApi.js +263 -0
  16. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +12 -0
  17. package/dist/runtime/GNNetworkStoreInventoryApi.js +359 -0
  18. package/dist/runtime/common/Action0.js +1 -0
  19. package/dist/runtime/common/Action1.js +1 -0
  20. package/dist/runtime/common/Action2.js +1 -0
  21. package/dist/runtime/common/Action3.js +1 -0
  22. package/dist/runtime/common/Action4.js +1 -0
  23. package/dist/runtime/common/GNData.js +211 -0
  24. package/dist/runtime/config/GNServerSettings.d.ts +4 -0
  25. package/dist/runtime/config/GNServerSettings.js +135 -0
  26. package/dist/runtime/constant/Commands.js +19 -0
  27. package/dist/runtime/constant/EventCode.js +8 -0
  28. package/dist/runtime/constant/OperationCode.d.ts +2 -0
  29. package/dist/runtime/constant/OperationCode.js +221 -0
  30. package/dist/runtime/constant/ReturnCode.js +14 -0
  31. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
  32. package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
  33. package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
  34. package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
  35. package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
  36. package/dist/runtime/constant/enumType/ItemType.js +5 -0
  37. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
  38. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
  39. package/dist/runtime/constant/enumType/OwnerType.js +8 -0
  40. package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
  41. package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
  42. package/dist/runtime/constant/enumType/RequestRole.js +6 -0
  43. package/dist/runtime/constant/enumType/RequestType.js +15 -0
  44. package/dist/runtime/constant/enumType/StoreItemType.d.ts +4 -0
  45. package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
  46. package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
  47. package/dist/runtime/constant/errorCode/GNErrorCode.d.ts +2 -0
  48. package/dist/runtime/constant/errorCode/GNErrorCode.js +52 -0
  49. package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +4 -0
  50. package/dist/runtime/constant/parameterCode/GNParameterCode.js +593 -0
  51. package/dist/runtime/constant/parameterCode/ParameterCode.js +6 -0
  52. package/dist/runtime/entity/DataMember.js +208 -0
  53. package/dist/runtime/entity/GNMetadata.js +11 -0
  54. package/dist/runtime/entity/InvalidMember.js +1 -0
  55. package/dist/runtime/entity/OperationEvent.js +33 -0
  56. package/dist/runtime/entity/OperationHelper.js +23 -0
  57. package/dist/runtime/entity/OperationRequest.js +51 -0
  58. package/dist/runtime/entity/OperationResponse.js +82 -0
  59. package/dist/runtime/entity/models/AuthenticateModels.js +420 -0
  60. package/dist/runtime/entity/models/AuthenticateRequestModels.js +206 -0
  61. package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
  62. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +13 -0
  63. package/dist/runtime/entity/models/CharacterPlayerModels.js +1433 -0
  64. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +15 -0
  65. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1439 -0
  66. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +3 -0
  67. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
  68. package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
  69. package/dist/runtime/entity/models/CloudScriptRequestModels.js +143 -0
  70. package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
  71. package/dist/runtime/entity/models/ContentModels.js +211 -0
  72. package/dist/runtime/entity/models/ContentRequestModels.js +197 -0
  73. package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
  74. package/dist/runtime/entity/models/DashboardModels.d.ts +3 -0
  75. package/dist/runtime/entity/models/DashboardModels.js +2959 -0
  76. package/dist/runtime/entity/models/DashboardRequestModels.js +294 -0
  77. package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
  78. package/dist/runtime/entity/models/GamePlayerModels.js +1587 -0
  79. package/dist/runtime/entity/models/GamePlayerRequestModels.js +1412 -0
  80. package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
  81. package/dist/runtime/entity/models/GenericModels.js +177 -0
  82. package/dist/runtime/entity/models/GroupModels.js +1139 -0
  83. package/dist/runtime/entity/models/GroupRequestModels.js +1088 -0
  84. package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
  85. package/dist/runtime/entity/models/InventoryModels.js +915 -0
  86. package/dist/runtime/entity/models/InventoryRequestModels.js +926 -0
  87. package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
  88. package/dist/runtime/entity/models/MasterPlayerModels.js +2570 -0
  89. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2314 -0
  90. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
  91. package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
  92. package/dist/runtime/entity/models/MultiplayerRequestModels.js +278 -0
  93. package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
  94. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +26 -0
  95. package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
  96. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +30 -0
  97. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +386 -0
  98. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +6 -0
  99. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
  100. package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
  101. package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
  102. package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
  103. package/dist/runtime/helper/CodeHelper.js +61 -0
  104. package/dist/runtime/helper/ConverterService.js +275 -0
  105. package/dist/runtime/helper/GNSupport.js +8 -0
  106. package/dist/runtime/helper/GNUtils.js +72 -0
  107. package/dist/runtime/logger/GNDebug.js +29 -0
  108. package/dist/runtime/networking/AuthenticateStatus.js +14 -0
  109. package/dist/runtime/networking/IPeer.js +1 -0
  110. package/dist/runtime/networking/NetworkingPeer.js +163 -0
  111. package/dist/runtime/networking/OperationPending.js +53 -0
  112. package/dist/runtime/networking/PeerBase.js +170 -0
  113. package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
  114. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
  115. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
  116. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
  117. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
  118. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
  119. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +35 -0
  120. package/dist/runtime/networking/http/HttpPeer.js +124 -0
  121. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
  122. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +146 -0
  123. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +126 -0
  124. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +176 -0
  125. package/dist/runtime/networking/socket/SocketPeer.js +108 -0
  126. package/dist/runtime/typescript/ServiceUpdate.js +12 -0
  127. package/package.json +1 -1
  128. package/dist/gn.js.client.js +0 -48802
  129. package/dist/gn.js.client.min.js +0 -2
  130. package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
@@ -0,0 +1,131 @@
1
+ import { CustomOperationResponseAbstract } from "./../response/CustomOperationResponse";
2
+ import { AuthenticateModels } from "./AuthenticateModels";
3
+ export var AuthenticateResponseModels;
4
+ (function (AuthenticateResponseModels) {
5
+ class LoginByAccountOperationResponse extends CustomOperationResponseAbstract {
6
+ constructor() {
7
+ super();
8
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
9
+ }
10
+ }
11
+ AuthenticateResponseModels.LoginByAccountOperationResponse = LoginByAccountOperationResponse;
12
+ class LoginByAndroidDeviceIdOperationResponse extends CustomOperationResponseAbstract {
13
+ constructor() {
14
+ super();
15
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
16
+ }
17
+ }
18
+ AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse = LoginByAndroidDeviceIdOperationResponse;
19
+ class LoginByAppleOperationResponse extends CustomOperationResponseAbstract {
20
+ constructor() {
21
+ super();
22
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
23
+ }
24
+ }
25
+ AuthenticateResponseModels.LoginByAppleOperationResponse = LoginByAppleOperationResponse;
26
+ class LoginByCustomDeviceIdOperationResponse extends CustomOperationResponseAbstract {
27
+ constructor() {
28
+ super();
29
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
30
+ }
31
+ }
32
+ AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse = LoginByCustomDeviceIdOperationResponse;
33
+ class LoginByCustomIdOperationResponse extends CustomOperationResponseAbstract {
34
+ constructor() {
35
+ super();
36
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
37
+ }
38
+ }
39
+ AuthenticateResponseModels.LoginByCustomIdOperationResponse = LoginByCustomIdOperationResponse;
40
+ class LoginByEditorDeviceIdOperationResponse extends CustomOperationResponseAbstract {
41
+ constructor() {
42
+ super();
43
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
44
+ }
45
+ }
46
+ AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse = LoginByEditorDeviceIdOperationResponse;
47
+ class LoginByFacebookOperationResponse extends CustomOperationResponseAbstract {
48
+ constructor() {
49
+ super();
50
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
51
+ }
52
+ }
53
+ AuthenticateResponseModels.LoginByFacebookOperationResponse = LoginByFacebookOperationResponse;
54
+ class LoginByGenericServiceOperationResponse extends CustomOperationResponseAbstract {
55
+ constructor() {
56
+ super();
57
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
58
+ }
59
+ }
60
+ AuthenticateResponseModels.LoginByGenericServiceOperationResponse = LoginByGenericServiceOperationResponse;
61
+ class LoginByGoogleOperationResponse extends CustomOperationResponseAbstract {
62
+ constructor() {
63
+ super();
64
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
65
+ }
66
+ }
67
+ AuthenticateResponseModels.LoginByGoogleOperationResponse = LoginByGoogleOperationResponse;
68
+ class LoginByGooglePlayGameServiceOperationResponse extends CustomOperationResponseAbstract {
69
+ constructor() {
70
+ super();
71
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
72
+ }
73
+ }
74
+ AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse = LoginByGooglePlayGameServiceOperationResponse;
75
+ class LoginByGameCenterOperationResponse extends CustomOperationResponseAbstract {
76
+ constructor() {
77
+ super();
78
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
79
+ }
80
+ }
81
+ AuthenticateResponseModels.LoginByGameCenterOperationResponse = LoginByGameCenterOperationResponse;
82
+ class LoginByiOSDeviceIdOperationResponse extends CustomOperationResponseAbstract {
83
+ constructor() {
84
+ super();
85
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
86
+ }
87
+ }
88
+ AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse = LoginByiOSDeviceIdOperationResponse;
89
+ class LoginByLinuxDeviceIdOperationResponse extends CustomOperationResponseAbstract {
90
+ constructor() {
91
+ super();
92
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
93
+ }
94
+ }
95
+ AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse = LoginByLinuxDeviceIdOperationResponse;
96
+ class LoginByMacOSDeviceIdOperationResponse extends CustomOperationResponseAbstract {
97
+ constructor() {
98
+ super();
99
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
100
+ }
101
+ }
102
+ AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse = LoginByMacOSDeviceIdOperationResponse;
103
+ class LoginByWindowsDeviceIdOperationResponse extends CustomOperationResponseAbstract {
104
+ constructor() {
105
+ super();
106
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
107
+ }
108
+ }
109
+ AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse = LoginByWindowsDeviceIdOperationResponse;
110
+ class LoginByWindowsPhoneDeviceIdOperationResponse extends CustomOperationResponseAbstract {
111
+ constructor() {
112
+ super();
113
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
114
+ }
115
+ }
116
+ AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse = LoginByWindowsPhoneDeviceIdOperationResponse;
117
+ class RegisterAccountOperationResponse extends CustomOperationResponseAbstract {
118
+ constructor() {
119
+ super();
120
+ this.responseDataCls = AuthenticateModels.AuthenticateResponseData;
121
+ }
122
+ }
123
+ AuthenticateResponseModels.RegisterAccountOperationResponse = RegisterAccountOperationResponse;
124
+ class RefreshAuthTokenOperationResponse extends CustomOperationResponseAbstract {
125
+ constructor() {
126
+ super();
127
+ this.responseDataCls = AuthenticateModels.RefreshAuthTokenResponseData;
128
+ }
129
+ }
130
+ AuthenticateResponseModels.RefreshAuthTokenOperationResponse = RefreshAuthTokenOperationResponse;
131
+ })(AuthenticateResponseModels || (AuthenticateResponseModels = {}));
@@ -297,6 +297,16 @@ export declare namespace CharacterPlayerModels {
297
297
  }
298
298
  class AdminGetCreateLeaderboardRequestData extends ServerGetCreateLeaderboardRequestData {
299
299
  }
300
+ class GetLastLoginLeaderboardRequestData {
301
+ infoRequestParam: InfoRequestParam;
302
+ skip?: number;
303
+ limit?: number;
304
+ loadFromCache?: boolean;
305
+ }
306
+ class ServerGetLastLoginLeaderboardRequestData extends GetLastLoginLeaderboardRequestData {
307
+ }
308
+ class AdminGetLastLoginLeaderboardRequestData extends ServerGetLastLoginLeaderboardRequestData {
309
+ }
300
310
  class GetTagRequestData {
301
311
  characterId: string;
302
312
  tagKeys: Array<string>;
@@ -554,6 +564,9 @@ export declare namespace CharacterPlayerModels {
554
564
  class GetCreateLeaderboardResponseData {
555
565
  results: Array<CharacterPlayerLeaderboardResponseData>;
556
566
  }
567
+ class GetLastLoginLeaderboardResponseData {
568
+ results: Array<CharacterPlayerLeaderboardResponseData>;
569
+ }
557
570
  class GetStatisticsLogResponseData {
558
571
  results: Array<CharacterPlayerLogResponseData>;
559
572
  token?: string;