@xmobitea/gn-typescript-client 2.6.2 → 2.6.3-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 (116) hide show
  1. package/dist/index.js +339 -34512
  2. package/dist/runtime/GNNetwork.js +250 -0
  3. package/dist/runtime/GNNetworkAuthenticateApi.js +122 -0
  4. package/dist/runtime/GNNetworkCharacterPlayerApi.js +968 -0
  5. package/dist/runtime/GNNetworkCloudScriptApi.js +104 -0
  6. package/dist/runtime/GNNetworkContentApi.js +140 -0
  7. package/dist/runtime/GNNetworkDashboardApi.js +170 -0
  8. package/dist/runtime/GNNetworkGamePlayerApi.js +950 -0
  9. package/dist/runtime/GNNetworkGroupApi.js +734 -0
  10. package/dist/runtime/GNNetworkInventoryApi.js +626 -0
  11. package/dist/runtime/GNNetworkMasterPlayerApi.js +1550 -0
  12. package/dist/runtime/GNNetworkMultiplayerApi.js +194 -0
  13. package/dist/runtime/GNNetworkStoreInventoryApi.js +266 -0
  14. package/dist/runtime/common/Action0.js +1 -0
  15. package/dist/runtime/common/Action1.js +1 -0
  16. package/dist/runtime/common/Action2.js +1 -0
  17. package/dist/runtime/common/Action3.js +1 -0
  18. package/dist/runtime/common/Action4.js +1 -0
  19. package/dist/runtime/common/GNData.js +211 -0
  20. package/dist/runtime/config/GNServerSettings.js +141 -0
  21. package/dist/runtime/constant/Commands.js +19 -0
  22. package/dist/runtime/constant/EventCode.js +8 -0
  23. package/dist/runtime/constant/OperationCode.js +221 -0
  24. package/dist/runtime/constant/ReturnCode.js +14 -0
  25. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
  26. package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
  27. package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
  28. package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
  29. package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
  30. package/dist/runtime/constant/enumType/ItemType.js +5 -0
  31. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
  32. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
  33. package/dist/runtime/constant/enumType/OwnerType.js +9 -0
  34. package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
  35. package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
  36. package/dist/runtime/constant/enumType/RequestRole.js +6 -0
  37. package/dist/runtime/constant/enumType/RequestType.js +15 -0
  38. package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
  39. package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
  40. package/dist/runtime/constant/errorCode/GNErrorCode.js +52 -0
  41. package/dist/runtime/constant/parameterCode/GNParameterCode.js +599 -0
  42. package/dist/runtime/constant/parameterCode/ParameterCode.js +6 -0
  43. package/dist/runtime/entity/DataMember.js +208 -0
  44. package/dist/runtime/entity/GNMetadata.js +11 -0
  45. package/dist/runtime/entity/InvalidMember.js +1 -0
  46. package/dist/runtime/entity/OperationEvent.js +33 -0
  47. package/dist/runtime/entity/OperationHelper.js +23 -0
  48. package/dist/runtime/entity/OperationRequest.js +51 -0
  49. package/dist/runtime/entity/OperationResponse.js +82 -0
  50. package/dist/runtime/entity/models/AuthenticateModels.js +420 -0
  51. package/dist/runtime/entity/models/AuthenticateRequestModels.js +206 -0
  52. package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
  53. package/dist/runtime/entity/models/CharacterPlayerModels.js +1437 -0
  54. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1439 -0
  55. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
  56. package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
  57. package/dist/runtime/entity/models/CloudScriptRequestModels.js +143 -0
  58. package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
  59. package/dist/runtime/entity/models/ContentModels.js +203 -0
  60. package/dist/runtime/entity/models/ContentRequestModels.js +197 -0
  61. package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
  62. package/dist/runtime/entity/models/DashboardModels.js +2991 -0
  63. package/dist/runtime/entity/models/DashboardRequestModels.js +294 -0
  64. package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
  65. package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
  66. package/dist/runtime/entity/models/GamePlayerRequestModels.js +1412 -0
  67. package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
  68. package/dist/runtime/entity/models/GenericModels.js +177 -0
  69. package/dist/runtime/entity/models/GroupModels.js +1139 -0
  70. package/dist/runtime/entity/models/GroupRequestModels.js +1088 -0
  71. package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
  72. package/dist/runtime/entity/models/InventoryModels.js +915 -0
  73. package/dist/runtime/entity/models/InventoryRequestModels.js +926 -0
  74. package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
  75. package/dist/runtime/entity/models/MasterPlayerModels.js +2570 -0
  76. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2314 -0
  77. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
  78. package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
  79. package/dist/runtime/entity/models/MultiplayerRequestModels.js +278 -0
  80. package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
  81. package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
  82. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +386 -0
  83. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
  84. package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
  85. package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
  86. package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
  87. package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
  88. package/dist/runtime/helper/CodeHelper.js +61 -0
  89. package/dist/runtime/helper/ConverterService.js +275 -0
  90. package/dist/runtime/helper/GNSupport.js +8 -0
  91. package/dist/runtime/helper/GNUtils.js +72 -0
  92. package/dist/runtime/helper/MessagePackConverterService.js +9 -0
  93. package/dist/runtime/logger/GNDebug.js +29 -0
  94. package/dist/runtime/networking/AuthenticateStatus.js +14 -0
  95. package/dist/runtime/networking/IPeer.js +1 -0
  96. package/dist/runtime/networking/NetworkingPeer.js +182 -0
  97. package/dist/runtime/networking/OperationPending.js +53 -0
  98. package/dist/runtime/networking/PeerBase.js +170 -0
  99. package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
  100. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
  101. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
  102. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
  103. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
  104. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
  105. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +35 -0
  106. package/dist/runtime/networking/http/HttpPeer.js +124 -0
  107. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
  108. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +164 -0
  109. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +128 -0
  110. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +176 -0
  111. package/dist/runtime/networking/socket/SocketPeer.js +108 -0
  112. package/dist/runtime/typescript/ServiceUpdate.js +12 -0
  113. package/package.json +1 -1
  114. package/dist/gn.js.client.js +0 -47233
  115. package/dist/gn.js.client.min.js +0 -2
  116. package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
@@ -0,0 +1,420 @@
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 = {}));
@@ -0,0 +1,206 @@
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 = {}));