@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.
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCreateLeaderboardRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLeaderboardRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +22 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetDisplayNameRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/content/SetContentDataRequestHandler.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/DeleteInDatabaseRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GrantGameRequestHandler.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetMasterGameSettingsRequestHandler.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerPermissionRulesParam.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/StoreInventoryPermissionRulesParam.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GrantPlayerCharacterRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLogRequestHandler.d.ts +0 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreUsedRequestHandler.d.ts +17 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/RemoveStoreUsedRequestHandler.d.ts +18 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/SetStoreItemInformationRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/StoreItemBaseRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/storeInventory/model/InfoRequestParam.d.ts +1 -0
- package/dist/GN-app-api/service/CacheService.d.ts +36 -0
- package/dist/GN-app-api/service/CloudScriptService.d.ts +2 -0
- package/dist/GN-app-api/service/ConfigService.d.ts +14 -0
- package/dist/{GN-library/xmail/lib/xMail.d.ts → GN-app-api/service/EmailService.d.ts} +3 -10
- package/dist/GN-app-api/service/EventCallbackService.d.ts +1 -0
- package/dist/GN-app-api/service/ICacheService.d.ts +15 -0
- package/dist/GN-app-api/service/IConfigService.d.ts +15 -0
- package/dist/GN-app-api/service/IEmailService.d.ts +10 -0
- package/dist/GN-app-api/service/IPushNotificationService.d.ts +17 -2
- package/dist/{GN-library/xnotification/lib/xPushNotification.d.ts → GN-app-api/service/PushNotificationService.d.ts} +8 -13
- package/dist/GN-common/constant/OperationCode.d.ts +2 -0
- package/dist/GN-common/constant/enumType/OwnerType.d.ts +2 -1
- package/dist/GN-common/constant/enumType/StoreItemType.d.ts +4 -0
- package/dist/GN-common/constant/errorCode/GNErrorCode.d.ts +2 -0
- package/dist/GN-common/constant/parameterCode/GNParameterCode.d.ts +4 -0
- package/dist/GN-common/entity/SecretInfo.d.ts +3 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/StoreInventory.d.ts +4 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/UploadFileInfo.d.ts +4 -2
- package/dist/GN-library/xdatabase/lib/entity/pro/findOptions/FileUploadInfoFindOptions.d.ts +9 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/findOptions/StoreInventoryFindOptions.d.ts +1 -0
- package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +15 -1
- package/dist/GN-startup/DefaultApplicationStartup.d.ts +2 -1
- package/dist/GN-startup/HttpApp.d.ts +6 -0
- package/dist/GN-startup/ServerApplication.d.ts +4 -0
- package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +20 -5
- package/dist/GN-startup/cloudScript/templateCloudScript.ts +203 -165
- package/dist/GN-startup/cloudScript/templateEventCallback.ts +263 -225
- package/dist/GN-startup/routes/ClusterHandler.d.ts +34 -0
- package/dist/GN-startup/routes/UploadFileHandler.d.ts +1 -0
- package/dist/GN-startup/settings/ApplicationSettings.d.ts +3 -0
- package/dist/GN-startup/settings/ClusterSettings.d.ts +29 -0
- package/dist/GNServer.d.ts +16 -13
- package/dist/index.d.ts +20 -14
- package/dist/index.js +74426 -82363
- package/gn.sh +19 -7
- package/package.json +4 -7
- package/dist/GN-library/xcachedata/lib/xCacheData.d.ts +0 -10
- package/dist/GN-library/xcachedata/lib/xCacheItem.d.ts +0 -8
- package/dist/GN-library/xconfig/lib/entity/xConfigItem.d.ts +0 -9
- package/dist/GN-library/xconfig/lib/xConfig.d.ts +0 -15
|
@@ -12,7 +12,6 @@ declare class GetCreateLeaderboardOperationRequest extends OperationRequest {
|
|
|
12
12
|
isValidRequest(): boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare class GetCreateLeaderboardRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
15
|
-
protected init(): void;
|
|
16
15
|
getCode(): number;
|
|
17
16
|
getCommonOperationRequest(): typeof GetCreateLeaderboardOperationRequest;
|
|
18
17
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
@@ -14,7 +14,6 @@ declare class GetCurrencyLeaderboardOperationRequest extends OperationRequest {
|
|
|
14
14
|
isValidRequest(): boolean;
|
|
15
15
|
}
|
|
16
16
|
export declare class GetCurrencyLeaderboardRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
17
|
-
protected init(): void;
|
|
18
17
|
getCode(): number;
|
|
19
18
|
getCommonOperationRequest(): typeof GetCurrencyLeaderboardOperationRequest;
|
|
20
19
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLogRequestHandler.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare class GetCurrencyLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetCurrencyLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetCurrencyLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OperationRequest } from "../../../../../GN-common/entity/operationRequest/OperationRequest";
|
|
2
|
+
import { OperationResponse } from "../../../../../GN-common/entity/operationResponse/OperationResponse";
|
|
3
|
+
import { AuthInfo } from "../../../../../GN-common/entity/AuthInfo";
|
|
4
|
+
import { SecretInfo } from "../../../../../GN-common/entity/SecretInfo";
|
|
5
|
+
import { CharacterPlayerBaseRequestHandler } from "./CharacterPlayerBaseRequestHandler";
|
|
6
|
+
import { InfoRequestParam } from "./model/InfoRequestParam";
|
|
7
|
+
declare class GetLastLoginLeaderboardOperationRequest extends OperationRequest {
|
|
8
|
+
infoRequestParam: InfoRequestParam;
|
|
9
|
+
skip?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
loadFromCache?: boolean;
|
|
12
|
+
isValidRequest(): boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class GetLastLoginLeaderboardRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
15
|
+
getCode(): number;
|
|
16
|
+
getCommonOperationRequest(): typeof GetLastLoginLeaderboardOperationRequest;
|
|
17
|
+
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
18
|
+
serverHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
19
|
+
adminHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
20
|
+
private execute;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -15,7 +15,6 @@ declare class GetStatisticsLeaderboardOperationRequest extends OperationRequest
|
|
|
15
15
|
isValidRequest(): boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare class GetStatisticsLeaderboardRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
18
|
-
protected init(): void;
|
|
19
18
|
getCode(): number;
|
|
20
19
|
getCommonOperationRequest(): typeof GetStatisticsLeaderboardOperationRequest;
|
|
21
20
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
@@ -11,7 +11,6 @@ declare class GetStatisticsLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetStatisticsLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetStatisticsLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetDisplayNameRequestHandler.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { CharacterPlayerBaseRequestHandler } from "./CharacterPlayerBaseRequestH
|
|
|
6
6
|
declare class SetDisplayNameOperationRequest extends OperationRequest {
|
|
7
7
|
characterId: string;
|
|
8
8
|
displayName: string;
|
|
9
|
+
uniqueDisplayName?: boolean;
|
|
9
10
|
isValidRequest(): boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare class SetDisplayNameRequestHandler extends CharacterPlayerBaseRequestHandler {
|
package/dist/GN-app-api/handler/controller/handler/content/SetContentDataRequestHandler.d.ts
CHANGED
|
@@ -16,5 +16,7 @@ export declare class SetContentDataRequestHandler extends RequestHandler {
|
|
|
16
16
|
serverHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
17
17
|
adminHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
18
18
|
private execute;
|
|
19
|
+
private applySettings;
|
|
20
|
+
protected init(): void;
|
|
19
21
|
}
|
|
20
22
|
export {};
|
|
@@ -12,5 +12,7 @@ export declare class GrantGameRequestHandler extends RequestHandler {
|
|
|
12
12
|
getCommonOperationRequest(): typeof GrantGameOperationRequest;
|
|
13
13
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
14
14
|
private execute;
|
|
15
|
+
private addGameId;
|
|
16
|
+
protected init(): void;
|
|
15
17
|
}
|
|
16
18
|
export {};
|
|
@@ -19,5 +19,7 @@ export declare class SetMasterGameSettingsRequestHandler extends RequestHandler
|
|
|
19
19
|
getCommonOperationRequest(): typeof SetMasterGameSettingsOperationRequest;
|
|
20
20
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
21
21
|
private execute;
|
|
22
|
+
private applySettings;
|
|
23
|
+
protected init(): void;
|
|
22
24
|
}
|
|
23
25
|
export {};
|
|
@@ -50,6 +50,7 @@ export declare class CharacterPlayerPermissionRulesParam {
|
|
|
50
50
|
getFriendStatisticsLeaderboard?: PermissionRulesParam;
|
|
51
51
|
getCurrencyLeaderboard?: PermissionRulesParam;
|
|
52
52
|
getCreateLeaderboard?: PermissionRulesParam;
|
|
53
|
+
getLastLoginLeaderboard?: PermissionRulesParam;
|
|
53
54
|
getStatisticsLog?: PermissionRulesParam;
|
|
54
55
|
getCurrencyLog?: PermissionRulesParam;
|
|
55
56
|
}
|
|
@@ -12,4 +12,6 @@ export declare class StoreInventoryPermissionRulesParam {
|
|
|
12
12
|
getCreateLeaderboard?: PermissionRulesParam;
|
|
13
13
|
presentStoreItem?: PermissionRulesParam;
|
|
14
14
|
getStoreLog?: PermissionRulesParam;
|
|
15
|
+
getStoreUsed?: PermissionRulesParam;
|
|
16
|
+
removeStoreUsed?: PermissionRulesParam;
|
|
15
17
|
}
|
package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLogRequestHandler.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare class GetCurrencyLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetCurrencyLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetCurrencyLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLogRequestHandler.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare class GetStatisticsLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetStatisticsLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetStatisticsLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
@@ -7,6 +7,7 @@ declare class GrantPlayerCharacterOperationRequest extends OperationRequest {
|
|
|
7
7
|
userId?: string;
|
|
8
8
|
catalogId: string;
|
|
9
9
|
displayName?: string;
|
|
10
|
+
uniqueDisplayName?: boolean;
|
|
10
11
|
isValidRequest(): boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare class GrantPlayerCharacterRequestHandler extends GamePlayerBaseRequestHandler {
|
|
@@ -11,7 +11,6 @@ declare class GetCurrencyLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetCurrencyLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetCurrencyLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLogRequestHandler.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare class GetStatisticsLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetStatisticsLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetStatisticsLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLogRequestHandler.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare class GetStatisticsLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetStatisticsLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetStatisticsLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLogRequestHandler.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare class GetCurrencyLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetCurrencyLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetCurrencyLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLogRequestHandler.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare class GetStatisticsLogOperationRequest extends OperationRequest {
|
|
|
11
11
|
isValidRequest(): boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare class GetStatisticsLogRequestHandler extends RequestHandler {
|
|
14
|
-
protected init(): void;
|
|
15
14
|
getCode(): number;
|
|
16
15
|
getCommonOperationRequest(): typeof GetStatisticsLogOperationRequest;
|
|
17
16
|
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreUsedRequestHandler.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OperationRequest } from "../../../../../GN-common/entity/operationRequest/OperationRequest";
|
|
2
|
+
import { OperationResponse } from "../../../../../GN-common/entity/operationResponse/OperationResponse";
|
|
3
|
+
import { AuthInfo } from "../../../../../GN-common/entity/AuthInfo";
|
|
4
|
+
import { SecretInfo } from "../../../../../GN-common/entity/SecretInfo";
|
|
5
|
+
import { StoreItemBaseRequestHandler } from "./StoreItemBaseRequestHandler";
|
|
6
|
+
declare class GetStoreUsedOperationRequest extends OperationRequest {
|
|
7
|
+
storeId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetStoreUsedRequestHandler extends StoreItemBaseRequestHandler {
|
|
10
|
+
getCode(): number;
|
|
11
|
+
getCommonOperationRequest(): typeof GetStoreUsedOperationRequest;
|
|
12
|
+
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
13
|
+
serverHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
14
|
+
adminHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
15
|
+
private execute;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
package/dist/GN-app-api/handler/controller/handler/storeInventory/RemoveStoreUsedRequestHandler.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OperationRequest } from "../../../../../GN-common/entity/operationRequest/OperationRequest";
|
|
2
|
+
import { OperationResponse } from "../../../../../GN-common/entity/operationResponse/OperationResponse";
|
|
3
|
+
import { AuthInfo } from "../../../../../GN-common/entity/AuthInfo";
|
|
4
|
+
import { SecretInfo } from "../../../../../GN-common/entity/SecretInfo";
|
|
5
|
+
import { StoreItemBaseRequestHandler } from "./StoreItemBaseRequestHandler";
|
|
6
|
+
declare class RemoveStoreUsedOperationRequest extends OperationRequest {
|
|
7
|
+
storeId: string;
|
|
8
|
+
ownerIds?: Array<string>;
|
|
9
|
+
}
|
|
10
|
+
export declare class RemoveStoreUsedRequestHandler extends StoreItemBaseRequestHandler {
|
|
11
|
+
getCode(): number;
|
|
12
|
+
getCommonOperationRequest(): typeof RemoveStoreUsedOperationRequest;
|
|
13
|
+
handle(authInfo: AuthInfo, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
14
|
+
serverHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
15
|
+
adminHandle(secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
16
|
+
private execute;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -11,6 +11,7 @@ import { TagParam } from "./model/TagParam";
|
|
|
11
11
|
import { InAppPurchaseParam } from "./model/InAppPurchaseParam";
|
|
12
12
|
declare class SetStoreItemInformationOperationRequest extends OperationRequest {
|
|
13
13
|
storeId: string;
|
|
14
|
+
storeItemType?: number;
|
|
14
15
|
storeDataParams?: Array<StoreDataParam>;
|
|
15
16
|
storeItemParams?: Array<StoreItemParam>;
|
|
16
17
|
storeCurrencyParams?: Array<CurrencyParam>;
|
package/dist/GN-app-api/handler/controller/handler/storeInventory/StoreItemBaseRequestHandler.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare abstract class StoreItemBaseRequestHandler extends RequestHandler
|
|
|
10
10
|
protected convertToStoreInventoryFindOptions(infoRequestParam: InfoRequestParam): StoreInventoryFindOptions;
|
|
11
11
|
protected generateInfoResponseParameters(storeInventory: StoreInventory, infoRequestParam: InfoRequestParam, gameId: string): GNHashtable;
|
|
12
12
|
protected generateStoreItems(storeInventory: StoreInventory): GNArray;
|
|
13
|
+
protected generateStoreItemType(storeInventory: StoreInventory): number;
|
|
13
14
|
protected generateStoreCurrencies(storeInventory: StoreInventory): GNArray;
|
|
14
15
|
protected generatePriceCurrencies(storeInventory: StoreInventory): GNArray;
|
|
15
16
|
protected generateInAppPurchase(storeInventory: StoreInventory): GNHashtable;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ICacheService } from "./ICacheService";
|
|
2
|
+
import * as mongoDB from "mongodb";
|
|
3
|
+
export interface ICacheServiceController {
|
|
4
|
+
getData<T>(key: string): Promise<T>;
|
|
5
|
+
setData<T>(key: string, tData: T, expireAfterMs: number): Promise<void>;
|
|
6
|
+
removeData(key: string): Promise<boolean>;
|
|
7
|
+
isValid(key: string): Promise<boolean>;
|
|
8
|
+
removeInvalidData(): Promise<number>;
|
|
9
|
+
}
|
|
10
|
+
export declare class MemoryCacheServiceController implements ICacheServiceController {
|
|
11
|
+
private dataDic;
|
|
12
|
+
getData<T>(key: string): Promise<T>;
|
|
13
|
+
setData<T>(key: string, tData: T, expireAfterMs: number): Promise<void>;
|
|
14
|
+
removeData(key: string): Promise<boolean>;
|
|
15
|
+
isValid(key: string): Promise<boolean>;
|
|
16
|
+
removeInvalidData(): Promise<number>;
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
19
|
+
export declare class MongoDbCacheServiceController implements ICacheServiceController {
|
|
20
|
+
private cacheCollection;
|
|
21
|
+
getData<T>(key: string): Promise<T>;
|
|
22
|
+
setData<T>(key: string, tData: T, expireAfterMs: number): Promise<void>;
|
|
23
|
+
removeData(key: string): Promise<boolean>;
|
|
24
|
+
isValid(key: string): Promise<boolean>;
|
|
25
|
+
removeInvalidData(): Promise<number>;
|
|
26
|
+
constructor(cacheCollection: mongoDB.Collection<mongoDB.Document>);
|
|
27
|
+
}
|
|
28
|
+
export declare class CacheService implements ICacheService {
|
|
29
|
+
private cacheServiceController;
|
|
30
|
+
getData<T>(key: string): Promise<T>;
|
|
31
|
+
setData<T>(key: string, tData: T, expireAfterMs: number): Promise<void>;
|
|
32
|
+
removeData(key: string): Promise<boolean>;
|
|
33
|
+
isValid(key: string): Promise<boolean>;
|
|
34
|
+
removeInvalidData(): Promise<number>;
|
|
35
|
+
constructor(cacheServiceController: ICacheServiceController);
|
|
36
|
+
}
|
|
@@ -36,6 +36,8 @@ export declare class CloudScriptService implements ICloudScriptService {
|
|
|
36
36
|
errorMessage?: string;
|
|
37
37
|
version?: string;
|
|
38
38
|
}>;
|
|
39
|
+
private remoteAddCloudScriptFunction;
|
|
40
|
+
private remoteEditCloudScriptFunction;
|
|
39
41
|
editCloudScriptFunction(version: string, isLive: boolean, canExecute: boolean): Promise<{
|
|
40
42
|
success: boolean;
|
|
41
43
|
errorMessage?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IConfigService, ConfigItem } from "./IConfigService";
|
|
2
|
+
import * as mongoDB from "mongodb";
|
|
3
|
+
export declare class ConfigService implements IConfigService {
|
|
4
|
+
private configDic;
|
|
5
|
+
private gameId;
|
|
6
|
+
private configCollection;
|
|
7
|
+
setConfigCollection(gameId: string, configCollection: mongoDB.Collection<mongoDB.Document>): void;
|
|
8
|
+
run(): void;
|
|
9
|
+
private syncAllConfigAsync;
|
|
10
|
+
syncConfigFromDatabaseAsync(configName: string, label: string): Promise<ConfigItem>;
|
|
11
|
+
setConfigAsync(configName: string, label: string, data: {}, withSave: boolean): Promise<ConfigItem>;
|
|
12
|
+
getConfigItem(configName: string, label: string): ConfigItem;
|
|
13
|
+
getConfigDicViaLabel(label: string): Map<string, ConfigItem>;
|
|
14
|
+
}
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
(): void;
|
|
4
|
-
}
|
|
5
|
-
interface OnSendMailError {
|
|
6
|
-
(error: string): void;
|
|
7
|
-
}
|
|
8
|
-
export declare class xMail {
|
|
1
|
+
import { IEmailService, OnSendMailError, OnSendMailSuccess } from "./IEmailService";
|
|
2
|
+
export declare class EmailService implements IEmailService {
|
|
9
3
|
private isInit;
|
|
10
4
|
private sendGridApiKey;
|
|
11
5
|
private fromEmail;
|
|
12
6
|
private needSetup;
|
|
13
7
|
init(sendGridApiKey: string, fromEmail: string): void;
|
|
14
|
-
run(
|
|
8
|
+
run(): void;
|
|
15
9
|
sendMail(toEmail: string, subject: string, contentHtml: string, onSendMailSuccess?: OnSendMailSuccess, onSendMailError?: OnSendMailError): Promise<void>;
|
|
16
10
|
sendMailToMore(toEmails: string[], subject: string, contentHtml: string, onSendMailSuccess?: OnSendMailSuccess, onSendMailError?: OnSendMailError): Promise<void>;
|
|
17
11
|
}
|
|
18
|
-
export {};
|
|
@@ -105,6 +105,7 @@ export declare class EventCallbackCloudScriptService implements IEventCallbackCl
|
|
|
105
105
|
errorMessage?: string;
|
|
106
106
|
version?: string;
|
|
107
107
|
}>;
|
|
108
|
+
private remoteAddCloudScriptFunction;
|
|
108
109
|
private loadCloudScriptFunctionWorker;
|
|
109
110
|
private loadCloudScriptWorker;
|
|
110
111
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class CacheItem {
|
|
2
|
+
private tsExpire;
|
|
3
|
+
private tData;
|
|
4
|
+
constructor(tData: any, expireAfterMs: number);
|
|
5
|
+
setData(tData: any, expireAfterMs: number): void;
|
|
6
|
+
isExpired(): boolean;
|
|
7
|
+
getData(): any;
|
|
8
|
+
}
|
|
9
|
+
export interface ICacheService {
|
|
10
|
+
getData<T>(key: string): Promise<T>;
|
|
11
|
+
setData<T>(key: string, tData: T, expireAfterMs: number): Promise<void>;
|
|
12
|
+
removeData(key: string): Promise<boolean>;
|
|
13
|
+
isValid(key: string): Promise<boolean>;
|
|
14
|
+
removeInvalidData(): Promise<number>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class ConfigItem {
|
|
2
|
+
private configName;
|
|
3
|
+
private label;
|
|
4
|
+
private data;
|
|
5
|
+
constructor(configName: string, label: string, data: {});
|
|
6
|
+
getConfigName(): string;
|
|
7
|
+
getLabel(): string;
|
|
8
|
+
getData(): {};
|
|
9
|
+
}
|
|
10
|
+
export interface IConfigService {
|
|
11
|
+
syncConfigFromDatabaseAsync(configName: string, label: string): Promise<ConfigItem>;
|
|
12
|
+
setConfigAsync(configName: string, label: string, data: {}, withSave: boolean): Promise<ConfigItem>;
|
|
13
|
+
getConfigItem(configName: string, label: string): ConfigItem;
|
|
14
|
+
getConfigDicViaLabel(label: string): Map<string, ConfigItem>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface OnSendMailSuccess {
|
|
2
|
+
(): void;
|
|
3
|
+
}
|
|
4
|
+
export interface OnSendMailError {
|
|
5
|
+
(error: string): void;
|
|
6
|
+
}
|
|
7
|
+
export interface IEmailService {
|
|
8
|
+
sendMail(toEmail: string, subject: string, contentHtml: string, onSendMailSuccess?: OnSendMailSuccess, onSendMailError?: OnSendMailError): Promise<void>;
|
|
9
|
+
sendMailToMore(toEmails: string[], subject: string, contentHtml: string, onSendMailSuccess?: OnSendMailSuccess, onSendMailError?: OnSendMailError): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
export interface OnSendNotificationSuccess {
|
|
2
|
+
(message: string): void;
|
|
3
|
+
}
|
|
4
|
+
export interface OnSendNotificationError {
|
|
5
|
+
(error: string): void;
|
|
6
|
+
}
|
|
1
7
|
export interface IPushNotificationService {
|
|
2
|
-
|
|
3
|
-
|
|
8
|
+
sendNotification(token: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
|
|
9
|
+
[k: string]: any;
|
|
10
|
+
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
11
|
+
sendNotificationToMore(tokens: string[], title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
|
|
12
|
+
[k: string]: any;
|
|
13
|
+
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<string>;
|
|
14
|
+
sendNotificationToTopic(topic: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
|
|
15
|
+
[k: string]: any;
|
|
16
|
+
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
17
|
+
subscribeToTopic(tokens: string[], topic: string, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
18
|
+
unsubscribeFromTopic(tokens: string[], topic: string, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
4
19
|
}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
(): void;
|
|
4
|
-
}
|
|
5
|
-
interface OnSendNotificationError {
|
|
6
|
-
(error: string): void;
|
|
7
|
-
}
|
|
8
|
-
export declare class xPushNotification {
|
|
1
|
+
import { IPushNotificationService, OnSendNotificationError, OnSendNotificationSuccess } from "./IPushNotificationService";
|
|
2
|
+
export declare class PushNotificationService implements IPushNotificationService {
|
|
9
3
|
private isInit;
|
|
10
4
|
private projectId;
|
|
11
5
|
private clientEmail;
|
|
@@ -13,15 +7,16 @@ export declare class xPushNotification {
|
|
|
13
7
|
private messaging;
|
|
14
8
|
private needSetup;
|
|
15
9
|
init(projectId: string, clientEmail: string, privateKey: string): void;
|
|
16
|
-
run(
|
|
10
|
+
run(): Promise<void>;
|
|
17
11
|
sendNotification(token: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
|
|
18
12
|
[k: string]: any;
|
|
19
|
-
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<
|
|
13
|
+
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
20
14
|
sendNotificationToMore(tokens: string[], title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
|
|
21
15
|
[k: string]: any;
|
|
22
|
-
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<
|
|
16
|
+
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<string>;
|
|
23
17
|
sendNotificationToTopic(topic: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: {
|
|
24
18
|
[k: string]: any;
|
|
25
|
-
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<
|
|
19
|
+
}, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
20
|
+
subscribeToTopic(tokens: string[], topic: string, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
21
|
+
unsubscribeFromTopic(tokens: string[], topic: string, onSendNotificationSuccess?: OnSendNotificationSuccess, onSendNotificationError?: OnSendNotificationError): Promise<void>;
|
|
26
22
|
}
|
|
27
|
-
export {};
|
|
@@ -216,4 +216,6 @@ export declare class OperationCode {
|
|
|
216
216
|
static readonly AddPushNotification: number;
|
|
217
217
|
static readonly RemovePushNotification: number;
|
|
218
218
|
static readonly GetPushNotification: number;
|
|
219
|
+
static readonly GetStoreUsed: number;
|
|
220
|
+
static readonly RemoveStoreUsed: number;
|
|
219
221
|
}
|
|
@@ -47,4 +47,6 @@ export declare class GNErrorCode {
|
|
|
47
47
|
static readonly ExecuteError: number;
|
|
48
48
|
static readonly VersionInvalid: number;
|
|
49
49
|
static readonly EmailInvalid: number;
|
|
50
|
+
static readonly StoreItemHadPurchaseAndNonConsumable: number;
|
|
51
|
+
static readonly StoreItemHadExists: number;
|
|
50
52
|
}
|
|
@@ -586,4 +586,8 @@ export declare class GNParameterCode {
|
|
|
586
586
|
static readonly CloudScriptGBs: string;
|
|
587
587
|
static readonly StorageSizeInBytes: string;
|
|
588
588
|
static readonly DataTransferSizeInBytes: string;
|
|
589
|
+
static readonly StoreItemType: string;
|
|
590
|
+
static readonly OwnerIds: string;
|
|
591
|
+
static readonly GetStoreUsed: string;
|
|
592
|
+
static readonly RemoveStoreUsed: string;
|
|
589
593
|
}
|
|
@@ -290,6 +290,7 @@ export interface SecretPermissionItem {
|
|
|
290
290
|
getFriendStatisticsLeaderboard: CharacterPlayerPermissionRules;
|
|
291
291
|
getCurrencyLeaderboard: CharacterPlayerPermissionRules;
|
|
292
292
|
getCreateLeaderboard: CharacterPlayerPermissionRules;
|
|
293
|
+
getLastLoginLeaderboard: CharacterPlayerPermissionRules;
|
|
293
294
|
getStatisticsLog: CharacterPlayerPermissionRules;
|
|
294
295
|
getCurrencyLog: CharacterPlayerPermissionRules;
|
|
295
296
|
};
|
|
@@ -393,6 +394,8 @@ export interface SecretPermissionItem {
|
|
|
393
394
|
getCreateLeaderboard: StoreInventoryPermissionRules;
|
|
394
395
|
presentStoreItem: StoreInventoryPermissionRules;
|
|
395
396
|
getStoreLog: StoreInventoryPermissionRules;
|
|
397
|
+
getStoreUsed: StoreInventoryPermissionRules;
|
|
398
|
+
removeStoreUsed: StoreInventoryPermissionRules;
|
|
396
399
|
};
|
|
397
400
|
masterAdmin: {
|
|
398
401
|
setMasterGameSettings: MasterAdminPermissionRules;
|
|
@@ -20,6 +20,7 @@ interface InAppPurchase {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class StoreInventory extends DataObjectBase {
|
|
22
22
|
private static readonly _storeId;
|
|
23
|
+
private static readonly _storeItemType;
|
|
23
24
|
private static readonly _storeItems;
|
|
24
25
|
private static readonly _storeCurrencies;
|
|
25
26
|
private static readonly _priceCurrencies;
|
|
@@ -28,6 +29,7 @@ export declare class StoreInventory extends DataObjectBase {
|
|
|
28
29
|
private static readonly _removeStatus;
|
|
29
30
|
private readonly storeId;
|
|
30
31
|
private storeItems;
|
|
32
|
+
private storeItemType;
|
|
31
33
|
private storeCurrencies;
|
|
32
34
|
private priceCurrencies;
|
|
33
35
|
private inAppPurchase;
|
|
@@ -62,5 +64,7 @@ export declare class StoreInventory extends DataObjectBase {
|
|
|
62
64
|
getStoreData(key: string): DataItem;
|
|
63
65
|
setStoreData(key: string, value: DataValueType): void;
|
|
64
66
|
removeStoreData(key: string): void;
|
|
67
|
+
getStoreItemType(): number;
|
|
68
|
+
setStoreItemType(storeItemType: number): void;
|
|
65
69
|
}
|
|
66
70
|
export {};
|
|
@@ -3,8 +3,11 @@ import { MongoObject } from "./MongoObject";
|
|
|
3
3
|
import { RemoveStatusItem } from "./RemoveStatusItem";
|
|
4
4
|
interface FileUpload {
|
|
5
5
|
mimeType: string;
|
|
6
|
-
size:
|
|
6
|
+
size: number;
|
|
7
7
|
folderFileName: string;
|
|
8
|
+
fullPath: string;
|
|
9
|
+
shortPath: string;
|
|
10
|
+
tsUploadFile: number;
|
|
8
11
|
}
|
|
9
12
|
export declare class UploadFileInfo extends MongoObject {
|
|
10
13
|
private static readonly _fileId;
|
|
@@ -35,6 +38,5 @@ export declare class UploadFileInfo extends MongoObject {
|
|
|
35
38
|
getRemoveStatus(): RemoveStatusItem;
|
|
36
39
|
setRemoveStatus(tsRemove: number, reason?: string): void;
|
|
37
40
|
getFileUpload(): FileUpload;
|
|
38
|
-
setUploadFile(mimeType: string, size: string, folderFileName: string): void;
|
|
39
41
|
}
|
|
40
42
|
export {};
|