gs2-cdk 1.0.56 → 1.0.57

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 (101) hide show
  1. package/package.json +1 -1
  2. package/seasonRating/index.d.ts +12 -0
  3. package/seasonRating/index.js +32 -0
  4. package/seasonRating/index.js.map +1 -0
  5. package/seasonRating/index.ts +36 -0
  6. package/seasonRating/model/CurrentMasterData.d.ts +13 -0
  7. package/seasonRating/model/CurrentMasterData.js +50 -0
  8. package/seasonRating/model/CurrentMasterData.js.map +1 -0
  9. package/seasonRating/model/CurrentMasterData.ts +70 -0
  10. package/seasonRating/model/GameResult.d.ts +9 -0
  11. package/seasonRating/model/GameResult.js +20 -0
  12. package/seasonRating/model/GameResult.js.map +1 -0
  13. package/seasonRating/model/GameResult.ts +44 -0
  14. package/seasonRating/model/MatchSession.d.ts +18 -0
  15. package/seasonRating/model/MatchSession.js +61 -0
  16. package/seasonRating/model/MatchSession.js.map +1 -0
  17. package/seasonRating/model/MatchSession.ts +93 -0
  18. package/seasonRating/model/Namespace.d.ts +21 -0
  19. package/seasonRating/model/Namespace.js +72 -0
  20. package/seasonRating/model/Namespace.js.map +1 -0
  21. package/seasonRating/model/Namespace.ts +115 -0
  22. package/seasonRating/model/SeasonModel.d.ts +12 -0
  23. package/seasonRating/model/SeasonModel.js +30 -0
  24. package/seasonRating/model/SeasonModel.js.map +1 -0
  25. package/seasonRating/model/SeasonModel.ts +57 -0
  26. package/seasonRating/model/SignedBallot.d.ts +9 -0
  27. package/seasonRating/model/SignedBallot.js +20 -0
  28. package/seasonRating/model/SignedBallot.js.map +1 -0
  29. package/seasonRating/model/SignedBallot.ts +44 -0
  30. package/seasonRating/model/TierModel.d.ts +12 -0
  31. package/seasonRating/model/TierModel.js +34 -0
  32. package/seasonRating/model/TierModel.js.map +1 -0
  33. package/seasonRating/model/TierModel.ts +61 -0
  34. package/seasonRating/model/Vote.d.ts +0 -0
  35. package/seasonRating/model/Vote.js +19 -0
  36. package/seasonRating/model/Vote.js.map +1 -0
  37. package/seasonRating/model/Vote.ts +17 -0
  38. package/seasonRating/model/WrittenBallot.d.ts +0 -0
  39. package/seasonRating/model/WrittenBallot.js +19 -0
  40. package/seasonRating/model/WrittenBallot.js.map +1 -0
  41. package/seasonRating/model/WrittenBallot.ts +17 -0
  42. package/seasonRating/model/index.d.ts +15 -0
  43. package/seasonRating/model/index.js +36 -0
  44. package/seasonRating/model/index.js.map +1 -0
  45. package/seasonRating/model/index.ts +48 -0
  46. package/seasonRating/model/options/GameResultOptions.d.ts +2 -0
  47. package/seasonRating/model/options/GameResultOptions.js +18 -0
  48. package/seasonRating/model/options/GameResultOptions.js.map +1 -0
  49. package/seasonRating/model/options/GameResultOptions.ts +19 -0
  50. package/seasonRating/model/options/MatchSessionOptions.d.ts +4 -0
  51. package/seasonRating/model/options/MatchSessionOptions.js +18 -0
  52. package/seasonRating/model/options/MatchSessionOptions.js.map +1 -0
  53. package/seasonRating/model/options/MatchSessionOptions.ts +21 -0
  54. package/seasonRating/model/options/NamespaceOptions.d.ts +7 -0
  55. package/seasonRating/model/options/NamespaceOptions.js +3 -0
  56. package/seasonRating/model/options/NamespaceOptions.js.map +1 -0
  57. package/seasonRating/model/options/NamespaceOptions.ts +24 -0
  58. package/seasonRating/model/options/SeasonModelOptions.d.ts +3 -0
  59. package/seasonRating/model/options/SeasonModelOptions.js +3 -0
  60. package/seasonRating/model/options/SeasonModelOptions.js.map +1 -0
  61. package/seasonRating/model/options/SeasonModelOptions.ts +21 -0
  62. package/seasonRating/model/options/SignedBallotOptions.d.ts +2 -0
  63. package/seasonRating/model/options/SignedBallotOptions.js +18 -0
  64. package/seasonRating/model/options/SignedBallotOptions.js.map +1 -0
  65. package/seasonRating/model/options/SignedBallotOptions.ts +19 -0
  66. package/seasonRating/model/options/TierModelOptions.d.ts +3 -0
  67. package/seasonRating/model/options/TierModelOptions.js +18 -0
  68. package/seasonRating/model/options/TierModelOptions.js.map +1 -0
  69. package/seasonRating/model/options/TierModelOptions.ts +20 -0
  70. package/seasonRating/model/options/VoteOptions.d.ts +0 -0
  71. package/seasonRating/model/options/VoteOptions.js +19 -0
  72. package/seasonRating/model/options/VoteOptions.js.map +1 -0
  73. package/seasonRating/model/options/VoteOptions.ts +17 -0
  74. package/seasonRating/model/options/WrittenBallotOptions.d.ts +4 -0
  75. package/seasonRating/model/options/WrittenBallotOptions.js +3 -0
  76. package/seasonRating/model/options/WrittenBallotOptions.js.map +1 -0
  77. package/seasonRating/model/options/WrittenBallotOptions.ts +23 -0
  78. package/seasonRating/ref/MatchSessionRef.d.ts +6 -0
  79. package/seasonRating/ref/MatchSessionRef.js +38 -0
  80. package/seasonRating/ref/MatchSessionRef.js.map +1 -0
  81. package/seasonRating/ref/MatchSessionRef.ts +52 -0
  82. package/seasonRating/ref/NamespaceRef.d.ts +7 -0
  83. package/seasonRating/ref/NamespaceRef.js +40 -0
  84. package/seasonRating/ref/NamespaceRef.js.map +1 -0
  85. package/seasonRating/ref/NamespaceRef.ts +59 -0
  86. package/seasonRating/ref/SeasonModelRef.d.ts +6 -0
  87. package/seasonRating/ref/SeasonModelRef.js +38 -0
  88. package/seasonRating/ref/SeasonModelRef.js.map +1 -0
  89. package/seasonRating/ref/SeasonModelRef.ts +52 -0
  90. package/seasonRating/ref/VoteRef.d.ts +7 -0
  91. package/seasonRating/ref/VoteRef.js +40 -0
  92. package/seasonRating/ref/VoteRef.js.map +1 -0
  93. package/seasonRating/ref/VoteRef.ts +56 -0
  94. package/seasonRating/ref/index.d.ts +5 -0
  95. package/seasonRating/ref/index.js +28 -0
  96. package/seasonRating/ref/index.js.map +1 -0
  97. package/seasonRating/ref/index.ts +26 -0
  98. package/seasonRating/stampSheet/index.d.ts +1 -0
  99. package/seasonRating/stampSheet/index.js +18 -0
  100. package/seasonRating/stampSheet/index.js.map +1 -0
  101. package/seasonRating/stampSheet/index.ts +18 -0
@@ -0,0 +1,115 @@
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 SeasonModel from "./SeasonModel";
25
+
26
+ import { NamespaceOptions } from "./options/NamespaceOptions";
27
+
28
+ export default class Namespace extends CdkResource {
29
+ private readonly stack: Stack;
30
+ private readonly name: string;
31
+ private readonly description: string|null = null;
32
+ private readonly transactionSetting: TransactionSetting|null = null;
33
+ private readonly logSetting: LogSetting|null = null;
34
+
35
+ public constructor(
36
+ stack: Stack,
37
+ name: string,
38
+ options: NamespaceOptions|null = null,
39
+ ) {
40
+ super(
41
+ "SeasonRating_Namespace_" + name
42
+ );
43
+
44
+ this.stack = stack;
45
+ this.name = name;
46
+ this.description = options?.description ?? null;
47
+ this.transactionSetting = options?.transactionSetting ?? null;
48
+ this.logSetting = options?.logSetting ?? null;
49
+ stack.addResource(
50
+ this,
51
+ );
52
+ }
53
+
54
+
55
+ public alternateKeys(
56
+ ) {
57
+ return "name";
58
+ }
59
+
60
+ public resourceType(
61
+ ): string {
62
+ return "GS2::SeasonRating::Namespace";
63
+ }
64
+
65
+ public properties(
66
+ ): {[name: string]: any} {
67
+ let properties: {[name: string]: any} = {};
68
+
69
+ if (this.name != null) {
70
+ properties["Name"] = this.name;
71
+ }
72
+ if (this.description != null) {
73
+ properties["Description"] = this.description;
74
+ }
75
+ if (this.transactionSetting != null) {
76
+ properties["TransactionSetting"] = this.transactionSetting?.properties(
77
+ );
78
+ }
79
+ if (this.logSetting != null) {
80
+ properties["LogSetting"] = this.logSetting?.properties(
81
+ );
82
+ }
83
+
84
+ return properties;
85
+ }
86
+
87
+ public ref(
88
+ ): NamespaceRef {
89
+ return new NamespaceRef(
90
+ this.name!,
91
+ );
92
+ }
93
+
94
+ public getAttrNamespaceId(
95
+ ): GetAttr {
96
+ return new GetAttr(
97
+ this,
98
+ "Item.NamespaceId",
99
+ null,
100
+ );
101
+ }
102
+
103
+ public masterData(
104
+ seasonModels: SeasonModel[],
105
+ ): Namespace {
106
+ new CurrentMasterData(
107
+ this.stack,
108
+ this.name,
109
+ seasonModels,
110
+ ).addDependsOn(
111
+ this,
112
+ );
113
+ return this;
114
+ }
115
+ }
@@ -0,0 +1,12 @@
1
+ import TierModel from "./TierModel";
2
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
3
+ export default class SeasonModel {
4
+ private readonly name;
5
+ private readonly tiers;
6
+ private readonly experienceModelId;
7
+ private readonly metadata;
8
+ constructor(name: string, tiers: TierModel[], experienceModelId: string, options?: SeasonModelOptions | null);
9
+ properties(): {
10
+ [name: string]: any;
11
+ };
12
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class SeasonModel {
4
+ constructor(name, tiers, experienceModelId, options = null) {
5
+ var _a;
6
+ this.metadata = null;
7
+ this.name = name;
8
+ this.tiers = tiers;
9
+ this.experienceModelId = experienceModelId;
10
+ this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
11
+ }
12
+ properties() {
13
+ let properties = {};
14
+ if (this.name != null) {
15
+ properties["name"] = this.name;
16
+ }
17
+ if (this.metadata != null) {
18
+ properties["metadata"] = this.metadata;
19
+ }
20
+ if (this.tiers != null) {
21
+ properties["tiers"] = this.tiers.map(v => v.properties());
22
+ }
23
+ if (this.experienceModelId != null) {
24
+ properties["experienceModelId"] = this.experienceModelId;
25
+ }
26
+ return properties;
27
+ }
28
+ }
29
+ exports.default = SeasonModel;
30
+ //# sourceMappingURL=SeasonModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeasonModel.js","sourceRoot":"","sources":["SeasonModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,WAAW;IAM5B,YACI,IAAY,EACZ,KAAkB,EAClB,iBAAyB,EACzB,UAAmC,IAAI;;QAN1B,aAAQ,GAAgB,IAAI,CAAC;QAQ1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,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,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjD,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtCD,8BAsCC"}
@@ -0,0 +1,57 @@
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 TierModel from "./TierModel";
17
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
18
+
19
+ export default class SeasonModel {
20
+ private readonly name: string;
21
+ private readonly tiers: TierModel[];
22
+ private readonly experienceModelId: string;
23
+ private readonly metadata: string|null = null;
24
+
25
+ public constructor(
26
+ name: string,
27
+ tiers: TierModel[],
28
+ experienceModelId: string,
29
+ options: SeasonModelOptions|null = null,
30
+ ) {
31
+ this.name = name;
32
+ this.tiers = tiers;
33
+ this.experienceModelId = experienceModelId;
34
+ this.metadata = options?.metadata ?? null;
35
+ }
36
+
37
+ public properties(
38
+ ): {[name: string]: any} {
39
+ let properties: {[name: string]: any} = {};
40
+
41
+ if (this.name != null) {
42
+ properties["name"] = this.name;
43
+ }
44
+ if (this.metadata != null) {
45
+ properties["metadata"] = this.metadata;
46
+ }
47
+ if (this.tiers != null) {
48
+ properties["tiers"] = this.tiers.map(v => v.properties(
49
+ ));
50
+ }
51
+ if (this.experienceModelId != null) {
52
+ properties["experienceModelId"] = this.experienceModelId;
53
+ }
54
+
55
+ return properties;
56
+ }
57
+ }
@@ -0,0 +1,9 @@
1
+ import { SignedBallotOptions } from "./options/SignedBallotOptions";
2
+ export default class SignedBallot {
3
+ private readonly body;
4
+ private readonly signature;
5
+ constructor(body: string, signature: string, options?: SignedBallotOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class SignedBallot {
4
+ constructor(body, signature, options = null) {
5
+ this.body = body;
6
+ this.signature = signature;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.body != null) {
11
+ properties["body"] = this.body;
12
+ }
13
+ if (this.signature != null) {
14
+ properties["signature"] = this.signature;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = SignedBallot;
20
+ //# sourceMappingURL=SignedBallot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignedBallot.js","sourceRoot":"","sources":["SignedBallot.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAI7B,YACI,IAAY,EACZ,SAAiB,EACjB,UAAoC,IAAI;QAExC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,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,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,+BA0BC"}
@@ -0,0 +1,44 @@
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 { SignedBallotOptions } from "./options/SignedBallotOptions";
17
+
18
+ export default class SignedBallot {
19
+ private readonly body: string;
20
+ private readonly signature: string;
21
+
22
+ public constructor(
23
+ body: string,
24
+ signature: string,
25
+ options: SignedBallotOptions|null = null,
26
+ ) {
27
+ this.body = body;
28
+ this.signature = signature;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.body != null) {
36
+ properties["body"] = this.body;
37
+ }
38
+ if (this.signature != null) {
39
+ properties["signature"] = this.signature;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -0,0 +1,12 @@
1
+ import { TierModelOptions } from "./options/TierModelOptions";
2
+ export default class TierModel {
3
+ private readonly raiseRankBonus;
4
+ private readonly entryFee;
5
+ private readonly minimumChangePoint;
6
+ private readonly maximumChangePoint;
7
+ private readonly metadata;
8
+ constructor(raiseRankBonus: number, entryFee: number, minimumChangePoint: number, maximumChangePoint: number, options?: TierModelOptions | null);
9
+ properties(): {
10
+ [name: string]: any;
11
+ };
12
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class TierModel {
4
+ constructor(raiseRankBonus, entryFee, minimumChangePoint, maximumChangePoint, options = null) {
5
+ var _a;
6
+ this.metadata = null;
7
+ this.raiseRankBonus = raiseRankBonus;
8
+ this.entryFee = entryFee;
9
+ this.minimumChangePoint = minimumChangePoint;
10
+ this.maximumChangePoint = maximumChangePoint;
11
+ this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
12
+ }
13
+ properties() {
14
+ let properties = {};
15
+ if (this.metadata != null) {
16
+ properties["metadata"] = this.metadata;
17
+ }
18
+ if (this.raiseRankBonus != null) {
19
+ properties["raiseRankBonus"] = this.raiseRankBonus;
20
+ }
21
+ if (this.entryFee != null) {
22
+ properties["entryFee"] = this.entryFee;
23
+ }
24
+ if (this.minimumChangePoint != null) {
25
+ properties["minimumChangePoint"] = this.minimumChangePoint;
26
+ }
27
+ if (this.maximumChangePoint != null) {
28
+ properties["maximumChangePoint"] = this.maximumChangePoint;
29
+ }
30
+ return properties;
31
+ }
32
+ }
33
+ exports.default = TierModel;
34
+ //# sourceMappingURL=TierModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TierModel.js","sourceRoot":"","sources":["TierModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,SAAS;IAO1B,YACI,cAAsB,EACtB,QAAgB,EAChB,kBAA0B,EAC1B,kBAA0B,EAC1B,UAAiC,IAAI;;QAPxB,aAAQ,GAAgB,IAAI,CAAC;QAS1C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,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;SACtD;QACD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA3CD,4BA2CC"}
@@ -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
+ import { TierModelOptions } from "./options/TierModelOptions";
17
+
18
+ export default class TierModel {
19
+ private readonly raiseRankBonus: number;
20
+ private readonly entryFee: number;
21
+ private readonly minimumChangePoint: number;
22
+ private readonly maximumChangePoint: number;
23
+ private readonly metadata: string|null = null;
24
+
25
+ public constructor(
26
+ raiseRankBonus: number,
27
+ entryFee: number,
28
+ minimumChangePoint: number,
29
+ maximumChangePoint: number,
30
+ options: TierModelOptions|null = null,
31
+ ) {
32
+ this.raiseRankBonus = raiseRankBonus;
33
+ this.entryFee = entryFee;
34
+ this.minimumChangePoint = minimumChangePoint;
35
+ this.maximumChangePoint = maximumChangePoint;
36
+ this.metadata = options?.metadata ?? null;
37
+ }
38
+
39
+ public properties(
40
+ ): {[name: string]: any} {
41
+ let properties: {[name: string]: any} = {};
42
+
43
+ if (this.metadata != null) {
44
+ properties["metadata"] = this.metadata;
45
+ }
46
+ if (this.raiseRankBonus != null) {
47
+ properties["raiseRankBonus"] = this.raiseRankBonus;
48
+ }
49
+ if (this.entryFee != null) {
50
+ properties["entryFee"] = this.entryFee;
51
+ }
52
+ if (this.minimumChangePoint != null) {
53
+ properties["minimumChangePoint"] = this.minimumChangePoint;
54
+ }
55
+ if (this.maximumChangePoint != null) {
56
+ properties["maximumChangePoint"] = this.maximumChangePoint;
57
+ }
58
+
59
+ return properties;
60
+ }
61
+ }
File without changes
@@ -0,0 +1,19 @@
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
+ //# sourceMappingURL=Vote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Vote.js","sourceRoot":"","sources":["Vote.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -0,0 +1,17 @@
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
+ */
File without changes
@@ -0,0 +1,19 @@
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
+ //# sourceMappingURL=WrittenBallot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WrittenBallot.js","sourceRoot":"","sources":["WrittenBallot.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
@@ -0,0 +1,17 @@
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
+ */
@@ -0,0 +1,15 @@
1
+ import Namespace from "./Namespace";
2
+ import { NamespaceOptions } from "./options/NamespaceOptions";
3
+ import MatchSession from "./MatchSession";
4
+ import { MatchSessionOptions } from "./options/MatchSessionOptions";
5
+ import SeasonModel from "./SeasonModel";
6
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
7
+ import TierModel from "./TierModel";
8
+ import { TierModelOptions } from "./options/TierModelOptions";
9
+ import GameResult from "./GameResult";
10
+ import { GameResultOptions } from "./options/GameResultOptions";
11
+ import SignedBallot from "./SignedBallot";
12
+ import { SignedBallotOptions } from "./options/SignedBallotOptions";
13
+ import { WrittenBallotOptions } from "./options/WrittenBallotOptions";
14
+ import CurrentMasterData from "./CurrentMasterData";
15
+ export { Namespace, NamespaceOptions, MatchSession, MatchSessionOptions, SeasonModel, SeasonModelOptions, TierModel, TierModelOptions, GameResult, GameResultOptions, SignedBallot, SignedBallotOptions, WrittenBallotOptions, CurrentMasterData, };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrentMasterData = exports.SignedBallot = exports.GameResult = exports.TierModel = exports.SeasonModel = exports.MatchSession = exports.Namespace = 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
+ * deny overwrite
21
+ */
22
+ const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
23
+ exports.Namespace = Namespace_1.default;
24
+ const MatchSession_1 = tslib_1.__importDefault(require("./MatchSession"));
25
+ exports.MatchSession = MatchSession_1.default;
26
+ const SeasonModel_1 = tslib_1.__importDefault(require("./SeasonModel"));
27
+ exports.SeasonModel = SeasonModel_1.default;
28
+ const TierModel_1 = tslib_1.__importDefault(require("./TierModel"));
29
+ exports.TierModel = TierModel_1.default;
30
+ const GameResult_1 = tslib_1.__importDefault(require("./GameResult"));
31
+ exports.GameResult = GameResult_1.default;
32
+ const SignedBallot_1 = tslib_1.__importDefault(require("./SignedBallot"));
33
+ exports.SignedBallot = SignedBallot_1.default;
34
+ const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
35
+ exports.CurrentMasterData = CurrentMasterData_1.default;
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,oEAAoC;AAgBhC,oBAhBG,mBAAS,CAgBH;AAdb,0EAA0C;AAgBtC,uBAhBG,sBAAY,CAgBH;AAdhB,wEAAwC;AAgBpC,sBAhBG,qBAAW,CAgBH;AAdf,oEAAoC;AAgBhC,oBAhBG,mBAAS,CAgBH;AAdb,sEAAsC;AAgBlC,qBAhBG,oBAAU,CAgBH;AAdd,0EAA0C;AAgBtC,uBAhBG,sBAAY,CAgBH;AAbhB,oFAAoD;AAgBhD,4BAhBG,2BAAiB,CAgBH"}
@@ -0,0 +1,48 @@
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
+ import Namespace from "./Namespace";
19
+ import { NamespaceOptions } from "./options/NamespaceOptions";
20
+ import MatchSession from "./MatchSession";
21
+ import { MatchSessionOptions } from "./options/MatchSessionOptions";
22
+ import SeasonModel from "./SeasonModel";
23
+ import { SeasonModelOptions } from "./options/SeasonModelOptions";
24
+ import TierModel from "./TierModel";
25
+ import { TierModelOptions } from "./options/TierModelOptions";
26
+ import GameResult from "./GameResult";
27
+ import { GameResultOptions } from "./options/GameResultOptions";
28
+ import SignedBallot from "./SignedBallot";
29
+ import { SignedBallotOptions } from "./options/SignedBallotOptions";
30
+ import { WrittenBallotOptions } from "./options/WrittenBallotOptions";
31
+ import CurrentMasterData from "./CurrentMasterData";
32
+
33
+ export {
34
+ Namespace,
35
+ NamespaceOptions,
36
+ MatchSession,
37
+ MatchSessionOptions,
38
+ SeasonModel,
39
+ SeasonModelOptions,
40
+ TierModel,
41
+ TierModelOptions,
42
+ GameResult,
43
+ GameResultOptions,
44
+ SignedBallot,
45
+ SignedBallotOptions,
46
+ WrittenBallotOptions,
47
+ CurrentMasterData,
48
+ }
@@ -0,0 +1,2 @@
1
+ export interface GameResultOptions {
2
+ }
@@ -0,0 +1,18 @@
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
+ //# sourceMappingURL=GameResultOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GameResultOptions.js","sourceRoot":"","sources":["GameResultOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,19 @@
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
+ export interface GameResultOptions {
18
+ }
19
+