@xmobitea/gn-typescript-client 2.4.8-esnext → 2.4.9

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 (120) hide show
  1. package/dist/gn.js.client.js +48802 -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 +36091 -329
  5. package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +7 -0
  6. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +6 -0
  7. package/dist/runtime/entity/models/DashboardModels.d.ts +12 -0
  8. package/dist/runtime/entity/models/GamePlayerModels.d.ts +3 -0
  9. package/dist/runtime/entity/models/GroupModels.d.ts +4 -0
  10. package/dist/runtime/entity/models/InventoryModels.d.ts +3 -0
  11. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1 -0
  12. package/package.json +1 -1
  13. package/dist/runtime/GNNetwork.js +0 -258
  14. package/dist/runtime/GNNetworkAuthenticateApi.js +0 -167
  15. package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -1271
  16. package/dist/runtime/GNNetworkCloudScriptApi.js +0 -143
  17. package/dist/runtime/GNNetworkContentApi.js +0 -191
  18. package/dist/runtime/GNNetworkDashboardApi.js +0 -231
  19. package/dist/runtime/GNNetworkGamePlayerApi.js +0 -1271
  20. package/dist/runtime/GNNetworkGroupApi.js +0 -983
  21. package/dist/runtime/GNNetworkInventoryApi.js +0 -839
  22. package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -2071
  23. package/dist/runtime/GNNetworkMultiplayerApi.js +0 -263
  24. package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -311
  25. package/dist/runtime/common/Action0.js +0 -1
  26. package/dist/runtime/common/Action1.js +0 -1
  27. package/dist/runtime/common/Action2.js +0 -1
  28. package/dist/runtime/common/Action3.js +0 -1
  29. package/dist/runtime/common/Action4.js +0 -1
  30. package/dist/runtime/common/GNData.js +0 -211
  31. package/dist/runtime/config/GNServerSettings.js +0 -127
  32. package/dist/runtime/constant/Commands.js +0 -19
  33. package/dist/runtime/constant/EventCode.js +0 -8
  34. package/dist/runtime/constant/OperationCode.js +0 -219
  35. package/dist/runtime/constant/ReturnCode.js +0 -14
  36. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
  37. package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
  38. package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
  39. package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
  40. package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
  41. package/dist/runtime/constant/enumType/ItemType.js +0 -5
  42. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
  43. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
  44. package/dist/runtime/constant/enumType/OwnerType.js +0 -8
  45. package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
  46. package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
  47. package/dist/runtime/constant/enumType/RequestRole.js +0 -6
  48. package/dist/runtime/constant/enumType/RequestType.js +0 -15
  49. package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
  50. package/dist/runtime/constant/errorCode/GNErrorCode.js +0 -50
  51. package/dist/runtime/constant/parameterCode/GNParameterCode.js +0 -582
  52. package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -6
  53. package/dist/runtime/entity/DataMember.js +0 -208
  54. package/dist/runtime/entity/GNMetadata.js +0 -11
  55. package/dist/runtime/entity/InvalidMember.js +0 -1
  56. package/dist/runtime/entity/OperationEvent.js +0 -33
  57. package/dist/runtime/entity/OperationHelper.js +0 -23
  58. package/dist/runtime/entity/OperationRequest.js +0 -51
  59. package/dist/runtime/entity/OperationResponse.js +0 -82
  60. package/dist/runtime/entity/models/AuthenticateModels.js +0 -420
  61. package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -206
  62. package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
  63. package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1377
  64. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1412
  65. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -369
  66. package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
  67. package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -143
  68. package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
  69. package/dist/runtime/entity/models/ContentModels.js +0 -211
  70. package/dist/runtime/entity/models/ContentRequestModels.js +0 -197
  71. package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
  72. package/dist/runtime/entity/models/DashboardModels.js +0 -2904
  73. package/dist/runtime/entity/models/DashboardRequestModels.js +0 -294
  74. package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
  75. package/dist/runtime/entity/models/GamePlayerModels.js +0 -1575
  76. package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1412
  77. package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
  78. package/dist/runtime/entity/models/GenericModels.js +0 -177
  79. package/dist/runtime/entity/models/GroupModels.js +0 -1123
  80. package/dist/runtime/entity/models/GroupRequestModels.js +0 -1088
  81. package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
  82. package/dist/runtime/entity/models/InventoryModels.js +0 -903
  83. package/dist/runtime/entity/models/InventoryRequestModels.js +0 -926
  84. package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
  85. package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2566
  86. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2314
  87. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
  88. package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
  89. package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -278
  90. package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
  91. package/dist/runtime/entity/models/StoreInventoryModels.js +0 -733
  92. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -332
  93. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -89
  94. package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
  95. package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
  96. package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
  97. package/dist/runtime/helper/CodeHelper.js +0 -61
  98. package/dist/runtime/helper/ConverterService.js +0 -275
  99. package/dist/runtime/helper/GNSupport.js +0 -8
  100. package/dist/runtime/helper/GNUtils.js +0 -72
  101. package/dist/runtime/logger/GNDebug.js +0 -29
  102. package/dist/runtime/networking/AuthenticateStatus.js +0 -14
  103. package/dist/runtime/networking/IPeer.js +0 -1
  104. package/dist/runtime/networking/NetworkingPeer.js +0 -163
  105. package/dist/runtime/networking/OperationPending.js +0 -53
  106. package/dist/runtime/networking/PeerBase.js +0 -170
  107. package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
  108. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
  109. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
  110. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
  111. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
  112. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
  113. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -35
  114. package/dist/runtime/networking/http/HttpPeer.js +0 -124
  115. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -6
  116. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -146
  117. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -126
  118. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -176
  119. package/dist/runtime/networking/socket/SocketPeer.js +0 -108
  120. package/dist/runtime/typescript/ServiceUpdate.js +0 -12
@@ -579,4 +579,11 @@ export declare class GNParameterCode {
579
579
  static readonly Objects: string;
580
580
  static readonly Indexes: string;
581
581
  static readonly DatabaseSystem: string;
582
+ static readonly Cost: string;
583
+ static readonly MonthlyCost: string;
584
+ static readonly RequestCount: string;
585
+ static readonly MatchmakingRequestCount: string;
586
+ static readonly CloudScriptGBs: string;
587
+ static readonly StorageSizeInBytes: string;
588
+ static readonly DataTransferSizeInBytes: string;
582
589
  }
@@ -109,6 +109,7 @@ export declare namespace CharacterPlayerModels {
109
109
  infoRequestParam: InfoRequestParam;
110
110
  skip?: number;
111
111
  limit?: number;
112
+ loadFromCache?: boolean;
112
113
  }
113
114
  class ServerGetFriendStatisticsLeaderboardAroundPlayerRequestData extends GetFriendStatisticsLeaderboardAroundPlayerRequestData {
114
115
  }
@@ -120,6 +121,7 @@ export declare namespace CharacterPlayerModels {
120
121
  infoRequestParam: InfoRequestParam;
121
122
  skip?: number;
122
123
  limit?: number;
124
+ loadFromCache?: boolean;
123
125
  }
124
126
  class ServerGetFriendStatisticsLeaderboardRequestData extends GetFriendStatisticsLeaderboardRequestData {
125
127
  }
@@ -253,6 +255,8 @@ export declare namespace CharacterPlayerModels {
253
255
  infoRequestParam: InfoRequestParam;
254
256
  skip?: number;
255
257
  limit?: number;
258
+ loadFromCache?: boolean;
259
+ catalogId?: string;
256
260
  }
257
261
  class ServerGetStatisticsLeaderboardAroundPlayerRequestData extends GetStatisticsLeaderboardAroundPlayerRequestData {
258
262
  }
@@ -264,6 +268,7 @@ export declare namespace CharacterPlayerModels {
264
268
  skip?: number;
265
269
  limit?: number;
266
270
  loadFromCache?: boolean;
271
+ catalogId?: string;
267
272
  }
268
273
  class ServerGetCurrencyLeaderboardRequestData extends GetCurrencyLeaderboardRequestData {
269
274
  }
@@ -276,6 +281,7 @@ export declare namespace CharacterPlayerModels {
276
281
  limit?: number;
277
282
  loadFromCache?: boolean;
278
283
  version?: string;
284
+ catalogId?: string;
279
285
  }
280
286
  class ServerGetStatisticsLeaderboardRequestData extends GetStatisticsLeaderboardRequestData {
281
287
  }
@@ -649,6 +649,8 @@ export declare namespace DashboardModels {
649
649
  requestComplete?: boolean;
650
650
  operationSystem?: boolean;
651
651
  databaseSystem?: boolean;
652
+ cost?: boolean;
653
+ monthlyCost?: boolean;
652
654
  }
653
655
  class GetUsernameAdminAccountRequestData {
654
656
  userId: string;
@@ -665,6 +667,7 @@ export declare namespace DashboardModels {
665
667
  version: string;
666
668
  gameId: string;
667
669
  log?: string;
670
+ catalogId?: string;
668
671
  }
669
672
  class DeleteInDatabaseRequestData {
670
673
  type: number;
@@ -803,12 +806,21 @@ export declare namespace DashboardModels {
803
806
  eventName: string;
804
807
  results: Array<RequestCompleteErrorCodeResponseData>;
805
808
  }
809
+ class CostResponseData {
810
+ requestCount: number;
811
+ matchmakingRequestCount: number;
812
+ cloudScriptGBs: number;
813
+ storageSizeInBytes: number;
814
+ dataTransferSizeInBytes: number;
815
+ }
806
816
  class GetAnalyticsResponseData {
807
817
  analyticsItem?: AnalyticsItemResponseData;
808
818
  country?: Array<CountryResponseData>;
809
819
  operationSystem?: OperationSystemResponseData;
810
820
  requestComplete?: Array<RequestCompleteResponseData>;
811
821
  databaseSystem?: DatabaseSystemResponseData;
822
+ cost?: CostResponseData;
823
+ monthlyCost?: CostResponseData;
812
824
  }
813
825
  class GetUsernameAdminAccountResponseData {
814
826
  username: string;
@@ -105,6 +105,7 @@ export declare namespace GamePlayerModels {
105
105
  infoRequestParam: InfoRequestParam;
106
106
  skip?: number;
107
107
  limit?: number;
108
+ loadFromCache?: boolean;
108
109
  }
109
110
  class ServerGetFriendStatisticsLeaderboardAroundPlayerRequestData extends GetFriendStatisticsLeaderboardAroundPlayerRequestData {
110
111
  userId: string;
@@ -117,6 +118,7 @@ export declare namespace GamePlayerModels {
117
118
  infoRequestParam: InfoRequestParam;
118
119
  skip?: number;
119
120
  limit?: number;
121
+ loadFromCache?: boolean;
120
122
  }
121
123
  class ServerGetFriendStatisticsLeaderboardRequestData extends GetFriendStatisticsLeaderboardRequestData {
122
124
  userId: string;
@@ -265,6 +267,7 @@ export declare namespace GamePlayerModels {
265
267
  infoRequestParam: InfoRequestParam;
266
268
  skip?: number;
267
269
  limit?: number;
270
+ loadFromCache?: boolean;
268
271
  }
269
272
  class ServerGetStatisticsLeaderboardAroundPlayerRequestData extends GetStatisticsLeaderboardAroundPlayerRequestData {
270
273
  userId: string;
@@ -193,6 +193,8 @@ export declare namespace GroupModels {
193
193
  infoRequestParam: InfoRequestParam;
194
194
  skip?: number;
195
195
  limit?: number;
196
+ loadFromCache?: boolean;
197
+ catalogId?: string;
196
198
  }
197
199
  class ServerGetStatisticsLeaderboardAroundGroupRequestData extends GetStatisticsLeaderboardAroundGroupRequestData {
198
200
  }
@@ -205,6 +207,7 @@ export declare namespace GroupModels {
205
207
  limit?: number;
206
208
  loadFromCache?: boolean;
207
209
  version?: string;
210
+ catalogId?: string;
208
211
  }
209
212
  class ServerGetStatisticsLeaderboardRequestData extends GetStatisticsLeaderboardRequestData {
210
213
  }
@@ -431,6 +434,7 @@ export declare namespace GroupModels {
431
434
  skip?: number;
432
435
  limit?: number;
433
436
  loadFromCache?: boolean;
437
+ catalogId?: string;
434
438
  }
435
439
  class ServerGetCurrencyLeaderboardRequestData extends GetCurrencyLeaderboardRequestData {
436
440
  }
@@ -172,6 +172,8 @@ export declare namespace InventoryModels {
172
172
  infoRequestParam: InfoRequestParam;
173
173
  skip?: number;
174
174
  limit?: number;
175
+ loadFromCache?: boolean;
176
+ catalogId?: string;
175
177
  }
176
178
  class ServerGetStatisticsLeaderboardAroundItemRequestData extends GetStatisticsLeaderboardAroundItemRequestData {
177
179
  }
@@ -184,6 +186,7 @@ export declare namespace InventoryModels {
184
186
  limit?: number;
185
187
  loadFromCache?: boolean;
186
188
  version?: string;
189
+ catalogId?: string;
187
190
  }
188
191
  class ServerGetStatisticsLeaderboardRequestData extends GetStatisticsLeaderboardRequestData {
189
192
  }
@@ -304,6 +304,7 @@ export declare namespace MasterPlayerModels {
304
304
  infoRequestParam: InfoRequestParam;
305
305
  skip?: number;
306
306
  limit?: number;
307
+ loadFromCache?: boolean;
307
308
  }
308
309
  class ServerGetStatisticsLeaderboardAroundPlayerRequestData extends GetStatisticsLeaderboardAroundPlayerRequestData {
309
310
  userId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmobitea/gn-typescript-client",
3
- "version": "2.4.8-esnext",
3
+ "version": "2.4.9",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -1,258 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- const VERSION = "2.4";
11
- import { GNDebug } from "./logger/GNDebug";
12
- import { GNSupport } from "./helper/GNSupport";
13
- import { NetworkingPeer } from "./networking/NetworkingPeer";
14
- import { CodeHelper } from "./helper/CodeHelper";
15
- import store from "store";
16
- import { ServiceUpdate } from "./typescript/ServiceUpdate";
17
- import { AuthenticateApi } from "./GNNetworkAuthenticateApi";
18
- import { CharacterPlayerApi } from "./GNNetworkCharacterPlayerApi";
19
- import { ContentApi } from "./GNNetworkContentApi";
20
- import { DashboardApi } from "./GNNetworkDashboardApi";
21
- import { GamePlayerApi } from "./GNNetworkGamePlayerApi";
22
- import { GroupApi } from "./GNNetworkGroupApi";
23
- import { InventoryApi } from "./GNNetworkInventoryApi";
24
- import { MasterPlayerApi } from "./GNNetworkMasterPlayerApi";
25
- import { StoreInventoryApi } from "./GNNetworkStoreInventoryApi";
26
- import { ConverterService } from "./helper/ConverterService";
27
- import { MultiplayerApi } from "./GNNetworkMultiplayerApi";
28
- import { CloudScriptApi } from "./GNNetworkCloudScriptApi";
29
- export class GNNetwork {
30
- static getGNServerSettings() {
31
- return GNNetwork.gnServerSettings;
32
- }
33
- static getPing() {
34
- return GNNetwork.peer != null ? GNNetwork.peer.getPing() : -1;
35
- }
36
- static getSocketSId() {
37
- return GNNetwork.peer != null ? GNNetwork.peer.getClientId() : "";
38
- }
39
- static sendRequestAuthSocket() {
40
- return GNNetwork.peer.sendRequestAuthSocket();
41
- }
42
- static isSocketConnected() {
43
- let socketSId = GNNetwork.getSocketSId();
44
- if (socketSId)
45
- return true;
46
- return false;
47
- }
48
- static getServerTimestamp() {
49
- return GNNetwork.peer != null ? GNNetwork.peer.getServerTimestamp() : new Date().getUTCMilliseconds();
50
- }
51
- static getAuthenticateStatus() {
52
- return GNNetwork.peer.authenticateStatus;
53
- }
54
- static getGameId() {
55
- return GNNetwork.peer.gameId;
56
- }
57
- static getPlatform() {
58
- return 17;
59
- }
60
- static init(gnServerSettings) {
61
- if (GNNetwork.gnServerSettings != null) {
62
- GNDebug.log("GNNetwork has been init!");
63
- return;
64
- }
65
- GNSupport.init();
66
- CodeHelper.init();
67
- ConverterService.init();
68
- GNNetwork.gnServerSettings = gnServerSettings;
69
- GNNetwork.initServerSettings();
70
- GNNetwork.initGNDebug();
71
- GNDebug.log("GNNetwork init on " + (GNSupport.isBrowser() ? "browser." : "server.") + " Version: " + GNNetwork.getClientSdkVersion());
72
- GNNetwork.initGNSocketObject();
73
- GNNetwork.peer.authenticateStatus.setAuthToken(store.get(GNNetwork.AUTH_TOKEN_KEY, ""));
74
- GNNetwork.peer.authenticateStatus.setUserId(store.get(GNNetwork.USER_ID_KEY, ""));
75
- GNNetwork.peer.gameId = store.get(GNNetwork.GAME_ID_KEY, "");
76
- GNNetwork.authenticate = new AuthenticateApi();
77
- GNNetwork.characterPlayer = new CharacterPlayerApi();
78
- GNNetwork.content = new ContentApi();
79
- GNNetwork.dashboard = new DashboardApi();
80
- GNNetwork.gamePlayer = new GamePlayerApi();
81
- GNNetwork.group = new GroupApi();
82
- GNNetwork.inventory = new InventoryApi();
83
- GNNetwork.masterPlayer = new MasterPlayerApi();
84
- GNNetwork.storeInventory = new StoreInventoryApi();
85
- GNNetwork.multiplayer = new MultiplayerApi();
86
- GNNetwork.cloudScript = new CloudScriptApi();
87
- }
88
- static setNewAuthenticateStatus(authenticateStatus) {
89
- store.set(GNNetwork.AUTH_TOKEN_KEY, authenticateStatus.getAuthToken());
90
- store.set(GNNetwork.USER_ID_KEY, authenticateStatus.getUserId());
91
- GNNetwork.peer.authenticateStatus.setAuthToken(authenticateStatus.getAuthToken());
92
- GNNetwork.peer.authenticateStatus.setUserId(authenticateStatus.getUserId());
93
- }
94
- static setGameId(gameId) {
95
- store.set(GNNetwork.GAME_ID_KEY, gameId);
96
- GNNetwork.peer.gameId = gameId;
97
- }
98
- static getClientSdkVersion() {
99
- return VERSION;
100
- }
101
- static initServerSettings() {
102
- // gnServerSettings = Resources.Load(GNServerSettings.ResourcesPath) as GNServerSettings;
103
- // if (gnServerSettings == null)
104
- // {
105
- // #if UNITY_EDITOR
106
- // UnityEditor.EditorApplication.ExecuteMenuItem("XmobiTea GN/Open Settings");
107
- // gnServerSettings = Resources.Load(GNServerSettings.ResourcesPath) as GNServerSettings;
108
- // if (gnServerSettings == null) throw new NullReferenceException("Null GN Server Settings, please find it now");
109
- // #endif
110
- // }
111
- }
112
- static initGNDebug() {
113
- if (GNNetwork.gnServerSettings == null)
114
- throw new Error("Null GN Server Settings, please find it now");
115
- GNDebug.setLogType(GNNetwork.gnServerSettings.getLogType());
116
- }
117
- static initGNSocketObject() {
118
- let peer = new NetworkingPeer();
119
- peer.initPeer();
120
- GNNetwork.peer = peer;
121
- let serviceUpdate = new ServiceUpdate();
122
- serviceUpdate.peer = peer;
123
- serviceUpdate.run();
124
- }
125
- static sendViaSocket(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags) {
126
- GNNetwork.peer.sendViaSocket(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
127
- }
128
- static sendViaSocketAsync(requestType, requestRole, request, overrideAuthToken, overrideSecretKey, customTags) {
129
- return __awaiter(this, void 0, void 0, function* () {
130
- return new Promise((resolve) => {
131
- GNNetwork.sendViaSocket(requestType, requestRole, request, (response) => {
132
- resolve(response);
133
- }, overrideAuthToken, overrideSecretKey, customTags);
134
- });
135
- });
136
- }
137
- static sendViaHttp(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags) {
138
- GNNetwork.peer.sendViaHttp(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
139
- }
140
- static sendViaHttpAsync(requestType, requestRole, request, overrideAuthToken, overrideSecretKey, customTags) {
141
- return __awaiter(this, void 0, void 0, function* () {
142
- return new Promise((resolve) => {
143
- GNNetwork.sendViaHttp(requestType, requestRole, request, (response) => {
144
- resolve(response);
145
- }, overrideAuthToken, overrideSecretKey, customTags);
146
- });
147
- });
148
- }
149
- static sendViaSocketTRequestTResponse(request, onResponse = null, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
150
- GNNetwork.sendViaSocketTResponse(request.getRequestType(), request.getRequestRole(), request.build(), onResponse, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
151
- }
152
- static sendViaSocketTRequestTResponseAsync(request, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
153
- return __awaiter(this, void 0, void 0, function* () {
154
- return new Promise((resolve) => {
155
- GNNetwork.sendViaSocketTRequestTResponse(request, (response) => {
156
- resolve(response);
157
- }, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
158
- });
159
- });
160
- }
161
- static sendViaHttpTRequestTResponse(request, onResponse = null, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
162
- GNNetwork.sendViaHttpTResponse(request.getRequestType(), request.getRequestRole(), request.build(), onResponse, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
163
- }
164
- static sendViaHttpTRequestTResponseAsync(request, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls) {
165
- return __awaiter(this, void 0, void 0, function* () {
166
- return new Promise((resolve) => {
167
- GNNetwork.sendViaHttpTRequestTResponse(request, (response) => {
168
- resolve(response);
169
- }, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
170
- });
171
- });
172
- }
173
- static sendViaSocketTResponse(requestType, requestRole, request, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
174
- GNNetwork.sendViaSocket(requestType, requestRole, request, response => {
175
- if (response == null)
176
- return;
177
- let customOperationResponse = new customOperationResponseCls();
178
- customOperationResponse.setupOperationResponse(response);
179
- if (onResponse != null)
180
- onResponse(customOperationResponse);
181
- }, overrideAuthToken, overrideSecretKey, customTags);
182
- }
183
- static sendViaSocketTResponseAsync(requestType_1, requestRole_1, request_1) {
184
- return __awaiter(this, arguments, void 0, function* (requestType, requestRole, request, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
185
- return new Promise((resolve) => {
186
- GNNetwork.sendViaSocketTResponse(requestType, requestRole, request, (response) => {
187
- resolve(response);
188
- }, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
189
- });
190
- });
191
- }
192
- static sendViaHttpTResponse(requestType, requestRole, request, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
193
- GNNetwork.sendViaHttp(requestType, requestRole, request, response => {
194
- if (response == null)
195
- return;
196
- let customOperationResponse = new customOperationResponseCls();
197
- customOperationResponse.setupOperationResponse(response);
198
- if (onResponse != null)
199
- onResponse(customOperationResponse);
200
- }, overrideAuthToken, overrideSecretKey, customTags);
201
- }
202
- static sendViaHttpTResponseAsync(requestType_1, requestRole_1, request_1) {
203
- return __awaiter(this, arguments, void 0, function* (requestType, requestRole, request, overrideAuthToken = null, overrideSecretKey = null, customTags = null, customOperationResponseCls) {
204
- return new Promise((resolve) => {
205
- GNNetwork.sendViaHttpTResponse(requestType, requestRole, request, (response) => {
206
- resolve(response);
207
- }, overrideAuthToken, overrideSecretKey, customTags, customOperationResponseCls);
208
- });
209
- });
210
- }
211
- static connectSocket(_onSocketConnect = null) {
212
- this.peer.connectSocket(_onSocketConnect);
213
- }
214
- static disconnectSocket(_onSocketDisconnect = null) {
215
- this.peer.disconnectSocket(_onSocketDisconnect);
216
- }
217
- static setOnEventHandler(_onEventHandler) {
218
- this.peer.setOnEventHandler(_onEventHandler);
219
- }
220
- static subscriberOnConnectHandler(_onConnectHandler) {
221
- this.peer.setOnConnectHandler(_onConnectHandler);
222
- }
223
- static subscriberOnDisconnectHandler(_onDisconnectHandler) {
224
- this.peer.setOnDisconnectHandler(_onDisconnectHandler);
225
- }
226
- static unscriberOnConnectHandler(_onConnectHandler) {
227
- this.peer.removeOnConnectHandler(_onConnectHandler);
228
- }
229
- static unsubscriberOnDisconnectHandler(_onDisconnectHandler) {
230
- this.peer.removeOnDisconnectHandler(_onDisconnectHandler);
231
- }
232
- static subscriberServerEventHandler(serverEventHandler) {
233
- this.peer.subscriberServerEventHandler(serverEventHandler);
234
- }
235
- static syncTs(onResponse = null) {
236
- this.peer.syncTs(onResponse);
237
- }
238
- static syncTsAsync() {
239
- return new Promise((resolve) => {
240
- GNNetwork.syncTs((response) => {
241
- resolve(response);
242
- });
243
- });
244
- }
245
- static getAuthInfo(authToken, onResponse = null) {
246
- this.peer.getAuthInfo(authToken, onResponse);
247
- }
248
- static getAuthInfoAsync(authToken) {
249
- return new Promise((resolve) => {
250
- GNNetwork.getAuthInfo(authToken, (response) => {
251
- resolve(response);
252
- });
253
- });
254
- }
255
- }
256
- GNNetwork.AUTH_TOKEN_KEY = "[GN]_AUTH_TOKEN_KEY";
257
- GNNetwork.USER_ID_KEY = "[GN]_USER_ID_KEY";
258
- GNNetwork.GAME_ID_KEY = "[GN]_GAME_ID_KEY";
@@ -1,167 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { GNNetwork } from "./GNNetwork";
11
- import { OperationRequest } from "./entity/OperationRequest";
12
- import { AuthenticateRequestModels } from "./entity/models/AuthenticateRequestModels";
13
- import { AuthenticateResponseModels } from "./entity/models/AuthenticateResponseModels";
14
- export class AuthenticateApi {
15
- constructor() {
16
- this.server = new ServerAuthenticateApi();
17
- this.admin = new AdminAuthenticateApi();
18
- }
19
- loginByAccount(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
20
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAccountOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAccountOperationResponse);
21
- }
22
- loginByAccountAsync(requestData_1) {
23
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
24
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAccountOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAccountOperationResponse);
25
- });
26
- }
27
- loginByAndroidDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
28
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse);
29
- }
30
- loginByAndroidDeviceIdAsync(requestData_1) {
31
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
32
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAndroidDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse);
33
- });
34
- }
35
- loginByApple(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
36
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByAppleOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAppleOperationResponse);
37
- }
38
- loginByAppleAsync(requestData_1) {
39
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
40
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByAppleOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByAppleOperationResponse);
41
- });
42
- }
43
- loginByCustomDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
44
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse);
45
- }
46
- loginByCustomDeviceIdAsync(requestData_1) {
47
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
48
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByCustomDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse);
49
- });
50
- }
51
- loginByCustomId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
52
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByCustomIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomIdOperationResponse);
53
- }
54
- loginByCustomIdAsync(requestData_1) {
55
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
56
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByCustomIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByCustomIdOperationResponse);
57
- });
58
- }
59
- loginByEditorDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
60
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse);
61
- }
62
- loginByEditorDeviceIdAsync(requestData_1) {
63
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
64
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByEditorDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse);
65
- });
66
- }
67
- loginByFacebook(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
68
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByFacebookOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByFacebookOperationResponse);
69
- }
70
- loginByFacebookAsync(requestData_1) {
71
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
72
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByFacebookOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByFacebookOperationResponse);
73
- });
74
- }
75
- loginByGenericService(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
76
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGenericServiceOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGenericServiceOperationResponse);
77
- }
78
- loginByGenericServiceAsync(requestData_1) {
79
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
80
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGenericServiceOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGenericServiceOperationResponse);
81
- });
82
- }
83
- loginByGoogle(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
84
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGoogleOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGoogleOperationResponse);
85
- }
86
- loginByGoogleAsync(requestData_1) {
87
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
88
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGoogleOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGoogleOperationResponse);
89
- });
90
- }
91
- loginByGooglePlayGameService(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
92
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse);
93
- }
94
- loginByGooglePlayGameServiceAsync(requestData_1) {
95
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
96
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGooglePlayGameServiceOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse);
97
- });
98
- }
99
- loginByGameCenter(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
100
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByGameCenterOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGameCenterOperationResponse);
101
- }
102
- loginByGameCenterAsync(requestData_1) {
103
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
104
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByGameCenterOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByGameCenterOperationResponse);
105
- });
106
- }
107
- loginByiOSDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
108
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse);
109
- }
110
- loginByiOSDeviceIdAsync(requestData_1) {
111
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
112
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByiOSDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse);
113
- });
114
- }
115
- loginByLinuxDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
116
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse);
117
- }
118
- loginByLinuxDeviceIdAsync(requestData_1) {
119
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
120
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByLinuxDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse);
121
- });
122
- }
123
- loginByMacOSDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
124
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse);
125
- }
126
- loginByMacOSDeviceIdAsync(requestData_1) {
127
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
128
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByMacOSDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse);
129
- });
130
- }
131
- loginByWindowsDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
132
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse);
133
- }
134
- loginByWindowsDeviceIdAsync(requestData_1) {
135
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
136
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByWindowsDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse);
137
- });
138
- }
139
- loginByWindowsPhoneDeviceId(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
140
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse);
141
- }
142
- loginByWindowsPhoneDeviceIdAsync(requestData_1) {
143
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
144
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.LoginByWindowsPhoneDeviceIdOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse);
145
- });
146
- }
147
- registerAccount(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
148
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.RegisterAccountOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RegisterAccountOperationResponse);
149
- }
150
- registerAccountAsync(requestData_1) {
151
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
152
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.RegisterAccountOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RegisterAccountOperationResponse);
153
- });
154
- }
155
- refreshAuthToken(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
156
- GNNetwork.sendViaHttpTRequestTResponse(new AuthenticateRequestModels.RefreshAuthTokenOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RefreshAuthTokenOperationResponse);
157
- }
158
- refreshAuthTokenAsync(requestData_1) {
159
- return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
160
- return GNNetwork.sendViaHttpTRequestTResponseAsync(new AuthenticateRequestModels.RefreshAuthTokenOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, AuthenticateResponseModels.RefreshAuthTokenOperationResponse);
161
- });
162
- }
163
- }
164
- export class ServerAuthenticateApi {
165
- }
166
- export class AdminAuthenticateApi {
167
- }