@xmobitea/gn-server 2.4.15 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/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-common/constant/OperationCode.d.ts +2 -0
- 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/findOptions/StoreInventoryFindOptions.d.ts +1 -0
- package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +12 -0
- package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +17 -2
- package/dist/GN-startup/cloudScript/templateCloudScript.ts +171 -165
- package/dist/GN-startup/cloudScript/templateEventCallback.ts +231 -225
- package/dist/GN-startup/settings/ApplicationSettings.d.ts +3 -0
- package/dist/GNServer.d.ts +4 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1183 -447
- package/gn.sh +2 -2
- package/package.json +2 -5
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -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 {};
|
|
@@ -123,6 +123,7 @@ export declare class xDatabase {
|
|
|
123
123
|
loadCharacterPlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, catalogId: string, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
124
124
|
loadCharacterPlayersLeaderboardWithStatisticsAllAsync(key: string, catalogId: string, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
125
125
|
loadCharacterPlayersLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
126
|
+
loadCharacterPlayersLeaderboardWithLastLoginAsync(skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
126
127
|
loadCharacterPlayersLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, catalogId: string, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
127
128
|
loadPositionCharacterPlayerLeaderboardWithStatisticsAsync(key: string, characterId: string, catalogId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
|
|
128
129
|
loadPositionCharacterPlayerLeaderboardWithCurrenciesAsync(key: string, userId: string, catalogId: string, gameId: string): Promise<number>;
|
|
@@ -200,6 +201,17 @@ export declare class xDatabase {
|
|
|
200
201
|
}[], gameId: string): Promise<void>;
|
|
201
202
|
loadInventoryStatisticsLogAsync($filter: {}, gameId: string, limit: number): Promise<mongoDB.FindCursor<mongoDB.WithId<mongoDB.BSON.Document>>>;
|
|
202
203
|
private convertToStoreInventories;
|
|
204
|
+
getStoreInventoryUsedAsync(storeId: string, gameId: string): Promise<{
|
|
205
|
+
storeId: string;
|
|
206
|
+
useIds: {
|
|
207
|
+
id: string;
|
|
208
|
+
type: number;
|
|
209
|
+
tsCreate: number;
|
|
210
|
+
}[];
|
|
211
|
+
}>;
|
|
212
|
+
insertStoreInventoryUsedAsync(storeId: string, gameId: string, ownerId: string, ownerType: number): Promise<void>;
|
|
213
|
+
removeStoreInventoryUsedAsync(storeId: string, gameId: string, ownerIds: string[]): Promise<void>;
|
|
214
|
+
getCountStoreInventoryUsedAsync(storeId: string, gameId: string, ownerId: string): Promise<number>;
|
|
203
215
|
loadStoreInventoryAsync(storeId: string, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<StoreInventory>;
|
|
204
216
|
loadStoreInventoryByFacebookStoreAsync(productId: string, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<StoreInventory>;
|
|
205
217
|
loadStoreInventoryByAppleAppStoreAsync(productId: string, gameId: string, storeInventoryFindOptions?: StoreInventoryFindOptions): Promise<StoreInventory>;
|
|
@@ -216,6 +216,11 @@
|
|
|
216
216
|
"script": "\npreHandlers.characterPlayer_GetIpAddressCreate = async (request: { characterId: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetIpAddressCreate = async (request: { characterId: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
217
217
|
"hasEdit": false
|
|
218
218
|
},
|
|
219
|
+
{
|
|
220
|
+
"eventName": "characterPlayer_GetLastLoginLeaderboard",
|
|
221
|
+
"script": "\npreHandlers.characterPlayer_GetLastLoginLeaderboard = async (request: { skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetLastLoginLeaderboard = async (request: { skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
222
|
+
"hasEdit": false
|
|
223
|
+
},
|
|
219
224
|
{
|
|
220
225
|
"eventName": "characterPlayer_GetOwner",
|
|
221
226
|
"script": "\npreHandlers.characterPlayer_GetOwner = async (request: { characterId: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetOwner = async (request: { characterId: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
@@ -248,7 +253,7 @@
|
|
|
248
253
|
},
|
|
249
254
|
{
|
|
250
255
|
"eventName": "characterPlayer_GetPlayerInformation",
|
|
251
|
-
"script": "\npreHandlers.characterPlayer_GetPlayerInformation = async (request: { characterId: string, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetPlayerInformation = async (request: { characterId: string, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
256
|
+
"script": "\npreHandlers.characterPlayer_GetPlayerInformation = async (request: { characterId: string, infoRequestParam: characterPlayer_InfoRequestParam, updateTsLastLogin: boolean }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetPlayerInformation = async (request: { characterId: string, infoRequestParam: characterPlayer_InfoRequestParam, updateTsLastLogin: boolean }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
252
257
|
"hasEdit": false
|
|
253
258
|
},
|
|
254
259
|
{
|
|
@@ -1808,6 +1813,11 @@
|
|
|
1808
1813
|
"script": "\npreHandlers.storeInventory_GetStoreLog = async (request: { storeId: string; storeReceiveTypes: Array<number>; id: string; limit: number; token: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_GetStoreLog = async (request: { storeId: string; storeReceiveTypes: Array<number>; id: string; limit: number; token: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1809
1814
|
"hasEdit": false
|
|
1810
1815
|
},
|
|
1816
|
+
{
|
|
1817
|
+
"eventName": "storeInventory_GetStoreUsed",
|
|
1818
|
+
"script": "\npreHandlers.storeInventory_GetStoreUsed = async (request: { storeId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_GetStoreUsed = async (request: { storeId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1819
|
+
"hasEdit": false
|
|
1820
|
+
},
|
|
1811
1821
|
{
|
|
1812
1822
|
"eventName": "storeInventory_GrantStoreItem",
|
|
1813
1823
|
"script": "\npreHandlers.storeInventory_GrantStoreItem = async (request: { storeId: string, displayName: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_GrantStoreItem = async (request: { storeId: string, displayName: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
@@ -1818,6 +1828,11 @@
|
|
|
1818
1828
|
"script": "\npreHandlers.storeInventory_PresentStoreItem = async (request: { storeId: string, id: string, type: number, log: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_PresentStoreItem = async (request: { storeId: string, id: string, type: number, log: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1819
1829
|
"hasEdit": false
|
|
1820
1830
|
},
|
|
1831
|
+
{
|
|
1832
|
+
"eventName": "storeInventory_RemoveStoreUsed",
|
|
1833
|
+
"script": "\npreHandlers.storeInventory_RemoveStoreUsed = async (request: { storeId: string, ownerIds: string[] }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_RemoveStoreUsed = async (request: { storeId: string, ownerIds: string[] }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1834
|
+
"hasEdit": false
|
|
1835
|
+
},
|
|
1821
1836
|
{
|
|
1822
1837
|
"eventName": "storeInventory_SetRemoveStatus",
|
|
1823
1838
|
"script": "\npreHandlers.storeInventory_SetRemoveStatus = async (request: { storeId: string, reason: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_SetRemoveStatus = async (request: { storeId: string, reason: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
@@ -1825,7 +1840,7 @@
|
|
|
1825
1840
|
},
|
|
1826
1841
|
{
|
|
1827
1842
|
"eventName": "storeInventory_SetStoreItemInformation",
|
|
1828
|
-
"script": "\npreHandlers.storeInventory_SetStoreItemInformation = async (request: { storeId: string, storeDataParams: Array<StoreDataParam>, storeItemParams: Array<StoreItemParam>, storeCurrencyParams: Array<CurrencyParam>, priceCurrencyParams: Array<CurrencyParam>, inAppPurchaseParam: InAppPurchaseParam, displayName: string, avatarParam: AvatarParam, tagParams: Array<TagParam> }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_SetStoreItemInformation = async (request: { storeId: string, storeDataParams: Array<StoreDataParam>, storeItemParams: Array<StoreItemParam>, storeCurrencyParams: Array<CurrencyParam>, priceCurrencyParams: Array<CurrencyParam>, inAppPurchaseParam: InAppPurchaseParam, displayName: string, avatarParam: AvatarParam, tagParams: Array<TagParam> }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1843
|
+
"script": "\npreHandlers.storeInventory_SetStoreItemInformation = async (request: { storeId: string, storeItemType: number, storeDataParams: Array<StoreDataParam>, storeItemParams: Array<StoreItemParam>, storeCurrencyParams: Array<CurrencyParam>, priceCurrencyParams: Array<CurrencyParam>, inAppPurchaseParam: InAppPurchaseParam, displayName: string, avatarParam: AvatarParam, tagParams: Array<TagParam> }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.storeInventory_SetStoreItemInformation = async (request: { storeId: string, storeItemType: number, storeDataParams: Array<StoreDataParam>, storeItemParams: Array<StoreItemParam>, storeCurrencyParams: Array<CurrencyParam>, priceCurrencyParams: Array<CurrencyParam>, inAppPurchaseParam: InAppPurchaseParam, displayName: string, avatarParam: AvatarParam, tagParams: Array<TagParam> }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1829
1844
|
"hasEdit": false
|
|
1830
1845
|
},
|
|
1831
1846
|
{
|