gs2-cdk 1.0.21 → 1.0.22

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 (137) hide show
  1. package/enchant/index.d.ts +12 -0
  2. package/enchant/index.js +32 -0
  3. package/enchant/index.js.map +1 -0
  4. package/enchant/index.ts +36 -0
  5. package/enchant/model/BalanceParameterModel.d.ts +14 -0
  6. package/enchant/model/BalanceParameterModel.js +34 -0
  7. package/enchant/model/BalanceParameterModel.js.map +1 -0
  8. package/enchant/model/BalanceParameterModel.ts +64 -0
  9. package/enchant/model/BalanceParameterValue.d.ts +9 -0
  10. package/enchant/model/BalanceParameterValue.js +20 -0
  11. package/enchant/model/BalanceParameterValue.js.map +1 -0
  12. package/enchant/model/BalanceParameterValue.ts +44 -0
  13. package/enchant/model/BalanceParameterValueModel.d.ts +9 -0
  14. package/enchant/model/BalanceParameterValueModel.js +22 -0
  15. package/enchant/model/BalanceParameterValueModel.js.map +1 -0
  16. package/enchant/model/BalanceParameterValueModel.ts +43 -0
  17. package/enchant/model/CurrentMasterData.d.ts +15 -0
  18. package/enchant/model/CurrentMasterData.js +54 -0
  19. package/enchant/model/CurrentMasterData.js.map +1 -0
  20. package/enchant/model/CurrentMasterData.ts +78 -0
  21. package/enchant/model/Namespace.d.ts +23 -0
  22. package/enchant/model/Namespace.js +71 -0
  23. package/enchant/model/Namespace.js.map +1 -0
  24. package/enchant/model/Namespace.ts +119 -0
  25. package/enchant/model/RarityParameterCountModel.d.ts +9 -0
  26. package/enchant/model/RarityParameterCountModel.js +20 -0
  27. package/enchant/model/RarityParameterCountModel.js.map +1 -0
  28. package/enchant/model/RarityParameterCountModel.ts +44 -0
  29. package/enchant/model/RarityParameterModel.d.ts +14 -0
  30. package/enchant/model/RarityParameterModel.js +34 -0
  31. package/enchant/model/RarityParameterModel.js.map +1 -0
  32. package/enchant/model/RarityParameterModel.ts +65 -0
  33. package/enchant/model/RarityParameterValue.d.ts +10 -0
  34. package/enchant/model/RarityParameterValue.js +24 -0
  35. package/enchant/model/RarityParameterValue.js.map +1 -0
  36. package/enchant/model/RarityParameterValue.ts +50 -0
  37. package/enchant/model/RarityParameterValueModel.d.ts +12 -0
  38. package/enchant/model/RarityParameterValueModel.js +34 -0
  39. package/enchant/model/RarityParameterValueModel.js.map +1 -0
  40. package/enchant/model/RarityParameterValueModel.ts +61 -0
  41. package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.d.ts +5 -0
  42. package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.js +23 -0
  43. package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.js.map +1 -0
  44. package/enchant/model/enum/BalanceParameterModelInitialValueStrategy.ts +23 -0
  45. package/enchant/model/index.d.ts +19 -0
  46. package/enchant/model/index.js +40 -0
  47. package/enchant/model/index.js.map +1 -0
  48. package/enchant/model/index.ts +54 -0
  49. package/enchant/model/options/BalanceParameterModelOptions.d.ts +3 -0
  50. package/enchant/model/options/BalanceParameterModelOptions.js +3 -0
  51. package/enchant/model/options/BalanceParameterModelOptions.js.map +1 -0
  52. package/enchant/model/options/BalanceParameterModelOptions.ts +22 -0
  53. package/enchant/model/options/BalanceParameterValueModelOptions.d.ts +3 -0
  54. package/enchant/model/options/BalanceParameterValueModelOptions.js +18 -0
  55. package/enchant/model/options/BalanceParameterValueModelOptions.js.map +1 -0
  56. package/enchant/model/options/BalanceParameterValueModelOptions.ts +20 -0
  57. package/enchant/model/options/BalanceParameterValueOptions.d.ts +2 -0
  58. package/enchant/model/options/BalanceParameterValueOptions.js +18 -0
  59. package/enchant/model/options/BalanceParameterValueOptions.js.map +1 -0
  60. package/enchant/model/options/BalanceParameterValueOptions.ts +19 -0
  61. package/enchant/model/options/NamespaceOptions.d.ts +5 -0
  62. package/enchant/model/options/NamespaceOptions.js +3 -0
  63. package/enchant/model/options/NamespaceOptions.js.map +1 -0
  64. package/enchant/model/options/NamespaceOptions.ts +23 -0
  65. package/enchant/model/options/RarityParameterCountModelOptions.d.ts +2 -0
  66. package/enchant/model/options/RarityParameterCountModelOptions.js +18 -0
  67. package/enchant/model/options/RarityParameterCountModelOptions.js.map +1 -0
  68. package/enchant/model/options/RarityParameterCountModelOptions.ts +19 -0
  69. package/enchant/model/options/RarityParameterModelOptions.d.ts +3 -0
  70. package/enchant/model/options/RarityParameterModelOptions.js +3 -0
  71. package/enchant/model/options/RarityParameterModelOptions.js.map +1 -0
  72. package/enchant/model/options/RarityParameterModelOptions.ts +22 -0
  73. package/enchant/model/options/RarityParameterValueModelOptions.d.ts +3 -0
  74. package/enchant/model/options/RarityParameterValueModelOptions.js +18 -0
  75. package/enchant/model/options/RarityParameterValueModelOptions.js.map +1 -0
  76. package/enchant/model/options/RarityParameterValueModelOptions.ts +20 -0
  77. package/enchant/model/options/RarityParameterValueOptions.d.ts +2 -0
  78. package/enchant/model/options/RarityParameterValueOptions.js +18 -0
  79. package/enchant/model/options/RarityParameterValueOptions.js.map +1 -0
  80. package/enchant/model/options/RarityParameterValueOptions.ts +19 -0
  81. package/enchant/ref/BalanceParameterModelRef.d.ts +6 -0
  82. package/enchant/ref/BalanceParameterModelRef.js +39 -0
  83. package/enchant/ref/BalanceParameterModelRef.js.map +1 -0
  84. package/enchant/ref/BalanceParameterModelRef.ts +53 -0
  85. package/enchant/ref/NamespaceRef.d.ts +17 -0
  86. package/enchant/ref/NamespaceRef.js +60 -0
  87. package/enchant/ref/NamespaceRef.js.map +1 -0
  88. package/enchant/ref/NamespaceRef.ts +135 -0
  89. package/enchant/ref/RarityParameterModelRef.d.ts +6 -0
  90. package/enchant/ref/RarityParameterModelRef.js +39 -0
  91. package/enchant/ref/RarityParameterModelRef.js.map +1 -0
  92. package/enchant/ref/RarityParameterModelRef.ts +53 -0
  93. package/enchant/ref/index.d.ts +4 -0
  94. package/enchant/ref/index.js +26 -0
  95. package/enchant/ref/index.js.map +1 -0
  96. package/enchant/ref/index.ts +24 -0
  97. package/enchant/stampSheet/AddRarityParameterStatusByUserId.d.ts +4 -0
  98. package/enchant/stampSheet/AddRarityParameterStatusByUserId.js +31 -0
  99. package/enchant/stampSheet/AddRarityParameterStatusByUserId.js.map +1 -0
  100. package/enchant/stampSheet/AddRarityParameterStatusByUserId.ts +41 -0
  101. package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.d.ts +4 -0
  102. package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.js +31 -0
  103. package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.js.map +1 -0
  104. package/enchant/stampSheet/ReDrawBalanceParameterStatusByUserId.ts +41 -0
  105. package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.d.ts +4 -0
  106. package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.js +31 -0
  107. package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.js.map +1 -0
  108. package/enchant/stampSheet/ReDrawRarityParameterStatusByUserId.ts +41 -0
  109. package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.d.ts +4 -0
  110. package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.js +33 -0
  111. package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.js.map +1 -0
  112. package/enchant/stampSheet/VerifyRarityParameterStatusByUserId.ts +45 -0
  113. package/enchant/stampSheet/index.d.ts +5 -0
  114. package/enchant/stampSheet/index.js +28 -0
  115. package/enchant/stampSheet/index.js.map +1 -0
  116. package/enchant/stampSheet/index.ts +26 -0
  117. package/idle/model/Namespace.js +1 -1
  118. package/idle/model/Namespace.js.map +1 -1
  119. package/idle/model/Namespace.ts +2 -2
  120. package/loginReward/model/Namespace.js +1 -1
  121. package/loginReward/model/Namespace.js.map +1 -1
  122. package/loginReward/model/Namespace.ts +2 -2
  123. package/mission/model/MissionTaskModel.d.ts +1 -0
  124. package/mission/model/MissionTaskModel.js +9 -4
  125. package/mission/model/MissionTaskModel.js.map +1 -1
  126. package/mission/model/MissionTaskModel.ts +6 -0
  127. package/mission/model/enum/MissionTaskModelTargetResetType.d.ts +7 -0
  128. package/mission/model/enum/MissionTaskModelTargetResetType.js +25 -0
  129. package/mission/model/enum/MissionTaskModelTargetResetType.js.map +1 -0
  130. package/mission/model/enum/MissionTaskModelTargetResetType.ts +25 -0
  131. package/mission/model/index.d.ts +2 -1
  132. package/mission/model/index.js +3 -1
  133. package/mission/model/index.js.map +1 -1
  134. package/mission/model/index.ts +2 -0
  135. package/mission/model/options/MissionTaskModelOptions.d.ts +2 -0
  136. package/mission/model/options/MissionTaskModelOptions.ts +2 -0
  137. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import * as model from "./model";
2
+ import * as ref from "./ref";
3
+ import * as stampSheet from "./stampSheet";
4
+ import { NamespaceRef } from "./ref";
5
+ declare function namespace(namespaceName: string): NamespaceRef;
6
+ declare const _default: {
7
+ model: typeof model;
8
+ ref: typeof ref;
9
+ stampSheet: typeof stampSheet;
10
+ namespace: typeof namespace;
11
+ };
12
+ export default _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
19
+ const model = tslib_1.__importStar(require("./model"));
20
+ const ref = tslib_1.__importStar(require("./ref"));
21
+ const stampSheet = tslib_1.__importStar(require("./stampSheet"));
22
+ const ref_1 = require("./ref");
23
+ function namespace(namespaceName) {
24
+ return new ref_1.NamespaceRef(namespaceName);
25
+ }
26
+ exports.default = {
27
+ model,
28
+ ref,
29
+ stampSheet,
30
+ namespace,
31
+ };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAiC;AACjC,mDAA6B;AAC7B,iEAA2C;AAC3C,+BAAqC;AAGrC,SAAS,SAAS,CACd,aAAqB;IAErB,OAAO,IAAI,kBAAY,CACnB,aAAa,CAChB,CAAC;AACN,CAAC;AAED,kBAAe;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,SAAS;CACZ,CAAC"}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import * as model from "./model";
18
+ import * as ref from "./ref";
19
+ import * as stampSheet from "./stampSheet";
20
+ import { NamespaceRef } from "./ref";
21
+
22
+
23
+ function namespace(
24
+ namespaceName: string,
25
+ ): NamespaceRef {
26
+ return new NamespaceRef(
27
+ namespaceName,
28
+ );
29
+ }
30
+
31
+ export default {
32
+ model,
33
+ ref,
34
+ stampSheet,
35
+ namespace,
36
+ };
@@ -0,0 +1,14 @@
1
+ import BalanceParameterValueModel from "./BalanceParameterValueModel";
2
+ import { BalanceParameterModelOptions } from "./options/BalanceParameterModelOptions";
3
+ import { BalanceParameterModelInitialValueStrategy } from "./enum/BalanceParameterModelInitialValueStrategy";
4
+ export default class BalanceParameterModel {
5
+ private readonly name;
6
+ private readonly totalValue;
7
+ private readonly initialValueStrategy;
8
+ private readonly parameters;
9
+ private readonly metadata;
10
+ constructor(name: string, totalValue: number, initialValueStrategy: BalanceParameterModelInitialValueStrategy, parameters: BalanceParameterValueModel[], options?: BalanceParameterModelOptions | null);
11
+ properties(): {
12
+ [name: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BalanceParameterModel {
4
+ constructor(name, totalValue, initialValueStrategy, parameters, options = null) {
5
+ var _a;
6
+ this.metadata = null;
7
+ this.name = name;
8
+ this.totalValue = totalValue;
9
+ this.initialValueStrategy = initialValueStrategy;
10
+ this.parameters = parameters;
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.name != null) {
16
+ properties["name"] = this.name;
17
+ }
18
+ if (this.metadata != null) {
19
+ properties["metadata"] = this.metadata;
20
+ }
21
+ if (this.totalValue != null) {
22
+ properties["totalValue"] = this.totalValue;
23
+ }
24
+ if (this.initialValueStrategy != null) {
25
+ properties["initialValueStrategy"] = this.initialValueStrategy;
26
+ }
27
+ if (this.parameters != null) {
28
+ properties["parameters"] = this.parameters.map(v => v.properties());
29
+ }
30
+ return properties;
31
+ }
32
+ }
33
+ exports.default = BalanceParameterModel;
34
+ //# sourceMappingURL=BalanceParameterModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BalanceParameterModel.js","sourceRoot":"","sources":["BalanceParameterModel.ts"],"names":[],"mappings":";;AAmBA,MAAqB,qBAAqB;IAOtC,YACI,IAAY,EACZ,UAAkB,EAClB,oBAA+D,EAC/D,UAAwC,EACxC,UAA6C,IAAI;;QAPpC,aAAQ,GAAgB,IAAI,CAAC;QAS1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,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,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE;YACnC,UAAU,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC;SAClE;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3D,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA5CD,wCA4CC"}
@@ -0,0 +1,64 @@
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 BalanceParameterValueModel from "./BalanceParameterValueModel";
17
+ import { BalanceParameterModelOptions } from "./options/BalanceParameterModelOptions";
18
+ import { BalanceParameterModelInitialValueStrategy } from "./enum/BalanceParameterModelInitialValueStrategy";
19
+
20
+ export default class BalanceParameterModel {
21
+ private readonly name: string;
22
+ private readonly totalValue: number;
23
+ private readonly initialValueStrategy: BalanceParameterModelInitialValueStrategy;
24
+ private readonly parameters: BalanceParameterValueModel[];
25
+ private readonly metadata: string|null = null;
26
+
27
+ public constructor(
28
+ name: string,
29
+ totalValue: number,
30
+ initialValueStrategy: BalanceParameterModelInitialValueStrategy,
31
+ parameters: BalanceParameterValueModel[],
32
+ options: BalanceParameterModelOptions|null = null,
33
+ ) {
34
+ this.name = name;
35
+ this.totalValue = totalValue;
36
+ this.initialValueStrategy = initialValueStrategy;
37
+ this.parameters = parameters;
38
+ this.metadata = options?.metadata ?? null;
39
+ }
40
+
41
+ public properties(
42
+ ): {[name: string]: any} {
43
+ let properties: {[name: string]: any} = {};
44
+
45
+ if (this.name != null) {
46
+ properties["name"] = this.name;
47
+ }
48
+ if (this.metadata != null) {
49
+ properties["metadata"] = this.metadata;
50
+ }
51
+ if (this.totalValue != null) {
52
+ properties["totalValue"] = this.totalValue;
53
+ }
54
+ if (this.initialValueStrategy != null) {
55
+ properties["initialValueStrategy"] = this.initialValueStrategy;
56
+ }
57
+ if (this.parameters != null) {
58
+ properties["parameters"] = this.parameters.map(v => v.properties(
59
+ ));
60
+ }
61
+
62
+ return properties;
63
+ }
64
+ }
@@ -0,0 +1,9 @@
1
+ import { BalanceParameterValueOptions } from "./options/BalanceParameterValueOptions";
2
+ export default class BalanceParameterValue {
3
+ private readonly name;
4
+ private readonly value;
5
+ constructor(name: string, value: number, options?: BalanceParameterValueOptions | 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 BalanceParameterValue {
4
+ constructor(name, value, options = null) {
5
+ this.name = name;
6
+ this.value = value;
7
+ }
8
+ properties() {
9
+ let properties = {};
10
+ if (this.name != null) {
11
+ properties["name"] = this.name;
12
+ }
13
+ if (this.value != null) {
14
+ properties["value"] = this.value;
15
+ }
16
+ return properties;
17
+ }
18
+ }
19
+ exports.default = BalanceParameterValue;
20
+ //# sourceMappingURL=BalanceParameterValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BalanceParameterValue.js","sourceRoot":"","sources":["BalanceParameterValue.ts"],"names":[],"mappings":";;AAiBA,MAAqB,qBAAqB;IAItC,YACI,IAAY,EACZ,KAAa,EACb,UAA6C,IAAI;QAEjD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,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,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA1BD,wCA0BC"}
@@ -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 { BalanceParameterValueOptions } from "./options/BalanceParameterValueOptions";
17
+
18
+ export default class BalanceParameterValue {
19
+ private readonly name: string;
20
+ private readonly value: number;
21
+
22
+ public constructor(
23
+ name: string,
24
+ value: number,
25
+ options: BalanceParameterValueOptions|null = null,
26
+ ) {
27
+ this.name = name;
28
+ this.value = value;
29
+ }
30
+
31
+ public properties(
32
+ ): {[name: string]: any} {
33
+ let properties: {[name: string]: any} = {};
34
+
35
+ if (this.name != null) {
36
+ properties["name"] = this.name;
37
+ }
38
+ if (this.value != null) {
39
+ properties["value"] = this.value;
40
+ }
41
+
42
+ return properties;
43
+ }
44
+ }
@@ -0,0 +1,9 @@
1
+ import { BalanceParameterValueModelOptions } from "./options/BalanceParameterValueModelOptions";
2
+ export default class BalanceParameterValueModel {
3
+ private readonly name;
4
+ private readonly metadata;
5
+ constructor(name: string, options?: BalanceParameterValueModelOptions | null);
6
+ properties(): {
7
+ [name: string]: any;
8
+ };
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class BalanceParameterValueModel {
4
+ constructor(name, options = null) {
5
+ var _a;
6
+ this.metadata = null;
7
+ this.name = name;
8
+ this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
9
+ }
10
+ properties() {
11
+ let properties = {};
12
+ if (this.name != null) {
13
+ properties["name"] = this.name;
14
+ }
15
+ if (this.metadata != null) {
16
+ properties["metadata"] = this.metadata;
17
+ }
18
+ return properties;
19
+ }
20
+ }
21
+ exports.default = BalanceParameterValueModel;
22
+ //# sourceMappingURL=BalanceParameterValueModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BalanceParameterValueModel.js","sourceRoot":"","sources":["BalanceParameterValueModel.ts"],"names":[],"mappings":";;AAiBA,MAAqB,0BAA0B;IAI3C,YACI,IAAY,EACZ,UAAkD,IAAI;;QAJzC,aAAQ,GAAgB,IAAI,CAAC;QAM1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,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;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzBD,6CAyBC"}
@@ -0,0 +1,43 @@
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 { BalanceParameterValueModelOptions } from "./options/BalanceParameterValueModelOptions";
17
+
18
+ export default class BalanceParameterValueModel {
19
+ private readonly name: string;
20
+ private readonly metadata: string|null = null;
21
+
22
+ public constructor(
23
+ name: string,
24
+ options: BalanceParameterValueModelOptions|null = null,
25
+ ) {
26
+ this.name = name;
27
+ this.metadata = options?.metadata ?? null;
28
+ }
29
+
30
+ public properties(
31
+ ): {[name: string]: any} {
32
+ let properties: {[name: string]: any} = {};
33
+
34
+ if (this.name != null) {
35
+ properties["name"] = this.name;
36
+ }
37
+ if (this.metadata != null) {
38
+ properties["metadata"] = this.metadata;
39
+ }
40
+
41
+ return properties;
42
+ }
43
+ }
@@ -0,0 +1,15 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import BalanceParameterModel from "./BalanceParameterModel";
3
+ import RarityParameterModel from "./RarityParameterModel";
4
+ export default class CurrentMasterData extends CdkResource {
5
+ private readonly version;
6
+ private readonly namespaceName;
7
+ private readonly balanceParameterModels;
8
+ private readonly rarityParameterModels;
9
+ constructor(stack: Stack, namespaceName: string, balanceParameterModels: BalanceParameterModel[], rarityParameterModels: RarityParameterModel[]);
10
+ alternateKeys(): string;
11
+ resourceType(): string;
12
+ properties(): {
13
+ [name: string]: any;
14
+ };
15
+ }
@@ -0,0 +1,54 @@
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, balanceParameterModels, rarityParameterModels) {
21
+ super("Enchant_CurrentParameterMaster_" + namespaceName);
22
+ this.version = "2023-07-18";
23
+ this.namespaceName = namespaceName;
24
+ this.balanceParameterModels = balanceParameterModels;
25
+ this.rarityParameterModels = rarityParameterModels;
26
+ stack.addResource(this);
27
+ }
28
+ alternateKeys() {
29
+ return this.namespaceName;
30
+ }
31
+ resourceType() {
32
+ return "GS2::Enchant::CurrentParameterMaster";
33
+ }
34
+ properties() {
35
+ let properties = {};
36
+ let settings = {};
37
+ settings["version"] = this.version;
38
+ if (this.balanceParameterModels != null) {
39
+ settings["balanceParameterModels"] = this.balanceParameterModels.map(v => v.properties());
40
+ }
41
+ if (this.rarityParameterModels != null) {
42
+ settings["rarityParameterModels"] = this.rarityParameterModels.map(v => v.properties());
43
+ }
44
+ if (this.namespaceName != null) {
45
+ properties["NamespaceName"] = this.namespaceName;
46
+ }
47
+ if (settings != null) {
48
+ properties["Settings"] = settings;
49
+ }
50
+ return properties;
51
+ }
52
+ }
53
+ exports.default = CurrentMasterData;
54
+ //# sourceMappingURL=CurrentMasterData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAIpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAMtD,YACI,KAAY,EACZ,aAAqB,EACrB,sBAA+C,EAC/C,qBAA6C;QAE7C,KAAK,CACD,iCAAiC,GAAG,aAAa,CACpD,CAAC;QAbW,YAAO,GAAU,YAAY,CAAC;QAe3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,sCAAsC,CAAC;IAClD,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,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;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,QAAQ,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/E,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;AA1DD,oCA0DC"}
@@ -0,0 +1,78 @@
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 BalanceParameterModel from "./BalanceParameterModel";
18
+ import RarityParameterModel from "./RarityParameterModel";
19
+
20
+ export default class CurrentMasterData extends CdkResource {
21
+ private readonly version: string= "2023-07-18";
22
+ private readonly namespaceName: string;
23
+ private readonly balanceParameterModels: BalanceParameterModel[];
24
+ private readonly rarityParameterModels: RarityParameterModel[];
25
+
26
+ public constructor(
27
+ stack: Stack,
28
+ namespaceName: string,
29
+ balanceParameterModels: BalanceParameterModel[],
30
+ rarityParameterModels: RarityParameterModel[],
31
+ ) {
32
+ super(
33
+ "Enchant_CurrentParameterMaster_" + namespaceName
34
+ );
35
+
36
+ this.namespaceName = namespaceName;
37
+ this.balanceParameterModels = balanceParameterModels;
38
+ this.rarityParameterModels = rarityParameterModels;
39
+ stack.addResource(
40
+ this,
41
+ );
42
+ }
43
+
44
+ public alternateKeys(
45
+ ) {
46
+ return this.namespaceName;
47
+ }
48
+
49
+ public resourceType(
50
+ ): string {
51
+ return "GS2::Enchant::CurrentParameterMaster";
52
+ }
53
+
54
+ public properties(
55
+ ): {[name: string]: any} {
56
+ let properties: {[name: string]: any} = {};
57
+ let settings: {[name: string]: any} = {};
58
+
59
+ settings["version"] = this.version
60
+ if (this.balanceParameterModels != null) {
61
+ settings["balanceParameterModels"] = this.balanceParameterModels.map(v => v.properties(
62
+ ));
63
+ }
64
+ if (this.rarityParameterModels != null) {
65
+ settings["rarityParameterModels"] = this.rarityParameterModels.map(v => v.properties(
66
+ ));
67
+ }
68
+
69
+ if (this.namespaceName != null) {
70
+ properties["NamespaceName"] = this.namespaceName;
71
+ }
72
+ if (settings != null) {
73
+ properties["Settings"] = settings;
74
+ }
75
+
76
+ return properties;
77
+ }
78
+ }
@@ -0,0 +1,23 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import { GetAttr } from "../../core/func";
3
+ import TransactionSetting from "../../core/model/TransactionSetting";
4
+ import NamespaceRef from "../ref/NamespaceRef";
5
+ import BalanceParameterModel from "./BalanceParameterModel";
6
+ import RarityParameterModel from "./RarityParameterModel";
7
+ import { NamespaceOptions } from "./options/NamespaceOptions";
8
+ export default class Namespace extends CdkResource {
9
+ private readonly stack;
10
+ private readonly name;
11
+ private readonly transactionSetting;
12
+ private readonly description;
13
+ private readonly logSetting;
14
+ constructor(stack: Stack, name: string, transactionSetting: TransactionSetting, options?: NamespaceOptions | null);
15
+ alternateKeys(): string;
16
+ resourceType(): string;
17
+ properties(): {
18
+ [name: string]: any;
19
+ };
20
+ ref(): NamespaceRef;
21
+ getAttrNamespaceId(): GetAttr;
22
+ masterData(balanceParameterModels: BalanceParameterModel[], rarityParameterModels: RarityParameterModel[]): Namespace;
23
+ }
@@ -0,0 +1,71 @@
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, transactionSetting, options = null) {
25
+ var _a, _b;
26
+ super("Enchant_Namespace_" + name);
27
+ this.description = null;
28
+ this.logSetting = null;
29
+ this.stack = stack;
30
+ this.name = name;
31
+ this.transactionSetting = transactionSetting;
32
+ this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
33
+ this.logSetting = (_b = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _b !== void 0 ? _b : null;
34
+ stack.addResource(this);
35
+ }
36
+ alternateKeys() {
37
+ return "name";
38
+ }
39
+ resourceType() {
40
+ return "GS2::Enchant::Namespace";
41
+ }
42
+ properties() {
43
+ var _a, _b;
44
+ let properties = {};
45
+ if (this.name != null) {
46
+ properties["Name"] = this.name;
47
+ }
48
+ if (this.description != null) {
49
+ properties["Description"] = this.description;
50
+ }
51
+ if (this.transactionSetting != null) {
52
+ properties["TransactionSetting"] = (_a = this.transactionSetting) === null || _a === void 0 ? void 0 : _a.properties();
53
+ }
54
+ if (this.logSetting != null) {
55
+ properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
56
+ }
57
+ return properties;
58
+ }
59
+ ref() {
60
+ return new NamespaceRef_1.default(this.name);
61
+ }
62
+ getAttrNamespaceId() {
63
+ return new func_1.GetAttr(this, "Item.NamespaceId", null);
64
+ }
65
+ masterData(balanceParameterModels, rarityParameterModels) {
66
+ new CurrentMasterData_1.default(this.stack, this.name, balanceParameterModels, rarityParameterModels).addDependsOn(this);
67
+ return this;
68
+ }
69
+ }
70
+ exports.default = Namespace;
71
+ //# 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;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;IAO9C,YACI,KAAY,EACZ,IAAY,EACZ,kBAAsC,EACtC,UAAiC,IAAI;;QAErC,KAAK,CACD,oBAAoB,GAAG,IAAI,CAC9B,CAAC;QAXW,gBAAW,GAAgB,IAAI,CAAC;QAChC,eAAU,GAAoB,IAAI,CAAC;QAYhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,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,yBAAyB,CAAC;IACrC,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,sBAA+C,EAC/C,qBAA6C;QAE7C,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,sBAAsB,EACtB,qBAAqB,CACxB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA1FD,4BA0FC"}