@xmobitea/gn-typescript-client 2.5.1-esnext → 2.5.1

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 (114) hide show
  1. package/dist/gn.js.client.js +49111 -0
  2. package/dist/gn.js.client.min.js +2 -0
  3. package/dist/gn.js.client.min.js.LICENSE.txt +14 -0
  4. package/dist/index.js +36400 -332
  5. package/package.json +1 -1
  6. package/dist/runtime/GNNetwork.js +0 -258
  7. package/dist/runtime/GNNetworkAuthenticateApi.js +0 -167
  8. package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -1295
  9. package/dist/runtime/GNNetworkCloudScriptApi.js +0 -143
  10. package/dist/runtime/GNNetworkContentApi.js +0 -191
  11. package/dist/runtime/GNNetworkDashboardApi.js +0 -231
  12. package/dist/runtime/GNNetworkGamePlayerApi.js +0 -1271
  13. package/dist/runtime/GNNetworkGroupApi.js +0 -983
  14. package/dist/runtime/GNNetworkInventoryApi.js +0 -839
  15. package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -2071
  16. package/dist/runtime/GNNetworkMultiplayerApi.js +0 -263
  17. package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -359
  18. package/dist/runtime/common/Action0.js +0 -1
  19. package/dist/runtime/common/Action1.js +0 -1
  20. package/dist/runtime/common/Action2.js +0 -1
  21. package/dist/runtime/common/Action3.js +0 -1
  22. package/dist/runtime/common/Action4.js +0 -1
  23. package/dist/runtime/common/GNData.js +0 -211
  24. package/dist/runtime/config/GNServerSettings.js +0 -135
  25. package/dist/runtime/constant/Commands.js +0 -19
  26. package/dist/runtime/constant/EventCode.js +0 -8
  27. package/dist/runtime/constant/OperationCode.js +0 -221
  28. package/dist/runtime/constant/ReturnCode.js +0 -14
  29. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
  30. package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
  31. package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
  32. package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
  33. package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
  34. package/dist/runtime/constant/enumType/ItemType.js +0 -5
  35. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
  36. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
  37. package/dist/runtime/constant/enumType/OwnerType.js +0 -8
  38. package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
  39. package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
  40. package/dist/runtime/constant/enumType/RequestRole.js +0 -6
  41. package/dist/runtime/constant/enumType/RequestType.js +0 -15
  42. package/dist/runtime/constant/enumType/StoreItemType.js +0 -5
  43. package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
  44. package/dist/runtime/constant/errorCode/GNErrorCode.js +0 -52
  45. package/dist/runtime/constant/parameterCode/GNParameterCode.js +0 -593
  46. package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -6
  47. package/dist/runtime/entity/DataMember.js +0 -208
  48. package/dist/runtime/entity/GNMetadata.js +0 -11
  49. package/dist/runtime/entity/InvalidMember.js +0 -1
  50. package/dist/runtime/entity/OperationEvent.js +0 -33
  51. package/dist/runtime/entity/OperationHelper.js +0 -23
  52. package/dist/runtime/entity/OperationRequest.js +0 -51
  53. package/dist/runtime/entity/OperationResponse.js +0 -82
  54. package/dist/runtime/entity/models/AuthenticateModels.js +0 -420
  55. package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -206
  56. package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
  57. package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1433
  58. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1439
  59. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -376
  60. package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
  61. package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -143
  62. package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
  63. package/dist/runtime/entity/models/ContentModels.js +0 -211
  64. package/dist/runtime/entity/models/ContentRequestModels.js +0 -197
  65. package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
  66. package/dist/runtime/entity/models/DashboardModels.js +0 -2959
  67. package/dist/runtime/entity/models/DashboardRequestModels.js +0 -294
  68. package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
  69. package/dist/runtime/entity/models/GamePlayerModels.js +0 -1587
  70. package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1412
  71. package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
  72. package/dist/runtime/entity/models/GenericModels.js +0 -177
  73. package/dist/runtime/entity/models/GroupModels.js +0 -1139
  74. package/dist/runtime/entity/models/GroupRequestModels.js +0 -1088
  75. package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
  76. package/dist/runtime/entity/models/InventoryModels.js +0 -915
  77. package/dist/runtime/entity/models/InventoryRequestModels.js +0 -926
  78. package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
  79. package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2570
  80. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2314
  81. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
  82. package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
  83. package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -278
  84. package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
  85. package/dist/runtime/entity/models/StoreInventoryModels.js +0 -797
  86. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -386
  87. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -103
  88. package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
  89. package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
  90. package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
  91. package/dist/runtime/helper/CodeHelper.js +0 -61
  92. package/dist/runtime/helper/ConverterService.js +0 -275
  93. package/dist/runtime/helper/GNSupport.js +0 -8
  94. package/dist/runtime/helper/GNUtils.js +0 -72
  95. package/dist/runtime/logger/GNDebug.js +0 -29
  96. package/dist/runtime/networking/AuthenticateStatus.js +0 -14
  97. package/dist/runtime/networking/IPeer.js +0 -1
  98. package/dist/runtime/networking/NetworkingPeer.js +0 -163
  99. package/dist/runtime/networking/OperationPending.js +0 -53
  100. package/dist/runtime/networking/PeerBase.js +0 -170
  101. package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
  102. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
  103. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
  104. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
  105. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
  106. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
  107. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -35
  108. package/dist/runtime/networking/http/HttpPeer.js +0 -124
  109. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -6
  110. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -146
  111. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -126
  112. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -176
  113. package/dist/runtime/networking/socket/SocketPeer.js +0 -108
  114. package/dist/runtime/typescript/ServiceUpdate.js +0 -12
@@ -1,420 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { GNHashtable } from "../../common/GNData";
11
- import { GNParameterCode } from "./../../constant/parameterCode/GNParameterCode";
12
- import { ParameterCode } from "./../../constant/parameterCode/ParameterCode";
13
- import { GNHashtableDataMember, StringDataMember, BooleanDataMember, GNArrayDataMember, NumberDataMember } from "./../DataMember";
14
- import { GenericModels } from "./GenericModels";
15
- import { MasterPlayerModels } from "./MasterPlayerModels";
16
- export var AuthenticateModels;
17
- (function (AuthenticateModels) {
18
- class InfoRequestParam {
19
- }
20
- __decorate([
21
- BooleanDataMember({ code: GNParameterCode.External, isOptional: true, defaultValue: false }),
22
- __metadata("design:type", Boolean)
23
- ], InfoRequestParam.prototype, "external", void 0);
24
- __decorate([
25
- BooleanDataMember({ code: GNParameterCode.Segments, isOptional: true, defaultValue: false }),
26
- __metadata("design:type", Boolean)
27
- ], InfoRequestParam.prototype, "segments", void 0);
28
- __decorate([
29
- BooleanDataMember({ code: GNParameterCode.CustomDatas, isOptional: true, defaultValue: false }),
30
- __metadata("design:type", Boolean)
31
- ], InfoRequestParam.prototype, "customDatas", void 0);
32
- __decorate([
33
- BooleanDataMember({ code: GNParameterCode.DisplayName, isOptional: true, defaultValue: false }),
34
- __metadata("design:type", Boolean)
35
- ], InfoRequestParam.prototype, "displayName", void 0);
36
- __decorate([
37
- BooleanDataMember({ code: GNParameterCode.Avatar, isOptional: true, defaultValue: false }),
38
- __metadata("design:type", Boolean)
39
- ], InfoRequestParam.prototype, "avatar", void 0);
40
- __decorate([
41
- BooleanDataMember({ code: GNParameterCode.TsCreate, isOptional: true, defaultValue: false }),
42
- __metadata("design:type", Boolean)
43
- ], InfoRequestParam.prototype, "tsCreate", void 0);
44
- __decorate([
45
- BooleanDataMember({ code: GNParameterCode.Tags, isOptional: true, defaultValue: false }),
46
- __metadata("design:type", Boolean)
47
- ], InfoRequestParam.prototype, "tags", void 0);
48
- __decorate([
49
- BooleanDataMember({ code: GNParameterCode.PlayerBan, isOptional: true, defaultValue: false }),
50
- __metadata("design:type", Boolean)
51
- ], InfoRequestParam.prototype, "playerBan", void 0);
52
- __decorate([
53
- BooleanDataMember({ code: GNParameterCode.PlayerCurrencies, isOptional: true, defaultValue: false }),
54
- __metadata("design:type", Boolean)
55
- ], InfoRequestParam.prototype, "playerCurrencies", void 0);
56
- __decorate([
57
- BooleanDataMember({ code: GNParameterCode.PlayerStatistics, isOptional: true, defaultValue: false }),
58
- __metadata("design:type", Boolean)
59
- ], InfoRequestParam.prototype, "playerStatistics", void 0);
60
- __decorate([
61
- BooleanDataMember({ code: GNParameterCode.PlayerDatas, isOptional: true, defaultValue: false }),
62
- __metadata("design:type", Boolean)
63
- ], InfoRequestParam.prototype, "playerDatas", void 0);
64
- __decorate([
65
- BooleanDataMember({ code: GNParameterCode.IpAddressCreate, isOptional: true, defaultValue: false }),
66
- __metadata("design:type", Boolean)
67
- ], InfoRequestParam.prototype, "ipAddressCreate", void 0);
68
- __decorate([
69
- BooleanDataMember({ code: GNParameterCode.CountryCode, isOptional: true, defaultValue: false }),
70
- __metadata("design:type", Boolean)
71
- ], InfoRequestParam.prototype, "countryCode", void 0);
72
- __decorate([
73
- BooleanDataMember({ code: GNParameterCode.Email, isOptional: true, defaultValue: false }),
74
- __metadata("design:type", Boolean)
75
- ], InfoRequestParam.prototype, "email", void 0);
76
- __decorate([
77
- BooleanDataMember({ code: GNParameterCode.TsLastLogin, isOptional: true, defaultValue: false }),
78
- __metadata("design:type", Boolean)
79
- ], InfoRequestParam.prototype, "tsLastLogin", void 0);
80
- __decorate([
81
- BooleanDataMember({ code: GNParameterCode.PushNotifications, isOptional: true, defaultValue: false }),
82
- __metadata("design:type", Boolean)
83
- ], InfoRequestParam.prototype, "pushNotifications", void 0);
84
- __decorate([
85
- GNArrayDataMember({ code: GNParameterCode.PlayerDataKeys, isOptional: true, elementCls: String }),
86
- __metadata("design:type", Array)
87
- ], InfoRequestParam.prototype, "playerDataKeys", void 0);
88
- __decorate([
89
- GNArrayDataMember({ code: GNParameterCode.PlayerCurrencyKeys, isOptional: true, elementCls: String }),
90
- __metadata("design:type", Array)
91
- ], InfoRequestParam.prototype, "playerCurrencyKeys", void 0);
92
- __decorate([
93
- GNArrayDataMember({ code: GNParameterCode.PlayerStatisticsKeys, isOptional: true, elementCls: String }),
94
- __metadata("design:type", Array)
95
- ], InfoRequestParam.prototype, "playerStatisticsKeys", void 0);
96
- __decorate([
97
- GNArrayDataMember({ code: GNParameterCode.CustomDataKeys, isOptional: true, elementCls: String }),
98
- __metadata("design:type", Array)
99
- ], InfoRequestParam.prototype, "customDataKeys", void 0);
100
- __decorate([
101
- GNArrayDataMember({ code: GNParameterCode.TagKeys, isOptional: true, elementCls: String }),
102
- __metadata("design:type", Array)
103
- ], InfoRequestParam.prototype, "tagKeys", void 0);
104
- AuthenticateModels.InfoRequestParam = InfoRequestParam;
105
- class LoginByAccountRequestData {
106
- }
107
- __decorate([
108
- StringDataMember({ code: GNParameterCode.Username, minLength: 6, maxLength: 32, mustNonNull: true }),
109
- __metadata("design:type", String)
110
- ], LoginByAccountRequestData.prototype, "username", void 0);
111
- __decorate([
112
- StringDataMember({ code: GNParameterCode.Password, minLength: 6, maxLength: 64, mustNonNull: true }),
113
- __metadata("design:type", String)
114
- ], LoginByAccountRequestData.prototype, "password", void 0);
115
- __decorate([
116
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
117
- __metadata("design:type", InfoRequestParam)
118
- ], LoginByAccountRequestData.prototype, "infoRequestParam", void 0);
119
- AuthenticateModels.LoginByAccountRequestData = LoginByAccountRequestData;
120
- class LoginByAndroidDeviceIdRequestData {
121
- }
122
- __decorate([
123
- StringDataMember({ code: GNParameterCode.AndroidDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
124
- __metadata("design:type", String)
125
- ], LoginByAndroidDeviceIdRequestData.prototype, "androidDeviceId", void 0);
126
- __decorate([
127
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
128
- __metadata("design:type", Boolean)
129
- ], LoginByAndroidDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
130
- __decorate([
131
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
132
- __metadata("design:type", InfoRequestParam)
133
- ], LoginByAndroidDeviceIdRequestData.prototype, "infoRequestParam", void 0);
134
- AuthenticateModels.LoginByAndroidDeviceIdRequestData = LoginByAndroidDeviceIdRequestData;
135
- class LoginByAppleRequestData {
136
- }
137
- __decorate([
138
- StringDataMember({ code: GNParameterCode.Token, minLength: 32, maxLength: 2048, mustNonNull: true }),
139
- __metadata("design:type", String)
140
- ], LoginByAppleRequestData.prototype, "token", void 0);
141
- __decorate([
142
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
143
- __metadata("design:type", Boolean)
144
- ], LoginByAppleRequestData.prototype, "createPlayerIfNotExists", void 0);
145
- __decorate([
146
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
147
- __metadata("design:type", InfoRequestParam)
148
- ], LoginByAppleRequestData.prototype, "infoRequestParam", void 0);
149
- AuthenticateModels.LoginByAppleRequestData = LoginByAppleRequestData;
150
- class LoginByCustomDeviceIdRequestData {
151
- }
152
- __decorate([
153
- StringDataMember({ code: GNParameterCode.CustomDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
154
- __metadata("design:type", String)
155
- ], LoginByCustomDeviceIdRequestData.prototype, "customDeviceId", void 0);
156
- __decorate([
157
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
158
- __metadata("design:type", Boolean)
159
- ], LoginByCustomDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
160
- __decorate([
161
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
162
- __metadata("design:type", InfoRequestParam)
163
- ], LoginByCustomDeviceIdRequestData.prototype, "infoRequestParam", void 0);
164
- AuthenticateModels.LoginByCustomDeviceIdRequestData = LoginByCustomDeviceIdRequestData;
165
- class LoginByCustomIdRequestData {
166
- }
167
- __decorate([
168
- StringDataMember({ code: GNParameterCode.CustomId, minLength: 6, maxLength: 64, mustNonNull: true }),
169
- __metadata("design:type", String)
170
- ], LoginByCustomIdRequestData.prototype, "customId", void 0);
171
- __decorate([
172
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
173
- __metadata("design:type", Boolean)
174
- ], LoginByCustomIdRequestData.prototype, "createPlayerIfNotExists", void 0);
175
- __decorate([
176
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
177
- __metadata("design:type", InfoRequestParam)
178
- ], LoginByCustomIdRequestData.prototype, "infoRequestParam", void 0);
179
- AuthenticateModels.LoginByCustomIdRequestData = LoginByCustomIdRequestData;
180
- class LoginByEditorDeviceIdRequestData {
181
- }
182
- __decorate([
183
- StringDataMember({ code: GNParameterCode.EditorDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
184
- __metadata("design:type", String)
185
- ], LoginByEditorDeviceIdRequestData.prototype, "editorDeviceId", void 0);
186
- __decorate([
187
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
188
- __metadata("design:type", Boolean)
189
- ], LoginByEditorDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
190
- __decorate([
191
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
192
- __metadata("design:type", InfoRequestParam)
193
- ], LoginByEditorDeviceIdRequestData.prototype, "infoRequestParam", void 0);
194
- AuthenticateModels.LoginByEditorDeviceIdRequestData = LoginByEditorDeviceIdRequestData;
195
- class LoginByFacebookRequestData {
196
- }
197
- __decorate([
198
- StringDataMember({ code: GNParameterCode.Token, minLength: 32, maxLength: 2048, mustNonNull: true }),
199
- __metadata("design:type", String)
200
- ], LoginByFacebookRequestData.prototype, "token", void 0);
201
- __decorate([
202
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
203
- __metadata("design:type", Boolean)
204
- ], LoginByFacebookRequestData.prototype, "createPlayerIfNotExists", void 0);
205
- __decorate([
206
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
207
- __metadata("design:type", InfoRequestParam)
208
- ], LoginByFacebookRequestData.prototype, "infoRequestParam", void 0);
209
- AuthenticateModels.LoginByFacebookRequestData = LoginByFacebookRequestData;
210
- class LoginByGenericServiceRequestData {
211
- }
212
- __decorate([
213
- StringDataMember({ code: GNParameterCode.ServiceName, minLength: 6, maxLength: 32, mustNonNull: true }),
214
- __metadata("design:type", String)
215
- ], LoginByGenericServiceRequestData.prototype, "serviceName", void 0);
216
- __decorate([
217
- GNHashtableDataMember({ code: GNParameterCode.ServiceData, mustNonNull: true }),
218
- __metadata("design:type", GNHashtable)
219
- ], LoginByGenericServiceRequestData.prototype, "serviceData", void 0);
220
- __decorate([
221
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
222
- __metadata("design:type", Boolean)
223
- ], LoginByGenericServiceRequestData.prototype, "createPlayerIfNotExists", void 0);
224
- __decorate([
225
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
226
- __metadata("design:type", InfoRequestParam)
227
- ], LoginByGenericServiceRequestData.prototype, "infoRequestParam", void 0);
228
- AuthenticateModels.LoginByGenericServiceRequestData = LoginByGenericServiceRequestData;
229
- class LoginByGoogleRequestData {
230
- }
231
- __decorate([
232
- StringDataMember({ code: GNParameterCode.Token, minLength: 32, maxLength: 2048, mustNonNull: true }),
233
- __metadata("design:type", String)
234
- ], LoginByGoogleRequestData.prototype, "token", void 0);
235
- __decorate([
236
- NumberDataMember({ code: GNParameterCode.Type, minValue: 1, maxValue: 2, mustInt: true }),
237
- __metadata("design:type", Number)
238
- ], LoginByGoogleRequestData.prototype, "type", void 0);
239
- __decorate([
240
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
241
- __metadata("design:type", Boolean)
242
- ], LoginByGoogleRequestData.prototype, "createPlayerIfNotExists", void 0);
243
- __decorate([
244
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
245
- __metadata("design:type", InfoRequestParam)
246
- ], LoginByGoogleRequestData.prototype, "infoRequestParam", void 0);
247
- AuthenticateModels.LoginByGoogleRequestData = LoginByGoogleRequestData;
248
- class LoginByGooglePlayGameServiceRequestData {
249
- }
250
- __decorate([
251
- StringDataMember({ code: GNParameterCode.Token, minLength: 32, maxLength: 2048, mustNonNull: true }),
252
- __metadata("design:type", String)
253
- ], LoginByGooglePlayGameServiceRequestData.prototype, "token", void 0);
254
- __decorate([
255
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
256
- __metadata("design:type", Boolean)
257
- ], LoginByGooglePlayGameServiceRequestData.prototype, "createPlayerIfNotExists", void 0);
258
- __decorate([
259
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
260
- __metadata("design:type", InfoRequestParam)
261
- ], LoginByGooglePlayGameServiceRequestData.prototype, "infoRequestParam", void 0);
262
- AuthenticateModels.LoginByGooglePlayGameServiceRequestData = LoginByGooglePlayGameServiceRequestData;
263
- class LoginByGameCenterRequestData {
264
- }
265
- __decorate([
266
- StringDataMember({ code: GNParameterCode.PlayerId, minLength: 2, maxLength: 64, mustNonNull: true }),
267
- __metadata("design:type", String)
268
- ], LoginByGameCenterRequestData.prototype, "playerId", void 0);
269
- __decorate([
270
- StringDataMember({ code: GNParameterCode.Name, minLength: 2, maxLength: 128, mustNonNull: true }),
271
- __metadata("design:type", String)
272
- ], LoginByGameCenterRequestData.prototype, "name", void 0);
273
- __decorate([
274
- StringDataMember({ code: GNParameterCode.PublicKeyUrl, minLength: 2, maxLength: 2048, mustNonNull: true }),
275
- __metadata("design:type", String)
276
- ], LoginByGameCenterRequestData.prototype, "publicKeyUrl", void 0);
277
- __decorate([
278
- StringDataMember({ code: GNParameterCode.Signature, minLength: 2, maxLength: 2048, mustNonNull: true }),
279
- __metadata("design:type", String)
280
- ], LoginByGameCenterRequestData.prototype, "signature", void 0);
281
- __decorate([
282
- StringDataMember({ code: GNParameterCode.Salt, minLength: 2, maxLength: 256, mustNonNull: true }),
283
- __metadata("design:type", String)
284
- ], LoginByGameCenterRequestData.prototype, "salt", void 0);
285
- __decorate([
286
- NumberDataMember({ code: GNParameterCode.Timestamp }),
287
- __metadata("design:type", Number)
288
- ], LoginByGameCenterRequestData.prototype, "timestamp", void 0);
289
- __decorate([
290
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
291
- __metadata("design:type", Boolean)
292
- ], LoginByGameCenterRequestData.prototype, "createPlayerIfNotExists", void 0);
293
- __decorate([
294
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
295
- __metadata("design:type", InfoRequestParam)
296
- ], LoginByGameCenterRequestData.prototype, "infoRequestParam", void 0);
297
- AuthenticateModels.LoginByGameCenterRequestData = LoginByGameCenterRequestData;
298
- class LoginByiOSDeviceIdRequestData {
299
- }
300
- __decorate([
301
- StringDataMember({ code: GNParameterCode.iOSDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
302
- __metadata("design:type", String)
303
- ], LoginByiOSDeviceIdRequestData.prototype, "iOSDeviceId", void 0);
304
- __decorate([
305
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
306
- __metadata("design:type", Boolean)
307
- ], LoginByiOSDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
308
- __decorate([
309
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
310
- __metadata("design:type", InfoRequestParam)
311
- ], LoginByiOSDeviceIdRequestData.prototype, "infoRequestParam", void 0);
312
- AuthenticateModels.LoginByiOSDeviceIdRequestData = LoginByiOSDeviceIdRequestData;
313
- class LoginByLinuxDeviceIdRequestData {
314
- }
315
- __decorate([
316
- StringDataMember({ code: GNParameterCode.LinuxDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
317
- __metadata("design:type", String)
318
- ], LoginByLinuxDeviceIdRequestData.prototype, "linuxDeviceId", void 0);
319
- __decorate([
320
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
321
- __metadata("design:type", Boolean)
322
- ], LoginByLinuxDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
323
- __decorate([
324
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
325
- __metadata("design:type", InfoRequestParam)
326
- ], LoginByLinuxDeviceIdRequestData.prototype, "infoRequestParam", void 0);
327
- AuthenticateModels.LoginByLinuxDeviceIdRequestData = LoginByLinuxDeviceIdRequestData;
328
- class LoginByMacOSDeviceIdRequestData {
329
- }
330
- __decorate([
331
- StringDataMember({ code: GNParameterCode.MacOSDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
332
- __metadata("design:type", String)
333
- ], LoginByMacOSDeviceIdRequestData.prototype, "macOSDeviceId", void 0);
334
- __decorate([
335
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
336
- __metadata("design:type", Boolean)
337
- ], LoginByMacOSDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
338
- __decorate([
339
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
340
- __metadata("design:type", InfoRequestParam)
341
- ], LoginByMacOSDeviceIdRequestData.prototype, "infoRequestParam", void 0);
342
- AuthenticateModels.LoginByMacOSDeviceIdRequestData = LoginByMacOSDeviceIdRequestData;
343
- class LoginByWindowsDeviceIdRequestData {
344
- }
345
- __decorate([
346
- StringDataMember({ code: GNParameterCode.WindowsDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
347
- __metadata("design:type", String)
348
- ], LoginByWindowsDeviceIdRequestData.prototype, "windowsDeviceId", void 0);
349
- __decorate([
350
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
351
- __metadata("design:type", Boolean)
352
- ], LoginByWindowsDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
353
- __decorate([
354
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
355
- __metadata("design:type", InfoRequestParam)
356
- ], LoginByWindowsDeviceIdRequestData.prototype, "infoRequestParam", void 0);
357
- AuthenticateModels.LoginByWindowsDeviceIdRequestData = LoginByWindowsDeviceIdRequestData;
358
- class LoginByWindowsPhoneDeviceIdRequestData {
359
- }
360
- __decorate([
361
- StringDataMember({ code: GNParameterCode.WindowsPhoneDeviceId, minLength: 6, maxLength: 64, mustNonNull: true }),
362
- __metadata("design:type", String)
363
- ], LoginByWindowsPhoneDeviceIdRequestData.prototype, "windowsPhoneDeviceId", void 0);
364
- __decorate([
365
- BooleanDataMember({ code: GNParameterCode.CreatePlayerIfNotExists, isOptional: true, defaultValue: false }),
366
- __metadata("design:type", Boolean)
367
- ], LoginByWindowsPhoneDeviceIdRequestData.prototype, "createPlayerIfNotExists", void 0);
368
- __decorate([
369
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
370
- __metadata("design:type", InfoRequestParam)
371
- ], LoginByWindowsPhoneDeviceIdRequestData.prototype, "infoRequestParam", void 0);
372
- AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData = LoginByWindowsPhoneDeviceIdRequestData;
373
- class RegisterAccountRequestData {
374
- }
375
- __decorate([
376
- StringDataMember({ code: GNParameterCode.Username, minLength: 6, maxLength: 32, mustNonNull: true }),
377
- __metadata("design:type", String)
378
- ], RegisterAccountRequestData.prototype, "username", void 0);
379
- __decorate([
380
- StringDataMember({ code: GNParameterCode.Password, minLength: 6, maxLength: 64, mustNonNull: true }),
381
- __metadata("design:type", String)
382
- ], RegisterAccountRequestData.prototype, "password", void 0);
383
- __decorate([
384
- GNHashtableDataMember({ code: GNParameterCode.InfoRequestParam, mustNonNull: true }),
385
- __metadata("design:type", InfoRequestParam)
386
- ], RegisterAccountRequestData.prototype, "infoRequestParam", void 0);
387
- AuthenticateModels.RegisterAccountRequestData = RegisterAccountRequestData;
388
- class RefreshAuthTokenRequestData {
389
- }
390
- AuthenticateModels.RefreshAuthTokenRequestData = RefreshAuthTokenRequestData;
391
- class AuthenticateResponseData extends MasterPlayerModels.MasterPlayerWithUserIdResponseData {
392
- }
393
- __decorate([
394
- BooleanDataMember({ code: GNParameterCode.NewlyCreated, isOptional: true }),
395
- __metadata("design:type", Boolean)
396
- ], AuthenticateResponseData.prototype, "newlyCreated", void 0);
397
- __decorate([
398
- StringDataMember({ code: ParameterCode.AuthToken, isOptional: true }),
399
- __metadata("design:type", String)
400
- ], AuthenticateResponseData.prototype, "authToken", void 0);
401
- __decorate([
402
- GNHashtableDataMember({ code: GNParameterCode.PlayerBan, isOptional: true }),
403
- __metadata("design:type", GenericModels.BanItem)
404
- ], AuthenticateResponseData.prototype, "playerBan", void 0);
405
- AuthenticateModels.AuthenticateResponseData = AuthenticateResponseData;
406
- class RefreshAuthTokenResponseData {
407
- }
408
- __decorate([
409
- StringDataMember({ code: ParameterCode.AuthToken, isOptional: true }),
410
- __metadata("design:type", String)
411
- ], RefreshAuthTokenResponseData.prototype, "authToken", void 0);
412
- __decorate([
413
- GNHashtableDataMember({ code: GNParameterCode.PlayerBan, isOptional: true }),
414
- __metadata("design:type", GenericModels.BanItem)
415
- ], RefreshAuthTokenResponseData.prototype, "playerBan", void 0);
416
- AuthenticateModels.RefreshAuthTokenResponseData = RefreshAuthTokenResponseData;
417
- class EmptyResponseData {
418
- }
419
- AuthenticateModels.EmptyResponseData = EmptyResponseData;
420
- })(AuthenticateModels || (AuthenticateModels = {}));
@@ -1,206 +0,0 @@
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.operationEncrypted = true;
13
- this.requestType = RequestType.Authenticate;
14
- this.requestRole = RequestRole.Client;
15
- this.requestDataCls = AuthenticateModels.LoginByAccountRequestData;
16
- }
17
- }
18
- AuthenticateRequestModels.LoginByAccountOperationRequest = LoginByAccountOperationRequest;
19
- class LoginByAndroidDeviceIdOperationRequest extends CustomOperationRequestAbstract {
20
- constructor(requestData, timeout) {
21
- super(requestData, timeout);
22
- this.operationCode = OperationCode.LoginByAndroidDeviceId;
23
- this.operationEncrypted = true;
24
- this.requestType = RequestType.Authenticate;
25
- this.requestRole = RequestRole.Client;
26
- this.requestDataCls = AuthenticateModels.LoginByAndroidDeviceIdRequestData;
27
- }
28
- }
29
- AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest = LoginByAndroidDeviceIdOperationRequest;
30
- class LoginByAppleOperationRequest extends CustomOperationRequestAbstract {
31
- constructor(requestData, timeout) {
32
- super(requestData, timeout);
33
- this.operationCode = OperationCode.LoginByApple;
34
- this.operationEncrypted = true;
35
- this.requestType = RequestType.Authenticate;
36
- this.requestRole = RequestRole.Client;
37
- this.requestDataCls = AuthenticateModels.LoginByAppleRequestData;
38
- }
39
- }
40
- AuthenticateRequestModels.LoginByAppleOperationRequest = LoginByAppleOperationRequest;
41
- class LoginByCustomDeviceIdOperationRequest extends CustomOperationRequestAbstract {
42
- constructor(requestData, timeout) {
43
- super(requestData, timeout);
44
- this.operationCode = OperationCode.LoginByCustomDeviceId;
45
- this.operationEncrypted = true;
46
- this.requestType = RequestType.Authenticate;
47
- this.requestRole = RequestRole.Client;
48
- this.requestDataCls = AuthenticateModels.LoginByCustomDeviceIdRequestData;
49
- }
50
- }
51
- AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest = LoginByCustomDeviceIdOperationRequest;
52
- class LoginByCustomIdOperationRequest extends CustomOperationRequestAbstract {
53
- constructor(requestData, timeout) {
54
- super(requestData, timeout);
55
- this.operationCode = OperationCode.LoginByCustomId;
56
- this.operationEncrypted = true;
57
- this.requestType = RequestType.Authenticate;
58
- this.requestRole = RequestRole.Client;
59
- this.requestDataCls = AuthenticateModels.LoginByCustomIdRequestData;
60
- }
61
- }
62
- AuthenticateRequestModels.LoginByCustomIdOperationRequest = LoginByCustomIdOperationRequest;
63
- class LoginByEditorDeviceIdOperationRequest extends CustomOperationRequestAbstract {
64
- constructor(requestData, timeout) {
65
- super(requestData, timeout);
66
- this.operationCode = OperationCode.LoginByEditorDeviceId;
67
- this.operationEncrypted = true;
68
- this.requestType = RequestType.Authenticate;
69
- this.requestRole = RequestRole.Client;
70
- this.requestDataCls = AuthenticateModels.LoginByEditorDeviceIdRequestData;
71
- }
72
- }
73
- AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest = LoginByEditorDeviceIdOperationRequest;
74
- class LoginByFacebookOperationRequest extends CustomOperationRequestAbstract {
75
- constructor(requestData, timeout) {
76
- super(requestData, timeout);
77
- this.operationCode = OperationCode.LoginByFacebook;
78
- this.operationEncrypted = true;
79
- this.requestType = RequestType.Authenticate;
80
- this.requestRole = RequestRole.Client;
81
- this.requestDataCls = AuthenticateModels.LoginByFacebookRequestData;
82
- }
83
- }
84
- AuthenticateRequestModels.LoginByFacebookOperationRequest = LoginByFacebookOperationRequest;
85
- class LoginByGenericServiceOperationRequest extends CustomOperationRequestAbstract {
86
- constructor(requestData, timeout) {
87
- super(requestData, timeout);
88
- this.operationCode = OperationCode.LoginByGenericService;
89
- this.operationEncrypted = true;
90
- this.requestType = RequestType.Authenticate;
91
- this.requestRole = RequestRole.Client;
92
- this.requestDataCls = AuthenticateModels.LoginByGenericServiceRequestData;
93
- }
94
- }
95
- AuthenticateRequestModels.LoginByGenericServiceOperationRequest = LoginByGenericServiceOperationRequest;
96
- class LoginByGoogleOperationRequest extends CustomOperationRequestAbstract {
97
- constructor(requestData, timeout) {
98
- super(requestData, timeout);
99
- this.operationCode = OperationCode.LoginByGoogle;
100
- this.operationEncrypted = true;
101
- this.requestType = RequestType.Authenticate;
102
- this.requestRole = RequestRole.Client;
103
- this.requestDataCls = AuthenticateModels.LoginByGoogleRequestData;
104
- }
105
- }
106
- AuthenticateRequestModels.LoginByGoogleOperationRequest = LoginByGoogleOperationRequest;
107
- class LoginByGooglePlayGameServiceOperationRequest extends CustomOperationRequestAbstract {
108
- constructor(requestData, timeout) {
109
- super(requestData, timeout);
110
- this.operationCode = OperationCode.LoginByGooglePlayGameService;
111
- this.operationEncrypted = true;
112
- this.requestType = RequestType.Authenticate;
113
- this.requestRole = RequestRole.Client;
114
- this.requestDataCls = AuthenticateModels.LoginByGooglePlayGameServiceRequestData;
115
- }
116
- }
117
- AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest = LoginByGooglePlayGameServiceOperationRequest;
118
- class LoginByGameCenterOperationRequest extends CustomOperationRequestAbstract {
119
- constructor(requestData, timeout) {
120
- super(requestData, timeout);
121
- this.operationCode = OperationCode.LoginByGameCenter;
122
- this.operationEncrypted = true;
123
- this.requestType = RequestType.Authenticate;
124
- this.requestRole = RequestRole.Client;
125
- this.requestDataCls = AuthenticateModels.LoginByGameCenterRequestData;
126
- }
127
- }
128
- AuthenticateRequestModels.LoginByGameCenterOperationRequest = LoginByGameCenterOperationRequest;
129
- class LoginByiOSDeviceIdOperationRequest extends CustomOperationRequestAbstract {
130
- constructor(requestData, timeout) {
131
- super(requestData, timeout);
132
- this.operationCode = OperationCode.LoginByiOSDeviceId;
133
- this.operationEncrypted = true;
134
- this.requestType = RequestType.Authenticate;
135
- this.requestRole = RequestRole.Client;
136
- this.requestDataCls = AuthenticateModels.LoginByiOSDeviceIdRequestData;
137
- }
138
- }
139
- AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest = LoginByiOSDeviceIdOperationRequest;
140
- class LoginByLinuxDeviceIdOperationRequest extends CustomOperationRequestAbstract {
141
- constructor(requestData, timeout) {
142
- super(requestData, timeout);
143
- this.operationCode = OperationCode.LoginByLinuxDeviceId;
144
- this.operationEncrypted = true;
145
- this.requestType = RequestType.Authenticate;
146
- this.requestRole = RequestRole.Client;
147
- this.requestDataCls = AuthenticateModels.LoginByLinuxDeviceIdRequestData;
148
- }
149
- }
150
- AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest = LoginByLinuxDeviceIdOperationRequest;
151
- class LoginByMacOSDeviceIdOperationRequest extends CustomOperationRequestAbstract {
152
- constructor(requestData, timeout) {
153
- super(requestData, timeout);
154
- this.operationCode = OperationCode.LoginByMacOSDeviceId;
155
- this.operationEncrypted = true;
156
- this.requestType = RequestType.Authenticate;
157
- this.requestRole = RequestRole.Client;
158
- this.requestDataCls = AuthenticateModels.LoginByMacOSDeviceIdRequestData;
159
- }
160
- }
161
- AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest = LoginByMacOSDeviceIdOperationRequest;
162
- class LoginByWindowsDeviceIdOperationRequest extends CustomOperationRequestAbstract {
163
- constructor(requestData, timeout) {
164
- super(requestData, timeout);
165
- this.operationCode = OperationCode.LoginByWindowsDeviceId;
166
- this.operationEncrypted = true;
167
- this.requestType = RequestType.Authenticate;
168
- this.requestRole = RequestRole.Client;
169
- this.requestDataCls = AuthenticateModels.LoginByWindowsDeviceIdRequestData;
170
- }
171
- }
172
- AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest = LoginByWindowsDeviceIdOperationRequest;
173
- class LoginByWindowsPhoneDeviceIdOperationRequest extends CustomOperationRequestAbstract {
174
- constructor(requestData, timeout) {
175
- super(requestData, timeout);
176
- this.operationCode = OperationCode.LoginByWindowsPhoneDeviceId;
177
- this.operationEncrypted = true;
178
- this.requestType = RequestType.Authenticate;
179
- this.requestRole = RequestRole.Client;
180
- this.requestDataCls = AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData;
181
- }
182
- }
183
- AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest = LoginByWindowsPhoneDeviceIdOperationRequest;
184
- class RegisterAccountOperationRequest extends CustomOperationRequestAbstract {
185
- constructor(requestData, timeout) {
186
- super(requestData, timeout);
187
- this.operationCode = OperationCode.RegisterAccount;
188
- this.operationEncrypted = true;
189
- this.requestType = RequestType.Authenticate;
190
- this.requestRole = RequestRole.Client;
191
- this.requestDataCls = AuthenticateModels.RegisterAccountRequestData;
192
- }
193
- }
194
- AuthenticateRequestModels.RegisterAccountOperationRequest = RegisterAccountOperationRequest;
195
- class RefreshAuthTokenOperationRequest extends CustomOperationRequestAbstract {
196
- constructor(requestData, timeout) {
197
- super(requestData, timeout);
198
- this.operationCode = OperationCode.RefreshAuthToken;
199
- this.operationEncrypted = true;
200
- this.requestType = RequestType.Authenticate;
201
- this.requestRole = RequestRole.Client;
202
- this.requestDataCls = AuthenticateModels.RefreshAuthTokenRequestData;
203
- }
204
- }
205
- AuthenticateRequestModels.RefreshAuthTokenOperationRequest = RefreshAuthTokenOperationRequest;
206
- })(AuthenticateRequestModels || (AuthenticateRequestModels = {}));