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,26 @@
|
|
|
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.CompleteVerifyType = void 0;
|
|
19
|
+
exports.CompleteVerifyType = {
|
|
20
|
+
COMPLETED: "completed",
|
|
21
|
+
NOT_COMPLETED: "notCompleted",
|
|
22
|
+
RECEIVED: "received",
|
|
23
|
+
NOT_RECEIVED: "notReceived",
|
|
24
|
+
COMPLETED_AND_NOT_RECEIVED: "completedAndNotReceived",
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=CompleteVerifyType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompleteVerifyType.js","sourceRoot":"","sources":["CompleteVerifyType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,kBAAkB,GAAG;IAC9B,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,cAAc;IAC7B,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,aAAa;IAC3B,0BAA0B,EAAE,yBAAyB;CAC/C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 CompleteVerifyType = {
|
|
20
|
+
COMPLETED: "completed",
|
|
21
|
+
NOT_COMPLETED: "notCompleted",
|
|
22
|
+
RECEIVED: "received",
|
|
23
|
+
NOT_RECEIVED: "notReceived",
|
|
24
|
+
COMPLETED_AND_NOT_RECEIVED: "completedAndNotReceived",
|
|
25
|
+
} as const;
|
|
26
|
+
export type CompleteVerifyType = typeof CompleteVerifyType[keyof typeof CompleteVerifyType];
|
|
@@ -2,6 +2,7 @@ import RevertReceiveByUserId from "./RevertReceiveByUserId";
|
|
|
2
2
|
import IncreaseCounterByUserId from "./IncreaseCounterByUserId";
|
|
3
3
|
import SetCounterByUserId from "./SetCounterByUserId";
|
|
4
4
|
import ReceiveByUserId from "./ReceiveByUserId";
|
|
5
|
+
import VerifyCompleteByUserId from "./VerifyCompleteByUserId";
|
|
5
6
|
import DecreaseCounterByUserId from "./DecreaseCounterByUserId";
|
|
6
7
|
import VerifyCounterValueByUserId from "./VerifyCounterValueByUserId";
|
|
7
|
-
export { RevertReceiveByUserId, IncreaseCounterByUserId, SetCounterByUserId, ReceiveByUserId, DecreaseCounterByUserId, VerifyCounterValueByUserId, };
|
|
8
|
+
export { RevertReceiveByUserId, IncreaseCounterByUserId, SetCounterByUserId, ReceiveByUserId, VerifyCompleteByUserId, DecreaseCounterByUserId, VerifyCounterValueByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyCounterValueByUserId = exports.DecreaseCounterByUserId = exports.ReceiveByUserId = exports.SetCounterByUserId = exports.IncreaseCounterByUserId = exports.RevertReceiveByUserId = void 0;
|
|
3
|
+
exports.VerifyCounterValueByUserId = exports.DecreaseCounterByUserId = exports.VerifyCompleteByUserId = exports.ReceiveByUserId = exports.SetCounterByUserId = exports.IncreaseCounterByUserId = exports.RevertReceiveByUserId = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -25,6 +25,8 @@ const SetCounterByUserId_1 = tslib_1.__importDefault(require("./SetCounterByUser
|
|
|
25
25
|
exports.SetCounterByUserId = SetCounterByUserId_1.default;
|
|
26
26
|
const ReceiveByUserId_1 = tslib_1.__importDefault(require("./ReceiveByUserId"));
|
|
27
27
|
exports.ReceiveByUserId = ReceiveByUserId_1.default;
|
|
28
|
+
const VerifyCompleteByUserId_1 = tslib_1.__importDefault(require("./VerifyCompleteByUserId"));
|
|
29
|
+
exports.VerifyCompleteByUserId = VerifyCompleteByUserId_1.default;
|
|
28
30
|
const DecreaseCounterByUserId_1 = tslib_1.__importDefault(require("./DecreaseCounterByUserId"));
|
|
29
31
|
exports.DecreaseCounterByUserId = DecreaseCounterByUserId_1.default;
|
|
30
32
|
const VerifyCounterValueByUserId_1 = tslib_1.__importDefault(require("./VerifyCounterValueByUserId"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;AASxD,gCATG,+BAAqB,CASH;AARzB,gGAAgE;AAS5D,kCATG,iCAAuB,CASH;AAR3B,sFAAsD;AASlD,6BATG,4BAAkB,CASH;AARtB,gFAAgD;AAS5C,0BATG,yBAAe,CASH;AARnB,8FAA8D;AAS1D,iCATG,gCAAsB,CASH;AAR1B,gGAAgE;AAS5D,kCATG,iCAAuB,CASH;AAR3B,sGAAsE;AASlE,qCATG,oCAA0B,CASH"}
|
|
@@ -17,6 +17,7 @@ import RevertReceiveByUserId from "./RevertReceiveByUserId";
|
|
|
17
17
|
import IncreaseCounterByUserId from "./IncreaseCounterByUserId";
|
|
18
18
|
import SetCounterByUserId from "./SetCounterByUserId";
|
|
19
19
|
import ReceiveByUserId from "./ReceiveByUserId";
|
|
20
|
+
import VerifyCompleteByUserId from "./VerifyCompleteByUserId";
|
|
20
21
|
import DecreaseCounterByUserId from "./DecreaseCounterByUserId";
|
|
21
22
|
import VerifyCounterValueByUserId from "./VerifyCounterValueByUserId";
|
|
22
23
|
|
|
@@ -25,6 +26,7 @@ export {
|
|
|
25
26
|
IncreaseCounterByUserId,
|
|
26
27
|
SetCounterByUserId,
|
|
27
28
|
ReceiveByUserId,
|
|
29
|
+
VerifyCompleteByUserId,
|
|
28
30
|
DecreaseCounterByUserId,
|
|
29
31
|
VerifyCounterValueByUserId,
|
|
30
32
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as model from "./model";
|
|
2
|
+
import * as ref from "./ref";
|
|
3
|
+
import * as stampSheet from "./stampSheet";
|
|
4
|
+
import { NamespaceRef } from "./ref";
|
|
5
|
+
declare function namespace(namespaceName: string): NamespaceRef;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
model: typeof model;
|
|
8
|
+
ref: typeof ref;
|
|
9
|
+
stampSheet: typeof stampSheet;
|
|
10
|
+
namespace: typeof namespace;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 = tslib_1.__importStar(require("./model"));
|
|
20
|
+
const ref = tslib_1.__importStar(require("./ref"));
|
|
21
|
+
const stampSheet = tslib_1.__importStar(require("./stampSheet"));
|
|
22
|
+
const ref_1 = require("./ref");
|
|
23
|
+
function namespace(namespaceName) {
|
|
24
|
+
return new ref_1.NamespaceRef(namespaceName);
|
|
25
|
+
}
|
|
26
|
+
exports.default = {
|
|
27
|
+
model,
|
|
28
|
+
ref,
|
|
29
|
+
stampSheet,
|
|
30
|
+
namespace,
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAiC;AACjC,mDAA6B;AAC7B,iEAA2C;AAC3C,+BAAqC;AAGrC,SAAS,SAAS,CACd,aAAqB;IAErB,OAAO,IAAI,kBAAY,CACnB,aAAa,CAChB,CAAC;AACN,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,SAAS;CACZ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 * as model from "./model";
|
|
18
|
+
import * as ref from "./ref";
|
|
19
|
+
import * as stampSheet from "./stampSheet";
|
|
20
|
+
import { NamespaceRef } from "./ref";
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
function namespace(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
): NamespaceRef {
|
|
26
|
+
return new NamespaceRef(
|
|
27
|
+
namespaceName,
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
model,
|
|
33
|
+
ref,
|
|
34
|
+
stampSheet,
|
|
35
|
+
namespace,
|
|
36
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ClusterRankingModelOptions } from "./options/ClusterRankingModelOptions";
|
|
2
|
+
import { ClusterRankingModelClusterType } from "./enum/ClusterRankingModelClusterType";
|
|
3
|
+
import { ClusterRankingModelOrderDirection } from "./enum/ClusterRankingModelOrderDirection";
|
|
4
|
+
export default class ClusterRankingModel {
|
|
5
|
+
private readonly name;
|
|
6
|
+
private readonly clusterType;
|
|
7
|
+
private readonly sum;
|
|
8
|
+
private readonly orderDirection;
|
|
9
|
+
private readonly metadata;
|
|
10
|
+
private readonly minimumValue;
|
|
11
|
+
private readonly maximumValue;
|
|
12
|
+
private readonly entryPeriodEventId;
|
|
13
|
+
private readonly rankingRewards;
|
|
14
|
+
private readonly accessPeriodEventId;
|
|
15
|
+
constructor(name: string, clusterType: ClusterRankingModelClusterType, sum: boolean, orderDirection: ClusterRankingModelOrderDirection, options?: ClusterRankingModelOptions | null);
|
|
16
|
+
properties(): {
|
|
17
|
+
[name: string]: any;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ClusterRankingModel {
|
|
4
|
+
constructor(name, clusterType, sum, orderDirection, options = null) {
|
|
5
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.minimumValue = null;
|
|
8
|
+
this.maximumValue = null;
|
|
9
|
+
this.entryPeriodEventId = null;
|
|
10
|
+
this.rankingRewards = null;
|
|
11
|
+
this.accessPeriodEventId = null;
|
|
12
|
+
this.name = name;
|
|
13
|
+
this.clusterType = clusterType;
|
|
14
|
+
this.sum = sum;
|
|
15
|
+
this.orderDirection = orderDirection;
|
|
16
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
17
|
+
this.minimumValue = (_b = options === null || options === void 0 ? void 0 : options.minimumValue) !== null && _b !== void 0 ? _b : null;
|
|
18
|
+
this.maximumValue = (_c = options === null || options === void 0 ? void 0 : options.maximumValue) !== null && _c !== void 0 ? _c : null;
|
|
19
|
+
this.entryPeriodEventId = (_d = options === null || options === void 0 ? void 0 : options.entryPeriodEventId) !== null && _d !== void 0 ? _d : null;
|
|
20
|
+
this.rankingRewards = (_e = options === null || options === void 0 ? void 0 : options.rankingRewards) !== null && _e !== void 0 ? _e : null;
|
|
21
|
+
this.accessPeriodEventId = (_f = options === null || options === void 0 ? void 0 : options.accessPeriodEventId) !== null && _f !== void 0 ? _f : null;
|
|
22
|
+
}
|
|
23
|
+
properties() {
|
|
24
|
+
let properties = {};
|
|
25
|
+
if (this.name != null) {
|
|
26
|
+
properties["name"] = this.name;
|
|
27
|
+
}
|
|
28
|
+
if (this.metadata != null) {
|
|
29
|
+
properties["metadata"] = this.metadata;
|
|
30
|
+
}
|
|
31
|
+
if (this.clusterType != null) {
|
|
32
|
+
properties["clusterType"] = this.clusterType;
|
|
33
|
+
}
|
|
34
|
+
if (this.minimumValue != null) {
|
|
35
|
+
properties["minimumValue"] = this.minimumValue;
|
|
36
|
+
}
|
|
37
|
+
if (this.maximumValue != null) {
|
|
38
|
+
properties["maximumValue"] = this.maximumValue;
|
|
39
|
+
}
|
|
40
|
+
if (this.sum != null) {
|
|
41
|
+
properties["sum"] = this.sum;
|
|
42
|
+
}
|
|
43
|
+
if (this.orderDirection != null) {
|
|
44
|
+
properties["orderDirection"] = this.orderDirection;
|
|
45
|
+
}
|
|
46
|
+
if (this.entryPeriodEventId != null) {
|
|
47
|
+
properties["entryPeriodEventId"] = this.entryPeriodEventId;
|
|
48
|
+
}
|
|
49
|
+
if (this.rankingRewards != null) {
|
|
50
|
+
properties["rankingRewards"] = this.rankingRewards.map(v => v.properties());
|
|
51
|
+
}
|
|
52
|
+
if (this.accessPeriodEventId != null) {
|
|
53
|
+
properties["accessPeriodEventId"] = this.accessPeriodEventId;
|
|
54
|
+
}
|
|
55
|
+
return properties;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.default = ClusterRankingModel;
|
|
59
|
+
//# sourceMappingURL=ClusterRankingModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClusterRankingModel.js","sourceRoot":"","sources":["ClusterRankingModel.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { ClusterRankingModelOptions } from "./options/ClusterRankingModelOptions";
|
|
19
|
+
import { ClusterRankingModelClusterType } from "./enum/ClusterRankingModelClusterType";
|
|
20
|
+
import { ClusterRankingModelOrderDirection } from "./enum/ClusterRankingModelOrderDirection";
|
|
21
|
+
|
|
22
|
+
export default class ClusterRankingModel {
|
|
23
|
+
private readonly name: string;
|
|
24
|
+
private readonly clusterType: ClusterRankingModelClusterType;
|
|
25
|
+
private readonly sum: boolean;
|
|
26
|
+
private readonly orderDirection: ClusterRankingModelOrderDirection;
|
|
27
|
+
private readonly metadata: string|null = null;
|
|
28
|
+
private readonly minimumValue: number|null = null;
|
|
29
|
+
private readonly maximumValue: number|null = null;
|
|
30
|
+
private readonly entryPeriodEventId: string|null = null;
|
|
31
|
+
private readonly rankingRewards: RankingReward[]|null = null;
|
|
32
|
+
private readonly accessPeriodEventId: string|null = null;
|
|
33
|
+
|
|
34
|
+
public constructor(
|
|
35
|
+
name: string,
|
|
36
|
+
clusterType: ClusterRankingModelClusterType,
|
|
37
|
+
sum: boolean,
|
|
38
|
+
orderDirection: ClusterRankingModelOrderDirection,
|
|
39
|
+
options: ClusterRankingModelOptions|null = null,
|
|
40
|
+
) {
|
|
41
|
+
this.name = name;
|
|
42
|
+
this.clusterType = clusterType;
|
|
43
|
+
this.sum = sum;
|
|
44
|
+
this.orderDirection = orderDirection;
|
|
45
|
+
this.metadata = options?.metadata ?? null;
|
|
46
|
+
this.minimumValue = options?.minimumValue ?? null;
|
|
47
|
+
this.maximumValue = options?.maximumValue ?? null;
|
|
48
|
+
this.entryPeriodEventId = options?.entryPeriodEventId ?? null;
|
|
49
|
+
this.rankingRewards = options?.rankingRewards ?? null;
|
|
50
|
+
this.accessPeriodEventId = options?.accessPeriodEventId ?? null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public properties(
|
|
54
|
+
): {[name: string]: any} {
|
|
55
|
+
let properties: {[name: string]: any} = {};
|
|
56
|
+
|
|
57
|
+
if (this.name != null) {
|
|
58
|
+
properties["name"] = this.name;
|
|
59
|
+
}
|
|
60
|
+
if (this.metadata != null) {
|
|
61
|
+
properties["metadata"] = this.metadata;
|
|
62
|
+
}
|
|
63
|
+
if (this.clusterType != null) {
|
|
64
|
+
properties["clusterType"] = this.clusterType;
|
|
65
|
+
}
|
|
66
|
+
if (this.minimumValue != null) {
|
|
67
|
+
properties["minimumValue"] = this.minimumValue;
|
|
68
|
+
}
|
|
69
|
+
if (this.maximumValue != null) {
|
|
70
|
+
properties["maximumValue"] = this.maximumValue;
|
|
71
|
+
}
|
|
72
|
+
if (this.sum != null) {
|
|
73
|
+
properties["sum"] = this.sum;
|
|
74
|
+
}
|
|
75
|
+
if (this.orderDirection != null) {
|
|
76
|
+
properties["orderDirection"] = this.orderDirection;
|
|
77
|
+
}
|
|
78
|
+
if (this.entryPeriodEventId != null) {
|
|
79
|
+
properties["entryPeriodEventId"] = this.entryPeriodEventId;
|
|
80
|
+
}
|
|
81
|
+
if (this.rankingRewards != null) {
|
|
82
|
+
properties["rankingRewards"] = this.rankingRewards.map(v => v.properties(
|
|
83
|
+
));
|
|
84
|
+
}
|
|
85
|
+
if (this.accessPeriodEventId != null) {
|
|
86
|
+
properties["accessPeriodEventId"] = this.accessPeriodEventId;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return properties;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import GlobalRankingModel from "./GlobalRankingModel";
|
|
3
|
+
import ClusterRankingModel from "./ClusterRankingModel";
|
|
4
|
+
import SubscribeRankingModel from "./SubscribeRankingModel";
|
|
5
|
+
export default class CurrentMasterData extends CdkResource {
|
|
6
|
+
private readonly version;
|
|
7
|
+
private readonly namespaceName;
|
|
8
|
+
private readonly globalRankingModels;
|
|
9
|
+
private readonly clusterRankingModels;
|
|
10
|
+
private readonly subscribeRankingModels;
|
|
11
|
+
constructor(stack: Stack, namespaceName: string, globalRankingModels: GlobalRankingModel[], clusterRankingModels: ClusterRankingModel[], subscribeRankingModels: SubscribeRankingModel[]);
|
|
12
|
+
alternateKeys(): string;
|
|
13
|
+
resourceType(): string;
|
|
14
|
+
properties(): {
|
|
15
|
+
[name: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
5
|
+
* Reserved.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
8
|
+
* You may not use this file except in compliance with the License.
|
|
9
|
+
* A copy of the License is located at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
14
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
15
|
+
* express or implied. See the License for the specific language governing
|
|
16
|
+
* permissions and limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class CurrentMasterData extends model_1.CdkResource {
|
|
20
|
+
constructor(stack, namespaceName, globalRankingModels, clusterRankingModels, subscribeRankingModels) {
|
|
21
|
+
super("Ranking2_CurrentRankingMaster_" + namespaceName);
|
|
22
|
+
this.version = "2024-05-30";
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.globalRankingModels = globalRankingModels;
|
|
25
|
+
this.clusterRankingModels = clusterRankingModels;
|
|
26
|
+
this.subscribeRankingModels = subscribeRankingModels;
|
|
27
|
+
stack.addResource(this);
|
|
28
|
+
}
|
|
29
|
+
alternateKeys() {
|
|
30
|
+
return this.namespaceName;
|
|
31
|
+
}
|
|
32
|
+
resourceType() {
|
|
33
|
+
return "GS2::Ranking2::CurrentRankingMaster";
|
|
34
|
+
}
|
|
35
|
+
properties() {
|
|
36
|
+
let properties = {};
|
|
37
|
+
let settings = {};
|
|
38
|
+
settings["version"] = this.version;
|
|
39
|
+
if (this.globalRankingModels != null) {
|
|
40
|
+
settings["globalRankingModels"] = this.globalRankingModels.map(v => v.properties());
|
|
41
|
+
}
|
|
42
|
+
if (this.clusterRankingModels != null) {
|
|
43
|
+
settings["clusterRankingModels"] = this.clusterRankingModels.map(v => v.properties());
|
|
44
|
+
}
|
|
45
|
+
if (this.subscribeRankingModels != null) {
|
|
46
|
+
settings["subscribeRankingModels"] = this.subscribeRankingModels.map(v => v.properties());
|
|
47
|
+
}
|
|
48
|
+
if (this.namespaceName != null) {
|
|
49
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
50
|
+
}
|
|
51
|
+
if (settings != null) {
|
|
52
|
+
properties["Settings"] = settings;
|
|
53
|
+
}
|
|
54
|
+
return properties;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.default = CurrentMasterData;
|
|
58
|
+
//# sourceMappingURL=CurrentMasterData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAKpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAOtD,YACI,KAAY,EACZ,aAAqB,EACrB,mBAAyC,EACzC,oBAA2C,EAC3C,sBAA+C;QAE/C,KAAK,CACD,gCAAgC,GAAG,aAAa,CACnD,CAAC;QAfW,YAAO,GAAU,YAAY,CAAC;QAiB3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,qCAAqC,CAAC;IACjD,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,QAAQ,GAA0B,EAAE,CAAC;QAEzC,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAA;QAClC,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,EAAE;YAClC,QAAQ,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3E,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,QAAQ,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC7E,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;YACrC,QAAQ,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjF,CAAC,CAAC;SACV;QAED,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,QAAQ,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;SACrC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAjED,oCAiEC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 {CdkResource, Stack} from "../../core/model";
|
|
17
|
+
import GlobalRankingModel from "./GlobalRankingModel";
|
|
18
|
+
import ClusterRankingModel from "./ClusterRankingModel";
|
|
19
|
+
import SubscribeRankingModel from "./SubscribeRankingModel";
|
|
20
|
+
|
|
21
|
+
export default class CurrentMasterData extends CdkResource {
|
|
22
|
+
private readonly version: string= "2024-05-30";
|
|
23
|
+
private readonly namespaceName: string;
|
|
24
|
+
private readonly globalRankingModels: GlobalRankingModel[];
|
|
25
|
+
private readonly clusterRankingModels: ClusterRankingModel[];
|
|
26
|
+
private readonly subscribeRankingModels: SubscribeRankingModel[];
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
stack: Stack,
|
|
30
|
+
namespaceName: string,
|
|
31
|
+
globalRankingModels: GlobalRankingModel[],
|
|
32
|
+
clusterRankingModels: ClusterRankingModel[],
|
|
33
|
+
subscribeRankingModels: SubscribeRankingModel[],
|
|
34
|
+
) {
|
|
35
|
+
super(
|
|
36
|
+
"Ranking2_CurrentRankingMaster_" + namespaceName
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
this.namespaceName = namespaceName;
|
|
40
|
+
this.globalRankingModels = globalRankingModels;
|
|
41
|
+
this.clusterRankingModels = clusterRankingModels;
|
|
42
|
+
this.subscribeRankingModels = subscribeRankingModels;
|
|
43
|
+
stack.addResource(
|
|
44
|
+
this,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public alternateKeys(
|
|
49
|
+
) {
|
|
50
|
+
return this.namespaceName;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public resourceType(
|
|
54
|
+
): string {
|
|
55
|
+
return "GS2::Ranking2::CurrentRankingMaster";
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public properties(
|
|
59
|
+
): {[name: string]: any} {
|
|
60
|
+
let properties: {[name: string]: any} = {};
|
|
61
|
+
let settings: {[name: string]: any} = {};
|
|
62
|
+
|
|
63
|
+
settings["version"] = this.version
|
|
64
|
+
if (this.globalRankingModels != null) {
|
|
65
|
+
settings["globalRankingModels"] = this.globalRankingModels.map(v => v.properties(
|
|
66
|
+
));
|
|
67
|
+
}
|
|
68
|
+
if (this.clusterRankingModels != null) {
|
|
69
|
+
settings["clusterRankingModels"] = this.clusterRankingModels.map(v => v.properties(
|
|
70
|
+
));
|
|
71
|
+
}
|
|
72
|
+
if (this.subscribeRankingModels != null) {
|
|
73
|
+
settings["subscribeRankingModels"] = this.subscribeRankingModels.map(v => v.properties(
|
|
74
|
+
));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (this.namespaceName != null) {
|
|
78
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
79
|
+
}
|
|
80
|
+
if (settings != null) {
|
|
81
|
+
properties["Settings"] = settings;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return properties;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GlobalRankingModelOptions } from "./options/GlobalRankingModelOptions";
|
|
2
|
+
import { GlobalRankingModelOrderDirection } from "./enum/GlobalRankingModelOrderDirection";
|
|
3
|
+
export default class GlobalRankingModel {
|
|
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 rankingRewards;
|
|
12
|
+
private readonly accessPeriodEventId;
|
|
13
|
+
constructor(name: string, sum: boolean, orderDirection: GlobalRankingModelOrderDirection, options?: GlobalRankingModelOptions | null);
|
|
14
|
+
properties(): {
|
|
15
|
+
[name: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class GlobalRankingModel {
|
|
4
|
+
constructor(name, sum, orderDirection, options = null) {
|
|
5
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6
|
+
this.metadata = null;
|
|
7
|
+
this.minimumValue = null;
|
|
8
|
+
this.maximumValue = null;
|
|
9
|
+
this.entryPeriodEventId = null;
|
|
10
|
+
this.rankingRewards = null;
|
|
11
|
+
this.accessPeriodEventId = null;
|
|
12
|
+
this.name = name;
|
|
13
|
+
this.sum = sum;
|
|
14
|
+
this.orderDirection = orderDirection;
|
|
15
|
+
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
16
|
+
this.minimumValue = (_b = options === null || options === void 0 ? void 0 : options.minimumValue) !== null && _b !== void 0 ? _b : null;
|
|
17
|
+
this.maximumValue = (_c = options === null || options === void 0 ? void 0 : options.maximumValue) !== null && _c !== void 0 ? _c : null;
|
|
18
|
+
this.entryPeriodEventId = (_d = options === null || options === void 0 ? void 0 : options.entryPeriodEventId) !== null && _d !== void 0 ? _d : null;
|
|
19
|
+
this.rankingRewards = (_e = options === null || options === void 0 ? void 0 : options.rankingRewards) !== null && _e !== void 0 ? _e : null;
|
|
20
|
+
this.accessPeriodEventId = (_f = options === null || options === void 0 ? void 0 : options.accessPeriodEventId) !== null && _f !== void 0 ? _f : null;
|
|
21
|
+
}
|
|
22
|
+
properties() {
|
|
23
|
+
let properties = {};
|
|
24
|
+
if (this.name != null) {
|
|
25
|
+
properties["name"] = this.name;
|
|
26
|
+
}
|
|
27
|
+
if (this.metadata != null) {
|
|
28
|
+
properties["metadata"] = this.metadata;
|
|
29
|
+
}
|
|
30
|
+
if (this.minimumValue != null) {
|
|
31
|
+
properties["minimumValue"] = this.minimumValue;
|
|
32
|
+
}
|
|
33
|
+
if (this.maximumValue != null) {
|
|
34
|
+
properties["maximumValue"] = this.maximumValue;
|
|
35
|
+
}
|
|
36
|
+
if (this.sum != null) {
|
|
37
|
+
properties["sum"] = this.sum;
|
|
38
|
+
}
|
|
39
|
+
if (this.orderDirection != null) {
|
|
40
|
+
properties["orderDirection"] = this.orderDirection;
|
|
41
|
+
}
|
|
42
|
+
if (this.entryPeriodEventId != null) {
|
|
43
|
+
properties["entryPeriodEventId"] = this.entryPeriodEventId;
|
|
44
|
+
}
|
|
45
|
+
if (this.rankingRewards != null) {
|
|
46
|
+
properties["rankingRewards"] = this.rankingRewards.map(v => v.properties());
|
|
47
|
+
}
|
|
48
|
+
if (this.accessPeriodEventId != null) {
|
|
49
|
+
properties["accessPeriodEventId"] = this.accessPeriodEventId;
|
|
50
|
+
}
|
|
51
|
+
return properties;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.default = GlobalRankingModel;
|
|
55
|
+
//# sourceMappingURL=GlobalRankingModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalRankingModel.js","sourceRoot":"","sources":["GlobalRankingModel.ts"],"names":[],"mappings":";;AAoBA,MAAqB,kBAAkB;IAWnC,YACI,IAAY,EACZ,GAAY,EACZ,cAAgD,EAChD,UAA0C,IAAI;;QAXjC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,iBAAY,GAAgB,IAAI,CAAC;QACjC,iBAAY,GAAgB,IAAI,CAAC;QACjC,uBAAkB,GAAgB,IAAI,CAAC;QACvC,mBAAc,GAAyB,IAAI,CAAC;QAC5C,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,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;QACtD,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,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;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;AA/DD,qCA+DC"}
|