gs2-cdk 1.0.60 → 1.0.62
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/guild/ref/GuildModelRef.d.ts +5 -0
- package/guild/ref/GuildModelRef.js +8 -0
- package/guild/ref/GuildModelRef.js.map +1 -1
- package/guild/ref/GuildModelRef.ts +33 -0
- package/guild/ref/GuildRef.d.ts +5 -0
- package/guild/ref/GuildRef.js +10 -0
- package/guild/ref/GuildRef.js.map +1 -1
- package/guild/ref/GuildRef.ts +34 -0
- package/guild/ref/NamespaceRef.d.ts +5 -0
- package/guild/ref/NamespaceRef.js +8 -0
- package/guild/ref/NamespaceRef.js.map +1 -1
- package/guild/ref/NamespaceRef.ts +35 -0
- package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.d.ts +15 -0
- package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.js +58 -0
- package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.js.map +1 -0
- package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.ts +76 -0
- package/guild/stampSheet/VerifyIncludeMemberByUserId.d.ts +15 -0
- package/guild/stampSheet/VerifyIncludeMemberByUserId.js +55 -0
- package/guild/stampSheet/VerifyIncludeMemberByUserId.js.map +1 -0
- package/guild/stampSheet/VerifyIncludeMemberByUserId.ts +73 -0
- package/guild/stampSheet/enum/GuildVerifyType.d.ts +5 -0
- package/guild/stampSheet/enum/GuildVerifyType.js +23 -0
- package/guild/stampSheet/enum/GuildVerifyType.js.map +1 -0
- package/guild/stampSheet/enum/GuildVerifyType.ts +23 -0
- package/guild/stampSheet/index.d.ts +3 -1
- package/guild/stampSheet/index.js +5 -1
- package/guild/stampSheet/index.js.map +1 -1
- package/guild/stampSheet/index.ts +4 -0
- package/idle/ref/NamespaceRef.d.ts +3 -0
- package/idle/ref/NamespaceRef.js +4 -0
- package/idle/ref/NamespaceRef.js.map +1 -1
- package/idle/ref/NamespaceRef.ts +15 -0
- package/idle/stampSheet/ReceiveByUserId.d.ts +14 -0
- package/idle/stampSheet/ReceiveByUserId.js +54 -0
- package/idle/stampSheet/ReceiveByUserId.js.map +1 -0
- package/idle/stampSheet/ReceiveByUserId.ts +71 -0
- package/idle/stampSheet/index.d.ts +2 -1
- package/idle/stampSheet/index.js +3 -1
- package/idle/stampSheet/index.js.map +1 -1
- package/idle/stampSheet/index.ts +2 -0
- package/mission/ref/NamespaceRef.d.ts +3 -0
- package/mission/ref/NamespaceRef.js +4 -0
- package/mission/ref/NamespaceRef.js.map +1 -1
- package/mission/ref/NamespaceRef.ts +19 -0
- package/mission/stampSheet/VerifyCompleteByUserId.d.ts +16 -0
- package/mission/stampSheet/VerifyCompleteByUserId.js +62 -0
- package/mission/stampSheet/VerifyCompleteByUserId.js.map +1 -0
- package/mission/stampSheet/VerifyCompleteByUserId.ts +82 -0
- package/mission/stampSheet/enum/CompleteVerifyType.d.ts +8 -0
- package/mission/stampSheet/enum/CompleteVerifyType.js +26 -0
- package/mission/stampSheet/enum/CompleteVerifyType.js.map +1 -0
- package/mission/stampSheet/enum/CompleteVerifyType.ts +26 -0
- package/mission/stampSheet/index.d.ts +2 -1
- package/mission/stampSheet/index.js +3 -1
- package/mission/stampSheet/index.js.map +1 -1
- package/mission/stampSheet/index.ts +2 -0
- package/package.json +1 -1
- package/ranking2/index.d.ts +12 -0
- package/ranking2/index.js +32 -0
- package/ranking2/index.js.map +1 -0
- package/ranking2/index.ts +36 -0
- package/ranking2/model/ClusterRankingModel.d.ts +19 -0
- package/ranking2/model/ClusterRankingModel.js +59 -0
- package/ranking2/model/ClusterRankingModel.js.map +1 -0
- package/ranking2/model/ClusterRankingModel.ts +91 -0
- package/ranking2/model/CurrentMasterData.d.ts +17 -0
- package/ranking2/model/CurrentMasterData.js +58 -0
- package/ranking2/model/CurrentMasterData.js.map +1 -0
- package/ranking2/model/CurrentMasterData.ts +86 -0
- package/ranking2/model/GlobalRankingModel.d.ts +17 -0
- package/ranking2/model/GlobalRankingModel.js +55 -0
- package/ranking2/model/GlobalRankingModel.js.map +1 -0
- package/ranking2/model/GlobalRankingModel.ts +84 -0
- package/ranking2/model/Namespace.d.ts +23 -0
- package/ranking2/model/Namespace.js +72 -0
- package/ranking2/model/Namespace.js.map +1 -0
- package/ranking2/model/Namespace.ts +121 -0
- package/ranking2/model/RankingReward.d.ts +10 -0
- package/ranking2/model/RankingReward.js +27 -0
- package/ranking2/model/RankingReward.js.map +1 -0
- package/ranking2/model/RankingReward.ts +50 -0
- package/ranking2/model/SubscribeRankingModel.d.ts +16 -0
- package/ranking2/model/SubscribeRankingModel.js +50 -0
- package/ranking2/model/SubscribeRankingModel.js.map +1 -0
- package/ranking2/model/SubscribeRankingModel.ts +76 -0
- package/ranking2/model/enum/ClusterRankingModelClusterType.d.ts +5 -0
- package/ranking2/model/enum/ClusterRankingModelClusterType.js +23 -0
- package/ranking2/model/enum/ClusterRankingModelClusterType.js.map +1 -0
- package/ranking2/model/enum/ClusterRankingModelClusterType.ts +23 -0
- package/ranking2/model/enum/ClusterRankingModelOrderDirection.d.ts +5 -0
- package/ranking2/model/enum/ClusterRankingModelOrderDirection.js +23 -0
- package/ranking2/model/enum/ClusterRankingModelOrderDirection.js.map +1 -0
- package/ranking2/model/enum/ClusterRankingModelOrderDirection.ts +23 -0
- package/ranking2/model/enum/GlobalRankingModelOrderDirection.d.ts +5 -0
- package/ranking2/model/enum/GlobalRankingModelOrderDirection.js +23 -0
- package/ranking2/model/enum/GlobalRankingModelOrderDirection.js.map +1 -0
- package/ranking2/model/enum/GlobalRankingModelOrderDirection.ts +23 -0
- package/ranking2/model/enum/SubscribeRankingModelOrderDirection.d.ts +5 -0
- package/ranking2/model/enum/SubscribeRankingModelOrderDirection.js +23 -0
- package/ranking2/model/enum/SubscribeRankingModelOrderDirection.js.map +1 -0
- package/ranking2/model/enum/SubscribeRankingModelOrderDirection.ts +23 -0
- package/ranking2/model/index.d.ts +16 -0
- package/ranking2/model/index.js +40 -0
- package/ranking2/model/index.js.map +1 -0
- package/ranking2/model/index.ts +48 -0
- package/ranking2/model/options/ClusterRankingModelOptions.d.ts +9 -0
- package/ranking2/model/options/ClusterRankingModelOptions.js +3 -0
- package/ranking2/model/options/ClusterRankingModelOptions.js.map +1 -0
- package/ranking2/model/options/ClusterRankingModelOptions.ts +29 -0
- package/ranking2/model/options/GlobalRankingModelOptions.d.ts +9 -0
- package/ranking2/model/options/GlobalRankingModelOptions.js +3 -0
- package/ranking2/model/options/GlobalRankingModelOptions.js.map +1 -0
- package/ranking2/model/options/GlobalRankingModelOptions.ts +28 -0
- package/ranking2/model/options/NamespaceOptions.d.ts +7 -0
- package/ranking2/model/options/NamespaceOptions.js +3 -0
- package/ranking2/model/options/NamespaceOptions.js.map +1 -0
- package/ranking2/model/options/NamespaceOptions.ts +24 -0
- package/ranking2/model/options/RankingRewardOptions.d.ts +5 -0
- package/ranking2/model/options/RankingRewardOptions.js +3 -0
- package/ranking2/model/options/RankingRewardOptions.js.map +1 -0
- package/ranking2/model/options/RankingRewardOptions.ts +22 -0
- package/ranking2/model/options/SubscribeRankingModelOptions.d.ts +7 -0
- package/ranking2/model/options/SubscribeRankingModelOptions.js +3 -0
- package/ranking2/model/options/SubscribeRankingModelOptions.js.map +1 -0
- package/ranking2/model/options/SubscribeRankingModelOptions.ts +25 -0
- package/ranking2/ref/ClusterRankingBorderRef.d.ts +8 -0
- package/ranking2/ref/ClusterRankingBorderRef.js +47 -0
- package/ranking2/ref/ClusterRankingBorderRef.js.map +1 -0
- package/ranking2/ref/ClusterRankingBorderRef.ts +65 -0
- package/ranking2/ref/ClusterRankingModelRef.d.ts +6 -0
- package/ranking2/ref/ClusterRankingModelRef.js +38 -0
- package/ranking2/ref/ClusterRankingModelRef.js.map +1 -0
- package/ranking2/ref/ClusterRankingModelRef.ts +53 -0
- package/ranking2/ref/ClusterRankingSeasonRef.d.ts +8 -0
- package/ranking2/ref/ClusterRankingSeasonRef.js +46 -0
- package/ranking2/ref/ClusterRankingSeasonRef.js.map +1 -0
- package/ranking2/ref/ClusterRankingSeasonRef.ts +65 -0
- package/ranking2/ref/GlobalRankingBorderRef.d.ts +7 -0
- package/ranking2/ref/GlobalRankingBorderRef.js +45 -0
- package/ranking2/ref/GlobalRankingBorderRef.js.map +1 -0
- package/ranking2/ref/GlobalRankingBorderRef.ts +61 -0
- package/ranking2/ref/GlobalRankingModelRef.d.ts +6 -0
- package/ranking2/ref/GlobalRankingModelRef.js +38 -0
- package/ranking2/ref/GlobalRankingModelRef.js.map +1 -0
- package/ranking2/ref/GlobalRankingModelRef.ts +53 -0
- package/ranking2/ref/GlobalRankingSeasonRef.d.ts +7 -0
- package/ranking2/ref/GlobalRankingSeasonRef.js +44 -0
- package/ranking2/ref/GlobalRankingSeasonRef.js.map +1 -0
- package/ranking2/ref/GlobalRankingSeasonRef.ts +61 -0
- package/ranking2/ref/NamespaceRef.d.ts +15 -0
- package/ranking2/ref/NamespaceRef.js +56 -0
- package/ranking2/ref/NamespaceRef.js.map +1 -0
- package/ranking2/ref/NamespaceRef.ts +107 -0
- package/ranking2/ref/SubscribeRankingModelRef.d.ts +6 -0
- package/ranking2/ref/SubscribeRankingModelRef.js +38 -0
- package/ranking2/ref/SubscribeRankingModelRef.js.map +1 -0
- package/ranking2/ref/SubscribeRankingModelRef.ts +52 -0
- package/ranking2/ref/index.d.ts +9 -0
- package/ranking2/ref/index.js +36 -0
- package/ranking2/ref/index.js.map +1 -0
- package/ranking2/ref/index.ts +34 -0
- package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.d.ts +14 -0
- package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.js +58 -0
- package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.js.map +1 -0
- package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.ts +75 -0
- package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.d.ts +13 -0
- package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.js +54 -0
- package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.js.map +1 -0
- package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.ts +69 -0
- package/ranking2/stampSheet/index.d.ts +3 -0
- package/ranking2/stampSheet/index.js +24 -0
- package/ranking2/stampSheet/index.js.map +1 -0
- package/ranking2/stampSheet/index.ts +22 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { AcquireAction } from "../../core/model";
|
|
17
|
+
import RankingReward from "./RankingReward";
|
|
18
|
+
import { GlobalRankingModelOptions } from "./options/GlobalRankingModelOptions";
|
|
19
|
+
import { GlobalRankingModelOrderDirection } from "./enum/GlobalRankingModelOrderDirection";
|
|
20
|
+
|
|
21
|
+
export default class GlobalRankingModel {
|
|
22
|
+
private readonly name: string;
|
|
23
|
+
private readonly sum: boolean;
|
|
24
|
+
private readonly orderDirection: GlobalRankingModelOrderDirection;
|
|
25
|
+
private readonly metadata: string|null = null;
|
|
26
|
+
private readonly minimumValue: number|null = null;
|
|
27
|
+
private readonly maximumValue: number|null = null;
|
|
28
|
+
private readonly entryPeriodEventId: string|null = null;
|
|
29
|
+
private readonly rankingRewards: RankingReward[]|null = null;
|
|
30
|
+
private readonly accessPeriodEventId: string|null = null;
|
|
31
|
+
|
|
32
|
+
public constructor(
|
|
33
|
+
name: string,
|
|
34
|
+
sum: boolean,
|
|
35
|
+
orderDirection: GlobalRankingModelOrderDirection,
|
|
36
|
+
options: GlobalRankingModelOptions|null = null,
|
|
37
|
+
) {
|
|
38
|
+
this.name = name;
|
|
39
|
+
this.sum = sum;
|
|
40
|
+
this.orderDirection = orderDirection;
|
|
41
|
+
this.metadata = options?.metadata ?? null;
|
|
42
|
+
this.minimumValue = options?.minimumValue ?? null;
|
|
43
|
+
this.maximumValue = options?.maximumValue ?? null;
|
|
44
|
+
this.entryPeriodEventId = options?.entryPeriodEventId ?? null;
|
|
45
|
+
this.rankingRewards = options?.rankingRewards ?? null;
|
|
46
|
+
this.accessPeriodEventId = options?.accessPeriodEventId ?? null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public properties(
|
|
50
|
+
): {[name: string]: any} {
|
|
51
|
+
let properties: {[name: string]: any} = {};
|
|
52
|
+
|
|
53
|
+
if (this.name != null) {
|
|
54
|
+
properties["name"] = this.name;
|
|
55
|
+
}
|
|
56
|
+
if (this.metadata != null) {
|
|
57
|
+
properties["metadata"] = this.metadata;
|
|
58
|
+
}
|
|
59
|
+
if (this.minimumValue != null) {
|
|
60
|
+
properties["minimumValue"] = this.minimumValue;
|
|
61
|
+
}
|
|
62
|
+
if (this.maximumValue != null) {
|
|
63
|
+
properties["maximumValue"] = this.maximumValue;
|
|
64
|
+
}
|
|
65
|
+
if (this.sum != null) {
|
|
66
|
+
properties["sum"] = this.sum;
|
|
67
|
+
}
|
|
68
|
+
if (this.orderDirection != null) {
|
|
69
|
+
properties["orderDirection"] = this.orderDirection;
|
|
70
|
+
}
|
|
71
|
+
if (this.entryPeriodEventId != null) {
|
|
72
|
+
properties["entryPeriodEventId"] = this.entryPeriodEventId;
|
|
73
|
+
}
|
|
74
|
+
if (this.rankingRewards != null) {
|
|
75
|
+
properties["rankingRewards"] = this.rankingRewards.map(v => v.properties(
|
|
76
|
+
));
|
|
77
|
+
}
|
|
78
|
+
if (this.accessPeriodEventId != null) {
|
|
79
|
+
properties["accessPeriodEventId"] = this.accessPeriodEventId;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return properties;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import { GetAttr } from "../../core/func";
|
|
3
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
4
|
+
import GlobalRankingModel from "./GlobalRankingModel";
|
|
5
|
+
import ClusterRankingModel from "./ClusterRankingModel";
|
|
6
|
+
import SubscribeRankingModel from "./SubscribeRankingModel";
|
|
7
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
8
|
+
export default class Namespace extends CdkResource {
|
|
9
|
+
private readonly stack;
|
|
10
|
+
private readonly name;
|
|
11
|
+
private readonly description;
|
|
12
|
+
private readonly transactionSetting;
|
|
13
|
+
private readonly logSetting;
|
|
14
|
+
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
15
|
+
alternateKeys(): string;
|
|
16
|
+
resourceType(): string;
|
|
17
|
+
properties(): {
|
|
18
|
+
[name: string]: any;
|
|
19
|
+
};
|
|
20
|
+
ref(): NamespaceRef;
|
|
21
|
+
getAttrNamespaceId(): GetAttr;
|
|
22
|
+
masterData(globalRankingModels: GlobalRankingModel[], clusterRankingModels: ClusterRankingModel[], subscribeRankingModels: SubscribeRankingModel[]): Namespace;
|
|
23
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const tslib_1 = require("tslib");
|
|
19
|
+
const model_1 = require("../../core/model");
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
22
|
+
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
23
|
+
class Namespace extends model_1.CdkResource {
|
|
24
|
+
constructor(stack, name, options = null) {
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
super("Ranking2_Namespace_" + name);
|
|
27
|
+
this.description = null;
|
|
28
|
+
this.transactionSetting = null;
|
|
29
|
+
this.logSetting = null;
|
|
30
|
+
this.stack = stack;
|
|
31
|
+
this.name = name;
|
|
32
|
+
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
33
|
+
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
34
|
+
this.logSetting = (_c = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _c !== void 0 ? _c : null;
|
|
35
|
+
stack.addResource(this);
|
|
36
|
+
}
|
|
37
|
+
alternateKeys() {
|
|
38
|
+
return "name";
|
|
39
|
+
}
|
|
40
|
+
resourceType() {
|
|
41
|
+
return "GS2::Ranking2::Namespace";
|
|
42
|
+
}
|
|
43
|
+
properties() {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
let properties = {};
|
|
46
|
+
if (this.name != null) {
|
|
47
|
+
properties["Name"] = this.name;
|
|
48
|
+
}
|
|
49
|
+
if (this.description != null) {
|
|
50
|
+
properties["Description"] = this.description;
|
|
51
|
+
}
|
|
52
|
+
if (this.transactionSetting != null) {
|
|
53
|
+
properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
|
|
54
|
+
}
|
|
55
|
+
if (this.logSetting != null) {
|
|
56
|
+
properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
|
|
57
|
+
}
|
|
58
|
+
return properties;
|
|
59
|
+
}
|
|
60
|
+
ref() {
|
|
61
|
+
return new NamespaceRef_1.default(this.name);
|
|
62
|
+
}
|
|
63
|
+
getAttrNamespaceId() {
|
|
64
|
+
return new func_1.GetAttr(this, "Item.NamespaceId", null);
|
|
65
|
+
}
|
|
66
|
+
masterData(globalRankingModels, clusterRankingModels, subscribeRankingModels) {
|
|
67
|
+
new CurrentMasterData_1.default(this.stack, this.name, globalRankingModels, clusterRankingModels, subscribeRankingModels).addDependsOn(this);
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.default = Namespace;
|
|
72
|
+
//# sourceMappingURL=Namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;AAOpD,MAAqB,SAAU,SAAQ,mBAAW;IAO9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B,CAAC;QAXW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,IAAI,CAAC;QAC9C,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAGM,aAAa;QAEhB,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,YAAY;QAEf,OAAO,0BAA0B,CAAC;IACtC,CAAC;IAEM,UAAU;;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,mBAAyC,EACzC,oBAA2C,EAC3C,sBAA+C;QAE/C,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,CACzB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA3FD,4BA2FC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import {CdkResource, Stack} from "../../core/model";
|
|
18
|
+
import {GetAttr} from "../../core/func";
|
|
19
|
+
import TransactionSetting from "../../core/model/TransactionSetting";
|
|
20
|
+
import LogSetting from "../../core/model/LogSetting";
|
|
21
|
+
|
|
22
|
+
import NamespaceRef from "../ref/NamespaceRef";
|
|
23
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
24
|
+
import GlobalRankingModel from "./GlobalRankingModel";
|
|
25
|
+
import ClusterRankingModel from "./ClusterRankingModel";
|
|
26
|
+
import SubscribeRankingModel from "./SubscribeRankingModel";
|
|
27
|
+
|
|
28
|
+
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
29
|
+
|
|
30
|
+
export default class Namespace extends CdkResource {
|
|
31
|
+
private readonly stack: Stack;
|
|
32
|
+
private readonly name: string;
|
|
33
|
+
private readonly description: string|null = null;
|
|
34
|
+
private readonly transactionSetting: TransactionSetting|null = null;
|
|
35
|
+
private readonly logSetting: LogSetting|null = null;
|
|
36
|
+
|
|
37
|
+
public constructor(
|
|
38
|
+
stack: Stack,
|
|
39
|
+
name: string,
|
|
40
|
+
options: NamespaceOptions|null = null,
|
|
41
|
+
) {
|
|
42
|
+
super(
|
|
43
|
+
"Ranking2_Namespace_" + name
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
this.stack = stack;
|
|
47
|
+
this.name = name;
|
|
48
|
+
this.description = options?.description ?? null;
|
|
49
|
+
this.transactionSetting = options?.transactionSetting ?? null;
|
|
50
|
+
this.logSetting = options?.logSetting ?? null;
|
|
51
|
+
stack.addResource(
|
|
52
|
+
this,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
public alternateKeys(
|
|
58
|
+
) {
|
|
59
|
+
return "name";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public resourceType(
|
|
63
|
+
): string {
|
|
64
|
+
return "GS2::Ranking2::Namespace";
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public properties(
|
|
68
|
+
): {[name: string]: any} {
|
|
69
|
+
let properties: {[name: string]: any} = {};
|
|
70
|
+
|
|
71
|
+
if (this.name != null) {
|
|
72
|
+
properties["Name"] = this.name;
|
|
73
|
+
}
|
|
74
|
+
if (this.description != null) {
|
|
75
|
+
properties["Description"] = this.description;
|
|
76
|
+
}
|
|
77
|
+
if (this.transactionSetting != null) {
|
|
78
|
+
properties["TransactionSetting"] = this.transactionSetting?.properties(
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
if (this.logSetting != null) {
|
|
82
|
+
properties["LogSetting"] = this.logSetting?.properties(
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return properties;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public ref(
|
|
90
|
+
): NamespaceRef {
|
|
91
|
+
return new NamespaceRef(
|
|
92
|
+
this.name!,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
public getAttrNamespaceId(
|
|
97
|
+
): GetAttr {
|
|
98
|
+
return new GetAttr(
|
|
99
|
+
this,
|
|
100
|
+
"Item.NamespaceId",
|
|
101
|
+
null,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public masterData(
|
|
106
|
+
globalRankingModels: GlobalRankingModel[],
|
|
107
|
+
clusterRankingModels: ClusterRankingModel[],
|
|
108
|
+
subscribeRankingModels: SubscribeRankingModel[],
|
|
109
|
+
): Namespace {
|
|
110
|
+
new CurrentMasterData(
|
|
111
|
+
this.stack,
|
|
112
|
+
this.name,
|
|
113
|
+
globalRankingModels,
|
|
114
|
+
clusterRankingModels,
|
|
115
|
+
subscribeRankingModels,
|
|
116
|
+
).addDependsOn(
|
|
117
|
+
this,
|
|
118
|
+
);
|
|
119
|
+
return this;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RankingRewardOptions } from "./options/RankingRewardOptions";
|
|
2
|
+
export default class RankingReward {
|
|
3
|
+
private readonly thresholdRank;
|
|
4
|
+
private readonly metadata;
|
|
5
|
+
private readonly acquireActions;
|
|
6
|
+
constructor(thresholdRank: number, options?: RankingRewardOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class RankingReward {
|
|
4
|
+
constructor(thresholdRank, options = null) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.acquireActions = null;
|
|
8
|
+
this.thresholdRank = thresholdRank;
|
|
9
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
this.acquireActions = (_b = options === null || options === void 0 ? void 0 : options.acquireActions) !== null && _b !== void 0 ? _b : null;
|
|
11
|
+
}
|
|
12
|
+
properties() {
|
|
13
|
+
let properties = {};
|
|
14
|
+
if (this.thresholdRank != null) {
|
|
15
|
+
properties["thresholdRank"] = this.thresholdRank;
|
|
16
|
+
}
|
|
17
|
+
if (this.metadata != null) {
|
|
18
|
+
properties["metadata"] = this.metadata;
|
|
19
|
+
}
|
|
20
|
+
if (this.acquireActions != null) {
|
|
21
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties());
|
|
22
|
+
}
|
|
23
|
+
return properties;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.default = RankingReward;
|
|
27
|
+
//# sourceMappingURL=RankingReward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RankingReward.js","sourceRoot":"","sources":["RankingReward.ts"],"names":[],"mappings":";;AAkBA,MAAqB,aAAa;IAK9B,YACI,aAAqB,EACrB,UAAqC,IAAI;;QAL5B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,mBAAc,GAAyB,IAAI,CAAC;QAMzD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;IAC1D,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA/BD,gCA+BC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { AcquireAction } from "../../core/model";
|
|
17
|
+
import { RankingRewardOptions } from "./options/RankingRewardOptions";
|
|
18
|
+
|
|
19
|
+
export default class RankingReward {
|
|
20
|
+
private readonly thresholdRank: number;
|
|
21
|
+
private readonly metadata: string|null = null;
|
|
22
|
+
private readonly acquireActions: AcquireAction[]|null = null;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
thresholdRank: number,
|
|
26
|
+
options: RankingRewardOptions|null = null,
|
|
27
|
+
) {
|
|
28
|
+
this.thresholdRank = thresholdRank;
|
|
29
|
+
this.metadata = options?.metadata ?? null;
|
|
30
|
+
this.acquireActions = options?.acquireActions ?? null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public properties(
|
|
34
|
+
): {[name: string]: any} {
|
|
35
|
+
let properties: {[name: string]: any} = {};
|
|
36
|
+
|
|
37
|
+
if (this.thresholdRank != null) {
|
|
38
|
+
properties["thresholdRank"] = this.thresholdRank;
|
|
39
|
+
}
|
|
40
|
+
if (this.metadata != null) {
|
|
41
|
+
properties["metadata"] = this.metadata;
|
|
42
|
+
}
|
|
43
|
+
if (this.acquireActions != null) {
|
|
44
|
+
properties["acquireActions"] = this.acquireActions.map(v => v.properties(
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return properties;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SubscribeRankingModelOptions } from "./options/SubscribeRankingModelOptions";
|
|
2
|
+
import { SubscribeRankingModelOrderDirection } from "./enum/SubscribeRankingModelOrderDirection";
|
|
3
|
+
export default class SubscribeRankingModel {
|
|
4
|
+
private readonly name;
|
|
5
|
+
private readonly sum;
|
|
6
|
+
private readonly orderDirection;
|
|
7
|
+
private readonly metadata;
|
|
8
|
+
private readonly minimumValue;
|
|
9
|
+
private readonly maximumValue;
|
|
10
|
+
private readonly entryPeriodEventId;
|
|
11
|
+
private readonly accessPeriodEventId;
|
|
12
|
+
constructor(name: string, sum: boolean, orderDirection: SubscribeRankingModelOrderDirection, options?: SubscribeRankingModelOptions | null);
|
|
13
|
+
properties(): {
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class SubscribeRankingModel {
|
|
4
|
+
constructor(name, sum, orderDirection, options = null) {
|
|
5
|
+
var _a, _b, _c, _d, _e;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.minimumValue = null;
|
|
8
|
+
this.maximumValue = null;
|
|
9
|
+
this.entryPeriodEventId = null;
|
|
10
|
+
this.accessPeriodEventId = null;
|
|
11
|
+
this.name = name;
|
|
12
|
+
this.sum = sum;
|
|
13
|
+
this.orderDirection = orderDirection;
|
|
14
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
15
|
+
this.minimumValue = (_b = options === null || options === void 0 ? void 0 : options.minimumValue) !== null && _b !== void 0 ? _b : null;
|
|
16
|
+
this.maximumValue = (_c = options === null || options === void 0 ? void 0 : options.maximumValue) !== null && _c !== void 0 ? _c : null;
|
|
17
|
+
this.entryPeriodEventId = (_d = options === null || options === void 0 ? void 0 : options.entryPeriodEventId) !== null && _d !== void 0 ? _d : null;
|
|
18
|
+
this.accessPeriodEventId = (_e = options === null || options === void 0 ? void 0 : options.accessPeriodEventId) !== null && _e !== void 0 ? _e : null;
|
|
19
|
+
}
|
|
20
|
+
properties() {
|
|
21
|
+
let properties = {};
|
|
22
|
+
if (this.name != null) {
|
|
23
|
+
properties["name"] = this.name;
|
|
24
|
+
}
|
|
25
|
+
if (this.metadata != null) {
|
|
26
|
+
properties["metadata"] = this.metadata;
|
|
27
|
+
}
|
|
28
|
+
if (this.minimumValue != null) {
|
|
29
|
+
properties["minimumValue"] = this.minimumValue;
|
|
30
|
+
}
|
|
31
|
+
if (this.maximumValue != null) {
|
|
32
|
+
properties["maximumValue"] = this.maximumValue;
|
|
33
|
+
}
|
|
34
|
+
if (this.sum != null) {
|
|
35
|
+
properties["sum"] = this.sum;
|
|
36
|
+
}
|
|
37
|
+
if (this.orderDirection != null) {
|
|
38
|
+
properties["orderDirection"] = this.orderDirection;
|
|
39
|
+
}
|
|
40
|
+
if (this.entryPeriodEventId != null) {
|
|
41
|
+
properties["entryPeriodEventId"] = this.entryPeriodEventId;
|
|
42
|
+
}
|
|
43
|
+
if (this.accessPeriodEventId != null) {
|
|
44
|
+
properties["accessPeriodEventId"] = this.accessPeriodEventId;
|
|
45
|
+
}
|
|
46
|
+
return properties;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = SubscribeRankingModel;
|
|
50
|
+
//# sourceMappingURL=SubscribeRankingModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscribeRankingModel.js","sourceRoot":"","sources":["SubscribeRankingModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,qBAAqB;IAUtC,YACI,IAAY,EACZ,GAAY,EACZ,cAAmD,EACnD,UAA6C,IAAI;;QAVpC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,iBAAY,GAAgB,IAAI,CAAC;QACjC,iBAAY,GAAgB,IAAI,CAAC;QACjC,uBAAkB,GAAgB,IAAI,CAAC;QACvC,wBAAmB,GAAgB,IAAI,CAAC;QAQrD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,mCAAI,IAAI,CAAC;QAClD,IAAI,CAAC,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,mCAAI,IAAI,CAAC;QAClD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,mBAAmB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,mCAAI,IAAI,CAAC;IACpE,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QACD,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,UAAU,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC;SAChE;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzDD,wCAyDC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { SubscribeRankingModelOptions } from "./options/SubscribeRankingModelOptions";
|
|
17
|
+
import { SubscribeRankingModelOrderDirection } from "./enum/SubscribeRankingModelOrderDirection";
|
|
18
|
+
|
|
19
|
+
export default class SubscribeRankingModel {
|
|
20
|
+
private readonly name: string;
|
|
21
|
+
private readonly sum: boolean;
|
|
22
|
+
private readonly orderDirection: SubscribeRankingModelOrderDirection;
|
|
23
|
+
private readonly metadata: string|null = null;
|
|
24
|
+
private readonly minimumValue: number|null = null;
|
|
25
|
+
private readonly maximumValue: number|null = null;
|
|
26
|
+
private readonly entryPeriodEventId: string|null = null;
|
|
27
|
+
private readonly accessPeriodEventId: string|null = null;
|
|
28
|
+
|
|
29
|
+
public constructor(
|
|
30
|
+
name: string,
|
|
31
|
+
sum: boolean,
|
|
32
|
+
orderDirection: SubscribeRankingModelOrderDirection,
|
|
33
|
+
options: SubscribeRankingModelOptions|null = null,
|
|
34
|
+
) {
|
|
35
|
+
this.name = name;
|
|
36
|
+
this.sum = sum;
|
|
37
|
+
this.orderDirection = orderDirection;
|
|
38
|
+
this.metadata = options?.metadata ?? null;
|
|
39
|
+
this.minimumValue = options?.minimumValue ?? null;
|
|
40
|
+
this.maximumValue = options?.maximumValue ?? null;
|
|
41
|
+
this.entryPeriodEventId = options?.entryPeriodEventId ?? null;
|
|
42
|
+
this.accessPeriodEventId = options?.accessPeriodEventId ?? null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public properties(
|
|
46
|
+
): {[name: string]: any} {
|
|
47
|
+
let properties: {[name: string]: any} = {};
|
|
48
|
+
|
|
49
|
+
if (this.name != null) {
|
|
50
|
+
properties["name"] = this.name;
|
|
51
|
+
}
|
|
52
|
+
if (this.metadata != null) {
|
|
53
|
+
properties["metadata"] = this.metadata;
|
|
54
|
+
}
|
|
55
|
+
if (this.minimumValue != null) {
|
|
56
|
+
properties["minimumValue"] = this.minimumValue;
|
|
57
|
+
}
|
|
58
|
+
if (this.maximumValue != null) {
|
|
59
|
+
properties["maximumValue"] = this.maximumValue;
|
|
60
|
+
}
|
|
61
|
+
if (this.sum != null) {
|
|
62
|
+
properties["sum"] = this.sum;
|
|
63
|
+
}
|
|
64
|
+
if (this.orderDirection != null) {
|
|
65
|
+
properties["orderDirection"] = this.orderDirection;
|
|
66
|
+
}
|
|
67
|
+
if (this.entryPeriodEventId != null) {
|
|
68
|
+
properties["entryPeriodEventId"] = this.entryPeriodEventId;
|
|
69
|
+
}
|
|
70
|
+
if (this.accessPeriodEventId != null) {
|
|
71
|
+
properties["accessPeriodEventId"] = this.accessPeriodEventId;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return properties;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ClusterRankingModelClusterType = void 0;
|
|
19
|
+
exports.ClusterRankingModelClusterType = {
|
|
20
|
+
RAW: "Raw",
|
|
21
|
+
GS2_GUILD__GUILD: "Gs2Guild::Guild",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=ClusterRankingModelClusterType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterRankingModelClusterType.js","sourceRoot":"","sources":["ClusterRankingModelClusterType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,8BAA8B,GAAG;IAC1C,GAAG,EAAE,KAAK;IACV,gBAAgB,EAAE,iBAAiB;CAC7B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
* Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
* You may not use this file except in compliance with the License.
|
|
7
|
+
* A copy of the License is located at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
* express or implied. See the License for the specific language governing
|
|
14
|
+
* permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const ClusterRankingModelClusterType = {
|
|
20
|
+
RAW: "Raw",
|
|
21
|
+
GS2_GUILD__GUILD: "Gs2Guild::Guild",
|
|
22
|
+
} as const;
|
|
23
|
+
export type ClusterRankingModelClusterType = typeof ClusterRankingModelClusterType[keyof typeof ClusterRankingModelClusterType];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
* Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
* You may not use this file except in compliance with the License.
|
|
8
|
+
* A copy of the License is located at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
* express or implied. See the License for the specific language governing
|
|
15
|
+
* permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ClusterRankingModelOrderDirection = void 0;
|
|
19
|
+
exports.ClusterRankingModelOrderDirection = {
|
|
20
|
+
ASC: "asc",
|
|
21
|
+
DESC: "desc",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=ClusterRankingModelOrderDirection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterRankingModelOrderDirection.js","sourceRoot":"","sources":["ClusterRankingModelOrderDirection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,iCAAiC,GAAG;IAC7C,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACN,CAAC"}
|