@xmobitea/gn-server 2.4.16 → 2.5.1

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 (66) hide show
  1. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCreateLeaderboardRequestHandler.d.ts +0 -1
  2. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLeaderboardRequestHandler.d.ts +0 -1
  3. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLogRequestHandler.d.ts +0 -1
  4. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +22 -0
  5. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +0 -1
  6. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLogRequestHandler.d.ts +0 -1
  7. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetDisplayNameRequestHandler.d.ts +1 -0
  8. package/dist/GN-app-api/handler/controller/handler/content/SetContentDataRequestHandler.d.ts +2 -0
  9. package/dist/GN-app-api/handler/controller/handler/dashboard/DeleteInDatabaseRequestHandler.d.ts +1 -0
  10. package/dist/GN-app-api/handler/controller/handler/dashboard/GrantGameRequestHandler.d.ts +2 -0
  11. package/dist/GN-app-api/handler/controller/handler/dashboard/SetMasterGameSettingsRequestHandler.d.ts +2 -0
  12. package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerPermissionRulesParam.d.ts +1 -0
  13. package/dist/GN-app-api/handler/controller/handler/dashboard/model/StoreInventoryPermissionRulesParam.d.ts +2 -0
  14. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLogRequestHandler.d.ts +0 -1
  15. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLogRequestHandler.d.ts +0 -1
  16. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GrantPlayerCharacterRequestHandler.d.ts +1 -0
  17. package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLogRequestHandler.d.ts +0 -1
  18. package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLogRequestHandler.d.ts +0 -1
  19. package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLogRequestHandler.d.ts +0 -1
  20. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLogRequestHandler.d.ts +0 -1
  21. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLogRequestHandler.d.ts +0 -1
  22. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreUsedRequestHandler.d.ts +17 -0
  23. package/dist/GN-app-api/handler/controller/handler/storeInventory/RemoveStoreUsedRequestHandler.d.ts +18 -0
  24. package/dist/GN-app-api/handler/controller/handler/storeInventory/SetStoreItemInformationRequestHandler.d.ts +1 -0
  25. package/dist/GN-app-api/handler/controller/handler/storeInventory/StoreItemBaseRequestHandler.d.ts +1 -0
  26. package/dist/GN-app-api/handler/controller/handler/storeInventory/model/InfoRequestParam.d.ts +1 -0
  27. package/dist/GN-app-api/service/CacheService.d.ts +36 -0
  28. package/dist/GN-app-api/service/CloudScriptService.d.ts +2 -0
  29. package/dist/GN-app-api/service/ConfigService.d.ts +14 -0
  30. package/dist/{GN-library/xmail/lib/xMail.d.ts → GN-app-api/service/EmailService.d.ts} +3 -10
  31. package/dist/GN-app-api/service/EventCallbackService.d.ts +1 -0
  32. package/dist/GN-app-api/service/ICacheService.d.ts +15 -0
  33. package/dist/GN-app-api/service/IConfigService.d.ts +15 -0
  34. package/dist/GN-app-api/service/IEmailService.d.ts +10 -0
  35. package/dist/GN-app-api/service/IPushNotificationService.d.ts +17 -2
  36. package/dist/{GN-library/xnotification/lib/xPushNotification.d.ts → GN-app-api/service/PushNotificationService.d.ts} +8 -13
  37. package/dist/GN-common/constant/OperationCode.d.ts +2 -0
  38. package/dist/GN-common/constant/enumType/OwnerType.d.ts +2 -1
  39. package/dist/GN-common/constant/enumType/StoreItemType.d.ts +4 -0
  40. package/dist/GN-common/constant/errorCode/GNErrorCode.d.ts +2 -0
  41. package/dist/GN-common/constant/parameterCode/GNParameterCode.d.ts +4 -0
  42. package/dist/GN-common/entity/SecretInfo.d.ts +3 -0
  43. package/dist/GN-library/xdatabase/lib/entity/pro/StoreInventory.d.ts +4 -0
  44. package/dist/GN-library/xdatabase/lib/entity/pro/UploadFileInfo.d.ts +4 -2
  45. package/dist/GN-library/xdatabase/lib/entity/pro/findOptions/FileUploadInfoFindOptions.d.ts +9 -0
  46. package/dist/GN-library/xdatabase/lib/entity/pro/findOptions/StoreInventoryFindOptions.d.ts +1 -0
  47. package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +15 -1
  48. package/dist/GN-startup/DefaultApplicationStartup.d.ts +2 -1
  49. package/dist/GN-startup/HttpApp.d.ts +6 -0
  50. package/dist/GN-startup/ServerApplication.d.ts +4 -0
  51. package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +20 -5
  52. package/dist/GN-startup/cloudScript/templateCloudScript.ts +203 -165
  53. package/dist/GN-startup/cloudScript/templateEventCallback.ts +263 -225
  54. package/dist/GN-startup/routes/ClusterHandler.d.ts +34 -0
  55. package/dist/GN-startup/routes/UploadFileHandler.d.ts +1 -0
  56. package/dist/GN-startup/settings/ApplicationSettings.d.ts +3 -0
  57. package/dist/GN-startup/settings/ClusterSettings.d.ts +29 -0
  58. package/dist/GNServer.d.ts +16 -13
  59. package/dist/index.d.ts +20 -14
  60. package/dist/index.js +74426 -82363
  61. package/gn.sh +19 -7
  62. package/package.json +4 -7
  63. package/dist/GN-library/xcachedata/lib/xCacheData.d.ts +0 -10
  64. package/dist/GN-library/xcachedata/lib/xCacheItem.d.ts +0 -8
  65. package/dist/GN-library/xconfig/lib/entity/xConfigItem.d.ts +0 -9
  66. package/dist/GN-library/xconfig/lib/xConfig.d.ts +0 -15
@@ -1,12 +1,9 @@
1
1
  import { RequestController } from "./GN-app-api/handler/controller/RequestController";
2
2
  import { OperationEvent } from "./GN-common/entity/operationEvent/OperationEvent";
3
- import { xConfig } from "./GN-library/xconfig/lib/xConfig";
4
3
  import { xDatabase } from "./GN-library/xdatabase/lib/xDatabase";
5
4
  import { SocketApp } from "./GN-startup/SocketApp";
6
5
  import { HttpApp } from "./GN-startup/HttpApp";
7
6
  import { IRequestHandler } from "./GN-app-api/handler/controller/handler/base/IRequestHandler";
8
- import { xMail } from "./GN-library/xmail/lib/xMail";
9
- import { xPushNotification } from "./GN-library/xnotification/lib/xPushNotification";
10
7
  import { IFacebookService } from "./GN-app-api/service/IFacebookService";
11
8
  import { IGenericService } from "./GN-app-api/service/IGenericService";
12
9
  import { IAppleService } from "./GN-app-api/service/IAppleService";
@@ -14,11 +11,14 @@ import { ICloudScriptService } from "./GN-app-api/service/ICloudScriptService";
14
11
  import { ITimerService } from "./GN-app-api/service/ITimerService";
15
12
  import { OnRunSuccess } from "./GN-library/xbuilder/lib/OnRunSuccess";
16
13
  import { ILockService } from "./GN-app-api/service/ILockService";
17
- import { xCacheData } from "./GN-library/xcachedata/lib/xCacheData";
18
14
  import { ApiMiddleware } from "./GN-startup/middleware/ApiMiddleware";
19
15
  import { IRequestConverterService } from "./GN-app-api/service/IRequestConverterService";
20
16
  import { IGoogleService } from "./GN-app-api/service/IGoogleService";
21
17
  import { IAnalyticsService } from "./GN-app-api/service/IAnalyticsService";
18
+ import { IPushNotificationService } from "./GN-app-api/service/IPushNotificationService";
19
+ import { IEmailService } from "./GN-app-api/service/IEmailService";
20
+ import { ICacheService } from "./GN-app-api/service/ICacheService";
21
+ import { IConfigService } from "./GN-app-api/service/IConfigService";
22
22
  import { xGNSettings } from "./GN-library/xsettings/lib/xGNSettings";
23
23
  import { IPostEventCallbackService, IPreEventCallbackService } from "./GN-app-api/service/IEventCallbackService";
24
24
  import { IEventCallbackCloudScriptService } from "./GN-app-api/service/EventCallbackService";
@@ -38,12 +38,8 @@ export declare class GNServer {
38
38
  private apiMiddleware;
39
39
  private requestController;
40
40
  private idTypeCase;
41
- private xConfigDic;
42
41
  private xGNSettings;
43
42
  private xDatabase;
44
- private xMail;
45
- private xPushNotification;
46
- private xCacheData;
47
43
  private facebookService;
48
44
  private genericService;
49
45
  private appleService;
@@ -59,6 +55,10 @@ export declare class GNServer {
59
55
  private cloudScriptServiceDic;
60
56
  private eventCallbackCloudScriptService;
61
57
  private countryIPDetailService;
58
+ private pushNotificationService;
59
+ private emailService;
60
+ private cacheServiceDic;
61
+ private configServiceDic;
62
62
  private gameIds;
63
63
  private matchmakingHandler;
64
64
  private waitingServerDetailDict;
@@ -79,15 +79,14 @@ export declare class GNServer {
79
79
  createIndex(collectionName: string, index: {
80
80
  [k: string]: any;
81
81
  }, options?: CreateIndexesOptions): void;
82
- getConfigGame(gameId: string): xConfig;
83
- setConfigGame(gameId: string, config: xConfig): void;
82
+ getConfigService(gameId: string): IConfigService;
83
+ setConfigGame(gameId: string, configService: IConfigService): void;
84
84
  setIdTypeCase(idTypeCase: number): void;
85
85
  getIdTypeCase(): number;
86
86
  getGNSettings(): xGNSettings;
87
87
  getDatabase(): xDatabase;
88
- getMail(): xMail;
89
- getPushNotification(): xPushNotification;
90
- getCacheData(): xCacheData;
88
+ getCacheService(gameId: string): ICacheService;
89
+ setCacheService(gameId: string, cacheService: ICacheService): void;
91
90
  getFacebookService(): IFacebookService;
92
91
  getGenericService(): IGenericService;
93
92
  getPostEventCallbackService(): IPostEventCallbackService;
@@ -102,6 +101,8 @@ export declare class GNServer {
102
101
  getLockService(): ILockService;
103
102
  getAnalyticsService(): IAnalyticsService;
104
103
  getRequestConverterService(): IRequestConverterService;
104
+ getEmailService(): IEmailService;
105
+ getPushNotificationService(): IPushNotificationService;
105
106
  getCloudScriptService(gameId: string): ICloudScriptService;
106
107
  setCloudScriptService(gameId: string, cloudScriptService: ICloudScriptService): Map<string, ICloudScriptService>;
107
108
  sendEventTo(userId: string, operationEvent: OperationEvent): Promise<void>;
@@ -114,10 +115,12 @@ export declare class GNServer {
114
115
  private handleSocketDisconnect;
115
116
  private handleOnRequest;
116
117
  private handleMatchmaking;
118
+ private handleRemoveCacheInvalidData;
117
119
  private handleMatchmakingForGame;
118
120
  private requestMatchServerDetail;
119
121
  setMatchServerDetail(gameId: string, matchId: string, serverDetail: ServerDetail, ticketIds: string[]): void;
120
122
  setMatchServerDetailFailed(gameId: string, matchId: string, ticketIds: string[], reason: string): void;
121
123
  getGameIds(): string[];
124
+ isPrimary(): boolean;
122
125
  }
123
126
  export {};
package/dist/index.d.ts CHANGED
@@ -30,14 +30,28 @@ import { ILockService } from "./GN-app-api/service/ILockService";
30
30
  export { ILockService };
31
31
  import { IPushNotificationService } from "./GN-app-api/service/IPushNotificationService";
32
32
  export { IPushNotificationService };
33
+ import { PushNotificationService } from "./GN-app-api/service/PushNotificationService";
34
+ export { PushNotificationService };
33
35
  import { IRequestConverterService } from "./GN-app-api/service/IRequestConverterService";
34
36
  export { IRequestConverterService };
37
+ import { RequestConverterService } from "./GN-app-api/service/RequestConverterService";
38
+ export { RequestConverterService };
39
+ import { IEmailService } from "./GN-app-api/service/IEmailService";
40
+ export { IEmailService };
41
+ import { EmailService } from "./GN-app-api/service/EmailService";
42
+ export { EmailService };
43
+ import { ICacheService, CacheItem } from "./GN-app-api/service/ICacheService";
44
+ export { ICacheService, CacheItem };
45
+ import { CacheService, ICacheServiceController, MemoryCacheServiceController, MongoDbCacheServiceController } from "./GN-app-api/service/CacheService";
46
+ export { CacheService, ICacheServiceController, MemoryCacheServiceController, MongoDbCacheServiceController };
47
+ import { IConfigService, ConfigItem } from "./GN-app-api/service/IConfigService";
48
+ export { IConfigService, ConfigItem };
49
+ import { ConfigService } from "./GN-app-api/service/ConfigService";
50
+ export { ConfigService };
35
51
  import { ITimerService } from "./GN-app-api/service/ITimerService";
36
52
  export { ITimerService };
37
53
  import { LockService } from "./GN-app-api/service/LockService";
38
54
  export { LockService };
39
- import { RequestConverterService } from "./GN-app-api/service/RequestConverterService";
40
- export { RequestConverterService };
41
55
  import { TimerService } from "./GN-app-api/service/TimerService";
42
56
  export { TimerService };
43
57
  import { GNData, GNArray, GNArrayBuilder, GNHashtable, GNHashtableBuilder } from "./GN-common/common/GNData";
@@ -52,6 +66,8 @@ import { InvalidMemberType } from "./GN-common/constant/enumType/InvalidMemberTy
52
66
  export { InvalidMemberType };
53
67
  import { ItemType } from "./GN-common/constant/enumType/ItemType";
54
68
  export { ItemType };
69
+ import { StoreItemType } from "./GN-common/constant/enumType/StoreItemType";
70
+ export { StoreItemType };
55
71
  import { MatchmakingMemberStatus } from "./GN-common/constant/enumType/MatchmakingMemberStatus";
56
72
  export { MatchmakingMemberStatus };
57
73
  import { MatchmakingTicketStatus } from "./GN-common/constant/enumType/MatchmakingTicketStatus";
@@ -120,14 +136,6 @@ import { IBuilder } from "./GN-library/xbuilder/lib/IBuilder";
120
136
  export { IBuilder };
121
137
  import { OnRunSuccess } from "./GN-library/xbuilder/lib/OnRunSuccess";
122
138
  export { OnRunSuccess };
123
- import { xCacheData } from "./GN-library/xcachedata/lib/xCacheData";
124
- export { xCacheData };
125
- import { xCacheItem } from "./GN-library/xcachedata/lib/xCacheItem";
126
- export { xCacheItem };
127
- import { xConfigItem } from "./GN-library/xconfig/lib/entity/xConfigItem";
128
- export { xConfigItem };
129
- import { xConfig } from "./GN-library/xconfig/lib/xConfig";
130
- export { xConfig };
131
139
  import { CharacterPlayerFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/CharacterPlayerFindOptions";
132
140
  export { CharacterPlayerFindOptions };
133
141
  import { GamePlayerFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/GamePlayerFindOptions";
@@ -226,10 +234,6 @@ import { xDatetime } from "./GN-library/xdatetime/lib/xDatetime";
226
234
  export { xDatetime };
227
235
  import { Debug } from "./GN-library/xdebug/lib/xDebug";
228
236
  export { Debug };
229
- import { xMail } from "./GN-library/xmail/lib/xMail";
230
- export { xMail };
231
- import { xPushNotification } from "./GN-library/xnotification/lib/xPushNotification";
232
- export { xPushNotification };
233
237
  import { xRandom } from "./GN-library/xrandom/lib/xRandom";
234
238
  export { xRandom };
235
239
  import { xCharacterCatalogSettings } from "./GN-library/xsettings/lib/entity/xCharacterCatalogSettings";
@@ -292,6 +296,8 @@ import { DatabaseSettings } from "./GN-startup/settings/DatabaseSettings";
292
296
  export { DatabaseSettings };
293
297
  import { DdosSettings } from "./GN-startup/settings/DDosSettings";
294
298
  export { DdosSettings };
299
+ import { ClusterSettings } from "./GN-startup/settings/ClusterSettings";
300
+ export { ClusterSettings };
295
301
  import { HttpAppSettings } from "./GN-startup/settings/HttpAppSettings";
296
302
  export { HttpAppSettings };
297
303
  import { LogSettings } from "./GN-startup/settings/LogSettings";