gs2-cdk 1.0.60 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/guild/ref/GuildModelRef.d.ts +5 -0
  2. package/guild/ref/GuildModelRef.js +8 -0
  3. package/guild/ref/GuildModelRef.js.map +1 -1
  4. package/guild/ref/GuildModelRef.ts +33 -0
  5. package/guild/ref/GuildRef.d.ts +5 -0
  6. package/guild/ref/GuildRef.js +10 -0
  7. package/guild/ref/GuildRef.js.map +1 -1
  8. package/guild/ref/GuildRef.ts +34 -0
  9. package/guild/ref/NamespaceRef.d.ts +5 -0
  10. package/guild/ref/NamespaceRef.js +8 -0
  11. package/guild/ref/NamespaceRef.js.map +1 -1
  12. package/guild/ref/NamespaceRef.ts +35 -0
  13. package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.d.ts +15 -0
  14. package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.js +58 -0
  15. package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.js.map +1 -0
  16. package/guild/stampSheet/VerifyCurrentMaximumMemberCountByGuildName.ts +76 -0
  17. package/guild/stampSheet/VerifyIncludeMemberByUserId.d.ts +15 -0
  18. package/guild/stampSheet/VerifyIncludeMemberByUserId.js +55 -0
  19. package/guild/stampSheet/VerifyIncludeMemberByUserId.js.map +1 -0
  20. package/guild/stampSheet/VerifyIncludeMemberByUserId.ts +73 -0
  21. package/guild/stampSheet/enum/GuildVerifyType.d.ts +5 -0
  22. package/guild/stampSheet/enum/GuildVerifyType.js +23 -0
  23. package/guild/stampSheet/enum/GuildVerifyType.js.map +1 -0
  24. package/guild/stampSheet/enum/GuildVerifyType.ts +23 -0
  25. package/guild/stampSheet/index.d.ts +3 -1
  26. package/guild/stampSheet/index.js +5 -1
  27. package/guild/stampSheet/index.js.map +1 -1
  28. package/guild/stampSheet/index.ts +4 -0
  29. package/idle/ref/NamespaceRef.d.ts +3 -0
  30. package/idle/ref/NamespaceRef.js +4 -0
  31. package/idle/ref/NamespaceRef.js.map +1 -1
  32. package/idle/ref/NamespaceRef.ts +15 -0
  33. package/idle/stampSheet/ReceiveByUserId.d.ts +14 -0
  34. package/idle/stampSheet/ReceiveByUserId.js +54 -0
  35. package/idle/stampSheet/ReceiveByUserId.js.map +1 -0
  36. package/idle/stampSheet/ReceiveByUserId.ts +71 -0
  37. package/idle/stampSheet/index.d.ts +2 -1
  38. package/idle/stampSheet/index.js +3 -1
  39. package/idle/stampSheet/index.js.map +1 -1
  40. package/idle/stampSheet/index.ts +2 -0
  41. package/package.json +1 -1
  42. package/ranking2/index.d.ts +12 -0
  43. package/ranking2/index.js +32 -0
  44. package/ranking2/index.js.map +1 -0
  45. package/ranking2/index.ts +36 -0
  46. package/ranking2/model/ClusterRankingModel.d.ts +19 -0
  47. package/ranking2/model/ClusterRankingModel.js +59 -0
  48. package/ranking2/model/ClusterRankingModel.js.map +1 -0
  49. package/ranking2/model/ClusterRankingModel.ts +91 -0
  50. package/ranking2/model/CurrentMasterData.d.ts +17 -0
  51. package/ranking2/model/CurrentMasterData.js +58 -0
  52. package/ranking2/model/CurrentMasterData.js.map +1 -0
  53. package/ranking2/model/CurrentMasterData.ts +86 -0
  54. package/ranking2/model/GlobalRankingModel.d.ts +17 -0
  55. package/ranking2/model/GlobalRankingModel.js +55 -0
  56. package/ranking2/model/GlobalRankingModel.js.map +1 -0
  57. package/ranking2/model/GlobalRankingModel.ts +84 -0
  58. package/ranking2/model/Namespace.d.ts +23 -0
  59. package/ranking2/model/Namespace.js +72 -0
  60. package/ranking2/model/Namespace.js.map +1 -0
  61. package/ranking2/model/Namespace.ts +121 -0
  62. package/ranking2/model/RankingReward.d.ts +10 -0
  63. package/ranking2/model/RankingReward.js +27 -0
  64. package/ranking2/model/RankingReward.js.map +1 -0
  65. package/ranking2/model/RankingReward.ts +50 -0
  66. package/ranking2/model/SubscribeRankingModel.d.ts +16 -0
  67. package/ranking2/model/SubscribeRankingModel.js +50 -0
  68. package/ranking2/model/SubscribeRankingModel.js.map +1 -0
  69. package/ranking2/model/SubscribeRankingModel.ts +76 -0
  70. package/ranking2/model/enum/ClusterRankingModelClusterType.d.ts +5 -0
  71. package/ranking2/model/enum/ClusterRankingModelClusterType.js +23 -0
  72. package/ranking2/model/enum/ClusterRankingModelClusterType.js.map +1 -0
  73. package/ranking2/model/enum/ClusterRankingModelClusterType.ts +23 -0
  74. package/ranking2/model/enum/ClusterRankingModelOrderDirection.d.ts +5 -0
  75. package/ranking2/model/enum/ClusterRankingModelOrderDirection.js +23 -0
  76. package/ranking2/model/enum/ClusterRankingModelOrderDirection.js.map +1 -0
  77. package/ranking2/model/enum/ClusterRankingModelOrderDirection.ts +23 -0
  78. package/ranking2/model/enum/GlobalRankingModelOrderDirection.d.ts +5 -0
  79. package/ranking2/model/enum/GlobalRankingModelOrderDirection.js +23 -0
  80. package/ranking2/model/enum/GlobalRankingModelOrderDirection.js.map +1 -0
  81. package/ranking2/model/enum/GlobalRankingModelOrderDirection.ts +23 -0
  82. package/ranking2/model/enum/SubscribeRankingModelOrderDirection.d.ts +5 -0
  83. package/ranking2/model/enum/SubscribeRankingModelOrderDirection.js +23 -0
  84. package/ranking2/model/enum/SubscribeRankingModelOrderDirection.js.map +1 -0
  85. package/ranking2/model/enum/SubscribeRankingModelOrderDirection.ts +23 -0
  86. package/ranking2/model/index.d.ts +16 -0
  87. package/ranking2/model/index.js +40 -0
  88. package/ranking2/model/index.js.map +1 -0
  89. package/ranking2/model/index.ts +48 -0
  90. package/ranking2/model/options/ClusterRankingModelOptions.d.ts +9 -0
  91. package/ranking2/model/options/ClusterRankingModelOptions.js +3 -0
  92. package/ranking2/model/options/ClusterRankingModelOptions.js.map +1 -0
  93. package/ranking2/model/options/ClusterRankingModelOptions.ts +29 -0
  94. package/ranking2/model/options/GlobalRankingModelOptions.d.ts +9 -0
  95. package/ranking2/model/options/GlobalRankingModelOptions.js +3 -0
  96. package/ranking2/model/options/GlobalRankingModelOptions.js.map +1 -0
  97. package/ranking2/model/options/GlobalRankingModelOptions.ts +28 -0
  98. package/ranking2/model/options/NamespaceOptions.d.ts +7 -0
  99. package/ranking2/model/options/NamespaceOptions.js +3 -0
  100. package/ranking2/model/options/NamespaceOptions.js.map +1 -0
  101. package/ranking2/model/options/NamespaceOptions.ts +24 -0
  102. package/ranking2/model/options/RankingRewardOptions.d.ts +5 -0
  103. package/ranking2/model/options/RankingRewardOptions.js +3 -0
  104. package/ranking2/model/options/RankingRewardOptions.js.map +1 -0
  105. package/ranking2/model/options/RankingRewardOptions.ts +22 -0
  106. package/ranking2/model/options/SubscribeRankingModelOptions.d.ts +7 -0
  107. package/ranking2/model/options/SubscribeRankingModelOptions.js +3 -0
  108. package/ranking2/model/options/SubscribeRankingModelOptions.js.map +1 -0
  109. package/ranking2/model/options/SubscribeRankingModelOptions.ts +25 -0
  110. package/ranking2/ref/ClusterRankingBorderRef.d.ts +8 -0
  111. package/ranking2/ref/ClusterRankingBorderRef.js +47 -0
  112. package/ranking2/ref/ClusterRankingBorderRef.js.map +1 -0
  113. package/ranking2/ref/ClusterRankingBorderRef.ts +65 -0
  114. package/ranking2/ref/ClusterRankingModelRef.d.ts +6 -0
  115. package/ranking2/ref/ClusterRankingModelRef.js +38 -0
  116. package/ranking2/ref/ClusterRankingModelRef.js.map +1 -0
  117. package/ranking2/ref/ClusterRankingModelRef.ts +53 -0
  118. package/ranking2/ref/ClusterRankingSeasonRef.d.ts +8 -0
  119. package/ranking2/ref/ClusterRankingSeasonRef.js +46 -0
  120. package/ranking2/ref/ClusterRankingSeasonRef.js.map +1 -0
  121. package/ranking2/ref/ClusterRankingSeasonRef.ts +65 -0
  122. package/ranking2/ref/GlobalRankingBorderRef.d.ts +7 -0
  123. package/ranking2/ref/GlobalRankingBorderRef.js +45 -0
  124. package/ranking2/ref/GlobalRankingBorderRef.js.map +1 -0
  125. package/ranking2/ref/GlobalRankingBorderRef.ts +61 -0
  126. package/ranking2/ref/GlobalRankingModelRef.d.ts +6 -0
  127. package/ranking2/ref/GlobalRankingModelRef.js +38 -0
  128. package/ranking2/ref/GlobalRankingModelRef.js.map +1 -0
  129. package/ranking2/ref/GlobalRankingModelRef.ts +53 -0
  130. package/ranking2/ref/GlobalRankingSeasonRef.d.ts +7 -0
  131. package/ranking2/ref/GlobalRankingSeasonRef.js +44 -0
  132. package/ranking2/ref/GlobalRankingSeasonRef.js.map +1 -0
  133. package/ranking2/ref/GlobalRankingSeasonRef.ts +61 -0
  134. package/ranking2/ref/NamespaceRef.d.ts +15 -0
  135. package/ranking2/ref/NamespaceRef.js +56 -0
  136. package/ranking2/ref/NamespaceRef.js.map +1 -0
  137. package/ranking2/ref/NamespaceRef.ts +107 -0
  138. package/ranking2/ref/SubscribeRankingModelRef.d.ts +6 -0
  139. package/ranking2/ref/SubscribeRankingModelRef.js +38 -0
  140. package/ranking2/ref/SubscribeRankingModelRef.js.map +1 -0
  141. package/ranking2/ref/SubscribeRankingModelRef.ts +52 -0
  142. package/ranking2/ref/index.d.ts +9 -0
  143. package/ranking2/ref/index.js +36 -0
  144. package/ranking2/ref/index.js.map +1 -0
  145. package/ranking2/ref/index.ts +34 -0
  146. package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.d.ts +14 -0
  147. package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.js +58 -0
  148. package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.js.map +1 -0
  149. package/ranking2/stampSheet/CreateClusterRankingReceivedRewardByUserId.ts +75 -0
  150. package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.d.ts +13 -0
  151. package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.js +54 -0
  152. package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.js.map +1 -0
  153. package/ranking2/stampSheet/CreateGlobalRankingReceivedRewardByUserId.ts +69 -0
  154. package/ranking2/stampSheet/index.d.ts +3 -0
  155. package/ranking2/stampSheet/index.js +24 -0
  156. package/ranking2/stampSheet/index.js.map +1 -0
  157. package/ranking2/stampSheet/index.ts +22 -0
@@ -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"}
@@ -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
+ }