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,44 @@
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
+ * deny overwrite
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ const func_1 = require("../../core/func");
21
+ class GlobalRankingSeasonRef {
22
+ constructor(namespaceName, rankingName, season) {
23
+ this.namespaceName = namespaceName;
24
+ this.rankingName = rankingName;
25
+ this.season = season;
26
+ }
27
+ grn() {
28
+ return new func_1.Join(":", [
29
+ "grn",
30
+ "gs2",
31
+ func_1.GetAttr.region().str(),
32
+ func_1.GetAttr.ownerId().str(),
33
+ "ranking2",
34
+ this.namespaceName,
35
+ "global",
36
+ this.rankingName,
37
+ "ranking",
38
+ "global",
39
+ this.season.toString(),
40
+ ]).str();
41
+ }
42
+ }
43
+ exports.default = GlobalRankingSeasonRef;
44
+ //# sourceMappingURL=GlobalRankingSeasonRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalRankingSeasonRef.js","sourceRoot":"","sources":["GlobalRankingSeasonRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,0CAA8C;AAG9C,MAAqB,sBAAsB;IAKvC,YACI,aAAqB,EACrB,WAAmB,EACnB,MAAc;QAEd,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,UAAU;YACV,IAAI,CAAC,aAAa;YAClB,QAAQ;YACR,IAAI,CAAC,WAAW;YAChB,SAAS;YACT,QAAQ;YACR,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;SACzB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAvCD,yCAuCC"}
@@ -0,0 +1,61 @@
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
+ * deny overwrite
17
+ */
18
+
19
+ import {GetAttr, Join} from "../../core/func";
20
+ import GlobalRankingBorderRef from "./GlobalRankingBorderRef";
21
+
22
+ export default class GlobalRankingSeasonRef {
23
+ private readonly namespaceName: string;
24
+ private readonly rankingName: string;
25
+ private readonly season: number;
26
+
27
+ public constructor(
28
+ namespaceName: string,
29
+ rankingName: string,
30
+ season: number,
31
+ ) {
32
+ this.namespaceName = namespaceName;
33
+ this.rankingName = rankingName;
34
+ this.season = season;
35
+ }
36
+
37
+ public grn(
38
+ ): string {
39
+ return new Join(
40
+ ":",
41
+ [
42
+ "grn",
43
+ "gs2",
44
+ GetAttr.region(
45
+ ).str(
46
+ ),
47
+ GetAttr.ownerId(
48
+ ).str(
49
+ ),
50
+ "ranking2",
51
+ this.namespaceName,
52
+ "global",
53
+ this.rankingName,
54
+ "ranking",
55
+ "global",
56
+ this.season.toString(),
57
+ ],
58
+ ).str(
59
+ );
60
+ }
61
+ }
@@ -0,0 +1,15 @@
1
+ import GlobalRankingModelRef from "./GlobalRankingModelRef";
2
+ import SubscribeRankingModelRef from "./SubscribeRankingModelRef";
3
+ import ClusterRankingModelRef from "./ClusterRankingModelRef";
4
+ import CreateGlobalRankingReceivedRewardByUserId from "../stampSheet/CreateGlobalRankingReceivedRewardByUserId";
5
+ import CreateClusterRankingReceivedRewardByUserId from "../stampSheet/CreateClusterRankingReceivedRewardByUserId";
6
+ export default class NamespaceRef {
7
+ private readonly namespaceName;
8
+ constructor(namespaceName: string);
9
+ globalRankingModel(rankingName: string): GlobalRankingModelRef;
10
+ subscribeRankingModel(rankingName: string): SubscribeRankingModelRef;
11
+ clusterRankingModel(rankingName: string): ClusterRankingModelRef;
12
+ createGlobalRankingReceivedReward(rankingName: string, season?: number | null, userId?: string): CreateGlobalRankingReceivedRewardByUserId;
13
+ createClusterRankingReceivedReward(rankingName: string, clusterName: string, season?: number | null, userId?: string): CreateClusterRankingReceivedRewardByUserId;
14
+ grn(): string;
15
+ }
@@ -0,0 +1,56 @@
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 func_1 = require("../../core/func");
20
+ const GlobalRankingModelRef_1 = tslib_1.__importDefault(require("./GlobalRankingModelRef"));
21
+ const SubscribeRankingModelRef_1 = tslib_1.__importDefault(require("./SubscribeRankingModelRef"));
22
+ const ClusterRankingModelRef_1 = tslib_1.__importDefault(require("./ClusterRankingModelRef"));
23
+ const CreateGlobalRankingReceivedRewardByUserId_1 = tslib_1.__importDefault(require("../stampSheet/CreateGlobalRankingReceivedRewardByUserId"));
24
+ const CreateClusterRankingReceivedRewardByUserId_1 = tslib_1.__importDefault(require("../stampSheet/CreateClusterRankingReceivedRewardByUserId"));
25
+ class NamespaceRef {
26
+ constructor(namespaceName) {
27
+ this.namespaceName = namespaceName;
28
+ }
29
+ globalRankingModel(rankingName) {
30
+ return new GlobalRankingModelRef_1.default(this.namespaceName, rankingName);
31
+ }
32
+ subscribeRankingModel(rankingName) {
33
+ return new SubscribeRankingModelRef_1.default(this.namespaceName, rankingName);
34
+ }
35
+ clusterRankingModel(rankingName) {
36
+ return new ClusterRankingModelRef_1.default(this.namespaceName, rankingName);
37
+ }
38
+ createGlobalRankingReceivedReward(rankingName, season = null, userId = "#{userId}") {
39
+ return new CreateGlobalRankingReceivedRewardByUserId_1.default(this.namespaceName, rankingName, season, userId);
40
+ }
41
+ createClusterRankingReceivedReward(rankingName, clusterName, season = null, userId = "#{userId}") {
42
+ return new CreateClusterRankingReceivedRewardByUserId_1.default(this.namespaceName, rankingName, clusterName, season, userId);
43
+ }
44
+ grn() {
45
+ return new func_1.Join(":", [
46
+ "grn",
47
+ "gs2",
48
+ func_1.GetAttr.region().str(),
49
+ func_1.GetAttr.ownerId().str(),
50
+ "ranking2",
51
+ this.namespaceName,
52
+ ]).str();
53
+ }
54
+ }
55
+ exports.default = NamespaceRef;
56
+ //# sourceMappingURL=NamespaceRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4FAA4D;AAC5D,kGAAkE;AAClE,8FAA8D;AAC9D,gJAAgH;AAChH,kJAAkH;AAElH,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,kBAAkB,CACrB,WAAmB;QAEnB,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,qBAAqB,CACxB,WAAmB;QAEnB,OAAO,IAAI,kCAAwB,CAC/B,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,mBAAmB,CACtB,WAAmB;QAEnB,OAAO,IAAI,gCAAsB,CAC7B,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,iCAAiC,CACpC,WAAmB,EACnB,SAAsB,IAAI,EAC1B,SAAiB,WAAW;QAE5B,OAAO,IAAI,mDAAyC,CAChD,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,kCAAkC,CACrC,WAAmB,EACnB,WAAmB,EACnB,SAAsB,IAAI,EAC1B,SAAiB,WAAW;QAE5B,OAAO,IAAI,oDAA0C,CACjD,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,WAAW,EACX,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAnFD,+BAmFC"}
@@ -0,0 +1,107 @@
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 {GetAttr, Join} from "../../core/func";
18
+ import GlobalRankingModelRef from "./GlobalRankingModelRef";
19
+ import SubscribeRankingModelRef from "./SubscribeRankingModelRef";
20
+ import ClusterRankingModelRef from "./ClusterRankingModelRef";
21
+ import CreateGlobalRankingReceivedRewardByUserId from "../stampSheet/CreateGlobalRankingReceivedRewardByUserId";
22
+ import CreateClusterRankingReceivedRewardByUserId from "../stampSheet/CreateClusterRankingReceivedRewardByUserId";
23
+
24
+ export default class NamespaceRef {
25
+ private readonly namespaceName: string;
26
+
27
+ public constructor(
28
+ namespaceName: string,
29
+ ) {
30
+ this.namespaceName = namespaceName;
31
+ }
32
+
33
+ public globalRankingModel(
34
+ rankingName: string,
35
+ ): GlobalRankingModelRef {
36
+ return new GlobalRankingModelRef(
37
+ this.namespaceName,
38
+ rankingName,
39
+ );
40
+ }
41
+
42
+ public subscribeRankingModel(
43
+ rankingName: string,
44
+ ): SubscribeRankingModelRef {
45
+ return new SubscribeRankingModelRef(
46
+ this.namespaceName,
47
+ rankingName,
48
+ );
49
+ }
50
+
51
+ public clusterRankingModel(
52
+ rankingName: string,
53
+ ): ClusterRankingModelRef {
54
+ return new ClusterRankingModelRef(
55
+ this.namespaceName,
56
+ rankingName,
57
+ );
58
+ }
59
+
60
+ public createGlobalRankingReceivedReward(
61
+ rankingName: string,
62
+ season: number|null = null,
63
+ userId: string = "#{userId}",
64
+ ): CreateGlobalRankingReceivedRewardByUserId {
65
+ return new CreateGlobalRankingReceivedRewardByUserId(
66
+ this.namespaceName,
67
+ rankingName,
68
+ season,
69
+ userId,
70
+ );
71
+ }
72
+
73
+ public createClusterRankingReceivedReward(
74
+ rankingName: string,
75
+ clusterName: string,
76
+ season: number|null = null,
77
+ userId: string = "#{userId}",
78
+ ): CreateClusterRankingReceivedRewardByUserId {
79
+ return new CreateClusterRankingReceivedRewardByUserId(
80
+ this.namespaceName,
81
+ rankingName,
82
+ clusterName,
83
+ season,
84
+ userId,
85
+ );
86
+ }
87
+
88
+ public grn(
89
+ ): string {
90
+ return new Join(
91
+ ":",
92
+ [
93
+ "grn",
94
+ "gs2",
95
+ GetAttr.region(
96
+ ).str(
97
+ ),
98
+ GetAttr.ownerId(
99
+ ).str(
100
+ ),
101
+ "ranking2",
102
+ this.namespaceName,
103
+ ],
104
+ ).str(
105
+ );
106
+ }
107
+ }
@@ -0,0 +1,6 @@
1
+ export default class SubscribeRankingModelRef {
2
+ private readonly namespaceName;
3
+ private readonly rankingName;
4
+ constructor(namespaceName: string, rankingName: string);
5
+ grn(): string;
6
+ }
@@ -0,0 +1,38 @@
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 func_1 = require("../../core/func");
19
+ class SubscribeRankingModelRef {
20
+ constructor(namespaceName, rankingName) {
21
+ this.namespaceName = namespaceName;
22
+ this.rankingName = rankingName;
23
+ }
24
+ grn() {
25
+ return new func_1.Join(":", [
26
+ "grn",
27
+ "gs2",
28
+ func_1.GetAttr.region().str(),
29
+ func_1.GetAttr.ownerId().str(),
30
+ "ranking2",
31
+ this.namespaceName,
32
+ "subscribe",
33
+ this.rankingName,
34
+ ]).str();
35
+ }
36
+ }
37
+ exports.default = SubscribeRankingModelRef;
38
+ //# sourceMappingURL=SubscribeRankingModelRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscribeRankingModelRef.js","sourceRoot":"","sources":["SubscribeRankingModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,wBAAwB;IAIzC,YACI,aAAqB,EACrB,WAAmB;QAEnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,UAAU;YACV,IAAI,CAAC,aAAa;YAClB,WAAW;YACX,IAAI,CAAC,WAAW;SACnB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,2CAiCC"}
@@ -0,0 +1,52 @@
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 {GetAttr, Join} from "../../core/func";
18
+
19
+ export default class SubscribeRankingModelRef {
20
+ private readonly namespaceName: string;
21
+ private readonly rankingName: string;
22
+
23
+ public constructor(
24
+ namespaceName: string,
25
+ rankingName: string,
26
+ ) {
27
+ this.namespaceName = namespaceName;
28
+ this.rankingName = rankingName;
29
+ }
30
+
31
+ public grn(
32
+ ): string {
33
+ return new Join(
34
+ ":",
35
+ [
36
+ "grn",
37
+ "gs2",
38
+ GetAttr.region(
39
+ ).str(
40
+ ),
41
+ GetAttr.ownerId(
42
+ ).str(
43
+ ),
44
+ "ranking2",
45
+ this.namespaceName,
46
+ "subscribe",
47
+ this.rankingName,
48
+ ],
49
+ ).str(
50
+ );
51
+ }
52
+ }
@@ -0,0 +1,9 @@
1
+ import NamespaceRef from "./NamespaceRef";
2
+ import GlobalRankingModelRef from "./GlobalRankingModelRef";
3
+ import GlobalRankingSeasonRef from "./GlobalRankingSeasonRef";
4
+ import GlobalRankingBorderRef from "./GlobalRankingBorderRef";
5
+ import ClusterRankingModelRef from "./ClusterRankingModelRef";
6
+ import ClusterRankingSeasonRef from "./ClusterRankingSeasonRef";
7
+ import ClusterRankingBorderRef from "./ClusterRankingBorderRef";
8
+ import SubscribeRankingModelRef from "./SubscribeRankingModelRef";
9
+ export { NamespaceRef, GlobalRankingModelRef, GlobalRankingSeasonRef, GlobalRankingBorderRef, ClusterRankingModelRef, ClusterRankingSeasonRef, ClusterRankingBorderRef, SubscribeRankingModelRef, };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscribeRankingModelRef = exports.ClusterRankingBorderRef = exports.ClusterRankingSeasonRef = exports.ClusterRankingModelRef = exports.GlobalRankingBorderRef = exports.GlobalRankingSeasonRef = exports.GlobalRankingModelRef = exports.NamespaceRef = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /*
6
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
7
+ * Reserved.
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License").
10
+ * You may not use this file except in compliance with the License.
11
+ * A copy of the License is located at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * or in the "license" file accompanying this file. This file is distributed
16
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17
+ * express or implied. See the License for the specific language governing
18
+ * permissions and limitations under the License.
19
+ */
20
+ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
21
+ exports.NamespaceRef = NamespaceRef_1.default;
22
+ const GlobalRankingModelRef_1 = tslib_1.__importDefault(require("./GlobalRankingModelRef"));
23
+ exports.GlobalRankingModelRef = GlobalRankingModelRef_1.default;
24
+ const GlobalRankingSeasonRef_1 = tslib_1.__importDefault(require("./GlobalRankingSeasonRef"));
25
+ exports.GlobalRankingSeasonRef = GlobalRankingSeasonRef_1.default;
26
+ const GlobalRankingBorderRef_1 = tslib_1.__importDefault(require("./GlobalRankingBorderRef"));
27
+ exports.GlobalRankingBorderRef = GlobalRankingBorderRef_1.default;
28
+ const ClusterRankingModelRef_1 = tslib_1.__importDefault(require("./ClusterRankingModelRef"));
29
+ exports.ClusterRankingModelRef = ClusterRankingModelRef_1.default;
30
+ const ClusterRankingSeasonRef_1 = tslib_1.__importDefault(require("./ClusterRankingSeasonRef"));
31
+ exports.ClusterRankingSeasonRef = ClusterRankingSeasonRef_1.default;
32
+ const ClusterRankingBorderRef_1 = tslib_1.__importDefault(require("./ClusterRankingBorderRef"));
33
+ exports.ClusterRankingBorderRef = ClusterRankingBorderRef_1.default;
34
+ const SubscribeRankingModelRef_1 = tslib_1.__importDefault(require("./SubscribeRankingModelRef"));
35
+ exports.SubscribeRankingModelRef = SubscribeRankingModelRef_1.default;
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAUtC,uBAVG,sBAAY,CAUH;AAThB,4FAA4D;AAUxD,gCAVG,+BAAqB,CAUH;AATzB,8FAA8D;AAU1D,iCAVG,gCAAsB,CAUH;AAT1B,8FAA8D;AAU1D,iCAVG,gCAAsB,CAUH;AAT1B,8FAA8D;AAU1D,iCAVG,gCAAsB,CAUH;AAT1B,gGAAgE;AAU5D,kCAVG,iCAAuB,CAUH;AAT3B,gGAAgE;AAU5D,kCAVG,iCAAuB,CAUH;AAT3B,kGAAkE;AAU9D,mCAVG,kCAAwB,CAUH"}
@@ -0,0 +1,34 @@
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 NamespaceRef from "./NamespaceRef";
17
+ import GlobalRankingModelRef from "./GlobalRankingModelRef";
18
+ import GlobalRankingSeasonRef from "./GlobalRankingSeasonRef";
19
+ import GlobalRankingBorderRef from "./GlobalRankingBorderRef";
20
+ import ClusterRankingModelRef from "./ClusterRankingModelRef";
21
+ import ClusterRankingSeasonRef from "./ClusterRankingSeasonRef";
22
+ import ClusterRankingBorderRef from "./ClusterRankingBorderRef";
23
+ import SubscribeRankingModelRef from "./SubscribeRankingModelRef";
24
+
25
+ export {
26
+ NamespaceRef,
27
+ GlobalRankingModelRef,
28
+ GlobalRankingSeasonRef,
29
+ GlobalRankingBorderRef,
30
+ ClusterRankingModelRef,
31
+ ClusterRankingSeasonRef,
32
+ ClusterRankingBorderRef,
33
+ SubscribeRankingModelRef,
34
+ }
@@ -0,0 +1,14 @@
1
+ import { ConsumeAction } from "../../core/model";
2
+ export default class CreateClusterRankingReceivedRewardByUserId extends ConsumeAction {
3
+ private readonly namespaceName;
4
+ private readonly rankingName;
5
+ private readonly clusterName;
6
+ private readonly userId;
7
+ private readonly season;
8
+ private readonly timeOffsetToken;
9
+ constructor(namespaceName: string, rankingName: string, clusterName: string, season?: number | null, timeOffsetToken?: string | null, userId?: string);
10
+ request(): {
11
+ [name: string]: any;
12
+ };
13
+ action(): string;
14
+ }
@@ -0,0 +1,58 @@
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 model_1 = require("../../core/model");
19
+ class CreateClusterRankingReceivedRewardByUserId extends model_1.ConsumeAction {
20
+ constructor(namespaceName, rankingName, clusterName, season = null, timeOffsetToken = null, userId = "#{userId}") {
21
+ super();
22
+ this.season = null;
23
+ this.timeOffsetToken = null;
24
+ this.namespaceName = namespaceName;
25
+ this.rankingName = rankingName;
26
+ this.clusterName = clusterName;
27
+ this.season = season !== null && season !== void 0 ? season : null;
28
+ this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
29
+ this.userId = userId;
30
+ }
31
+ request() {
32
+ let properties = {};
33
+ if (this.namespaceName != null) {
34
+ properties["namespaceName"] = this.namespaceName;
35
+ }
36
+ if (this.rankingName != null) {
37
+ properties["rankingName"] = this.rankingName;
38
+ }
39
+ if (this.clusterName != null) {
40
+ properties["clusterName"] = this.clusterName;
41
+ }
42
+ if (this.userId != null) {
43
+ properties["userId"] = this.userId;
44
+ }
45
+ if (this.season != null) {
46
+ properties["season"] = this.season;
47
+ }
48
+ if (this.timeOffsetToken != null) {
49
+ properties["timeOffsetToken"] = this.timeOffsetToken;
50
+ }
51
+ return properties;
52
+ }
53
+ action() {
54
+ return "Gs2Ranking2:CreateClusterRankingReceivedRewardByUserId";
55
+ }
56
+ }
57
+ exports.default = CreateClusterRankingReceivedRewardByUserId;
58
+ //# sourceMappingURL=CreateClusterRankingReceivedRewardByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateClusterRankingReceivedRewardByUserId.js","sourceRoot":"","sources":["CreateClusterRankingReceivedRewardByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,0CAA2C,SAAQ,qBAAa;IASjF,YACI,aAAqB,EACrB,WAAmB,EACnB,WAAmB,EACnB,SAAsB,IAAI,EAC1B,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAZK,WAAM,GAAgB,IAAI,CAAC;QAC3B,oBAAe,GAAgB,IAAI,CAAC;QAajD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,wDAAwD,CAAC;IACpE,CAAC;CACJ;AAxDD,6DAwDC"}
@@ -0,0 +1,75 @@
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 {AcquireAction, ConsumeAction} from "../../core/model";
18
+
19
+ export default class CreateClusterRankingReceivedRewardByUserId extends ConsumeAction {
20
+ private readonly namespaceName: string;
21
+ private readonly rankingName: string;
22
+ private readonly clusterName: string;
23
+ private readonly userId: string;
24
+ private readonly season: number|null = null;
25
+ private readonly timeOffsetToken: string|null = null;
26
+
27
+
28
+ public constructor(
29
+ namespaceName: string,
30
+ rankingName: string,
31
+ clusterName: string,
32
+ season: number|null = null,
33
+ timeOffsetToken: string|null = null,
34
+ userId: string = "#{userId}",
35
+ ) {
36
+ super();
37
+
38
+ this.namespaceName = namespaceName;
39
+ this.rankingName = rankingName;
40
+ this.clusterName = clusterName;
41
+ this.season = season ?? null;
42
+ this.timeOffsetToken = timeOffsetToken ?? null;
43
+ this.userId = userId;
44
+ }
45
+
46
+ public request(
47
+ ): {[name: string]: any} {
48
+ let properties: {[name: string]: any} = {};
49
+
50
+ if (this.namespaceName != null) {
51
+ properties["namespaceName"] = this.namespaceName;
52
+ }
53
+ if (this.rankingName != null) {
54
+ properties["rankingName"] = this.rankingName;
55
+ }
56
+ if (this.clusterName != null) {
57
+ properties["clusterName"] = this.clusterName;
58
+ }
59
+ if (this.userId != null) {
60
+ properties["userId"] = this.userId;
61
+ }
62
+ if (this.season != null) {
63
+ properties["season"] = this.season;
64
+ }
65
+ if (this.timeOffsetToken != null) {
66
+ properties["timeOffsetToken"] = this.timeOffsetToken;
67
+ }
68
+
69
+ return properties;
70
+ }
71
+
72
+ public action(): string {
73
+ return "Gs2Ranking2:CreateClusterRankingReceivedRewardByUserId";
74
+ }
75
+ }
@@ -0,0 +1,13 @@
1
+ import { ConsumeAction } from "../../core/model";
2
+ export default class CreateGlobalRankingReceivedRewardByUserId extends ConsumeAction {
3
+ private readonly namespaceName;
4
+ private readonly rankingName;
5
+ private readonly userId;
6
+ private readonly season;
7
+ private readonly timeOffsetToken;
8
+ constructor(namespaceName: string, rankingName: string, season?: number | null, timeOffsetToken?: string | null, userId?: string);
9
+ request(): {
10
+ [name: string]: any;
11
+ };
12
+ action(): string;
13
+ }