@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.
Files changed (204) hide show
  1. package/GNconfig.debug.json +30 -27
  2. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginBaseRequestHandler.d.ts +1 -1
  3. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGameCenterRequestHandler.d.ts +24 -0
  4. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGooglePlayGameServiceRequestHandler.d.ts +19 -0
  5. package/dist/GN-app-api/handler/controller/handler/authenticate/RegisterAccountRequestHandler.d.ts +1 -6
  6. package/dist/GN-app-api/handler/controller/handler/authenticate/model/InfoRequestParam.d.ts +1 -0
  7. package/dist/GN-app-api/handler/controller/handler/base/RequestHandler.d.ts +1 -1
  8. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCreateLeaderboardRequestHandler.d.ts +23 -0
  9. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLogRequestHandler.d.ts +22 -0
  10. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +2 -1
  11. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
  12. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLogRequestHandler.d.ts +22 -0
  13. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerCurrencyRequestHandler.d.ts +1 -0
  14. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerStatisticsRequestHandler.d.ts +1 -0
  15. package/dist/GN-app-api/handler/controller/handler/characterPlayer/model/PlayerDataParam.d.ts +0 -1
  16. package/dist/GN-app-api/handler/controller/handler/cloudScript/ExecuteFunctionRequestHandler.d.ts +1 -1
  17. package/dist/GN-app-api/handler/controller/handler/content/GetContentDataRequestHandler.d.ts +1 -1
  18. package/dist/GN-app-api/handler/controller/handler/content/GetFileUploadInfoListRequestHandler.d.ts +0 -1
  19. package/dist/GN-app-api/handler/controller/handler/dashboard/GetAnalyticsRequestHandler.d.ts +22 -0
  20. package/dist/GN-app-api/handler/controller/handler/dashboard/GetBackupStatisticsLeaderboardVersionRequestHandler.d.ts +18 -0
  21. package/dist/GN-app-api/handler/controller/handler/dashboard/GetEventCallbackCloudScriptRequestHandler.d.ts +15 -0
  22. package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerGameDataRequestHandler.d.ts +34 -0
  23. package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerLogRequestHandler.d.ts +2 -0
  24. package/dist/GN-app-api/handler/controller/handler/dashboard/GetUsernameAdminAccountRequestHandler.d.ts +16 -0
  25. package/dist/GN-app-api/handler/controller/handler/dashboard/GrantSecretInfoRequestHandler.d.ts +4 -1
  26. package/dist/GN-app-api/handler/controller/handler/dashboard/ResetStatisticsLeaderboardRequestHandler.d.ts +20 -0
  27. package/dist/GN-app-api/handler/controller/handler/dashboard/SetEventCallbackCloudScriptRequestHandler.d.ts +17 -0
  28. package/dist/GN-app-api/handler/controller/handler/dashboard/SetMasterGameSettingsRequestHandler.d.ts +4 -0
  29. package/dist/GN-app-api/handler/controller/handler/dashboard/model/AuthenticatePermissionRulesParam.d.ts +2 -0
  30. package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerPermissionRulesParam.d.ts +3 -0
  31. package/dist/GN-app-api/handler/controller/handler/dashboard/model/ContentPermissionRulesParam.d.ts +2 -2
  32. package/dist/GN-app-api/handler/controller/handler/dashboard/model/CurrencySettingsParam.d.ts +2 -0
  33. package/dist/GN-app-api/handler/controller/handler/dashboard/model/EmailSettingsParam.d.ts +4 -0
  34. package/dist/GN-app-api/handler/controller/handler/dashboard/model/GamePlayerPermissionRulesParam.d.ts +3 -0
  35. package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupPermissionRulesParam.d.ts +3 -0
  36. package/dist/GN-app-api/handler/controller/handler/dashboard/model/InventoryPermissionRulesParam.d.ts +2 -0
  37. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterAdminPermissionRulesParam.d.ts +6 -0
  38. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterPlayerPermissionRulesParam.d.ts +16 -0
  39. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MatchmakingQueueSettingsParam.d.ts +4 -0
  40. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MultiplayerPermissionRulesParam.d.ts +2 -0
  41. package/dist/GN-app-api/handler/controller/handler/dashboard/model/PushNotificationSettingsParam.d.ts +5 -0
  42. package/dist/GN-app-api/handler/controller/handler/dashboard/model/StatisticsSettingsParam.d.ts +3 -0
  43. package/dist/GN-app-api/handler/controller/handler/dashboard/model/StoreInventoryPermissionRulesParam.d.ts +3 -0
  44. package/dist/GN-app-api/handler/controller/handler/dashboard/model/TagSettingsParam.d.ts +1 -0
  45. package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyAppleSettingsParam.d.ts +3 -0
  46. package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyGameCenterSettingsParam.d.ts +3 -0
  47. package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyGooglePlayGameSettingsParam.d.ts +6 -0
  48. package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyGoogleSettingsParam.d.ts +3 -3
  49. package/dist/GN-app-api/handler/controller/handler/dashboard/model/ThirtPartyParam.d.ts +4 -0
  50. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCreateLeaderboardRequestHandler.d.ts +22 -0
  51. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLogRequestHandler.d.ts +22 -0
  52. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +2 -1
  53. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
  54. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLogRequestHandler.d.ts +22 -0
  55. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerCurrencyRequestHandler.d.ts +1 -0
  56. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerStatisticsRequestHandler.d.ts +1 -0
  57. package/dist/GN-app-api/handler/controller/handler/gamePlayer/model/PlayerDataParam.d.ts +0 -1
  58. package/dist/GN-app-api/handler/controller/handler/group/GetCreateLeaderboardRequestHandler.d.ts +22 -0
  59. package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLogRequestHandler.d.ts +22 -0
  60. package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
  61. package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLogRequestHandler.d.ts +22 -0
  62. package/dist/GN-app-api/handler/controller/handler/group/GroupBaseRequestHandler.d.ts +1 -1
  63. package/dist/GN-app-api/handler/controller/handler/group/SetGroupCurrencyRequestHandler.d.ts +1 -0
  64. package/dist/GN-app-api/handler/controller/handler/group/SetGroupStatisticsRequestHandler.d.ts +1 -0
  65. package/dist/GN-app-api/handler/controller/handler/group/model/GroupDataParam.d.ts +0 -1
  66. package/dist/GN-app-api/handler/controller/handler/inventory/GetCreateLeaderboardRequestHandler.d.ts +22 -0
  67. package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
  68. package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLogRequestHandler.d.ts +22 -0
  69. package/dist/GN-app-api/handler/controller/handler/inventory/SetItemStatisticsRequestHandler.d.ts +1 -0
  70. package/dist/GN-app-api/handler/controller/handler/inventory/model/ItemDataParam.d.ts +0 -1
  71. package/dist/GN-app-api/handler/controller/handler/masterPlayer/AddPushNotificationRequestHandler.d.ts +20 -0
  72. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCreateLeaderboardRequestHandler.d.ts +22 -0
  73. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLogRequestHandler.d.ts +22 -0
  74. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +22 -0
  75. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGameCenterRequestHandler.d.ts +20 -0
  76. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGooglePlayGameServiceRequestHandler.d.ts +20 -0
  77. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPushNotificationRequestHandler.d.ts +18 -0
  78. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
  79. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLogRequestHandler.d.ts +22 -0
  80. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGameCenterRequestHandler.d.ts +25 -0
  81. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGooglePlayGameServiceRequestHandler.d.ts +20 -0
  82. package/dist/GN-app-api/handler/controller/handler/masterPlayer/MasterPlayerBaseRequestHandler.d.ts +1 -0
  83. package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemovePushNotificationRequestHandler.d.ts +19 -0
  84. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendEmailRequestHandler.d.ts +20 -0
  85. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendPushNotificationRequestHandler.d.ts +25 -0
  86. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendSocketOperationEventRequestHandler.d.ts +22 -0
  87. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerCurrencyRequestHandler.d.ts +1 -0
  88. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerStatisticsRequestHandler.d.ts +1 -0
  89. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGameCenterRequestHandler.d.ts +19 -0
  90. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGooglePlayGameServiceRequestHandler.d.ts +19 -0
  91. package/dist/GN-app-api/handler/controller/handler/masterPlayer/model/InfoRequestParam.d.ts +1 -0
  92. package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchRequestHandler.d.ts +20 -0
  93. package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchmakingTicketRequestHandler.d.ts +21 -0
  94. package/dist/GN-app-api/handler/controller/handler/multiplayer/MatchmakingHandler.d.ts +2 -2
  95. package/dist/GN-app-api/handler/controller/handler/storeInventory/BuyStoreItemRequestHandler.d.ts +1 -0
  96. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetCreateLeaderboardRequestHandler.d.ts +22 -0
  97. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreLogRequestHandler.d.ts +22 -0
  98. package/dist/GN-app-api/handler/controller/handler/storeInventory/GrantStoreItemRequestHandler.d.ts +1 -0
  99. package/dist/GN-app-api/handler/controller/handler/storeInventory/PresentStoreItemRequestHandler.d.ts +21 -0
  100. package/dist/GN-app-api/handler/controller/handler/storeInventory/SetStoreItemInformationRequestHandler.d.ts +8 -8
  101. package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateAppleAppStoreReceiptRequestHandler.d.ts +1 -0
  102. package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateFacebookStoreReceiptRequestHandler.d.ts +1 -0
  103. package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateGooglePlayStoreReceiptRequestHandler.d.ts +1 -0
  104. package/dist/GN-app-api/handler/controller/handler/storeInventory/model/InAppPurchaseParam.d.ts +4 -3
  105. package/dist/GN-app-api/service/AnalyticsService.d.ts +4 -2
  106. package/dist/GN-app-api/service/AppleService.d.ts +16 -4
  107. package/dist/GN-app-api/service/CloudScriptService.d.ts +14 -2
  108. package/dist/GN-app-api/service/CountryIPDetailService.d.ts +11 -0
  109. package/dist/GN-app-api/service/EventCallbackService.d.ts +103 -0
  110. package/dist/GN-app-api/service/GameCenterService.d.ts +19 -0
  111. package/dist/GN-app-api/service/GenericService.d.ts +3 -2
  112. package/dist/GN-app-api/service/GooglePlayGameService.d.ts +21 -0
  113. package/dist/GN-app-api/service/IAnalyticsService.d.ts +13 -2
  114. package/dist/GN-app-api/service/ICloudScriptService.d.ts +3 -1
  115. package/dist/GN-app-api/service/ICountryIPDetailService.d.ts +20 -0
  116. package/dist/GN-app-api/service/IGameCenterService.d.ts +13 -0
  117. package/dist/GN-app-api/service/IGenericService.d.ts +6 -3
  118. package/dist/GN-app-api/service/IGooglePlayGameService.d.ts +5 -0
  119. package/dist/GN-common/constant/Commands.d.ts +1 -0
  120. package/dist/GN-common/constant/OperationCode.d.ts +29 -0
  121. package/dist/GN-common/constant/enumType/OwnerType.d.ts +2 -1
  122. package/dist/GN-common/constant/enumType/PushPlatformType.d.ts +4 -0
  123. package/dist/GN-common/constant/enumType/StoreReceiveType.d.ts +7 -0
  124. package/dist/GN-common/constant/errorCode/GNErrorCode.d.ts +2 -0
  125. package/dist/GN-common/constant/parameterCode/GNParameterCode.d.ts +120 -1
  126. package/dist/GN-common/entity/SecretInfo.d.ts +48 -1
  127. package/dist/GN-common/helper/StringUtility.d.ts +1 -1
  128. package/dist/GN-library/xcachedata/lib/xCacheData.d.ts +1 -0
  129. package/dist/GN-library/xconfig/lib/xConfig.d.ts +2 -1
  130. package/dist/GN-library/xdatabase/lib/entity/pro/ExternalItem.d.ts +10 -0
  131. package/dist/GN-library/xdatabase/lib/entity/pro/IPDetailItem.d.ts +5 -0
  132. package/dist/GN-library/xdatabase/lib/entity/pro/MasterPlayer.d.ts +13 -0
  133. package/dist/GN-library/xdatabase/lib/entity/pro/MongoObject.d.ts +2 -0
  134. package/dist/GN-library/xdatabase/lib/entity/pro/PushNotificationItem.d.ts +5 -0
  135. package/dist/GN-library/xdatabase/lib/entity/pro/StoreInventory.d.ts +1 -0
  136. package/dist/GN-library/xdatabase/lib/entity/pro/findOptions/MasterPlayerFindOptions.d.ts +2 -0
  137. package/dist/GN-library/xdatabase/lib/entity/pro/masterAdmin/MasterGameSettings.d.ts +10 -0
  138. package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +113 -10
  139. package/dist/GN-library/xdebug/lib/xDebug.d.ts +1 -0
  140. package/dist/GN-library/xmail/lib/xMail.d.ts +3 -1
  141. package/dist/GN-library/xnotification/lib/xPushNotification.d.ts +27 -0
  142. package/dist/GN-library/xsettings/lib/entity/xCurrencySettings.d.ts +2 -0
  143. package/dist/GN-library/xsettings/lib/entity/xEmailSettings.d.ts +4 -0
  144. package/dist/GN-library/xsettings/lib/entity/xPushNotificationSettings.d.ts +5 -0
  145. package/dist/GN-library/xsettings/lib/entity/xStatisticsSettings.d.ts +3 -0
  146. package/dist/GN-library/xsettings/lib/entity/xTagSettings.d.ts +1 -0
  147. package/dist/GN-library/xsettings/lib/entity/xThirtPartySettings.d.ts +12 -0
  148. package/dist/GN-startup/DefaultApplicationStartup.d.ts +1 -2
  149. package/dist/GN-startup/HttpApp.d.ts +0 -3
  150. package/dist/GN-startup/ServerApplication.d.ts +0 -4
  151. package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +1818 -0
  152. package/dist/GN-startup/cloudScript/templateCloudScript.ts +567 -0
  153. package/dist/GN-startup/cloudScript/templateEventCallback.ts +798 -0
  154. package/dist/GN-startup/middleware/AntiDdosMiddleware.d.ts +4 -1
  155. package/dist/GN-startup/middleware/ApiMiddleware.d.ts +1 -0
  156. package/dist/GN-startup/routes/AdminAppHandler.d.ts +0 -31
  157. package/dist/GN-startup/settings/DDosSettings.d.ts +3 -0
  158. package/dist/GN-startup/settings/OtherSettings.d.ts +6 -0
  159. package/dist/GNServer.d.ts +30 -4
  160. package/dist/index.d.ts +144 -6
  161. package/dist/index.js +21329 -6740
  162. package/gn.sh +7 -10
  163. package/package.json +24 -27
  164. package/syncCode.js +341 -341
  165. package/syncCodeVer2.js +176 -0
  166. package/dist/GN-startup/cloudScript/template.ts +0 -118
  167. package/dist/GN-startup/routes/www/public/admin/debug-common.js +0 -1233
  168. package/dist/GN-startup/routes/www/public/admin/index-common.js +0 -217
  169. package/dist/GN-startup/routes/www/public/admin/log-common.js +0 -52
  170. package/dist/GN-startup/routes/www/public/admin/signin-common.js +0 -35
  171. package/dist/GN-startup/routes/www/public/assets/demo/chart-area-demo.js +0 -54
  172. package/dist/GN-startup/routes/www/public/assets/demo/chart-bar-demo.js +0 -46
  173. package/dist/GN-startup/routes/www/public/assets/demo/chart-pie-demo.js +0 -16
  174. package/dist/GN-startup/routes/www/public/assets/demo/datatables-demo.js +0 -4
  175. package/dist/GN-startup/routes/www/public/assets/img/error-404-monochrome.svg +0 -1
  176. package/dist/GN-startup/routes/www/public/css/styles.css +0 -11701
  177. package/dist/GN-startup/routes/www/public/favicon.ico +0 -0
  178. package/dist/GN-startup/routes/www/public/favicon.png +0 -0
  179. package/dist/GN-startup/routes/www/public/js/scripts.js +0 -26
  180. package/dist/GN-startup/routes/www/views/101.ejs +0 -21
  181. package/dist/GN-startup/routes/www/views/401.ejs +0 -25
  182. package/dist/GN-startup/routes/www/views/403.ejs +0 -21
  183. package/dist/GN-startup/routes/www/views/404.ejs +0 -25
  184. package/dist/GN-startup/routes/www/views/500.ejs +0 -25
  185. package/dist/GN-startup/routes/www/views/admin/change-password.ejs +0 -46
  186. package/dist/GN-startup/routes/www/views/admin/debug.ejs +0 -14
  187. package/dist/GN-startup/routes/www/views/admin/index.ejs +0 -28
  188. package/dist/GN-startup/routes/www/views/admin/log.ejs +0 -16
  189. package/dist/GN-startup/routes/www/views/admin/signin.ejs +0 -56
  190. package/dist/GN-startup/routes/www/views/layout.ejs +0 -8
  191. package/dist/GN-startup/routes/www/views/partials/areachart.ejs +0 -9
  192. package/dist/GN-startup/routes/www/views/partials/areachartccu.ejs +0 -9
  193. package/dist/GN-startup/routes/www/views/partials/barchart.ejs +0 -9
  194. package/dist/GN-startup/routes/www/views/partials/barcharttotal.ejs +0 -9
  195. package/dist/GN-startup/routes/www/views/partials/common/footer.ejs +0 -14
  196. package/dist/GN-startup/routes/www/views/partials/common/head.ejs +0 -11
  197. package/dist/GN-startup/routes/www/views/partials/dau.ejs +0 -41
  198. package/dist/GN-startup/routes/www/views/partials/debugboard.ejs +0 -90
  199. package/dist/GN-startup/routes/www/views/partials/description.ejs +0 -20
  200. package/dist/GN-startup/routes/www/views/partials/logtable.ejs +0 -50
  201. package/dist/GN-startup/routes/www/views/partials/piechart.ejs +0 -7
  202. package/dist/GN-startup/routes/www/views/partials/sidenav.ejs +0 -83
  203. package/dist/GN-startup/routes/www/views/partials/topnav.ejs +0 -53
  204. package/dist/GN-startup/settings/MailSettings.d.ts +0 -22
@@ -1,5 +1,6 @@
1
1
  export declare class xCacheData {
2
2
  private dataDic;
3
+ hasData(key: string): boolean;
3
4
  getData<T>(key: string): T;
4
5
  setData<T>(key: string, tData: T, expireAfterMs: number): void;
5
6
  removeData(key: string): boolean;
@@ -3,8 +3,9 @@ import * as mongoDB from "mongodb";
3
3
  import { OnRunSuccess } from "./../../xbuilder/lib/OnRunSuccess";
4
4
  export declare class xConfig {
5
5
  private configDic;
6
+ private gameId;
6
7
  private configCollection;
7
- setConfigCollection(configCollection: mongoDB.Collection<mongoDB.Document>): void;
8
+ setConfigCollection(gameId: string, configCollection: mongoDB.Collection<mongoDB.Document>): void;
8
9
  run(onRunSuccess?: OnRunSuccess): void;
9
10
  syncAllConfigAsync(): Promise<void>;
10
11
  syncConfigFromDatabaseAsync(configName: string, label: string): Promise<xConfigItem>;
@@ -35,4 +35,14 @@ export interface ExternalItem {
35
35
  serviceId: string;
36
36
  }>;
37
37
  };
38
+ googlePlayGameService?: {
39
+ playerId: string;
40
+ email: string;
41
+ displayName: string;
42
+ };
43
+ gameCenter?: {
44
+ playerId: string;
45
+ email: string;
46
+ displayName: string;
47
+ };
38
48
  }
@@ -0,0 +1,5 @@
1
+ export interface IPDetailItem {
2
+ ipAddress: string;
3
+ countryCode: string;
4
+ regionCode: string;
5
+ }
@@ -1,13 +1,19 @@
1
1
  import * as mongoDB from "mongodb";
2
2
  import { ExternalItem } from "./ExternalItem";
3
3
  import { PlayerBase } from "./PlayerBase";
4
+ import { IPDetailItem } from "./IPDetailItem";
5
+ import { PushNotificationItem } from "./PushNotificationItem";
4
6
  export declare class MasterPlayer extends PlayerBase {
5
7
  private static readonly _external;
6
8
  private static readonly _userId;
7
9
  private static readonly _email;
10
+ private static readonly _lastIPDetail;
11
+ private static readonly _pushNotifications;
8
12
  private readonly userId;
9
13
  private external;
10
14
  private email;
15
+ private lastIPDetail;
16
+ private pushNotifications;
11
17
  constructor(result: mongoDB.WithId<mongoDB.Document>, collection: mongoDB.Collection<mongoDB.Document>);
12
18
  private setDocumentMasterPlayer;
13
19
  getUserId(): string;
@@ -16,4 +22,11 @@ export declare class MasterPlayer extends PlayerBase {
16
22
  setExternal(externalItem: ExternalItem): void;
17
23
  getEmail(): string;
18
24
  setEmail(email: string): void;
25
+ getLastIPDetail(): IPDetailItem;
26
+ setLastIPDetail(ipDetail: IPDetailItem): void;
27
+ getAllPushNotifications(): Array<PushNotificationItem>;
28
+ hasPushNotification(pushId: string): boolean;
29
+ getPushNotification(pushId: string): PushNotificationItem;
30
+ setPushNotification(pushId: string, value: PushNotificationItem): void;
31
+ removePushNotification(pushId: string): void;
19
32
  }
@@ -12,7 +12,9 @@ export declare class MongoObject {
12
12
  protected mul(field: string, value: number): void;
13
13
  protected rename(field: string, newField: string): void;
14
14
  protected set(field: string, value: any): void;
15
+ protected removeSet(field: string): void;
15
16
  protected setOnInsert(field: string, value: any): void;
16
17
  protected unset(field: string): void;
18
+ getObjectId(): mongoDB.ObjectId;
17
19
  saveAsync(): Promise<mongoDB.UpdateResult>;
18
20
  }
@@ -0,0 +1,5 @@
1
+ export interface PushNotificationItem {
2
+ pushId: string;
3
+ token: string;
4
+ platformType: number;
5
+ }
@@ -16,6 +16,7 @@ interface InAppPurchase {
16
16
  appleAppStoreId: string;
17
17
  googlePlayStoreId: string;
18
18
  facebookStoreId: string;
19
+ analyticsPrice: number;
19
20
  }
20
21
  export declare class StoreInventory extends DataObjectBase {
21
22
  private static readonly _storeId;
@@ -1,5 +1,6 @@
1
1
  export interface MasterPlayerFindOptions {
2
2
  userId?: boolean;
3
+ lastIPDetail?: boolean;
3
4
  external?: boolean;
4
5
  segments?: boolean;
5
6
  customDatas?: boolean;
@@ -15,4 +16,5 @@ export interface MasterPlayerFindOptions {
15
16
  countryCode?: boolean;
16
17
  tsLastLogin?: boolean;
17
18
  email?: boolean;
19
+ pushNotifications?: boolean;
18
20
  }
@@ -2,15 +2,25 @@ import * as mongoDB from "mongodb";
2
2
  import { MasterAdminMongoObject } from "./MasterAdminMongoObject";
3
3
  import { xThirtPartySettings } from "./../../../../../xsettings/lib/entity/xThirtPartySettings";
4
4
  import { xMasterPlayerSettings } from "./../../../../../xsettings/lib/entity/xMasterPlayerSettings";
5
+ import { xEmailSettings } from "./../../../../../xsettings/lib/entity/xEmailSettings";
6
+ import { xPushNotificationSettings } from "./../../../../../xsettings/lib/entity/xPushNotificationSettings";
5
7
  export declare class MasterGameSettings extends MasterAdminMongoObject {
6
8
  private static readonly _thirtPartySettings;
7
9
  private static readonly _masterPlayerSettings;
10
+ private static readonly _emailSettings;
11
+ private static readonly _pushNotificationSettings;
8
12
  private thirtPartySettings;
9
13
  private masterPlayerSettings;
14
+ private emailSettings;
15
+ private pushNotificationSettings;
10
16
  constructor(result: mongoDB.WithId<mongoDB.Document>, collection: mongoDB.Collection<mongoDB.Document>);
11
17
  private setDocumentMasterGameSettings;
12
18
  getThirtPartySettings(): xThirtPartySettings;
13
19
  setThirtPartySettings(thirtPartySettings: xThirtPartySettings): void;
14
20
  getMasterPlayerSettings(): xMasterPlayerSettings;
15
21
  setMasterPlayerSettings(masterPlayerSettings: xMasterPlayerSettings): void;
22
+ getEmailSettings(): xEmailSettings;
23
+ setEmailSettings(emailSettings: xEmailSettings): void;
24
+ getPushNotificationSettings(): xPushNotificationSettings;
25
+ setPushNotificationSettings(pushNotificationSettings: xPushNotificationSettings): void;
16
26
  }
@@ -41,6 +41,8 @@ export declare class xDatabase {
41
41
  }): void;
42
42
  private convertToMasterPlayers;
43
43
  loadMasterPlayersWithGoogleAsync(googleIds: string[], masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
44
+ loadMasterPlayersWithGooglePlayGameServiceAsync(playerIds: string[], masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
45
+ loadMasterPlayersWithGameCenterAsync(playerIds: string[], masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
44
46
  loadMasterPlayersWithFacebookAsync(facebookIds: string[], masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
45
47
  loadMasterPlayersWithAppleAsync(appleIds: string[], masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
46
48
  loadMasterPlayersWithGenericServiceAsync(genericService: string, genericIds: string[], masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
@@ -48,9 +50,12 @@ export declare class xDatabase {
48
50
  loadMasterPlayersWithTagAsync(key: string, value: string, skip: number, limit: number, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
49
51
  loadMasterPlayersWithDisplayNameAsync(keyword: string, skip: number, limit: number, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
50
52
  loadMasterPlayerWithDisplayNameAsync(displayName: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
51
- loadMasterPlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
53
+ loadMasterPlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, direction: -1 | 1, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
54
+ loadMasterPlayersLeaderboardWithStatisticsAllAsync(key: string, direction: -1 | 1, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
52
55
  loadMasterPlayersLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
53
- loadPositionMasterPlayerLeaderboardWithStatisticsAsync(key: string, userId: string): Promise<number>;
56
+ loadMasterPlayersLeaderboardWithLastLoginAsync(skip: number, limit: number, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
57
+ loadMasterPlayersLeaderboardWithCreateAsync(skip: number, limit: number, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<Array<MasterPlayer>>;
58
+ loadPositionMasterPlayerLeaderboardWithStatisticsAsync(key: string, userId: string, initialValue: number, direction: -1 | 1): Promise<number>;
54
59
  loadPositionMasterPlayerLeaderboardWithCurrencies(key: string, userId: string): Promise<number>;
55
60
  loadMasterPlayerAsync(userId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
56
61
  loadMasterPlayerByCustomDeviceIdAsync(customDeviceId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
@@ -65,6 +70,8 @@ export declare class xDatabase {
65
70
  loadMasterPlayerByCustomIdAsync(customId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
66
71
  loadMasterPlayerByAppleAsync(appleId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
67
72
  loadMasterPlayerByGoogleAsync(googleId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
73
+ loadMasterPlayerByGooglePlayGameServiceAsync(playerId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
74
+ loadMasterPlayerByGameCenterAsync(playerId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
68
75
  loadMasterPlayerByFacebookAsync(facebookId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
69
76
  loadMasterPlayerByGenericServiceAsync(serviceName: string, serviceId: string, masterPlayerFindOptions?: MasterPlayerFindOptions): Promise<MasterPlayer>;
70
77
  createMasterPlayerAsync(result: any): Promise<MasterPlayer>;
@@ -73,31 +80,100 @@ export declare class xDatabase {
73
80
  loadGamePlayersWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
74
81
  loadGamePlayersWithDisplayNameAsync(keyword: string, skip: number, limit: number, gameId: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
75
82
  loadGamePlayerWithDisplayNameAsync(displayName: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<GamePlayer>;
76
- loadGamePlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
83
+ loadGamePlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, direction: -1 | 1, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
84
+ loadGamePlayersLeaderboardWithStatisticsAllAsync(key: string, gameId: string, direction: -1 | 1, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
85
+ loadGamePlayersLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
77
86
  loadFriendGamePlayersLeaderboardWithStatisticsAsync(friendIds: string[], gameId: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
78
87
  loadGamePlayersLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, gameId: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<Array<GamePlayer>>;
79
- loadPositionGamePlayerLeaderboardWithStatisticsAsync(key: string, userId: string, gameId: string): Promise<number>;
88
+ loadPositionGamePlayerLeaderboardWithStatisticsAsync(key: string, userId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
80
89
  loadPositionGamePlayerLeaderboardWithCurrenciesAsync(key: string, userId: string, gameId: string): Promise<number>;
81
90
  loadGamePlayerAsync(userId: string, gameId: string, gamePlayerFindOptions?: GamePlayerFindOptions): Promise<GamePlayer>;
82
91
  createGamePlayerAsync(result: any, gameId: string): Promise<GamePlayer>;
92
+ insertMasterPlayerStatisticsLogAsync(userId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
93
+ insertMasterPlayerCurrencyLogAsync(userId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
94
+ insertMasterPlayerStatisticsLogsAsync(requests: {
95
+ userId: string;
96
+ key: string;
97
+ amount: number;
98
+ startValue: number;
99
+ finalValue: number;
100
+ tsCreate: number;
101
+ log: string;
102
+ }[]): Promise<void>;
103
+ loadMasterPlayerStatisticsLogAsync($filter: {}, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
104
+ loadMasterPlayerCurrencyLogAsync($filter: {}, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
105
+ insertGamePlayerStatisticsLogAsync(userId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
106
+ insertGamePlayerStatisticsLogsAsync(requests: {
107
+ userId: string;
108
+ key: string;
109
+ amount: number;
110
+ startValue: number;
111
+ finalValue: number;
112
+ tsCreate: number;
113
+ log: string;
114
+ }[], gameId: string): Promise<void>;
115
+ insertGamePlayerCurrencyLogAsync(userId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
116
+ loadGamePlayerStatisticsLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
117
+ loadGamePlayerCurrencyLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
83
118
  private convertToCharacterPlayers;
84
119
  loadCharacterPlayersWithSegmentAsync(segment: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
85
120
  loadCharacterPlayersWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
86
121
  loadCharacterPlayersWithDisplayNameAsync(keyword: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
87
- loadCharacterPlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
122
+ loadCharacterPlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
123
+ loadCharacterPlayersLeaderboardWithStatisticsAllAsync(key: string, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
124
+ loadCharacterPlayersLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
88
125
  loadCharacterPlayersLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
89
- loadPositionCharacterPlayerLeaderboardWithStatisticsAsync(key: string, userId: string, gameId: string): Promise<number>;
126
+ loadPositionCharacterPlayerLeaderboardWithStatisticsAsync(key: string, userId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
90
127
  loadPositionCharacterPlayerLeaderboardWithCurrenciesAsync(key: string, userId: string, gameId: string): Promise<number>;
91
128
  loadFriendCharacterPlayersLeaderboardWithStatisticsAsync(friendIds: string[], gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
92
129
  loadCharacterPlayerAsync(characterId: string, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<CharacterPlayer>;
93
130
  createCharacterPlayerAsync(result: any, gameId: string): Promise<CharacterPlayer>;
131
+ insertCharacterPlayerStatisticsLogAsync(characterId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
132
+ insertCharacterPlayerStatisticsLogsAsync(requests: {
133
+ characterId: string;
134
+ key: string;
135
+ amount: number;
136
+ startValue: number;
137
+ finalValue: number;
138
+ tsCreate: number;
139
+ log: string;
140
+ }[], gameId: string): Promise<void>;
141
+ insertCharacterPlayerCurrencyLogAsync(characterId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
142
+ insertStoreInventoryLogAsync(storeId: string, gameId: string, id: string, type: number, priceCurrencyStartValues: {
143
+ key: string;
144
+ value: number;
145
+ }[], priceCurrencyAmountValues: {
146
+ key: string;
147
+ value: number;
148
+ }[], priceCurrencyFinalValues: {
149
+ key: string;
150
+ value: number;
151
+ }[], storeCurrencyStartValues: {
152
+ key: string;
153
+ value: number;
154
+ }[], storeCurrencyAmountValues: {
155
+ key: string;
156
+ value: number;
157
+ }[], storeCurrencyFinalValues: {
158
+ key: string;
159
+ value: number;
160
+ }[], storeItemFinalValues: {
161
+ catalogId: string;
162
+ classId: string;
163
+ itemId: string;
164
+ }[], transactionId: string, storeReceiveType: number, log: string): Promise<void>;
165
+ getStoreInventoryLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
166
+ loadCharacterPlayerStatisticsLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
167
+ loadCharacterPlayerCurrencyLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
94
168
  private convertToGroups;
95
169
  loadGroupsWithSegmentAsync(segment: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
96
170
  loadGroupsWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
97
171
  loadGroupsWithDisplayNameAsync(keyword: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
98
- loadGroupsLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
172
+ loadGroupsLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, direction: -1 | 1, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
173
+ loadGroupsLeaderboardWithStatisticsAllAsync(key: string, gameId: string, direction: -1 | 1, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
174
+ loadGroupsLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
99
175
  loadGroupsLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
100
- loadPositionGroupLeaderboardWithStatisticsAsync(key: string, groupId: string, gameId: string): Promise<number>;
176
+ loadPositionGroupLeaderboardWithStatisticsAsync(key: string, groupId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
101
177
  loadPositionGroupLeaderboardWithCurrenciesAsync(key: string, groupId: string, gameId: string): Promise<number>;
102
178
  loadGroupAsync(groupId: string, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Group>;
103
179
  createGroupAsync(result: any, gameId: string): Promise<Group>;
@@ -105,19 +181,46 @@ export declare class xDatabase {
105
181
  loadInventoriesWithSegmentAsync(segment: string, skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
106
182
  loadInventoriesWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
107
183
  loadInventoriesWithDisplayNameAsync(keyword: string, skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
108
- loadInventoriesLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
109
- loadPositionInventoryLeaderboardWithStatisticsAsync(key: string, itemId: string, gameId: string): Promise<number>;
184
+ loadInventoriesLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, direction: -1 | 1, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
185
+ loadInventoriesLeaderboardWithStatisticsAllAsync(key: string, gameId: string, direction: -1 | 1, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
186
+ loadInventoriesLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
187
+ loadPositionInventoryLeaderboardWithStatisticsAsync(key: string, itemId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
110
188
  loadInventoryAsync(itemId: string, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Inventory>;
111
189
  createInventoryAsync(result: any, gameId: string): Promise<Inventory>;
190
+ insertInventoryStatisticsLogAsync(itemId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
191
+ insertInventoryStatisticsLogsAsync(requests: {
192
+ itemId: string;
193
+ key: string;
194
+ amount: number;
195
+ startValue: number;
196
+ finalValue: number;
197
+ tsCreate: number;
198
+ log: string;
199
+ }[], gameId: string): Promise<void>;
200
+ loadInventoryStatisticsLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
112
201
  private convertToStoreInventories;
113
202
  loadStoreInventoryAsync(storeId: string, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<StoreInventory>;
114
203
  loadStoreInventoryByFacebookStoreAsync(productId: string, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<StoreInventory>;
115
204
  loadStoreInventoryByAppleAppStoreAsync(productId: string, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<StoreInventory>;
116
205
  loadStoreInventoryByGooglePlayStoreAsync(productId: string, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<StoreInventory>;
117
206
  loadStoreInventoriesWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<Array<StoreInventory>>;
207
+ loadStoreInventoriesLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<Array<StoreInventory>>;
118
208
  createStoreInventoryAsync(result: any, gameId: string): Promise<StoreInventory>;
119
209
  loadGroupMessagesAsync(groupId: string, gameId: string, skip: number, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.Document>>>;
120
210
  createGroupMessageAsync(groupId: string, gameId: string, senderId: string, senderType: number, message: string, tsCreate: number): Promise<mongoDB.Document>;
211
+ insertGroupStatisticsLogAsync(groupId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
212
+ insertGroupStatisticsLogsAsync(requests: {
213
+ groupId: string;
214
+ key: string;
215
+ amount: number;
216
+ startValue: number;
217
+ finalValue: number;
218
+ tsCreate: number;
219
+ log: string;
220
+ }[], gameId: string): Promise<void>;
221
+ insertGroupCurrencyLogAsync(groupId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
222
+ loadGroupStatisticsLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
223
+ loadGroupCurrencyLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
121
224
  loadUploadFileInfoAsync(fileId: string): Promise<UploadFileInfo>;
122
225
  createUploadFileInfoAsync(result: any): Promise<UploadFileInfo>;
123
226
  private getFindOptions;
@@ -9,6 +9,7 @@ export declare class Debug {
9
9
  private static logPath;
10
10
  private static logger;
11
11
  static init(config: DebugConfiguration): void;
12
+ static getLogPath(): string;
12
13
  static run(): void;
13
14
  static log(message: any, ...args: any[]): void;
14
15
  static logInfo(message: any, ...args: any[]): void;
@@ -9,8 +9,10 @@ export declare class xMail {
9
9
  private isInit;
10
10
  private sendGridApiKey;
11
11
  private fromEmail;
12
+ private needSetup;
12
13
  init(sendGridApiKey: string, fromEmail: string): void;
13
14
  run(onRunSuccess?: OnRunSuccess): void;
14
- sendMail(toEmail: string, subject: string, contentHTML: string, onSendMailSuccess?: OnSendMailSuccess, onSendMailError?: OnSendMailError): Promise<void>;
15
+ sendMail(toEmail: string, subject: string, contentHtml: string, onSendMailSuccess?: OnSendMailSuccess, onSendMailError?: OnSendMailError): Promise<void>;
16
+ sendMailToMore(toEmails: string[], subject: string, contentHtml: string, onSendMailSuccess?: OnSendMailSuccess, onSendMailError?: OnSendMailError): Promise<void>;
15
17
  }
16
18
  export {};
@@ -0,0 +1,27 @@
1
+ import { OnRunSuccess } from "./../../xbuilder/lib/OnRunSuccess";
2
+ interface OnSendNotificationSuccess {
3
+ (): void;
4
+ }
5
+ interface OnSendNotificationError {
6
+ (error: string): void;
7
+ }
8
+ export declare class xPushNotification {
9
+ private isInit;
10
+ private projectId;
11
+ private clientEmail;
12
+ private privateKey;
13
+ private messaging;
14
+ private needSetup;
15
+ init(projectId: string, clientEmail: string, privateKey: string): void;
16
+ run(onRunSuccess?: OnRunSuccess): Promise<void>;
17
+ sendNotification(token: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
18
+ [k: string]: any;
19
+ }, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<any>;
20
+ sendNotificationToMore(tokens: string[], title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
21
+ [k: string]: any;
22
+ }, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<any>;
23
+ sendNotificationToTopic(topic: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
24
+ [k: string]: any;
25
+ }, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<any>;
26
+ }
27
+ export {};
@@ -1,4 +1,6 @@
1
1
  export interface xCurrencySettings {
2
2
  key: string;
3
3
  initialValue: number;
4
+ displayName: string;
5
+ index: boolean;
4
6
  }
@@ -0,0 +1,4 @@
1
+ export interface xEmailSettings {
2
+ sendFrom: string;
3
+ sendGridApiKey: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface xPushNotificationSettings {
2
+ projectId: string;
3
+ clientEmail: string;
4
+ privateKey: string;
5
+ }
@@ -3,4 +3,7 @@ export interface xStatisticsSettings {
3
3
  statisticsAggregationMethod: number;
4
4
  maximumValue?: number;
5
5
  minimumValue?: number;
6
+ displayName: string;
7
+ initialValue: number;
8
+ index: boolean;
6
9
  }
@@ -1,4 +1,5 @@
1
1
  export interface xTagSettings {
2
2
  key: string;
3
3
  displayName: string;
4
+ index: boolean;
4
5
  }
@@ -7,6 +7,9 @@ export interface xThirtPartySettings {
7
7
  appleSettings?: {
8
8
  appleClientId: string;
9
9
  sandboxEnable: boolean;
10
+ issuerId: string;
11
+ keyId: string;
12
+ p8Content: string;
10
13
  };
11
14
  facebookSettings?: {
12
15
  facebookAppId: string;
@@ -14,4 +17,13 @@ export interface xThirtPartySettings {
14
17
  facebookInappSecret: string;
15
18
  facebookAppToken: string;
16
19
  };
20
+ googlePlayGameSettings?: {
21
+ applicationId: string;
22
+ clientId: string;
23
+ clientSecret: string;
24
+ redirectUri: string;
25
+ };
26
+ gameCenterSettings?: {
27
+ packageId: string;
28
+ };
17
29
  }
@@ -5,7 +5,6 @@ import { ServerApplication } from "./ServerApplication";
5
5
  import { GNServer } from "./../GNServer";
6
6
  import { OtherSettings } from "./settings/OtherSettings";
7
7
  import { DatabaseSettings } from "./settings/DatabaseSettings";
8
- import { MailSettings } from "./settings/MailSettings";
9
8
  import { OnRunSuccess } from "./../GN-library/xbuilder/lib/OnRunSuccess";
10
9
  import { LogSettings } from "./settings/LogSettings";
11
10
  import { UploadFileSettings } from "./settings/UploadFileSettings";
@@ -13,6 +12,6 @@ import { DdosSettings } from "./settings/DDosSettings";
13
12
  export declare class DefaultApplicationStartup {
14
13
  protected serverApplication: ServerApplication;
15
14
  run(onRunSuccess?: OnRunSuccess): void;
16
- protected newServerApplication(applicationSettings: ApplicationSettings, httpAppSettings: HttpAppSettings, socketAppSettings: SocketAppSettings, otherSettings: OtherSettings, databaseSettings: DatabaseSettings, mailSettings: MailSettings, logSettings: LogSettings, uploadFileSettings: UploadFileSettings, ddosSettings: DdosSettings): ServerApplication;
15
+ protected newServerApplication(applicationSettings: ApplicationSettings, httpAppSettings: HttpAppSettings, socketAppSettings: SocketAppSettings, otherSettings: OtherSettings, databaseSettings: DatabaseSettings, logSettings: LogSettings, uploadFileSettings: UploadFileSettings, ddosSettings: DdosSettings): ServerApplication;
17
16
  getGNServer(): GNServer;
18
17
  }
@@ -10,7 +10,6 @@ import { AntiDdosMiddleware } from "./middleware/AntiDdosMiddleware";
10
10
  import { SocketAppSettings } from "./settings/SocketAppSettings";
11
11
  import { ApplicationSettings } from "./settings/ApplicationSettings";
12
12
  import { LogSettings } from "./settings/LogSettings";
13
- import { AdminAppHandler } from "./routes/AdminAppHandler";
14
13
  export declare class HttpApp {
15
14
  private applicationSettings;
16
15
  private uploadFileSettings;
@@ -19,7 +18,6 @@ export declare class HttpApp {
19
18
  private app;
20
19
  private httpAppHandler;
21
20
  private uploadFileHandler;
22
- private adminAppHandler;
23
21
  private antiDdosMiddleware;
24
22
  private logSettings;
25
23
  private apiMiddleware;
@@ -29,7 +27,6 @@ export declare class HttpApp {
29
27
  setApp(app: Express): void;
30
28
  getApp(): Express;
31
29
  getHttpAppHandler(): HttpAppHandler;
32
- getAdminAppHandler(): AdminAppHandler;
33
30
  getUploadFileHandler(): UploadFileHandler;
34
31
  setApiMiddleware(apiMiddleware: ApiMiddleware): void;
35
32
  setUploadFileMiddleware(uploadFileMiddleware: UploadFileMiddleware): void;
@@ -3,7 +3,6 @@ import { ApplicationSettings } from "./settings/ApplicationSettings";
3
3
  import { HttpAppSettings } from "./settings/HttpAppSettings";
4
4
  import { SocketAppSettings } from "./settings/SocketAppSettings";
5
5
  import { GNServer } from "./../GNServer";
6
- import { MailSettings } from "./settings/MailSettings";
7
6
  import { DatabaseSettings } from "./settings/DatabaseSettings";
8
7
  import { OtherSettings } from "./settings/OtherSettings";
9
8
  import { OnRunSuccess } from "./../GN-library/xbuilder/lib/OnRunSuccess";
@@ -14,7 +13,6 @@ declare abstract class BuilderBase {
14
13
  protected applicationSettings: ApplicationSettings;
15
14
  protected httpAppSettings: HttpAppSettings;
16
15
  protected socketAppSettings: SocketAppSettings;
17
- protected mailSettings: MailSettings;
18
16
  protected databaseSettings: DatabaseSettings;
19
17
  protected otherSettings: OtherSettings;
20
18
  protected logSettings: LogSettings;
@@ -24,7 +22,6 @@ declare abstract class BuilderBase {
24
22
  getHttpAppSettings(): HttpAppSettings;
25
23
  getSocketAppSettings(): SocketAppSettings;
26
24
  getDatabaseSettings(): DatabaseSettings;
27
- getMailSettings(): MailSettings;
28
25
  getOtherSettings(): OtherSettings;
29
26
  getLogSettings(): LogSettings;
30
27
  getUploadFileSettings(): UploadFileSettings;
@@ -36,7 +33,6 @@ declare class Builder extends BuilderBase implements IBuilder<ServerApplication>
36
33
  setHttpAppSettings(httpAppSettings: HttpAppSettings): Builder;
37
34
  setSocketAppSettings(socketAppSettings: SocketAppSettings): Builder;
38
35
  setDatabaseSettings(databaseSettings: DatabaseSettings): Builder;
39
- setMailSettings(mailSettings: MailSettings): Builder;
40
36
  setOtherSettings(otherSettings: OtherSettings): Builder;
41
37
  setLogSettings(logSettings: LogSettings): Builder;
42
38
  setUploadFileSettings(uploadFileSettings: UploadFileSettings): Builder;