@xmobitea/gn-typescript-client 2.6.3 → 2.6.5-tsc
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/{GNServerSettingsConfig.debug.json → GNServerSettings.debug.json} +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +340 -34516
- package/dist/runtime/GNNetwork.d.ts +11 -11
- package/dist/runtime/GNNetwork.js +250 -0
- package/dist/runtime/GNNetworkAuthenticateApi.js +122 -0
- package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +24 -24
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +968 -0
- package/dist/runtime/GNNetworkCloudScriptApi.js +104 -0
- package/dist/runtime/GNNetworkContentApi.js +140 -0
- package/dist/runtime/GNNetworkDashboardApi.d.ts +6 -6
- package/dist/runtime/GNNetworkDashboardApi.js +170 -0
- package/dist/runtime/GNNetworkGamePlayerApi.d.ts +30 -30
- package/dist/runtime/GNNetworkGamePlayerApi.js +950 -0
- package/dist/runtime/GNNetworkGroupApi.d.ts +18 -18
- package/dist/runtime/GNNetworkGroupApi.js +734 -0
- package/dist/runtime/GNNetworkInventoryApi.d.ts +6 -6
- package/dist/runtime/GNNetworkInventoryApi.js +626 -0
- package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +12 -12
- package/dist/runtime/GNNetworkMasterPlayerApi.js +1550 -0
- package/dist/runtime/GNNetworkMultiplayerApi.js +194 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +6 -6
- package/dist/runtime/GNNetworkStoreInventoryApi.js +266 -0
- package/dist/runtime/common/Action0.js +1 -0
- package/dist/runtime/common/Action1.js +1 -0
- package/dist/runtime/common/Action2.js +1 -0
- package/dist/runtime/common/Action3.js +1 -0
- package/dist/runtime/common/Action4.js +1 -0
- package/dist/runtime/common/GNData.js +211 -0
- package/dist/runtime/config/GNServerSettings.d.ts +4 -0
- package/dist/runtime/config/GNServerSettings.js +149 -0
- package/dist/runtime/constant/Commands.js +19 -0
- package/dist/runtime/constant/EventCode.d.ts +6 -6
- package/dist/runtime/constant/EventCode.js +8 -0
- package/dist/runtime/constant/OperationCode.d.ts +219 -219
- package/dist/runtime/constant/OperationCode.js +221 -0
- package/dist/runtime/constant/ReturnCode.js +14 -0
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
- package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
- package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
- package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
- package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
- package/dist/runtime/constant/enumType/ItemType.js +5 -0
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
- package/dist/runtime/constant/enumType/OwnerType.js +9 -0
- package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
- package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
- package/dist/runtime/constant/enumType/RequestRole.js +6 -0
- package/dist/runtime/constant/enumType/RequestType.js +15 -0
- package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
- package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
- package/dist/runtime/constant/errorCode/{GNErrorCode.d.ts → ErrorCode.d.ts} +2 -2
- package/dist/runtime/constant/errorCode/ErrorCode.js +52 -0
- package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +610 -0
- package/dist/runtime/constant/parameterCode/ParameterCode.js +616 -0
- package/dist/runtime/entity/DataMember.js +208 -0
- package/dist/runtime/entity/GNMetadata.js +11 -0
- package/dist/runtime/entity/InvalidMember.js +1 -0
- package/dist/runtime/entity/OperationEvent.d.ts +2 -5
- package/dist/runtime/entity/OperationEvent.js +24 -0
- package/dist/runtime/entity/OperationHelper.d.ts +2 -2
- package/dist/runtime/entity/OperationHelper.js +24 -0
- package/dist/runtime/entity/OperationRequest.d.ts +2 -5
- package/dist/runtime/entity/OperationRequest.js +42 -0
- package/dist/runtime/entity/OperationResponse.d.ts +2 -5
- package/dist/runtime/entity/OperationResponse.js +73 -0
- package/dist/runtime/entity/models/AuthenticateModels.d.ts +3 -0
- package/dist/runtime/entity/models/AuthenticateModels.js +426 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +36 -54
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +188 -0
- package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +1 -1
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +16 -16
- package/dist/runtime/entity/models/CharacterPlayerModels.js +1437 -0
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +236 -289
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1386 -0
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +4 -4
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
- package/dist/runtime/entity/models/CloudScriptModels.d.ts +3 -2
- package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
- package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +20 -25
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +138 -0
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
- package/dist/runtime/entity/models/ContentModels.js +203 -0
- package/dist/runtime/entity/models/ContentRequestModels.d.ts +28 -35
- package/dist/runtime/entity/models/ContentRequestModels.js +190 -0
- package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
- package/dist/runtime/entity/models/DashboardModels.d.ts +39 -39
- package/dist/runtime/entity/models/DashboardModels.js +2990 -0
- package/dist/runtime/entity/models/DashboardRequestModels.d.ts +58 -84
- package/dist/runtime/entity/models/DashboardRequestModels.js +268 -0
- package/dist/runtime/entity/models/DashboardResponseModels.d.ts +3 -3
- package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +19 -19
- package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
- package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +238 -290
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +1360 -0
- package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +5 -5
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
- package/dist/runtime/entity/models/GenericModels.js +177 -0
- package/dist/runtime/entity/models/GroupModels.d.ts +13 -13
- package/dist/runtime/entity/models/GroupModels.js +1139 -0
- package/dist/runtime/entity/models/GroupRequestModels.d.ts +178 -218
- package/dist/runtime/entity/models/GroupRequestModels.js +1048 -0
- package/dist/runtime/entity/models/GroupResponseModels.d.ts +3 -3
- package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
- package/dist/runtime/entity/models/InventoryModels.d.ts +7 -7
- package/dist/runtime/entity/models/InventoryModels.js +915 -0
- package/dist/runtime/entity/models/InventoryRequestModels.d.ts +142 -176
- package/dist/runtime/entity/models/InventoryRequestModels.js +892 -0
- package/dist/runtime/entity/models/InventoryResponseModels.d.ts +1 -1
- package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +13 -11
- package/dist/runtime/entity/models/MasterPlayerModels.js +2573 -0
- package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +354 -440
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2228 -0
- package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +3 -3
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
- package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
- package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +40 -50
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +268 -0
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
- package/dist/runtime/entity/models/StoreInventoryModels.d.ts +11 -11
- package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +62 -76
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +372 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +1 -1
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
- package/dist/runtime/entity/request/CustomOperationRequest.d.ts +3 -4
- package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
- package/dist/runtime/entity/response/CustomOperationResponse.d.ts +1 -1
- package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
- package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
- package/dist/runtime/helper/CodeHelper.d.ts +8 -8
- package/dist/runtime/helper/CodeHelper.js +63 -0
- package/dist/runtime/helper/ConverterService.js +275 -0
- package/dist/runtime/helper/EnumUtility.d.ts +6 -0
- package/dist/runtime/helper/EnumUtility.js +33 -0
- package/dist/runtime/helper/GNSupport.js +8 -0
- package/dist/runtime/helper/GNUtils.js +72 -0
- package/dist/runtime/helper/MessagePackConverterService.js +9 -0
- package/dist/runtime/logger/GNDebug.js +29 -0
- package/dist/runtime/networking/AuthenticateStatus.js +14 -0
- package/dist/runtime/networking/IPeer.d.ts +1 -1
- package/dist/runtime/networking/IPeer.js +1 -0
- package/dist/runtime/networking/NetworkingPeer.d.ts +2 -2
- package/dist/runtime/networking/NetworkingPeer.js +178 -0
- package/dist/runtime/networking/OperationPending.d.ts +3 -3
- package/dist/runtime/networking/OperationPending.js +53 -0
- package/dist/runtime/networking/PeerBase.d.ts +3 -3
- package/dist/runtime/networking/PeerBase.js +161 -0
- package/dist/runtime/networking/handler/IServerEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +3 -1
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +43 -0
- package/dist/runtime/networking/http/HttpPeer.js +122 -0
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +164 -0
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +1 -1
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +130 -0
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +10 -12
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +165 -0
- package/dist/runtime/networking/socket/SocketPeer.d.ts +2 -2
- package/dist/runtime/networking/socket/SocketPeer.js +115 -0
- package/dist/runtime/typescript/ServiceUpdate.js +12 -0
- package/package.json +1 -1
- package/dist/gn.js.client.js +0 -47235
- package/dist/gn.js.client.min.js +0 -2
- package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
- package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +0 -599
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { OperationCode } from "./../../constant/OperationCode";
|
|
2
|
+
import { RequestRole } from "./../../constant/enumType/RequestRole";
|
|
3
|
+
import { RequestType } from "./../../constant/enumType/RequestType";
|
|
4
|
+
import { CustomOperationRequestAbstract } from "./../request/CustomOperationRequest";
|
|
5
|
+
import { AuthenticateModels } from "./AuthenticateModels";
|
|
6
|
+
export var AuthenticateRequestModels;
|
|
7
|
+
(function (AuthenticateRequestModels) {
|
|
8
|
+
class LoginByAccountOperationRequest extends CustomOperationRequestAbstract {
|
|
9
|
+
constructor(requestData, timeout) {
|
|
10
|
+
super(requestData, timeout);
|
|
11
|
+
this.operationCode = OperationCode.LoginByAccount;
|
|
12
|
+
this.requestType = RequestType.Authenticate;
|
|
13
|
+
this.role = RequestRole.Client;
|
|
14
|
+
this.requestDataCls = AuthenticateModels.LoginByAccountRequestData;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
AuthenticateRequestModels.LoginByAccountOperationRequest = LoginByAccountOperationRequest;
|
|
18
|
+
class LoginByAndroidDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
19
|
+
constructor(requestData, timeout) {
|
|
20
|
+
super(requestData, timeout);
|
|
21
|
+
this.operationCode = OperationCode.LoginByAndroidDeviceId;
|
|
22
|
+
this.requestType = RequestType.Authenticate;
|
|
23
|
+
this.role = RequestRole.Client;
|
|
24
|
+
this.requestDataCls = AuthenticateModels.LoginByAndroidDeviceIdRequestData;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest = LoginByAndroidDeviceIdOperationRequest;
|
|
28
|
+
class LoginByAppleOperationRequest extends CustomOperationRequestAbstract {
|
|
29
|
+
constructor(requestData, timeout) {
|
|
30
|
+
super(requestData, timeout);
|
|
31
|
+
this.operationCode = OperationCode.LoginByApple;
|
|
32
|
+
this.requestType = RequestType.Authenticate;
|
|
33
|
+
this.role = RequestRole.Client;
|
|
34
|
+
this.requestDataCls = AuthenticateModels.LoginByAppleRequestData;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
AuthenticateRequestModels.LoginByAppleOperationRequest = LoginByAppleOperationRequest;
|
|
38
|
+
class LoginByCustomDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
39
|
+
constructor(requestData, timeout) {
|
|
40
|
+
super(requestData, timeout);
|
|
41
|
+
this.operationCode = OperationCode.LoginByCustomDeviceId;
|
|
42
|
+
this.requestType = RequestType.Authenticate;
|
|
43
|
+
this.role = RequestRole.Client;
|
|
44
|
+
this.requestDataCls = AuthenticateModels.LoginByCustomDeviceIdRequestData;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest = LoginByCustomDeviceIdOperationRequest;
|
|
48
|
+
class LoginByCustomIdOperationRequest extends CustomOperationRequestAbstract {
|
|
49
|
+
constructor(requestData, timeout) {
|
|
50
|
+
super(requestData, timeout);
|
|
51
|
+
this.operationCode = OperationCode.LoginByCustomId;
|
|
52
|
+
this.requestType = RequestType.Authenticate;
|
|
53
|
+
this.role = RequestRole.Client;
|
|
54
|
+
this.requestDataCls = AuthenticateModels.LoginByCustomIdRequestData;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
AuthenticateRequestModels.LoginByCustomIdOperationRequest = LoginByCustomIdOperationRequest;
|
|
58
|
+
class LoginByEditorDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
59
|
+
constructor(requestData, timeout) {
|
|
60
|
+
super(requestData, timeout);
|
|
61
|
+
this.operationCode = OperationCode.LoginByEditorDeviceId;
|
|
62
|
+
this.requestType = RequestType.Authenticate;
|
|
63
|
+
this.role = RequestRole.Client;
|
|
64
|
+
this.requestDataCls = AuthenticateModels.LoginByEditorDeviceIdRequestData;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest = LoginByEditorDeviceIdOperationRequest;
|
|
68
|
+
class LoginByFacebookOperationRequest extends CustomOperationRequestAbstract {
|
|
69
|
+
constructor(requestData, timeout) {
|
|
70
|
+
super(requestData, timeout);
|
|
71
|
+
this.operationCode = OperationCode.LoginByFacebook;
|
|
72
|
+
this.requestType = RequestType.Authenticate;
|
|
73
|
+
this.role = RequestRole.Client;
|
|
74
|
+
this.requestDataCls = AuthenticateModels.LoginByFacebookRequestData;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
AuthenticateRequestModels.LoginByFacebookOperationRequest = LoginByFacebookOperationRequest;
|
|
78
|
+
class LoginByGenericServiceOperationRequest extends CustomOperationRequestAbstract {
|
|
79
|
+
constructor(requestData, timeout) {
|
|
80
|
+
super(requestData, timeout);
|
|
81
|
+
this.operationCode = OperationCode.LoginByGenericService;
|
|
82
|
+
this.requestType = RequestType.Authenticate;
|
|
83
|
+
this.role = RequestRole.Client;
|
|
84
|
+
this.requestDataCls = AuthenticateModels.LoginByGenericServiceRequestData;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
AuthenticateRequestModels.LoginByGenericServiceOperationRequest = LoginByGenericServiceOperationRequest;
|
|
88
|
+
class LoginByGoogleOperationRequest extends CustomOperationRequestAbstract {
|
|
89
|
+
constructor(requestData, timeout) {
|
|
90
|
+
super(requestData, timeout);
|
|
91
|
+
this.operationCode = OperationCode.LoginByGoogle;
|
|
92
|
+
this.requestType = RequestType.Authenticate;
|
|
93
|
+
this.role = RequestRole.Client;
|
|
94
|
+
this.requestDataCls = AuthenticateModels.LoginByGoogleRequestData;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
AuthenticateRequestModels.LoginByGoogleOperationRequest = LoginByGoogleOperationRequest;
|
|
98
|
+
class LoginByGooglePlayGameServiceOperationRequest extends CustomOperationRequestAbstract {
|
|
99
|
+
constructor(requestData, timeout) {
|
|
100
|
+
super(requestData, timeout);
|
|
101
|
+
this.operationCode = OperationCode.LoginByGooglePlayGameService;
|
|
102
|
+
this.requestType = RequestType.Authenticate;
|
|
103
|
+
this.role = RequestRole.Client;
|
|
104
|
+
this.requestDataCls = AuthenticateModels.LoginByGooglePlayGameServiceRequestData;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest = LoginByGooglePlayGameServiceOperationRequest;
|
|
108
|
+
class LoginByGameCenterOperationRequest extends CustomOperationRequestAbstract {
|
|
109
|
+
constructor(requestData, timeout) {
|
|
110
|
+
super(requestData, timeout);
|
|
111
|
+
this.operationCode = OperationCode.LoginByGameCenter;
|
|
112
|
+
this.requestType = RequestType.Authenticate;
|
|
113
|
+
this.role = RequestRole.Client;
|
|
114
|
+
this.requestDataCls = AuthenticateModels.LoginByGameCenterRequestData;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
AuthenticateRequestModels.LoginByGameCenterOperationRequest = LoginByGameCenterOperationRequest;
|
|
118
|
+
class LoginByiOSDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
119
|
+
constructor(requestData, timeout) {
|
|
120
|
+
super(requestData, timeout);
|
|
121
|
+
this.operationCode = OperationCode.LoginByiOSDeviceId;
|
|
122
|
+
this.requestType = RequestType.Authenticate;
|
|
123
|
+
this.role = RequestRole.Client;
|
|
124
|
+
this.requestDataCls = AuthenticateModels.LoginByiOSDeviceIdRequestData;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest = LoginByiOSDeviceIdOperationRequest;
|
|
128
|
+
class LoginByLinuxDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
129
|
+
constructor(requestData, timeout) {
|
|
130
|
+
super(requestData, timeout);
|
|
131
|
+
this.operationCode = OperationCode.LoginByLinuxDeviceId;
|
|
132
|
+
this.requestType = RequestType.Authenticate;
|
|
133
|
+
this.role = RequestRole.Client;
|
|
134
|
+
this.requestDataCls = AuthenticateModels.LoginByLinuxDeviceIdRequestData;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest = LoginByLinuxDeviceIdOperationRequest;
|
|
138
|
+
class LoginByMacOSDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
139
|
+
constructor(requestData, timeout) {
|
|
140
|
+
super(requestData, timeout);
|
|
141
|
+
this.operationCode = OperationCode.LoginByMacOSDeviceId;
|
|
142
|
+
this.requestType = RequestType.Authenticate;
|
|
143
|
+
this.role = RequestRole.Client;
|
|
144
|
+
this.requestDataCls = AuthenticateModels.LoginByMacOSDeviceIdRequestData;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest = LoginByMacOSDeviceIdOperationRequest;
|
|
148
|
+
class LoginByWindowsDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
149
|
+
constructor(requestData, timeout) {
|
|
150
|
+
super(requestData, timeout);
|
|
151
|
+
this.operationCode = OperationCode.LoginByWindowsDeviceId;
|
|
152
|
+
this.requestType = RequestType.Authenticate;
|
|
153
|
+
this.role = RequestRole.Client;
|
|
154
|
+
this.requestDataCls = AuthenticateModels.LoginByWindowsDeviceIdRequestData;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest = LoginByWindowsDeviceIdOperationRequest;
|
|
158
|
+
class LoginByWindowsPhoneDeviceIdOperationRequest extends CustomOperationRequestAbstract {
|
|
159
|
+
constructor(requestData, timeout) {
|
|
160
|
+
super(requestData, timeout);
|
|
161
|
+
this.operationCode = OperationCode.LoginByWindowsPhoneDeviceId;
|
|
162
|
+
this.requestType = RequestType.Authenticate;
|
|
163
|
+
this.role = RequestRole.Client;
|
|
164
|
+
this.requestDataCls = AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest = LoginByWindowsPhoneDeviceIdOperationRequest;
|
|
168
|
+
class RegisterAccountOperationRequest extends CustomOperationRequestAbstract {
|
|
169
|
+
constructor(requestData, timeout) {
|
|
170
|
+
super(requestData, timeout);
|
|
171
|
+
this.operationCode = OperationCode.RegisterAccount;
|
|
172
|
+
this.requestType = RequestType.Authenticate;
|
|
173
|
+
this.role = RequestRole.Client;
|
|
174
|
+
this.requestDataCls = AuthenticateModels.RegisterAccountRequestData;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
AuthenticateRequestModels.RegisterAccountOperationRequest = RegisterAccountOperationRequest;
|
|
178
|
+
class RefreshAuthTokenOperationRequest extends CustomOperationRequestAbstract {
|
|
179
|
+
constructor(requestData, timeout) {
|
|
180
|
+
super(requestData, timeout);
|
|
181
|
+
this.operationCode = OperationCode.RefreshAuthToken;
|
|
182
|
+
this.requestType = RequestType.Authenticate;
|
|
183
|
+
this.role = RequestRole.Client;
|
|
184
|
+
this.requestDataCls = AuthenticateModels.RefreshAuthTokenRequestData;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
AuthenticateRequestModels.RefreshAuthTokenOperationRequest = RefreshAuthTokenOperationRequest;
|
|
188
|
+
})(AuthenticateRequestModels || (AuthenticateRequestModels = {}));
|
|
@@ -22,7 +22,7 @@ export declare namespace AuthenticateResponseModels {
|
|
|
22
22
|
class LoginByFacebookOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
|
|
23
23
|
constructor();
|
|
24
24
|
}
|
|
25
|
-
class LoginByGenericServiceOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.
|
|
25
|
+
class LoginByGenericServiceOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.GenericServiceAuthenticateResponseData> {
|
|
26
26
|
constructor();
|
|
27
27
|
}
|
|
28
28
|
class LoginByGoogleOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
|
|
@@ -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.GenericServiceAuthenticateResponseData;
|
|
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 = {}));
|
|
@@ -329,26 +329,26 @@ export declare namespace CharacterPlayerModels {
|
|
|
329
329
|
}
|
|
330
330
|
class AdminGetTsLastLoginRequestData extends ServerGetTsLastLoginRequestData {
|
|
331
331
|
}
|
|
332
|
-
class
|
|
332
|
+
class CreateGroupRequestData {
|
|
333
333
|
characterId: string;
|
|
334
334
|
catalogId: string;
|
|
335
335
|
groupMembers?: Array<GroupMemberParam>;
|
|
336
336
|
displayName?: string;
|
|
337
337
|
}
|
|
338
|
-
class
|
|
338
|
+
class ServerCreateGroupRequestData extends CreateGroupRequestData {
|
|
339
339
|
}
|
|
340
|
-
class
|
|
340
|
+
class AdminCreateGroupRequestData extends ServerCreateGroupRequestData {
|
|
341
341
|
}
|
|
342
|
-
class
|
|
342
|
+
class CreatePlayerItemRequestData {
|
|
343
343
|
characterId: string;
|
|
344
344
|
catalogId: string;
|
|
345
345
|
classId: string;
|
|
346
346
|
displayName?: string;
|
|
347
347
|
amount?: number;
|
|
348
348
|
}
|
|
349
|
-
class
|
|
349
|
+
class ServerCreatePlayerItemRequestData extends CreatePlayerItemRequestData {
|
|
350
350
|
}
|
|
351
|
-
class
|
|
351
|
+
class AdminCreatePlayerItemRequestData extends ServerCreatePlayerItemRequestData {
|
|
352
352
|
}
|
|
353
353
|
class JoinGroupRequestData {
|
|
354
354
|
characterId: string;
|
|
@@ -417,7 +417,7 @@ export declare namespace CharacterPlayerModels {
|
|
|
417
417
|
}
|
|
418
418
|
class SetCustomDataRequestData {
|
|
419
419
|
characterId: string;
|
|
420
|
-
|
|
420
|
+
customDatas: Array<CustomDataParam>;
|
|
421
421
|
}
|
|
422
422
|
class ServerSetCustomDataRequestData extends SetCustomDataRequestData {
|
|
423
423
|
}
|
|
@@ -449,31 +449,31 @@ export declare namespace CharacterPlayerModels {
|
|
|
449
449
|
}
|
|
450
450
|
class AdminSetPlayerBanRequestData extends ServerSetPlayerBanRequestData {
|
|
451
451
|
}
|
|
452
|
-
class
|
|
452
|
+
class ChangePlayerCurrencyRequestData {
|
|
453
453
|
characterId: string;
|
|
454
|
-
|
|
454
|
+
playerCurrencies: Array<PlayerCurrencyParam>;
|
|
455
455
|
log?: string;
|
|
456
456
|
}
|
|
457
|
-
class
|
|
457
|
+
class ServerChangePlayerCurrencyRequestData extends ChangePlayerCurrencyRequestData {
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class AdminChangePlayerCurrencyRequestData extends ServerChangePlayerCurrencyRequestData {
|
|
460
460
|
}
|
|
461
461
|
class SetPlayerDataRequestData {
|
|
462
462
|
characterId: string;
|
|
463
|
-
|
|
463
|
+
playerDatas: Array<PlayerDataParam>;
|
|
464
464
|
}
|
|
465
465
|
class ServerSetPlayerDataRequestData extends SetPlayerDataRequestData {
|
|
466
466
|
}
|
|
467
467
|
class AdminSetPlayerDataRequestData extends ServerSetPlayerDataRequestData {
|
|
468
468
|
}
|
|
469
|
-
class
|
|
469
|
+
class ChangePlayerStatisticsRequestData {
|
|
470
470
|
characterId: string;
|
|
471
|
-
|
|
471
|
+
playerStatistics: Array<PlayerStatisticsParam>;
|
|
472
472
|
log?: string;
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class ServerChangePlayerStatisticsRequestData extends ChangePlayerStatisticsRequestData {
|
|
475
475
|
}
|
|
476
|
-
class
|
|
476
|
+
class AdminChangePlayerStatisticsRequestData extends ServerChangePlayerStatisticsRequestData {
|
|
477
477
|
}
|
|
478
478
|
class SetRemoveStatusRequestData {
|
|
479
479
|
characterId: string;
|