@xmobitea/gn-server 2.1.0 → 2.3.0
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/GNconfig.debug.json +30 -27
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginBaseRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGameCenterRequestHandler.d.ts +24 -0
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGooglePlayGameServiceRequestHandler.d.ts +19 -0
- package/dist/GN-app-api/handler/controller/handler/authenticate/RegisterAccountRequestHandler.d.ts +1 -6
- package/dist/GN-app-api/handler/controller/handler/authenticate/model/InfoRequestParam.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/base/RequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCreateLeaderboardRequestHandler.d.ts +23 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +2 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerCurrencyRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerStatisticsRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/model/PlayerDataParam.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/cloudScript/ExecuteFunctionRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/GetContentDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/GetFileUploadInfoListRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetAnalyticsRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetBackupStatisticsLeaderboardVersionRequestHandler.d.ts +18 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetEventCallbackCloudScriptRequestHandler.d.ts +15 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerGameDataRequestHandler.d.ts +34 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerLogRequestHandler.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetUsernameAdminAccountRequestHandler.d.ts +16 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GrantSecretInfoRequestHandler.d.ts +4 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/ResetStatisticsLeaderboardRequestHandler.d.ts +20 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetEventCallbackCloudScriptRequestHandler.d.ts +17 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetMasterGameSettingsRequestHandler.d.ts +4 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/AuthenticatePermissionRulesParam.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerPermissionRulesParam.d.ts +3 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/ContentPermissionRulesParam.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/CurrencySettingsParam.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/EmailSettingsParam.d.ts +4 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/GamePlayerPermissionRulesParam.d.ts +3 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupPermissionRulesParam.d.ts +3 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/InventoryPermissionRulesParam.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterAdminPermissionRulesParam.d.ts +6 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterPlayerPermissionRulesParam.d.ts +16 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MatchmakingQueueSettingsParam.d.ts +4 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MultiplayerPermissionRulesParam.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/PushNotificationSettingsParam.d.ts +5 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/StatisticsSettingsParam.d.ts +3 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/StoreInventoryPermissionRulesParam.d.ts +3 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/TagSettingsParam.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyAppleSettingsParam.d.ts +3 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyGameCenterSettingsParam.d.ts +3 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyGooglePlayGameSettingsParam.d.ts +6 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyGoogleSettingsParam.d.ts +3 -3
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyParam.d.ts +4 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCreateLeaderboardRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +2 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerCurrencyRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerStatisticsRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/model/PlayerDataParam.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetCreateLeaderboardRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/group/GroupBaseRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/SetGroupCurrencyRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/group/SetGroupStatisticsRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/group/model/GroupDataParam.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetCreateLeaderboardRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/inventory/SetItemStatisticsRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/inventory/model/ItemDataParam.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/AddPushNotificationRequestHandler.d.ts +20 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCreateLeaderboardRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGameCenterRequestHandler.d.ts +20 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGooglePlayGameServiceRequestHandler.d.ts +20 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPushNotificationRequestHandler.d.ts +18 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGameCenterRequestHandler.d.ts +25 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGooglePlayGameServiceRequestHandler.d.ts +20 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/MasterPlayerBaseRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemovePushNotificationRequestHandler.d.ts +19 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendEmailRequestHandler.d.ts +20 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendPushNotificationRequestHandler.d.ts +25 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendSocketOperationEventRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerCurrencyRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerStatisticsRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGameCenterRequestHandler.d.ts +19 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGooglePlayGameServiceRequestHandler.d.ts +19 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/model/InfoRequestParam.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchRequestHandler.d.ts +20 -0
- package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchmakingTicketRequestHandler.d.ts +21 -0
- package/dist/GN-app-api/handler/controller/handler/multiplayer/MatchmakingHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/storeInventory/BuyStoreItemRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetCreateLeaderboardRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreLogRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GrantStoreItemRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/PresentStoreItemRequestHandler.d.ts +21 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/SetStoreItemInformationRequestHandler.d.ts +8 -8
- package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateAppleAppStoreReceiptRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateFacebookStoreReceiptRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateGooglePlayStoreReceiptRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/model/InAppPurchaseParam.d.ts +4 -3
- package/dist/GN-app-api/service/AnalyticsService.d.ts +4 -2
- package/dist/GN-app-api/service/AppleService.d.ts +16 -4
- package/dist/GN-app-api/service/CloudScriptService.d.ts +14 -2
- package/dist/GN-app-api/service/CountryIPDetailService.d.ts +11 -0
- package/dist/GN-app-api/service/EventCallbackService.d.ts +103 -0
- package/dist/GN-app-api/service/GameCenterService.d.ts +19 -0
- package/dist/GN-app-api/service/GenericService.d.ts +3 -2
- package/dist/GN-app-api/service/GooglePlayGameService.d.ts +21 -0
- package/dist/GN-app-api/service/IAnalyticsService.d.ts +13 -2
- package/dist/GN-app-api/service/ICloudScriptService.d.ts +3 -1
- package/dist/GN-app-api/service/ICountryIPDetailService.d.ts +20 -0
- package/dist/GN-app-api/service/IGameCenterService.d.ts +13 -0
- package/dist/GN-app-api/service/IGenericService.d.ts +6 -3
- package/dist/GN-app-api/service/IGooglePlayGameService.d.ts +5 -0
- package/dist/GN-common/constant/Commands.d.ts +1 -0
- package/dist/GN-common/constant/OperationCode.d.ts +29 -0
- package/dist/GN-common/constant/enumType/OwnerType.d.ts +2 -1
- package/dist/GN-common/constant/enumType/PushPlatformType.d.ts +4 -0
- package/dist/GN-common/constant/enumType/StoreReceiveType.d.ts +7 -0
- package/dist/GN-common/constant/errorCode/GNErrorCode.d.ts +2 -0
- package/dist/GN-common/constant/parameterCode/GNParameterCode.d.ts +120 -1
- package/dist/GN-common/entity/SecretInfo.d.ts +48 -1
- package/dist/GN-common/helper/StringUtility.d.ts +1 -1
- package/dist/GN-library/xcachedata/lib/xCacheData.d.ts +1 -0
- package/dist/GN-library/xconfig/lib/xConfig.d.ts +2 -1
- package/dist/GN-library/xdatabase/lib/entity/pro/ExternalItem.d.ts +10 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/IPDetailItem.d.ts +5 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/MasterPlayer.d.ts +13 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/MongoObject.d.ts +2 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/PushNotificationItem.d.ts +5 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/StoreInventory.d.ts +1 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/findOptions/MasterPlayerFindOptions.d.ts +2 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/masterAdmin/MasterGameSettings.d.ts +10 -0
- package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +113 -10
- package/dist/GN-library/xdebug/lib/xDebug.d.ts +1 -0
- package/dist/GN-library/xmail/lib/xMail.d.ts +3 -1
- package/dist/GN-library/xnotification/lib/xPushNotification.d.ts +27 -0
- package/dist/GN-library/xsettings/lib/entity/xCurrencySettings.d.ts +2 -0
- package/dist/GN-library/xsettings/lib/entity/xEmailSettings.d.ts +4 -0
- package/dist/GN-library/xsettings/lib/entity/xPushNotificationSettings.d.ts +5 -0
- package/dist/GN-library/xsettings/lib/entity/xStatisticsSettings.d.ts +3 -0
- package/dist/GN-library/xsettings/lib/entity/xTagSettings.d.ts +1 -0
- package/dist/GN-library/xsettings/lib/entity/xThirtPartySettings.d.ts +12 -0
- package/dist/GN-startup/DefaultApplicationStartup.d.ts +1 -2
- package/dist/GN-startup/HttpApp.d.ts +0 -3
- package/dist/GN-startup/ServerApplication.d.ts +0 -4
- package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +1818 -0
- package/dist/GN-startup/cloudScript/templateCloudScript.ts +567 -0
- package/dist/GN-startup/cloudScript/templateEventCallback.ts +798 -0
- package/dist/GN-startup/middleware/AntiDdosMiddleware.d.ts +4 -1
- package/dist/GN-startup/middleware/ApiMiddleware.d.ts +1 -0
- package/dist/GN-startup/routes/AdminAppHandler.d.ts +0 -31
- package/dist/GN-startup/settings/DDosSettings.d.ts +3 -0
- package/dist/GN-startup/settings/OtherSettings.d.ts +6 -0
- package/dist/GNServer.d.ts +30 -4
- package/dist/index.d.ts +144 -6
- package/dist/index.js +21329 -6740
- package/gn.sh +7 -10
- package/package.json +24 -27
- package/syncCode.js +341 -341
- package/syncCodeVer2.js +176 -0
- package/dist/GN-startup/cloudScript/template.ts +0 -118
- package/dist/GN-startup/routes/www/public/admin/debug-common.js +0 -1233
- package/dist/GN-startup/routes/www/public/admin/index-common.js +0 -217
- package/dist/GN-startup/routes/www/public/admin/log-common.js +0 -52
- package/dist/GN-startup/routes/www/public/admin/signin-common.js +0 -35
- package/dist/GN-startup/routes/www/public/assets/demo/chart-area-demo.js +0 -54
- package/dist/GN-startup/routes/www/public/assets/demo/chart-bar-demo.js +0 -46
- package/dist/GN-startup/routes/www/public/assets/demo/chart-pie-demo.js +0 -16
- package/dist/GN-startup/routes/www/public/assets/demo/datatables-demo.js +0 -4
- package/dist/GN-startup/routes/www/public/assets/img/error-404-monochrome.svg +0 -1
- package/dist/GN-startup/routes/www/public/css/styles.css +0 -11701
- package/dist/GN-startup/routes/www/public/favicon.ico +0 -0
- package/dist/GN-startup/routes/www/public/favicon.png +0 -0
- package/dist/GN-startup/routes/www/public/js/scripts.js +0 -26
- package/dist/GN-startup/routes/www/views/101.ejs +0 -21
- package/dist/GN-startup/routes/www/views/401.ejs +0 -25
- package/dist/GN-startup/routes/www/views/403.ejs +0 -21
- package/dist/GN-startup/routes/www/views/404.ejs +0 -25
- package/dist/GN-startup/routes/www/views/500.ejs +0 -25
- package/dist/GN-startup/routes/www/views/admin/change-password.ejs +0 -46
- package/dist/GN-startup/routes/www/views/admin/debug.ejs +0 -14
- package/dist/GN-startup/routes/www/views/admin/index.ejs +0 -28
- package/dist/GN-startup/routes/www/views/admin/log.ejs +0 -16
- package/dist/GN-startup/routes/www/views/admin/signin.ejs +0 -56
- package/dist/GN-startup/routes/www/views/layout.ejs +0 -8
- package/dist/GN-startup/routes/www/views/partials/areachart.ejs +0 -9
- package/dist/GN-startup/routes/www/views/partials/areachartccu.ejs +0 -9
- package/dist/GN-startup/routes/www/views/partials/barchart.ejs +0 -9
- package/dist/GN-startup/routes/www/views/partials/barcharttotal.ejs +0 -9
- package/dist/GN-startup/routes/www/views/partials/common/footer.ejs +0 -14
- package/dist/GN-startup/routes/www/views/partials/common/head.ejs +0 -11
- package/dist/GN-startup/routes/www/views/partials/dau.ejs +0 -41
- package/dist/GN-startup/routes/www/views/partials/debugboard.ejs +0 -90
- package/dist/GN-startup/routes/www/views/partials/description.ejs +0 -20
- package/dist/GN-startup/routes/www/views/partials/logtable.ejs +0 -50
- package/dist/GN-startup/routes/www/views/partials/piechart.ejs +0 -7
- package/dist/GN-startup/routes/www/views/partials/sidenav.ejs +0 -83
- package/dist/GN-startup/routes/www/views/partials/topnav.ejs +0 -53
- package/dist/GN-startup/settings/MailSettings.d.ts +0 -22
|
@@ -3,19 +3,122 @@ import { OperationRequest } from "./../../GN-common/entity/operationRequest/Oper
|
|
|
3
3
|
import { OperationResponse } from "./../../GN-common/entity/operationResponse/OperationResponse";
|
|
4
4
|
import { IPostEventCallbackService, IPreEventCallbackService, OnPostCallbackFunction, OnPreCallbackFunction } from "./IEventCallbackService";
|
|
5
5
|
import * as mongoDB from "mongodb";
|
|
6
|
+
import { GNServer } from "../../GNServer";
|
|
7
|
+
import { GNServerSettingsOptions } from "@xmobitea/gn-typescript-client";
|
|
8
|
+
import { MatchmakingTicketCanMatch } from "../handler/controller/handler/multiplayer/MatchmakingHandler";
|
|
9
|
+
interface DbConnection {
|
|
10
|
+
url: string;
|
|
11
|
+
dbName: string;
|
|
12
|
+
options?: {
|
|
13
|
+
[k: string]: any;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface EventCallbackCloudScriptFunction {
|
|
17
|
+
type: string;
|
|
18
|
+
version: string;
|
|
19
|
+
fullScript: string;
|
|
20
|
+
tsLastUpdate: number;
|
|
21
|
+
childScripts: {
|
|
22
|
+
eventName: string;
|
|
23
|
+
script: string;
|
|
24
|
+
hasEdit: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
27
|
+
export interface IEventCallbackCloudScriptService {
|
|
28
|
+
executeRequestServerDetailSystem(gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch): Promise<{
|
|
29
|
+
success: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
executePost(eventName: string, request: {
|
|
32
|
+
[k: string]: any;
|
|
33
|
+
}, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse): Promise<void>;
|
|
34
|
+
executePre(eventName: string, request: {
|
|
35
|
+
[k: string]: any;
|
|
36
|
+
}, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
37
|
+
addCloudScriptFunction(eventName: string, script: string): Promise<{
|
|
38
|
+
success: boolean;
|
|
39
|
+
errorMessage?: string;
|
|
40
|
+
version?: string;
|
|
41
|
+
}>;
|
|
42
|
+
getAllCloudScriptFunction(): Promise<{
|
|
43
|
+
type: string;
|
|
44
|
+
version: string;
|
|
45
|
+
fullScript: string;
|
|
46
|
+
tsLastUpdate: number;
|
|
47
|
+
childScripts: {
|
|
48
|
+
eventName: string;
|
|
49
|
+
script: string;
|
|
50
|
+
hasEdit: boolean;
|
|
51
|
+
}[];
|
|
52
|
+
}[]>;
|
|
53
|
+
}
|
|
54
|
+
export declare class EventCallbackCloudScriptService implements IEventCallbackCloudScriptService {
|
|
55
|
+
private static readonly ExecuteTimeoutInMs;
|
|
56
|
+
private static readonly SystemExecuteTimeoutInMs;
|
|
57
|
+
private static readonly OnEveryMinute;
|
|
58
|
+
private static readonly OnEveryHour;
|
|
59
|
+
private static readonly OnEveryDay;
|
|
60
|
+
private cloudScriptWorkerDict;
|
|
61
|
+
private cloudScriptWaitingResponseCallbackDict;
|
|
62
|
+
private cloudScriptFunctionCollection;
|
|
63
|
+
private backupCloudScriptFunctionCollection;
|
|
64
|
+
private gnServer;
|
|
65
|
+
private gnServerSettingsOptions;
|
|
66
|
+
private dbConnection;
|
|
67
|
+
private cloudScriptFunctionDict;
|
|
68
|
+
constructor();
|
|
69
|
+
getAllCloudScriptFunction(): Promise<{
|
|
70
|
+
type: string;
|
|
71
|
+
version: string;
|
|
72
|
+
fullScript: string;
|
|
73
|
+
tsLastUpdate: number;
|
|
74
|
+
childScripts: {
|
|
75
|
+
eventName: string;
|
|
76
|
+
script: string;
|
|
77
|
+
hasEdit: boolean;
|
|
78
|
+
}[];
|
|
79
|
+
}[]>;
|
|
80
|
+
init(gnServerSettingsOptions: GNServerSettingsOptions, dbConnection: DbConnection, gnServer: GNServer): void;
|
|
81
|
+
setCloudScriptFunctionCollection(cloudScriptFunctionCollection: mongoDB.Collection<mongoDB.Document>): void;
|
|
82
|
+
setBackupCloudScriptFunctionCollection(cloudScriptFunctionCollection: mongoDB.Collection<mongoDB.Document>): void;
|
|
83
|
+
run(): void;
|
|
84
|
+
private loadVersion;
|
|
85
|
+
private executeSystem;
|
|
86
|
+
executeRequestServerDetailSystem(gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch): Promise<{
|
|
87
|
+
success: boolean;
|
|
88
|
+
}>;
|
|
89
|
+
executePre(eventName: string, request: {
|
|
90
|
+
[k: string]: any;
|
|
91
|
+
}, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
92
|
+
executePost(eventName: string, request: {
|
|
93
|
+
[k: string]: any;
|
|
94
|
+
}, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse): Promise<void>;
|
|
95
|
+
private loadCloudScriptFunctionWorkerFromCache;
|
|
96
|
+
addCloudScriptFunction(eventName: string, script: string): Promise<{
|
|
97
|
+
success: boolean;
|
|
98
|
+
errorMessage?: string;
|
|
99
|
+
version?: string;
|
|
100
|
+
}>;
|
|
101
|
+
private loadCloudScriptFunctionWorker;
|
|
102
|
+
private loadCloudScriptWorker;
|
|
103
|
+
}
|
|
6
104
|
export declare class PostEventCallbackService implements IPostEventCallbackService {
|
|
7
105
|
private eventLstDict;
|
|
8
106
|
constructor();
|
|
9
107
|
private eventCallbackCollection;
|
|
108
|
+
private cloudScriptService;
|
|
10
109
|
subscriberEvent(eventName: string, callbackFunction: OnPostCallbackFunction): void;
|
|
11
110
|
unSubscriberEvent(eventName: string, callbackFunction: OnPostCallbackFunction): void;
|
|
12
111
|
setEventCallbackCollection(eventCallbackCollection: mongoDB.Collection<mongoDB.Document>): void;
|
|
112
|
+
setCloudScriptService(cloudScriptService: IEventCallbackCloudScriptService): void;
|
|
13
113
|
onEvent(eventName: string, request: {}, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse): Promise<void>;
|
|
14
114
|
}
|
|
15
115
|
export declare class PreEventCallbackService implements IPreEventCallbackService {
|
|
16
116
|
private eventDict;
|
|
117
|
+
private cloudScriptService;
|
|
17
118
|
constructor();
|
|
18
119
|
subscriberEvent(eventName: string, callbackFunction: OnPreCallbackFunction): void;
|
|
19
120
|
unSubscriberEvent(eventName: string): void;
|
|
121
|
+
setCloudScriptService(cloudScriptService: IEventCallbackCloudScriptService): void;
|
|
20
122
|
onEvent(eventName: string, request: {}, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
21
123
|
}
|
|
124
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GameCenterAuth, IGameCenterService } from "./IGameCenterService";
|
|
2
|
+
export declare class GameCenterService implements IGameCenterService {
|
|
3
|
+
private publicKeyCache;
|
|
4
|
+
private bundleId;
|
|
5
|
+
constructor();
|
|
6
|
+
init(request: {
|
|
7
|
+
bundleId: string;
|
|
8
|
+
}): void;
|
|
9
|
+
verifyToken(auth: GameCenterAuth): Promise<{
|
|
10
|
+
[k: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
private concatSignatureAndVerify;
|
|
13
|
+
private toBigEndian;
|
|
14
|
+
private getCertificate;
|
|
15
|
+
private validatePublicKeyUrl;
|
|
16
|
+
private getPublicKeyFromCache;
|
|
17
|
+
private convertX509CertToPEM;
|
|
18
|
+
private downloadPublicKey;
|
|
19
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { GNHashtable } from "./../../GN-common/common/GNData";
|
|
2
1
|
import { IGenericService } from "./IGenericService";
|
|
3
2
|
export declare class GenericService implements IGenericService {
|
|
4
|
-
verifyGenericService(serviceName: string, serviceData:
|
|
3
|
+
verifyGenericService(serviceName: string, serviceData: {
|
|
4
|
+
[k: string]: any;
|
|
5
|
+
}): Promise<{
|
|
5
6
|
status: "Ok" | "ServiceNotFound" | "VerifyError";
|
|
6
7
|
serviceId: string;
|
|
7
8
|
someDatas?: any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IGooglePlayGameService } from "./IGooglePlayGameService";
|
|
2
|
+
export declare class GooglePlayGameService implements IGooglePlayGameService {
|
|
3
|
+
private static readonly googleAPIUrl;
|
|
4
|
+
private static readonly googleAPITokenUrl;
|
|
5
|
+
private static readonly googleAPIVerifyUrl;
|
|
6
|
+
private redirectUri;
|
|
7
|
+
private clientId;
|
|
8
|
+
private clientSecret;
|
|
9
|
+
private applicationId;
|
|
10
|
+
init(request: {
|
|
11
|
+
redirectUri: string;
|
|
12
|
+
clientId: string;
|
|
13
|
+
clientSecret: string;
|
|
14
|
+
applicationId: string;
|
|
15
|
+
}): void;
|
|
16
|
+
verifyToken(authCode: string): Promise<{
|
|
17
|
+
[k: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
private exchangeAccessToken;
|
|
20
|
+
private getPlayerId;
|
|
21
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface BigAnalyticsItem {
|
|
2
2
|
CCU: number;
|
|
3
3
|
DAU: number;
|
|
4
4
|
DAUSince0h: number;
|
|
@@ -12,7 +12,18 @@ export interface AnalyticsItem {
|
|
|
12
12
|
MNUSince0h1: number;
|
|
13
13
|
MRT: number;
|
|
14
14
|
MRTSince0h1: number;
|
|
15
|
+
analyticsPrice: number;
|
|
16
|
+
country: {
|
|
17
|
+
countryCode: string;
|
|
18
|
+
regions: {
|
|
19
|
+
regionCode: string;
|
|
20
|
+
regionName: string;
|
|
21
|
+
ccu: number;
|
|
22
|
+
latidute: number;
|
|
23
|
+
longitude: number;
|
|
24
|
+
}[];
|
|
25
|
+
}[];
|
|
15
26
|
}
|
|
16
27
|
export interface IAnalyticsService {
|
|
17
|
-
|
|
28
|
+
getBigAnalyticsItem(tsDate?: number): Promise<BigAnalyticsItem>;
|
|
18
29
|
}
|
|
@@ -18,7 +18,7 @@ export interface ExecuteResult {
|
|
|
18
18
|
logs: string[];
|
|
19
19
|
}
|
|
20
20
|
export interface ICloudScriptService {
|
|
21
|
-
executeCloudScriptFunction(userId: string, functionName: string,
|
|
21
|
+
executeCloudScriptFunction(userId: string, functionName: string, functionParameters: object, version: string, customTags: {
|
|
22
22
|
[k: string]: any;
|
|
23
23
|
}): Promise<ExecuteResult>;
|
|
24
24
|
addCloudScriptFunction(script: string, isLive: boolean, canExecute: boolean): Promise<{
|
|
@@ -40,4 +40,6 @@ export interface ICloudScriptService {
|
|
|
40
40
|
version: string;
|
|
41
41
|
canExecute: boolean;
|
|
42
42
|
}>;
|
|
43
|
+
getLatestVersion(): string;
|
|
44
|
+
getLiveLatestVersion(): string;
|
|
43
45
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface IPDetail {
|
|
2
|
+
countryCode: string;
|
|
3
|
+
countryName: string;
|
|
4
|
+
regionCode: string;
|
|
5
|
+
regionName: string;
|
|
6
|
+
city: string;
|
|
7
|
+
zipCode: string;
|
|
8
|
+
latitude: number;
|
|
9
|
+
longitude: number;
|
|
10
|
+
}
|
|
11
|
+
type StatusCode = "Ok" | "IPInvalid" | "IPNotFound" | "CantQuery";
|
|
12
|
+
export interface IPDetailResponse {
|
|
13
|
+
detail?: IPDetail;
|
|
14
|
+
statusCode: StatusCode;
|
|
15
|
+
}
|
|
16
|
+
export interface ICountryIPDetailService {
|
|
17
|
+
getIPDetailResponse(ipAddress: string): Promise<IPDetailResponse>;
|
|
18
|
+
updateUserIP(userId: string, ip: string, oldCountryCode: string, oldRegionCode: string, newCountryCode: string, newRegionCode: string): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface GameCenterAuth {
|
|
2
|
+
playerId: string;
|
|
3
|
+
name: string;
|
|
4
|
+
publicKeyUrl: string;
|
|
5
|
+
signature: string;
|
|
6
|
+
salt: string;
|
|
7
|
+
timestamp: number;
|
|
8
|
+
}
|
|
9
|
+
export interface IGameCenterService {
|
|
10
|
+
verifyToken(auth: GameCenterAuth): Promise<{
|
|
11
|
+
[k: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { GNHashtable } from "./../../GN-common/common/GNData";
|
|
2
1
|
import { Constructor } from "./IRequestConverterService";
|
|
3
2
|
export interface IGenericService {
|
|
4
|
-
verifyGenericService(serviceName: string, serviceData:
|
|
3
|
+
verifyGenericService(serviceName: string, serviceData: {
|
|
4
|
+
[k: string]: any;
|
|
5
|
+
}): Promise<{
|
|
5
6
|
status: "Ok" | "ServiceNotFound" | "VerifyError";
|
|
6
7
|
serviceId: string;
|
|
7
8
|
someDatas?: any;
|
|
@@ -10,7 +11,9 @@ export interface IGenericService {
|
|
|
10
11
|
}
|
|
11
12
|
export interface IGenericServiceHandler {
|
|
12
13
|
getServiceName(): string;
|
|
13
|
-
handle(serviceData:
|
|
14
|
+
handle(serviceData: {
|
|
15
|
+
[k: string]: any;
|
|
16
|
+
}): Promise<{
|
|
14
17
|
status: "Ok" | "ServiceNotFound" | "VerifyError";
|
|
15
18
|
serviceId: string;
|
|
16
19
|
someDatas?: any;
|
|
@@ -6,6 +6,7 @@ export declare class Commands {
|
|
|
6
6
|
static readonly APPLICATION_MSGPACK: string;
|
|
7
7
|
static readonly RequestAuthTokenCmd: string;
|
|
8
8
|
static readonly RequestSecretCmd: string;
|
|
9
|
+
static readonly RequestGameIdCmd: string;
|
|
9
10
|
static readonly RequestCmd_MsgPack: string;
|
|
10
11
|
static readonly ResponseCmd_MsgPack: string;
|
|
11
12
|
static readonly EventCmd_MsgPack: string;
|
|
@@ -17,6 +17,13 @@ export declare class OperationCode {
|
|
|
17
17
|
static readonly GetSecretInfoList: number;
|
|
18
18
|
static readonly GrantSecretInfo: number;
|
|
19
19
|
static readonly SetSecretInfoInformation: number;
|
|
20
|
+
static readonly GetUsernameAdminAccount: number;
|
|
21
|
+
static readonly GetAnalytics: number;
|
|
22
|
+
static readonly GetEventCallbackCloudScript: number;
|
|
23
|
+
static readonly SetEventCallbackCloudScript: number;
|
|
24
|
+
static readonly ResetStatisticsLeaderboard: number;
|
|
25
|
+
static readonly GetBackupStatisticsLeaderboardVersion: number;
|
|
26
|
+
static readonly GetServerGameData: number;
|
|
20
27
|
static readonly LoginByAccount: number;
|
|
21
28
|
static readonly LoginByAndroidDeviceId: number;
|
|
22
29
|
static readonly LoginByApple: number;
|
|
@@ -186,4 +193,26 @@ export declare class OperationCode {
|
|
|
186
193
|
static readonly AddFunction: number;
|
|
187
194
|
static readonly EditFunction: number;
|
|
188
195
|
static readonly GetFunction: number;
|
|
196
|
+
static readonly LoginByGooglePlayGameService: number;
|
|
197
|
+
static readonly LoginByGameCenter: number;
|
|
198
|
+
static readonly LinkGooglePlayGameService: number;
|
|
199
|
+
static readonly LinkGameCenter: number;
|
|
200
|
+
static readonly UnlinkGooglePlayGameService: number;
|
|
201
|
+
static readonly UnlinkGameCenter: number;
|
|
202
|
+
static readonly GetPlayersWithGooglePlayGameService: number;
|
|
203
|
+
static readonly GetPlayersWithGameCenter: number;
|
|
204
|
+
static readonly GetLastLoginLeaderboard: number;
|
|
205
|
+
static readonly GetCreateLeaderboard: number;
|
|
206
|
+
static readonly GetAllMatchmakingTicket: number;
|
|
207
|
+
static readonly GetAllMatch: number;
|
|
208
|
+
static readonly SendSocketOperationEvent: number;
|
|
209
|
+
static readonly GetStatisticsLog: number;
|
|
210
|
+
static readonly GetCurrencyLog: number;
|
|
211
|
+
static readonly PresentStoreItem: number;
|
|
212
|
+
static readonly GetStoreLog: number;
|
|
213
|
+
static readonly SendEmail: number;
|
|
214
|
+
static readonly SendPushNotification: number;
|
|
215
|
+
static readonly AddPushNotification: number;
|
|
216
|
+
static readonly RemovePushNotification: number;
|
|
217
|
+
static readonly GetPushNotification: number;
|
|
189
218
|
}
|
|
@@ -375,9 +375,12 @@ export declare class GNParameterCode {
|
|
|
375
375
|
static readonly CustomTags: string;
|
|
376
376
|
static readonly SetSecretInfoInformation: string;
|
|
377
377
|
static readonly GetCurrencyLeaderboard: string;
|
|
378
|
+
static readonly GetCreateLeaderboard: string;
|
|
379
|
+
static readonly GetLastLoginLeaderboard: string;
|
|
378
380
|
static readonly Multiplayer: string;
|
|
379
381
|
static readonly TimeInSeconds: string;
|
|
380
382
|
static readonly QueueName: string;
|
|
383
|
+
static readonly TimeToMatchInSeconds: string;
|
|
381
384
|
static readonly TicketId: string;
|
|
382
385
|
static readonly TicketIds: string;
|
|
383
386
|
static readonly MatchmakingTicket: string;
|
|
@@ -427,8 +430,10 @@ export declare class GNParameterCode {
|
|
|
427
430
|
static readonly GetQueueStatistics: string;
|
|
428
431
|
static readonly JoinMatchmakingTicket: string;
|
|
429
432
|
static readonly ListMatchmakingTicketsForPlayer: string;
|
|
433
|
+
static readonly GetAllMatchmakingTicket: string;
|
|
434
|
+
static readonly GetAllMatch: string;
|
|
430
435
|
static readonly FunctionName: string;
|
|
431
|
-
static readonly
|
|
436
|
+
static readonly FunctionParameters: string;
|
|
432
437
|
static readonly Version: string;
|
|
433
438
|
static readonly FunctionResult: string;
|
|
434
439
|
static readonly ExecutionTimeInMs: string;
|
|
@@ -443,4 +448,118 @@ export declare class GNParameterCode {
|
|
|
443
448
|
static readonly ExecuteFunction: string;
|
|
444
449
|
static readonly GetFunction: string;
|
|
445
450
|
static readonly CloudScript: string;
|
|
451
|
+
static readonly LoginByGooglePlayGameService: string;
|
|
452
|
+
static readonly LoginByGameCenter: string;
|
|
453
|
+
static readonly UnlinkGooglePlayGameService: string;
|
|
454
|
+
static readonly UnlinkGameCenter: string;
|
|
455
|
+
static readonly LinkGooglePlayGameService: string;
|
|
456
|
+
static readonly LinkGameCenter: string;
|
|
457
|
+
static readonly GooglePlayGameSettings: string;
|
|
458
|
+
static readonly GameCenterSettings: string;
|
|
459
|
+
static readonly ApplicationId: string;
|
|
460
|
+
static readonly ClientId: string;
|
|
461
|
+
static readonly ClientSecret: string;
|
|
462
|
+
static readonly RedirectUri: string;
|
|
463
|
+
static readonly PlayerId: string;
|
|
464
|
+
static readonly PublicKeyUrl: string;
|
|
465
|
+
static readonly Signature: string;
|
|
466
|
+
static readonly Salt: string;
|
|
467
|
+
static readonly Timestamp: string;
|
|
468
|
+
static readonly GooglePlayGameService: string;
|
|
469
|
+
static readonly GameCenter: string;
|
|
470
|
+
static readonly PlayerIds: string;
|
|
471
|
+
static readonly GetPlayersWithGooglePlayGameService: string;
|
|
472
|
+
static readonly GetPlayersWithGameCenter: string;
|
|
473
|
+
static readonly LatestVersion: string;
|
|
474
|
+
static readonly LiveLatestVersion: string;
|
|
475
|
+
static readonly SendSocketOperationEvent: string;
|
|
476
|
+
static readonly EventCode: string;
|
|
477
|
+
static readonly EventParameters: string;
|
|
478
|
+
static readonly EventEncrypted: string;
|
|
479
|
+
static readonly Log: string;
|
|
480
|
+
static readonly StartValue: string;
|
|
481
|
+
static readonly FinalValue: string;
|
|
482
|
+
static readonly GetStatisticsLog: string;
|
|
483
|
+
static readonly GetCurrencyLog: string;
|
|
484
|
+
static readonly GetUsernameAdminAccount: string;
|
|
485
|
+
static readonly GetAnalytics: string;
|
|
486
|
+
static readonly AnalyticsItem: string;
|
|
487
|
+
static readonly CCU: string;
|
|
488
|
+
static readonly DAU: string;
|
|
489
|
+
static readonly DAUSince0h: string;
|
|
490
|
+
static readonly DNU: string;
|
|
491
|
+
static readonly DNUSince0h: string;
|
|
492
|
+
static readonly DRT: string;
|
|
493
|
+
static readonly DRTSince0h: string;
|
|
494
|
+
static readonly MAU: string;
|
|
495
|
+
static readonly MAUSince0h1: string;
|
|
496
|
+
static readonly MNU: string;
|
|
497
|
+
static readonly MNUSince0h1: string;
|
|
498
|
+
static readonly MRT: string;
|
|
499
|
+
static readonly MRTSince0h1: string;
|
|
500
|
+
static readonly GetEventCallbackCloudScript: string;
|
|
501
|
+
static readonly SetEventCallbackCloudScript: string;
|
|
502
|
+
static readonly HasEdit: string;
|
|
503
|
+
static readonly FullScript: string;
|
|
504
|
+
static readonly ChildScripts: string;
|
|
505
|
+
static readonly EventName: string;
|
|
506
|
+
static readonly PresentStoreItem: string;
|
|
507
|
+
static readonly GetStoreLog: string;
|
|
508
|
+
static readonly TsLastUpdate: string;
|
|
509
|
+
static readonly StoreReceiveType: string;
|
|
510
|
+
static readonly StoreReceiveTypes: string;
|
|
511
|
+
static readonly TransactionId: string;
|
|
512
|
+
static readonly PriceCurrencyStartValues: string;
|
|
513
|
+
static readonly PriceCurrencyAmountValues: string;
|
|
514
|
+
static readonly PriceCurrencyFinalValues: string;
|
|
515
|
+
static readonly StoreCurrencyStartValues: string;
|
|
516
|
+
static readonly StoreCurrencyAmountValues: string;
|
|
517
|
+
static readonly StoreCurrencyFinalValues: string;
|
|
518
|
+
static readonly StoreItemFinalValues: string;
|
|
519
|
+
static readonly Index: string;
|
|
520
|
+
static readonly ResetStatisticsLeaderboard: string;
|
|
521
|
+
static readonly GetBackupStatisticsLeaderboardVersion: string;
|
|
522
|
+
static readonly GetServerGameData: string;
|
|
523
|
+
static readonly MasterPlayerCount: string;
|
|
524
|
+
static readonly GamePlayerCount: string;
|
|
525
|
+
static readonly CharacterPlayerCount: string;
|
|
526
|
+
static readonly InventoryCount: string;
|
|
527
|
+
static readonly StoreInventoryCount: string;
|
|
528
|
+
static readonly GroupCount: string;
|
|
529
|
+
static readonly Country: string;
|
|
530
|
+
static readonly RegionCode: string;
|
|
531
|
+
static readonly RegionName: string;
|
|
532
|
+
static readonly Regions: string;
|
|
533
|
+
static readonly Latitude: string;
|
|
534
|
+
static readonly Longitude: string;
|
|
535
|
+
static readonly BackupValue: string;
|
|
536
|
+
static readonly AnalyticsPrice: string;
|
|
537
|
+
static readonly IssuerId: string;
|
|
538
|
+
static readonly KeyId: string;
|
|
539
|
+
static readonly P8Content: string;
|
|
540
|
+
static readonly ServerAllocation: string;
|
|
541
|
+
static readonly Enable: string;
|
|
542
|
+
static readonly SendEmail: string;
|
|
543
|
+
static readonly SendPushNotification: string;
|
|
544
|
+
static readonly AddPushNotification: string;
|
|
545
|
+
static readonly RemovePushNotification: string;
|
|
546
|
+
static readonly GetPushNotification: string;
|
|
547
|
+
static readonly EmailSettings: string;
|
|
548
|
+
static readonly PushNotificationSettings: string;
|
|
549
|
+
static readonly SendFrom: string;
|
|
550
|
+
static readonly SendGridApiKey: string;
|
|
551
|
+
static readonly Subject: string;
|
|
552
|
+
static readonly ContentHtml: string;
|
|
553
|
+
static readonly PushNotifications: string;
|
|
554
|
+
static readonly PushId: string;
|
|
555
|
+
static readonly PlatformType: string;
|
|
556
|
+
static readonly ProjectId: string;
|
|
557
|
+
static readonly ClientEmail: string;
|
|
558
|
+
static readonly PrivateKey: string;
|
|
559
|
+
static readonly Badge: string;
|
|
560
|
+
static readonly Icon: string;
|
|
561
|
+
static readonly Sound: string;
|
|
562
|
+
static readonly Title: string;
|
|
563
|
+
static readonly Body: string;
|
|
564
|
+
static readonly TargetPlatforms: string;
|
|
446
565
|
}
|
|
@@ -86,6 +86,8 @@ export interface SecretPermissionItem {
|
|
|
86
86
|
loginByFacebook: AuthenticatePermissionRules;
|
|
87
87
|
loginByGenericService: AuthenticatePermissionRules;
|
|
88
88
|
loginByGoogle: AuthenticatePermissionRules;
|
|
89
|
+
loginByGooglePlayGameService: AuthenticatePermissionRules;
|
|
90
|
+
loginByGameCenter: AuthenticatePermissionRules;
|
|
89
91
|
loginByiOSDeviceId: AuthenticatePermissionRules;
|
|
90
92
|
loginByWindowsPhoneDeviceId: AuthenticatePermissionRules;
|
|
91
93
|
registerAccount: AuthenticatePermissionRules;
|
|
@@ -110,6 +112,8 @@ export interface SecretPermissionItem {
|
|
|
110
112
|
linkMacOSDeviceId: MasterPlayerPermissionRules;
|
|
111
113
|
linkWindowsDeviceId: MasterPlayerPermissionRules;
|
|
112
114
|
linkWindowsPhoneDeviceId: MasterPlayerPermissionRules;
|
|
115
|
+
linkGooglePlayGameService: MasterPlayerPermissionRules;
|
|
116
|
+
linkGameCenter: MasterPlayerPermissionRules;
|
|
113
117
|
unlinkAccount: MasterPlayerPermissionRules;
|
|
114
118
|
unlinkAndroidDeviceId: MasterPlayerPermissionRules;
|
|
115
119
|
unlinkApple: MasterPlayerPermissionRules;
|
|
@@ -124,6 +128,8 @@ export interface SecretPermissionItem {
|
|
|
124
128
|
unlinkMacOSDeviceId: MasterPlayerPermissionRules;
|
|
125
129
|
unlinkWindowsDeviceId: MasterPlayerPermissionRules;
|
|
126
130
|
unlinkWindowsPhoneDeviceId: MasterPlayerPermissionRules;
|
|
131
|
+
unlinkGooglePlayGameService: MasterPlayerPermissionRules;
|
|
132
|
+
unlinkGameCenter: MasterPlayerPermissionRules;
|
|
127
133
|
addSegment: MasterPlayerPermissionRules;
|
|
128
134
|
removeSegment: MasterPlayerPermissionRules;
|
|
129
135
|
getSegment: MasterPlayerPermissionRules;
|
|
@@ -161,11 +167,23 @@ export interface SecretPermissionItem {
|
|
|
161
167
|
getPlayersWithGenericService: MasterPlayerPermissionRules;
|
|
162
168
|
getPlayersWithSegment: MasterPlayerPermissionRules;
|
|
163
169
|
getPlayersWithTag: MasterPlayerPermissionRules;
|
|
170
|
+
getPlayersWithGooglePlayGameService: MasterPlayerPermissionRules;
|
|
171
|
+
getPlayersWithGameCenter: MasterPlayerPermissionRules;
|
|
164
172
|
getExternal: MasterPlayerPermissionRules;
|
|
165
173
|
getPlayersWithDisplayName: MasterPlayerPermissionRules;
|
|
166
174
|
setEmail: MasterPlayerPermissionRules;
|
|
167
175
|
getEmail: MasterPlayerPermissionRules;
|
|
168
176
|
getCurrencyLeaderboard: MasterPlayerPermissionRules;
|
|
177
|
+
getCreateLeaderboard: MasterPlayerPermissionRules;
|
|
178
|
+
getLastLoginLeaderboard: MasterPlayerPermissionRules;
|
|
179
|
+
getStatisticsLog: MasterPlayerPermissionRules;
|
|
180
|
+
getCurrencyLog: MasterPlayerPermissionRules;
|
|
181
|
+
sendSocketOperationEvent: MasterPlayerPermissionRules;
|
|
182
|
+
sendEmail: MasterPlayerPermissionRules;
|
|
183
|
+
sendPushNotification: MasterPlayerPermissionRules;
|
|
184
|
+
getPushNotification: MasterPlayerPermissionRules;
|
|
185
|
+
addPushNotification: MasterPlayerPermissionRules;
|
|
186
|
+
removePushNotification: MasterPlayerPermissionRules;
|
|
169
187
|
};
|
|
170
188
|
gamePlayer: {
|
|
171
189
|
addSegment: GamePlayerPermissionRules;
|
|
@@ -216,6 +234,9 @@ export interface SecretPermissionItem {
|
|
|
216
234
|
getFriendStatisticsLeaderboardAroundPlayer: GamePlayerPermissionRules;
|
|
217
235
|
getFriendStatisticsLeaderboard: GamePlayerPermissionRules;
|
|
218
236
|
getCurrencyLeaderboard: GamePlayerPermissionRules;
|
|
237
|
+
getCreateLeaderboard: GamePlayerPermissionRules;
|
|
238
|
+
getStatisticsLog: GamePlayerPermissionRules;
|
|
239
|
+
getCurrencyLog: GamePlayerPermissionRules;
|
|
219
240
|
};
|
|
220
241
|
characterPlayer: {
|
|
221
242
|
addSegment: CharacterPlayerPermissionRules;
|
|
@@ -267,6 +288,9 @@ export interface SecretPermissionItem {
|
|
|
267
288
|
getFriendStatisticsLeaderboardAroundPlayer: CharacterPlayerPermissionRules;
|
|
268
289
|
getFriendStatisticsLeaderboard: CharacterPlayerPermissionRules;
|
|
269
290
|
getCurrencyLeaderboard: CharacterPlayerPermissionRules;
|
|
291
|
+
getCreateLeaderboard: CharacterPlayerPermissionRules;
|
|
292
|
+
getStatisticsLog: CharacterPlayerPermissionRules;
|
|
293
|
+
getCurrencyLog: CharacterPlayerPermissionRules;
|
|
270
294
|
};
|
|
271
295
|
content: {
|
|
272
296
|
getContentData: ContentPermissionRules;
|
|
@@ -315,6 +339,9 @@ export interface SecretPermissionItem {
|
|
|
315
339
|
setRemoveStatus: GroupPermissionRules;
|
|
316
340
|
getGroupsWithDisplayName: GroupPermissionRules;
|
|
317
341
|
getCurrencyLeaderboard: GroupPermissionRules;
|
|
342
|
+
getCreateLeaderboard: GroupPermissionRules;
|
|
343
|
+
getStatisticsLog: GroupPermissionRules;
|
|
344
|
+
getCurrencyLog: GroupPermissionRules;
|
|
318
345
|
};
|
|
319
346
|
inventory: {
|
|
320
347
|
addSegment: InventoryPermissionRules;
|
|
@@ -349,6 +376,8 @@ export interface SecretPermissionItem {
|
|
|
349
376
|
setOwner: InventoryPermissionRules;
|
|
350
377
|
setRemoveStatus: InventoryPermissionRules;
|
|
351
378
|
getItemsWithDisplayName: InventoryPermissionRules;
|
|
379
|
+
getCreateLeaderboard: InventoryPermissionRules;
|
|
380
|
+
getStatisticsLog: InventoryPermissionRules;
|
|
352
381
|
};
|
|
353
382
|
storeInventory: {
|
|
354
383
|
buyStoreItem: StoreInventoryPermissionRules;
|
|
@@ -360,6 +389,9 @@ export interface SecretPermissionItem {
|
|
|
360
389
|
validateAppleAppStoreReceipt: StoreInventoryPermissionRules;
|
|
361
390
|
validateGooglePlayStoreReceipt: StoreInventoryPermissionRules;
|
|
362
391
|
validateFacebookStoreReceipt: StoreInventoryPermissionRules;
|
|
392
|
+
getCreateLeaderboard: StoreInventoryPermissionRules;
|
|
393
|
+
presentStoreItem: StoreInventoryPermissionRules;
|
|
394
|
+
getStoreLog: StoreInventoryPermissionRules;
|
|
363
395
|
};
|
|
364
396
|
masterAdmin: {
|
|
365
397
|
setMasterGameSettings: MasterAdminPermissionRules;
|
|
@@ -379,6 +411,13 @@ export interface SecretPermissionItem {
|
|
|
379
411
|
getSecretInfoList: MasterAdminPermissionRules;
|
|
380
412
|
grantSecretInfo: MasterAdminPermissionRules;
|
|
381
413
|
setSecretInfoInformation: MasterAdminPermissionRules;
|
|
414
|
+
getUsernameAdminAccount: MasterAdminPermissionRules;
|
|
415
|
+
getAnalytics: MasterAdminPermissionRules;
|
|
416
|
+
getEventCallbackCloudScript: MasterAdminPermissionRules;
|
|
417
|
+
setEventCallbackCloudScript: MasterAdminPermissionRules;
|
|
418
|
+
resetStatisticsLeaderboard: MasterAdminPermissionRules;
|
|
419
|
+
getBackupStatisticsLeaderboardVersion: MasterAdminPermissionRules;
|
|
420
|
+
getServerGameData: MasterAdminPermissionRules;
|
|
382
421
|
};
|
|
383
422
|
multiplayer: {
|
|
384
423
|
cancelAllMatchmakingTicket: MultiplayerPermissionRules;
|
|
@@ -389,6 +428,8 @@ export interface SecretPermissionItem {
|
|
|
389
428
|
getQueueStatistics: MultiplayerPermissionRules;
|
|
390
429
|
joinMatchmakingTicket: MultiplayerPermissionRules;
|
|
391
430
|
listMatchmakingTicketsForPlayer: MultiplayerPermissionRules;
|
|
431
|
+
getAllMatchmakingTicket: MultiplayerPermissionRules;
|
|
432
|
+
getAllMatch: MultiplayerPermissionRules;
|
|
392
433
|
};
|
|
393
434
|
cloudScript: {
|
|
394
435
|
executeFunction: CloudScriptPermissionRules;
|
|
@@ -405,17 +446,23 @@ declare abstract class BuilderBase {
|
|
|
405
446
|
protected tsExpire: number;
|
|
406
447
|
protected permission: SecretPermissionItem;
|
|
407
448
|
protected gameId: string;
|
|
449
|
+
protected isDefault: boolean;
|
|
450
|
+
protected onlyMasterAdmin: boolean;
|
|
408
451
|
getSecretKey(): string;
|
|
409
452
|
getPermission(): SecretPermissionItem;
|
|
410
453
|
getRole(): number;
|
|
411
454
|
isRemove(): boolean;
|
|
412
455
|
getTsExpire(): number;
|
|
413
456
|
getGameId(): string;
|
|
457
|
+
getIsDefault(): boolean;
|
|
458
|
+
getIsOnlyMasterAdmin(): boolean;
|
|
414
459
|
setSecretKey(secretKey: string): Builder;
|
|
415
460
|
setPermission(permission: SecretPermissionItem): Builder;
|
|
416
461
|
setGameId(gameId: string): Builder;
|
|
417
462
|
setRole(role: number): Builder;
|
|
418
463
|
setIsRemove(remove: boolean): Builder;
|
|
464
|
+
setIsDefault(isDefault: boolean): Builder;
|
|
465
|
+
setIsOnlyMasterAdmin(onlyMasterAdmin: boolean): Builder;
|
|
419
466
|
setTsExpire(tsExpire: number): Builder;
|
|
420
467
|
build(): SecretInfo;
|
|
421
468
|
constructor();
|
|
@@ -430,8 +477,8 @@ declare class Builder extends BuilderBase implements IBuilder<SecretInfo> {
|
|
|
430
477
|
constructor();
|
|
431
478
|
}
|
|
432
479
|
export declare class SecretInfo extends BuilderBase {
|
|
433
|
-
isDefault: boolean;
|
|
434
480
|
constructor(builder: Builder);
|
|
481
|
+
setGameId(gameId: string): Builder;
|
|
435
482
|
toDocumentData(): any;
|
|
436
483
|
static Builder(): Builder;
|
|
437
484
|
}
|