@xmobitea/gn-server 2.5.0 → 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 (38) hide show
  1. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetDisplayNameRequestHandler.d.ts +1 -0
  2. package/dist/GN-app-api/handler/controller/handler/content/SetContentDataRequestHandler.d.ts +2 -0
  3. package/dist/GN-app-api/handler/controller/handler/dashboard/DeleteInDatabaseRequestHandler.d.ts +1 -0
  4. package/dist/GN-app-api/handler/controller/handler/dashboard/GrantGameRequestHandler.d.ts +2 -0
  5. package/dist/GN-app-api/handler/controller/handler/dashboard/SetMasterGameSettingsRequestHandler.d.ts +2 -0
  6. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GrantPlayerCharacterRequestHandler.d.ts +1 -0
  7. package/dist/GN-app-api/service/CacheService.d.ts +36 -0
  8. package/dist/GN-app-api/service/CloudScriptService.d.ts +2 -0
  9. package/dist/GN-app-api/service/ConfigService.d.ts +14 -0
  10. package/dist/{GN-library/xmail/lib/xMail.d.ts → GN-app-api/service/EmailService.d.ts} +3 -10
  11. package/dist/GN-app-api/service/EventCallbackService.d.ts +1 -0
  12. package/dist/GN-app-api/service/ICacheService.d.ts +15 -0
  13. package/dist/GN-app-api/service/IConfigService.d.ts +15 -0
  14. package/dist/GN-app-api/service/IEmailService.d.ts +10 -0
  15. package/dist/GN-app-api/service/IPushNotificationService.d.ts +17 -2
  16. package/dist/{GN-library/xnotification/lib/xPushNotification.d.ts → GN-app-api/service/PushNotificationService.d.ts} +8 -13
  17. package/dist/GN-common/constant/enumType/OwnerType.d.ts +2 -1
  18. package/dist/GN-library/xdatabase/lib/entity/pro/UploadFileInfo.d.ts +4 -2
  19. package/dist/GN-library/xdatabase/lib/entity/pro/findOptions/FileUploadInfoFindOptions.d.ts +9 -0
  20. package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +3 -1
  21. package/dist/GN-startup/DefaultApplicationStartup.d.ts +2 -1
  22. package/dist/GN-startup/HttpApp.d.ts +6 -0
  23. package/dist/GN-startup/ServerApplication.d.ts +4 -0
  24. package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +3 -3
  25. package/dist/GN-startup/cloudScript/templateCloudScript.ts +32 -0
  26. package/dist/GN-startup/cloudScript/templateEventCallback.ts +32 -0
  27. package/dist/GN-startup/routes/ClusterHandler.d.ts +34 -0
  28. package/dist/GN-startup/routes/UploadFileHandler.d.ts +1 -0
  29. package/dist/GN-startup/settings/ClusterSettings.d.ts +29 -0
  30. package/dist/GNServer.d.ts +15 -14
  31. package/dist/index.d.ts +18 -14
  32. package/dist/index.js +74224 -82897
  33. package/gn.sh +17 -5
  34. package/package.json +4 -4
  35. package/dist/GN-library/xcachedata/lib/xCacheData.d.ts +0 -10
  36. package/dist/GN-library/xcachedata/lib/xCacheItem.d.ts +0 -8
  37. package/dist/GN-library/xconfig/lib/entity/xConfigItem.d.ts +0 -9
  38. 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 xCacheDataDic;
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,16 +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(gameId: string): xCacheData;
91
- setCacheData(gameId: string, cacheData: xCacheData): void;
88
+ getCacheService(gameId: string): ICacheService;
89
+ setCacheService(gameId: string, cacheService: ICacheService): void;
92
90
  getFacebookService(): IFacebookService;
93
91
  getGenericService(): IGenericService;
94
92
  getPostEventCallbackService(): IPostEventCallbackService;
@@ -103,6 +101,8 @@ export declare class GNServer {
103
101
  getLockService(): ILockService;
104
102
  getAnalyticsService(): IAnalyticsService;
105
103
  getRequestConverterService(): IRequestConverterService;
104
+ getEmailService(): IEmailService;
105
+ getPushNotificationService(): IPushNotificationService;
106
106
  getCloudScriptService(gameId: string): ICloudScriptService;
107
107
  setCloudScriptService(gameId: string, cloudScriptService: ICloudScriptService): Map<string, ICloudScriptService>;
108
108
  sendEventTo(userId: string, operationEvent: OperationEvent): Promise<void>;
@@ -121,5 +121,6 @@ export declare class GNServer {
121
121
  setMatchServerDetail(gameId: string, matchId: string, serverDetail: ServerDetail, ticketIds: string[]): void;
122
122
  setMatchServerDetailFailed(gameId: string, matchId: string, ticketIds: string[], reason: string): void;
123
123
  getGameIds(): string[];
124
+ isPrimary(): boolean;
124
125
  }
125
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";
@@ -122,14 +136,6 @@ import { IBuilder } from "./GN-library/xbuilder/lib/IBuilder";
122
136
  export { IBuilder };
123
137
  import { OnRunSuccess } from "./GN-library/xbuilder/lib/OnRunSuccess";
124
138
  export { OnRunSuccess };
125
- import { xCacheData } from "./GN-library/xcachedata/lib/xCacheData";
126
- export { xCacheData };
127
- import { xCacheItem } from "./GN-library/xcachedata/lib/xCacheItem";
128
- export { xCacheItem };
129
- import { xConfigItem } from "./GN-library/xconfig/lib/entity/xConfigItem";
130
- export { xConfigItem };
131
- import { xConfig } from "./GN-library/xconfig/lib/xConfig";
132
- export { xConfig };
133
139
  import { CharacterPlayerFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/CharacterPlayerFindOptions";
134
140
  export { CharacterPlayerFindOptions };
135
141
  import { GamePlayerFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/GamePlayerFindOptions";
@@ -228,10 +234,6 @@ import { xDatetime } from "./GN-library/xdatetime/lib/xDatetime";
228
234
  export { xDatetime };
229
235
  import { Debug } from "./GN-library/xdebug/lib/xDebug";
230
236
  export { Debug };
231
- import { xMail } from "./GN-library/xmail/lib/xMail";
232
- export { xMail };
233
- import { xPushNotification } from "./GN-library/xnotification/lib/xPushNotification";
234
- export { xPushNotification };
235
237
  import { xRandom } from "./GN-library/xrandom/lib/xRandom";
236
238
  export { xRandom };
237
239
  import { xCharacterCatalogSettings } from "./GN-library/xsettings/lib/entity/xCharacterCatalogSettings";
@@ -294,6 +296,8 @@ import { DatabaseSettings } from "./GN-startup/settings/DatabaseSettings";
294
296
  export { DatabaseSettings };
295
297
  import { DdosSettings } from "./GN-startup/settings/DDosSettings";
296
298
  export { DdosSettings };
299
+ import { ClusterSettings } from "./GN-startup/settings/ClusterSettings";
300
+ export { ClusterSettings };
297
301
  import { HttpAppSettings } from "./GN-startup/settings/HttpAppSettings";
298
302
  export { HttpAppSettings };
299
303
  import { LogSettings } from "./GN-startup/settings/LogSettings";