@xmobitea/gn-typescript-client 2.1.7 → 2.3.0-esnext
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/GNServerSettingsConfig.debug.json +3 -3
- package/dist/index.js +314 -33908
- package/dist/runtime/GNNetwork.js +238 -0
- package/dist/runtime/GNNetworkAuthenticateApi.js +167 -0
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +1271 -0
- package/dist/runtime/GNNetworkCloudScriptApi.js +143 -0
- package/dist/runtime/GNNetworkContentApi.js +191 -0
- package/dist/runtime/GNNetworkDashboardApi.d.ts +14 -0
- package/dist/runtime/GNNetworkDashboardApi.js +223 -0
- package/dist/runtime/GNNetworkGamePlayerApi.js +1271 -0
- package/dist/runtime/GNNetworkGroupApi.js +983 -0
- package/dist/runtime/GNNetworkInventoryApi.js +839 -0
- package/dist/runtime/GNNetworkMasterPlayerApi.js +1927 -0
- package/dist/runtime/GNNetworkMultiplayerApi.js +263 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +12 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.js +311 -0
- package/dist/runtime/common/Action0.js +1 -0
- package/dist/runtime/common/Action1.js +1 -0
- package/dist/runtime/common/Action2.js +1 -0
- package/dist/runtime/common/Action3.js +1 -0
- package/dist/runtime/common/Action4.js +1 -0
- package/dist/runtime/common/GNData.js +211 -0
- package/dist/runtime/config/GNServerSettings.js +127 -0
- package/dist/runtime/constant/Commands.js +19 -0
- package/dist/runtime/constant/EventCode.js +8 -0
- package/dist/runtime/constant/OperationCode.d.ts +10 -0
- package/dist/runtime/constant/OperationCode.js +214 -0
- package/dist/runtime/constant/ReturnCode.js +14 -0
- package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
- package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
- package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
- package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
- package/dist/runtime/constant/enumType/ItemType.js +5 -0
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
- package/dist/runtime/constant/enumType/OwnerType.d.ts +2 -1
- package/dist/runtime/constant/enumType/OwnerType.js +8 -0
- package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
- package/dist/runtime/constant/enumType/RequestRole.js +6 -0
- package/dist/runtime/constant/enumType/RequestType.js +15 -0
- package/dist/runtime/constant/errorCode/GNErrorCode.d.ts +1 -0
- package/dist/runtime/constant/errorCode/GNErrorCode.js +49 -0
- package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +53 -0
- package/dist/runtime/constant/parameterCode/GNParameterCode.js +537 -0
- package/dist/runtime/constant/parameterCode/ParameterCode.js +6 -0
- package/dist/runtime/entity/DataMember.js +208 -0
- package/dist/runtime/entity/GNMetadata.js +11 -0
- package/dist/runtime/entity/InvalidMember.js +1 -0
- package/dist/runtime/entity/OperationEvent.js +32 -0
- package/dist/runtime/entity/OperationHelper.js +23 -0
- package/dist/runtime/entity/OperationRequest.js +50 -0
- package/dist/runtime/entity/OperationResponse.js +81 -0
- package/dist/runtime/entity/models/AuthenticateModels.js +416 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +206 -0
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +5 -1
- package/dist/runtime/entity/models/CharacterPlayerModels.js +1377 -0
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1412 -0
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +369 -0
- package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +143 -0
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
- package/dist/runtime/entity/models/ContentModels.d.ts +0 -1
- package/dist/runtime/entity/models/ContentModels.js +211 -0
- package/dist/runtime/entity/models/ContentRequestModels.js +197 -0
- package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
- package/dist/runtime/entity/models/DashboardModels.d.ts +121 -0
- package/dist/runtime/entity/models/DashboardModels.js +2674 -0
- package/dist/runtime/entity/models/DashboardRequestModels.d.ts +49 -0
- package/dist/runtime/entity/models/DashboardRequestModels.js +283 -0
- package/dist/runtime/entity/models/DashboardResponseModels.d.ts +21 -0
- package/dist/runtime/entity/models/DashboardResponseModels.js +180 -0
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +5 -1
- package/dist/runtime/entity/models/GamePlayerModels.js +1569 -0
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +1412 -0
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
- package/dist/runtime/entity/models/GenericModels.js +177 -0
- package/dist/runtime/entity/models/GroupModels.d.ts +5 -1
- package/dist/runtime/entity/models/GroupModels.js +1123 -0
- package/dist/runtime/entity/models/GroupRequestModels.js +1088 -0
- package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
- package/dist/runtime/entity/models/InventoryModels.d.ts +5 -1
- package/dist/runtime/entity/models/InventoryModels.js +903 -0
- package/dist/runtime/entity/models/InventoryRequestModels.js +926 -0
- package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +5 -1
- package/dist/runtime/entity/models/MasterPlayerModels.js +2371 -0
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2152 -0
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +565 -0
- package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +278 -0
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
- package/dist/runtime/entity/models/StoreInventoryModels.d.ts +60 -3
- package/dist/runtime/entity/models/StoreInventoryModels.js +737 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +30 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +332 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +6 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +89 -0
- package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
- package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
- package/dist/runtime/helper/CodeHelper.js +61 -0
- package/dist/runtime/helper/ConverterService.js +275 -0
- package/dist/runtime/helper/GNSupport.js +8 -0
- package/dist/runtime/logger/GNDebug.js +29 -0
- package/dist/runtime/networking/AuthenticateStatus.js +14 -0
- package/dist/runtime/networking/IPeer.js +1 -0
- package/dist/runtime/networking/NetworkingPeer.js +129 -0
- package/dist/runtime/networking/OperationPending.js +53 -0
- package/dist/runtime/networking/PeerBase.js +168 -0
- package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +35 -0
- package/dist/runtime/networking/http/HttpPeer.js +121 -0
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +146 -0
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +126 -0
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +176 -0
- package/dist/runtime/networking/socket/SocketPeer.js +105 -0
- package/dist/runtime/typescript/ServiceUpdate.js +12 -0
- package/package.json +1 -1
- package/dist/gn.js.client.js +0 -46619
- package/dist/gn.js.client.min.js +0 -2
- package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
|
@@ -0,0 +1,311 @@
|
|
|
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 { StoreInventoryRequestModels } from "./entity/models/StoreInventoryRequestModels";
|
|
13
|
+
import { StoreInventoryResponseModels } from "./entity/models/StoreInventoryResponseModels";
|
|
14
|
+
export class StoreInventoryApi {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.server = new ServerStoreInventoryApi();
|
|
17
|
+
this.admin = new AdminStoreInventoryApi();
|
|
18
|
+
}
|
|
19
|
+
buyStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
20
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.BuyStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.BuyStoreItemOperationResponse);
|
|
21
|
+
}
|
|
22
|
+
buyStoreItemAsync(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 StoreInventoryRequestModels.BuyStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.BuyStoreItemOperationResponse);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
getStoreItemInformation(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
28
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.GetStoreItemInformationOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemInformationOperationResponse);
|
|
29
|
+
}
|
|
30
|
+
getStoreItemInformationAsync(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 StoreInventoryRequestModels.GetStoreItemInformationOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemInformationOperationResponse);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
getStoreItemsWithTag(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
36
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.GetStoreItemsWithTagOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse);
|
|
37
|
+
}
|
|
38
|
+
getStoreItemsWithTagAsync(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 StoreInventoryRequestModels.GetStoreItemsWithTagOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
grantStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
44
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.GrantStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GrantStoreItemOperationResponse);
|
|
45
|
+
}
|
|
46
|
+
grantStoreItemAsync(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 StoreInventoryRequestModels.GrantStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GrantStoreItemOperationResponse);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
setRemoveStatus(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
52
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.SetRemoveStatusOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetRemoveStatusOperationResponse);
|
|
53
|
+
}
|
|
54
|
+
setRemoveStatusAsync(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 StoreInventoryRequestModels.SetRemoveStatusOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetRemoveStatusOperationResponse);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
setStoreItemInformation(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
60
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.SetStoreItemInformationOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetStoreItemInformationOperationResponse);
|
|
61
|
+
}
|
|
62
|
+
setStoreItemInformationAsync(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 StoreInventoryRequestModels.SetStoreItemInformationOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetStoreItemInformationOperationResponse);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
validateAppleAppStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
68
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ValidateAppleAppStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse);
|
|
69
|
+
}
|
|
70
|
+
validateAppleAppStoreReceiptAsync(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 StoreInventoryRequestModels.ValidateAppleAppStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
validateFacebookStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
76
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ValidateFacebookStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse);
|
|
77
|
+
}
|
|
78
|
+
validateFacebookStoreReceiptAsync(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 StoreInventoryRequestModels.ValidateFacebookStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
validateGooglePlayStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
84
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ValidateGooglePlayStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse);
|
|
85
|
+
}
|
|
86
|
+
validateGooglePlayStoreReceiptAsync(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 StoreInventoryRequestModels.ValidateGooglePlayStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
getCreateLeaderboard(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
92
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.GetCreateLeaderboardOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse);
|
|
93
|
+
}
|
|
94
|
+
getCreateLeaderboardAsync(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 StoreInventoryRequestModels.GetCreateLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
presentStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
100
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.PresentStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.PresentStoreItemOperationResponse);
|
|
101
|
+
}
|
|
102
|
+
presentStoreItemAsync(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 StoreInventoryRequestModels.PresentStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.PresentStoreItemOperationResponse);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
getStoreLog(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
108
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.GetStoreLogOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreLogOperationResponse);
|
|
109
|
+
}
|
|
110
|
+
getStoreLogAsync(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 StoreInventoryRequestModels.GetStoreLogOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreLogOperationResponse);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export class ServerStoreInventoryApi {
|
|
117
|
+
buyStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
118
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerBuyStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.BuyStoreItemOperationResponse);
|
|
119
|
+
}
|
|
120
|
+
buyStoreItemAsync(requestData_1) {
|
|
121
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
122
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerBuyStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.BuyStoreItemOperationResponse);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
getStoreItemInformation(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
126
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerGetStoreItemInformationOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemInformationOperationResponse);
|
|
127
|
+
}
|
|
128
|
+
getStoreItemInformationAsync(requestData_1) {
|
|
129
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
130
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerGetStoreItemInformationOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemInformationOperationResponse);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
getStoreItemsWithTag(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
134
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerGetStoreItemsWithTagOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse);
|
|
135
|
+
}
|
|
136
|
+
getStoreItemsWithTagAsync(requestData_1) {
|
|
137
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
138
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerGetStoreItemsWithTagOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
grantStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
142
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerGrantStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GrantStoreItemOperationResponse);
|
|
143
|
+
}
|
|
144
|
+
grantStoreItemAsync(requestData_1) {
|
|
145
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
146
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerGrantStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GrantStoreItemOperationResponse);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
setRemoveStatus(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
150
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerSetRemoveStatusOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetRemoveStatusOperationResponse);
|
|
151
|
+
}
|
|
152
|
+
setRemoveStatusAsync(requestData_1) {
|
|
153
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
154
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerSetRemoveStatusOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetRemoveStatusOperationResponse);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
setStoreItemInformation(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
158
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerSetStoreItemInformationOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetStoreItemInformationOperationResponse);
|
|
159
|
+
}
|
|
160
|
+
setStoreItemInformationAsync(requestData_1) {
|
|
161
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
162
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerSetStoreItemInformationOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetStoreItemInformationOperationResponse);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
validateAppleAppStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
166
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerValidateAppleAppStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse);
|
|
167
|
+
}
|
|
168
|
+
validateAppleAppStoreReceiptAsync(requestData_1) {
|
|
169
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
170
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerValidateAppleAppStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
validateFacebookStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
174
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerValidateFacebookStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse);
|
|
175
|
+
}
|
|
176
|
+
validateFacebookStoreReceiptAsync(requestData_1) {
|
|
177
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
178
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerValidateFacebookStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
validateGooglePlayStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
182
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerValidateGooglePlayStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse);
|
|
183
|
+
}
|
|
184
|
+
validateGooglePlayStoreReceiptAsync(requestData_1) {
|
|
185
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
186
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerValidateGooglePlayStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
getCreateLeaderboard(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
190
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerGetCreateLeaderboardOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse);
|
|
191
|
+
}
|
|
192
|
+
getCreateLeaderboardAsync(requestData_1) {
|
|
193
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
194
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerGetCreateLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
presentStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
198
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerPresentStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.PresentStoreItemOperationResponse);
|
|
199
|
+
}
|
|
200
|
+
presentStoreItemAsync(requestData_1) {
|
|
201
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
202
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerPresentStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.PresentStoreItemOperationResponse);
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
getStoreLog(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
206
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.ServerGetStoreLogOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreLogOperationResponse);
|
|
207
|
+
}
|
|
208
|
+
getStoreLogAsync(requestData_1) {
|
|
209
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
210
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.ServerGetStoreLogOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreLogOperationResponse);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export class AdminStoreInventoryApi {
|
|
215
|
+
buyStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
216
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminBuyStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.BuyStoreItemOperationResponse);
|
|
217
|
+
}
|
|
218
|
+
buyStoreItemAsync(requestData_1) {
|
|
219
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
220
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminBuyStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.BuyStoreItemOperationResponse);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
getStoreItemInformation(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
224
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminGetStoreItemInformationOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemInformationOperationResponse);
|
|
225
|
+
}
|
|
226
|
+
getStoreItemInformationAsync(requestData_1) {
|
|
227
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
228
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminGetStoreItemInformationOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemInformationOperationResponse);
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
getStoreItemsWithTag(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
232
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminGetStoreItemsWithTagOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse);
|
|
233
|
+
}
|
|
234
|
+
getStoreItemsWithTagAsync(requestData_1) {
|
|
235
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
236
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminGetStoreItemsWithTagOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse);
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
grantStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
240
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminGrantStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GrantStoreItemOperationResponse);
|
|
241
|
+
}
|
|
242
|
+
grantStoreItemAsync(requestData_1) {
|
|
243
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
244
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminGrantStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GrantStoreItemOperationResponse);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
setRemoveStatus(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
248
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminSetRemoveStatusOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetRemoveStatusOperationResponse);
|
|
249
|
+
}
|
|
250
|
+
setRemoveStatusAsync(requestData_1) {
|
|
251
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
252
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminSetRemoveStatusOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetRemoveStatusOperationResponse);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
setStoreItemInformation(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
256
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminSetStoreItemInformationOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetStoreItemInformationOperationResponse);
|
|
257
|
+
}
|
|
258
|
+
setStoreItemInformationAsync(requestData_1) {
|
|
259
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
260
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminSetStoreItemInformationOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.SetStoreItemInformationOperationResponse);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
validateAppleAppStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
264
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminValidateAppleAppStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse);
|
|
265
|
+
}
|
|
266
|
+
validateAppleAppStoreReceiptAsync(requestData_1) {
|
|
267
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
268
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminValidateAppleAppStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
validateFacebookStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
272
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminValidateFacebookStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse);
|
|
273
|
+
}
|
|
274
|
+
validateFacebookStoreReceiptAsync(requestData_1) {
|
|
275
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
276
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminValidateFacebookStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse);
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
validateGooglePlayStoreReceipt(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
280
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminValidateGooglePlayStoreReceiptOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse);
|
|
281
|
+
}
|
|
282
|
+
validateGooglePlayStoreReceiptAsync(requestData_1) {
|
|
283
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
284
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminValidateGooglePlayStoreReceiptOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse);
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
getCreateLeaderboard(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
288
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminGetCreateLeaderboardOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse);
|
|
289
|
+
}
|
|
290
|
+
getCreateLeaderboardAsync(requestData_1) {
|
|
291
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
292
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminGetCreateLeaderboardOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse);
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
presentStoreItem(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
296
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminPresentStoreItemOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.PresentStoreItemOperationResponse);
|
|
297
|
+
}
|
|
298
|
+
presentStoreItemAsync(requestData_1) {
|
|
299
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
300
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminPresentStoreItemOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.PresentStoreItemOperationResponse);
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
getStoreLog(requestData, onResponse = null, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
304
|
+
GNNetwork.sendViaHttpTRequestTResponse(new StoreInventoryRequestModels.AdminGetStoreLogOperationRequest(requestData, timeout), onResponse, overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreLogOperationResponse);
|
|
305
|
+
}
|
|
306
|
+
getStoreLogAsync(requestData_1) {
|
|
307
|
+
return __awaiter(this, arguments, void 0, function* (requestData, overrideAuthToken = null, overrideSecretKey = null, customTags = null, timeout = OperationRequest.defaultTimeOut) {
|
|
308
|
+
return GNNetwork.sendViaHttpTRequestTResponseAsync(new StoreInventoryRequestModels.AdminGetStoreLogOperationRequest(requestData, timeout), overrideAuthToken, overrideSecretKey, customTags, StoreInventoryResponseModels.GetStoreLogOperationResponse);
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export class GNData {
|
|
2
|
+
get(k, def) {
|
|
3
|
+
return def;
|
|
4
|
+
}
|
|
5
|
+
getBoolean(k, def) {
|
|
6
|
+
return this.get(k, def);
|
|
7
|
+
}
|
|
8
|
+
getObject(k, def) {
|
|
9
|
+
return this.get(k, def);
|
|
10
|
+
}
|
|
11
|
+
getString(k, def) {
|
|
12
|
+
return this.get(k, def);
|
|
13
|
+
}
|
|
14
|
+
getNumber(k, def) {
|
|
15
|
+
return this.get(k, def);
|
|
16
|
+
}
|
|
17
|
+
getGNHashtable(k, def) {
|
|
18
|
+
return this.get(k, def);
|
|
19
|
+
}
|
|
20
|
+
getGNArray(k, def) {
|
|
21
|
+
return this.get(k, def);
|
|
22
|
+
}
|
|
23
|
+
static createGNHashtableFromObject(value) {
|
|
24
|
+
let answer = new GNHashtable();
|
|
25
|
+
let valueKeys = Object.keys(value);
|
|
26
|
+
for (let i = 0; i < valueKeys.length; i++) {
|
|
27
|
+
let key = valueKeys[i];
|
|
28
|
+
answer.add(key, value[key]);
|
|
29
|
+
}
|
|
30
|
+
return answer;
|
|
31
|
+
}
|
|
32
|
+
static createGNArrayFromArray(value) {
|
|
33
|
+
let answer = new GNArray();
|
|
34
|
+
let valueArr = value;
|
|
35
|
+
for (let i = 0; i < valueArr.length; i++) {
|
|
36
|
+
answer.add(valueArr[i]);
|
|
37
|
+
}
|
|
38
|
+
return answer;
|
|
39
|
+
}
|
|
40
|
+
static createUseDataFromOriginData(value) {
|
|
41
|
+
if (value == null)
|
|
42
|
+
return null;
|
|
43
|
+
let typeOfValue = typeof value;
|
|
44
|
+
if (typeOfValue === "string")
|
|
45
|
+
return value;
|
|
46
|
+
if (typeOfValue === "number")
|
|
47
|
+
return value;
|
|
48
|
+
if (typeOfValue === "boolean")
|
|
49
|
+
return value;
|
|
50
|
+
if (value instanceof GNArray)
|
|
51
|
+
return value;
|
|
52
|
+
if (value instanceof GNHashtable)
|
|
53
|
+
return value;
|
|
54
|
+
if (typeOfValue === "object") {
|
|
55
|
+
if (Array.isArray(value))
|
|
56
|
+
return this.createGNArrayFromArray(value);
|
|
57
|
+
else
|
|
58
|
+
return this.createGNHashtableFromObject(value);
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
static createDataFromUseData(value) {
|
|
63
|
+
if (value == null)
|
|
64
|
+
return null;
|
|
65
|
+
if (value instanceof GNArray) {
|
|
66
|
+
return value.toData();
|
|
67
|
+
}
|
|
68
|
+
if (value instanceof GNHashtable) {
|
|
69
|
+
return value.toData();
|
|
70
|
+
}
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class GNHashtableBuilder {
|
|
75
|
+
add(k, value) {
|
|
76
|
+
this.dict[k] = value;
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
addAll(dict) {
|
|
80
|
+
let keys = Object.keys(dict);
|
|
81
|
+
keys.forEach(keyStr => {
|
|
82
|
+
this.add(keyStr, dict[keyStr]);
|
|
83
|
+
});
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
constructor() {
|
|
87
|
+
this.dict = {};
|
|
88
|
+
this.dict = {};
|
|
89
|
+
}
|
|
90
|
+
build() {
|
|
91
|
+
let answer = new GNHashtable();
|
|
92
|
+
let keys = Object.keys(this.dict);
|
|
93
|
+
keys.forEach(keyStr => {
|
|
94
|
+
answer.add(keyStr, this.dict[keyStr]);
|
|
95
|
+
});
|
|
96
|
+
return answer;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export class GNHashtable extends GNData {
|
|
100
|
+
constructor() {
|
|
101
|
+
super(...arguments);
|
|
102
|
+
this.dict = {};
|
|
103
|
+
}
|
|
104
|
+
clear() {
|
|
105
|
+
this.dict = {};
|
|
106
|
+
}
|
|
107
|
+
remove(k) {
|
|
108
|
+
if (this.containsKey(k)) {
|
|
109
|
+
delete this.dict[k];
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
count() {
|
|
115
|
+
return Object.keys(this.dict).length;
|
|
116
|
+
}
|
|
117
|
+
containsKey(k) {
|
|
118
|
+
let keys = Object.keys(this.dict);
|
|
119
|
+
let kStr = k.toString();
|
|
120
|
+
return keys.indexOf(kStr) != -1;
|
|
121
|
+
}
|
|
122
|
+
get(k, def) {
|
|
123
|
+
let value = this.dict[k];
|
|
124
|
+
if (value == null)
|
|
125
|
+
return def;
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
add(k, value) {
|
|
129
|
+
this.dict[k] = GNData.createUseDataFromOriginData(value);
|
|
130
|
+
}
|
|
131
|
+
toData() {
|
|
132
|
+
let anwser = {};
|
|
133
|
+
let keys = Object.keys(this.dict);
|
|
134
|
+
for (let i = 0; i < keys.length; i++) {
|
|
135
|
+
let key = keys[i];
|
|
136
|
+
anwser[key] = GNData.createDataFromUseData(this.dict[key]);
|
|
137
|
+
}
|
|
138
|
+
return anwser;
|
|
139
|
+
}
|
|
140
|
+
static builder() {
|
|
141
|
+
return new GNHashtableBuilder();
|
|
142
|
+
}
|
|
143
|
+
toString() {
|
|
144
|
+
return JSON.stringify(this.dict);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export class GNArrayBuilder {
|
|
148
|
+
add(value) {
|
|
149
|
+
this.array.push(value);
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
addAll(array) {
|
|
153
|
+
array.forEach(o => {
|
|
154
|
+
this.add(o);
|
|
155
|
+
});
|
|
156
|
+
return this;
|
|
157
|
+
}
|
|
158
|
+
build() {
|
|
159
|
+
let awnser = new GNArray();
|
|
160
|
+
this.array.forEach(o => {
|
|
161
|
+
awnser.add(o);
|
|
162
|
+
});
|
|
163
|
+
return awnser;
|
|
164
|
+
}
|
|
165
|
+
constructor() {
|
|
166
|
+
this.array = [];
|
|
167
|
+
this.array = [];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export class GNArray extends GNData {
|
|
171
|
+
constructor() {
|
|
172
|
+
super(...arguments);
|
|
173
|
+
this.array = [];
|
|
174
|
+
}
|
|
175
|
+
clear() {
|
|
176
|
+
this.array = [];
|
|
177
|
+
}
|
|
178
|
+
remove(k) {
|
|
179
|
+
if (k < 0 || k >= this.array.length)
|
|
180
|
+
return false;
|
|
181
|
+
this.array.splice(k, 1);
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
count() {
|
|
185
|
+
return this.array.length;
|
|
186
|
+
}
|
|
187
|
+
get(k, def) {
|
|
188
|
+
if (k < 0 || k >= this.array.length)
|
|
189
|
+
return null;
|
|
190
|
+
let value = this.array[k];
|
|
191
|
+
if (value == null)
|
|
192
|
+
return def;
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
add(value) {
|
|
196
|
+
this.array.push(GNData.createUseDataFromOriginData(value));
|
|
197
|
+
}
|
|
198
|
+
toData() {
|
|
199
|
+
let anwser = [];
|
|
200
|
+
for (let i = 0; i < this.array.length; i++) {
|
|
201
|
+
anwser.push(GNData.createDataFromUseData(this.array[i]));
|
|
202
|
+
}
|
|
203
|
+
return anwser;
|
|
204
|
+
}
|
|
205
|
+
static builder() {
|
|
206
|
+
return new GNArrayBuilder();
|
|
207
|
+
}
|
|
208
|
+
toString() {
|
|
209
|
+
return JSON.stringify(this.array);
|
|
210
|
+
}
|
|
211
|
+
}
|