gs2-cdk 1.0.50 → 1.0.52

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 (165) hide show
  1. package/enhance/model/CurrentMasterData.d.ts +3 -1
  2. package/enhance/model/CurrentMasterData.js +5 -1
  3. package/enhance/model/CurrentMasterData.js.map +1 -1
  4. package/enhance/model/CurrentMasterData.ts +8 -0
  5. package/enhance/model/Namespace.d.ts +2 -1
  6. package/enhance/model/Namespace.js +2 -2
  7. package/enhance/model/Namespace.js.map +1 -1
  8. package/enhance/model/Namespace.ts +3 -0
  9. package/enhance/model/UnleashRateEntryModel.d.ts +9 -0
  10. package/enhance/model/UnleashRateEntryModel.js +20 -0
  11. package/enhance/model/UnleashRateEntryModel.js.map +1 -0
  12. package/enhance/model/UnleashRateEntryModel.ts +44 -0
  13. package/enhance/model/UnleashRateModel.d.ts +14 -0
  14. package/enhance/model/UnleashRateModel.js +39 -0
  15. package/enhance/model/UnleashRateModel.js.map +1 -0
  16. package/enhance/model/UnleashRateModel.ts +68 -0
  17. package/enhance/model/index.d.ts +5 -1
  18. package/enhance/model/index.js +5 -1
  19. package/enhance/model/index.js.map +1 -1
  20. package/enhance/model/index.ts +8 -0
  21. package/enhance/model/options/UnleashRateEntryModelOptions.d.ts +2 -0
  22. package/enhance/model/options/UnleashRateEntryModelOptions.js +18 -0
  23. package/enhance/model/options/UnleashRateEntryModelOptions.js.map +1 -0
  24. package/enhance/model/options/UnleashRateEntryModelOptions.ts +19 -0
  25. package/enhance/model/options/UnleashRateModelOptions.d.ts +4 -0
  26. package/enhance/model/options/UnleashRateModelOptions.js +3 -0
  27. package/enhance/model/options/UnleashRateModelOptions.js.map +1 -0
  28. package/enhance/model/options/UnleashRateModelOptions.ts +22 -0
  29. package/enhance/ref/NamespaceRef.d.ts +2 -0
  30. package/enhance/ref/NamespaceRef.js +4 -0
  31. package/enhance/ref/NamespaceRef.js.map +1 -1
  32. package/enhance/ref/NamespaceRef.ts +10 -0
  33. package/enhance/ref/UnleashRateModelRef.d.ts +6 -0
  34. package/enhance/ref/UnleashRateModelRef.js +38 -0
  35. package/enhance/ref/UnleashRateModelRef.js.map +1 -0
  36. package/enhance/ref/UnleashRateModelRef.ts +52 -0
  37. package/enhance/ref/index.d.ts +2 -1
  38. package/enhance/ref/index.js +3 -1
  39. package/enhance/ref/index.js.map +1 -1
  40. package/enhance/ref/index.ts +2 -0
  41. package/enhance/stampSheet/UnleashByUserId.d.ts +15 -0
  42. package/enhance/stampSheet/UnleashByUserId.js +57 -0
  43. package/enhance/stampSheet/UnleashByUserId.js.map +1 -0
  44. package/enhance/stampSheet/UnleashByUserId.ts +77 -0
  45. package/enhance/stampSheet/index.d.ts +2 -1
  46. package/enhance/stampSheet/index.js +3 -1
  47. package/enhance/stampSheet/index.js.map +1 -1
  48. package/enhance/stampSheet/index.ts +2 -0
  49. package/grade/index.d.ts +12 -0
  50. package/grade/index.js +32 -0
  51. package/grade/index.js.map +1 -0
  52. package/grade/index.ts +36 -0
  53. package/grade/model/AcquireActionRate.d.ts +16 -0
  54. package/grade/model/AcquireActionRate.js +42 -0
  55. package/grade/model/AcquireActionRate.js.map +1 -0
  56. package/grade/model/AcquireActionRate.ts +85 -0
  57. package/grade/model/CurrentMasterData.d.ts +13 -0
  58. package/grade/model/CurrentMasterData.js +50 -0
  59. package/grade/model/CurrentMasterData.js.map +1 -0
  60. package/grade/model/CurrentMasterData.ts +70 -0
  61. package/grade/model/DefaultGradeModel.d.ts +9 -0
  62. package/grade/model/DefaultGradeModel.js +20 -0
  63. package/grade/model/DefaultGradeModel.js.map +1 -0
  64. package/grade/model/DefaultGradeModel.ts +44 -0
  65. package/grade/model/GradeEntryModel.d.ts +11 -0
  66. package/grade/model/GradeEntryModel.js +30 -0
  67. package/grade/model/GradeEntryModel.js.map +1 -0
  68. package/grade/model/GradeEntryModel.ts +55 -0
  69. package/grade/model/GradeModel.d.ts +14 -0
  70. package/grade/model/GradeModel.js +40 -0
  71. package/grade/model/GradeModel.js.map +1 -0
  72. package/grade/model/GradeModel.ts +71 -0
  73. package/grade/model/Namespace.d.ts +22 -0
  74. package/grade/model/Namespace.js +77 -0
  75. package/grade/model/Namespace.js.map +1 -0
  76. package/grade/model/Namespace.ts +122 -0
  77. package/grade/model/enum/AcquireActionRateMode.d.ts +5 -0
  78. package/grade/model/enum/AcquireActionRateMode.js +23 -0
  79. package/grade/model/enum/AcquireActionRateMode.js.map +1 -0
  80. package/grade/model/enum/AcquireActionRateMode.ts +23 -0
  81. package/grade/model/index.d.ts +15 -0
  82. package/grade/model/index.js +34 -0
  83. package/grade/model/index.js.map +1 -0
  84. package/grade/model/index.ts +46 -0
  85. package/grade/model/options/AcquireActionRateModeIsBigOptions.d.ts +2 -0
  86. package/grade/model/options/AcquireActionRateModeIsBigOptions.js +3 -0
  87. package/grade/model/options/AcquireActionRateModeIsBigOptions.js.map +1 -0
  88. package/grade/model/options/AcquireActionRateModeIsBigOptions.ts +19 -0
  89. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.d.ts +2 -0
  90. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js +3 -0
  91. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js.map +1 -0
  92. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.ts +19 -0
  93. package/grade/model/options/AcquireActionRateOptions.d.ts +4 -0
  94. package/grade/model/options/AcquireActionRateOptions.js +3 -0
  95. package/grade/model/options/AcquireActionRateOptions.js.map +1 -0
  96. package/grade/model/options/AcquireActionRateOptions.ts +22 -0
  97. package/grade/model/options/DefaultGradeModelOptions.d.ts +2 -0
  98. package/grade/model/options/DefaultGradeModelOptions.js +18 -0
  99. package/grade/model/options/DefaultGradeModelOptions.js.map +1 -0
  100. package/grade/model/options/DefaultGradeModelOptions.ts +19 -0
  101. package/grade/model/options/GradeEntryModelOptions.d.ts +3 -0
  102. package/grade/model/options/GradeEntryModelOptions.js +18 -0
  103. package/grade/model/options/GradeEntryModelOptions.js.map +1 -0
  104. package/grade/model/options/GradeEntryModelOptions.ts +20 -0
  105. package/grade/model/options/GradeModelOptions.d.ts +7 -0
  106. package/grade/model/options/GradeModelOptions.js +3 -0
  107. package/grade/model/options/GradeModelOptions.js.map +1 -0
  108. package/grade/model/options/GradeModelOptions.ts +25 -0
  109. package/grade/model/options/NamespaceOptions.d.ts +9 -0
  110. package/grade/model/options/NamespaceOptions.js +3 -0
  111. package/grade/model/options/NamespaceOptions.js.map +1 -0
  112. package/grade/model/options/NamespaceOptions.ts +26 -0
  113. package/grade/ref/GradeModelRef.d.ts +6 -0
  114. package/grade/ref/GradeModelRef.js +38 -0
  115. package/grade/ref/GradeModelRef.js.map +1 -0
  116. package/grade/ref/GradeModelRef.ts +52 -0
  117. package/grade/ref/NamespaceRef.d.ts +21 -0
  118. package/grade/ref/NamespaceRef.js +64 -0
  119. package/grade/ref/NamespaceRef.js.map +1 -0
  120. package/grade/ref/NamespaceRef.ts +159 -0
  121. package/grade/ref/index.d.ts +3 -0
  122. package/grade/ref/index.js +24 -0
  123. package/grade/ref/index.js.map +1 -0
  124. package/grade/ref/index.ts +22 -0
  125. package/grade/stampSheet/AddGradeByUserId.d.ts +13 -0
  126. package/grade/stampSheet/AddGradeByUserId.js +53 -0
  127. package/grade/stampSheet/AddGradeByUserId.js.map +1 -0
  128. package/grade/stampSheet/AddGradeByUserId.ts +69 -0
  129. package/grade/stampSheet/ApplyRankCapByUserId.d.ts +12 -0
  130. package/grade/stampSheet/ApplyRankCapByUserId.js +48 -0
  131. package/grade/stampSheet/ApplyRankCapByUserId.js.map +1 -0
  132. package/grade/stampSheet/ApplyRankCapByUserId.ts +63 -0
  133. package/grade/stampSheet/MultiplyAcquireActionsByUserId.d.ts +14 -0
  134. package/grade/stampSheet/MultiplyAcquireActionsByUserId.js +57 -0
  135. package/grade/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -0
  136. package/grade/stampSheet/MultiplyAcquireActionsByUserId.ts +76 -0
  137. package/grade/stampSheet/SubGradeByUserId.d.ts +13 -0
  138. package/grade/stampSheet/SubGradeByUserId.js +53 -0
  139. package/grade/stampSheet/SubGradeByUserId.js.map +1 -0
  140. package/grade/stampSheet/SubGradeByUserId.ts +69 -0
  141. package/grade/stampSheet/VerifyGradeByUserId.d.ts +15 -0
  142. package/grade/stampSheet/VerifyGradeByUserId.js +57 -0
  143. package/grade/stampSheet/VerifyGradeByUserId.js.map +1 -0
  144. package/grade/stampSheet/VerifyGradeByUserId.ts +76 -0
  145. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.d.ts +15 -0
  146. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js +56 -0
  147. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js.map +1 -0
  148. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.ts +76 -0
  149. package/grade/stampSheet/enum/StatusVerifyType.d.ts +5 -0
  150. package/grade/stampSheet/enum/StatusVerifyType.js +23 -0
  151. package/grade/stampSheet/enum/StatusVerifyType.js.map +1 -0
  152. package/grade/stampSheet/enum/StatusVerifyType.ts +23 -0
  153. package/grade/stampSheet/index.d.ts +7 -0
  154. package/grade/stampSheet/index.js +32 -0
  155. package/grade/stampSheet/index.js.map +1 -0
  156. package/grade/stampSheet/index.ts +30 -0
  157. package/package.json +1 -1
  158. package/stateMachine/ref/NamespaceRef.d.ts +1 -2
  159. package/stateMachine/ref/NamespaceRef.js +2 -2
  160. package/stateMachine/ref/NamespaceRef.js.map +1 -1
  161. package/stateMachine/ref/NamespaceRef.ts +0 -3
  162. package/stateMachine/stampSheet/StartStateMachineByUserId.d.ts +1 -3
  163. package/stateMachine/stampSheet/StartStateMachineByUserId.js +1 -6
  164. package/stateMachine/stampSheet/StartStateMachineByUserId.js.map +1 -1
  165. package/stateMachine/stampSheet/StartStateMachineByUserId.ts +0 -7
@@ -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 UnleashRateModelRef {
20
+ private readonly namespaceName: string;
21
+ private readonly rateName: string;
22
+
23
+ public constructor(
24
+ namespaceName: string,
25
+ rateName: string,
26
+ ) {
27
+ this.namespaceName = namespaceName;
28
+ this.rateName = rateName;
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
+ "enhance",
45
+ this.namespaceName,
46
+ "unleashRateModel",
47
+ this.rateName,
48
+ ],
49
+ ).str(
50
+ );
51
+ }
52
+ }
@@ -1,3 +1,4 @@
1
1
  import NamespaceRef from "./NamespaceRef";
2
2
  import RateModelRef from "./RateModelRef";
3
- export { NamespaceRef, RateModelRef, };
3
+ import UnleashRateModelRef from "./UnleashRateModelRef";
4
+ export { NamespaceRef, RateModelRef, UnleashRateModelRef, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RateModelRef = exports.NamespaceRef = void 0;
3
+ exports.UnleashRateModelRef = exports.RateModelRef = exports.NamespaceRef = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -21,4 +21,6 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
21
21
  exports.NamespaceRef = NamespaceRef_1.default;
22
22
  const RateModelRef_1 = tslib_1.__importDefault(require("./RateModelRef"));
23
23
  exports.RateModelRef = RateModelRef_1.default;
24
+ const UnleashRateModelRef_1 = tslib_1.__importDefault(require("./UnleashRateModelRef"));
25
+ exports.UnleashRateModelRef = UnleashRateModelRef_1.default;
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,0EAA0C;AAItC,uBAJG,sBAAY,CAIH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAKtC,uBALG,sBAAY,CAKH;AAJhB,0EAA0C;AAKtC,uBALG,sBAAY,CAKH;AAJhB,wFAAwD;AAKpD,8BALG,6BAAmB,CAKH"}
@@ -15,8 +15,10 @@
15
15
  */
16
16
  import NamespaceRef from "./NamespaceRef";
17
17
  import RateModelRef from "./RateModelRef";
18
+ import UnleashRateModelRef from "./UnleashRateModelRef";
18
19
 
19
20
  export {
20
21
  NamespaceRef,
21
22
  RateModelRef,
23
+ UnleashRateModelRef,
22
24
  }
@@ -0,0 +1,15 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ import { Config } from "../../core/model";
3
+ export default class UnleashByUserId extends AcquireAction {
4
+ private readonly namespaceName;
5
+ private readonly rateName;
6
+ private readonly userId;
7
+ private readonly targetItemSetId;
8
+ private readonly materials;
9
+ private readonly config;
10
+ constructor(namespaceName: string, rateName: string, targetItemSetId: string, materials: string[], config?: Config[] | null, userId?: string);
11
+ request(): {
12
+ [name: string]: any;
13
+ };
14
+ action(): string;
15
+ }
@@ -0,0 +1,57 @@
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 UnleashByUserId extends model_1.AcquireAction {
20
+ constructor(namespaceName, rateName, targetItemSetId, materials, config = null, userId = "#{userId}") {
21
+ super();
22
+ this.config = null;
23
+ this.namespaceName = namespaceName;
24
+ this.rateName = rateName;
25
+ this.targetItemSetId = targetItemSetId;
26
+ this.materials = materials;
27
+ this.config = config !== null && config !== void 0 ? config : null;
28
+ this.userId = userId;
29
+ }
30
+ request() {
31
+ let properties = {};
32
+ if (this.namespaceName != null) {
33
+ properties["namespaceName"] = this.namespaceName;
34
+ }
35
+ if (this.rateName != null) {
36
+ properties["rateName"] = this.rateName;
37
+ }
38
+ if (this.userId != null) {
39
+ properties["userId"] = this.userId;
40
+ }
41
+ if (this.targetItemSetId != null) {
42
+ properties["targetItemSetId"] = this.targetItemSetId;
43
+ }
44
+ if (this.materials != null) {
45
+ properties["materials"] = this.materials;
46
+ }
47
+ if (this.config != null) {
48
+ properties["config"] = this.config.map(v => v.properties());
49
+ }
50
+ return properties;
51
+ }
52
+ action() {
53
+ return "Gs2Enhance:UnleashByUserId";
54
+ }
55
+ }
56
+ exports.default = UnleashByUserId;
57
+ //# sourceMappingURL=UnleashByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnleashByUserId.js","sourceRoot":"","sources":["UnleashByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,eAAgB,SAAQ,qBAAa;IAStD,YACI,aAAqB,EACrB,QAAgB,EAChB,eAAuB,EACvB,SAAmB,EACnB,SAAwB,IAAI,EAC5B,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAXK,WAAM,GAAkB,IAAI,CAAC;QAa1C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,CAAC;QAC7B,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;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;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnD,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,4BAA4B,CAAC;IACxC,CAAC;CACJ;AAzDD,kCAyDC"}
@@ -0,0 +1,77 @@
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
+ import { Config } from "../../core/model";
19
+
20
+ export default class UnleashByUserId extends AcquireAction {
21
+ private readonly namespaceName: string;
22
+ private readonly rateName: string;
23
+ private readonly userId: string;
24
+ private readonly targetItemSetId: string;
25
+ private readonly materials: string[];
26
+ private readonly config: Config[]|null = null;
27
+
28
+
29
+ public constructor(
30
+ namespaceName: string,
31
+ rateName: string,
32
+ targetItemSetId: string,
33
+ materials: string[],
34
+ config: Config[]|null = null,
35
+ userId: string = "#{userId}",
36
+ ) {
37
+ super();
38
+
39
+ this.namespaceName = namespaceName;
40
+ this.rateName = rateName;
41
+ this.targetItemSetId = targetItemSetId;
42
+ this.materials = materials;
43
+ this.config = config ?? null;
44
+ this.userId = userId;
45
+ }
46
+
47
+ public request(
48
+ ): {[name: string]: any} {
49
+ let properties: {[name: string]: any} = {};
50
+
51
+ if (this.namespaceName != null) {
52
+ properties["namespaceName"] = this.namespaceName;
53
+ }
54
+ if (this.rateName != null) {
55
+ properties["rateName"] = this.rateName;
56
+ }
57
+ if (this.userId != null) {
58
+ properties["userId"] = this.userId;
59
+ }
60
+ if (this.targetItemSetId != null) {
61
+ properties["targetItemSetId"] = this.targetItemSetId;
62
+ }
63
+ if (this.materials != null) {
64
+ properties["materials"] = this.materials;
65
+ }
66
+ if (this.config != null) {
67
+ properties["config"] = this.config.map(v => v.properties(
68
+ ));
69
+ }
70
+
71
+ return properties;
72
+ }
73
+
74
+ public action(): string {
75
+ return "Gs2Enhance:UnleashByUserId";
76
+ }
77
+ }
@@ -1,4 +1,5 @@
1
1
  import DirectEnhanceByUserId from "./DirectEnhanceByUserId";
2
+ import UnleashByUserId from "./UnleashByUserId";
2
3
  import CreateProgressByUserId from "./CreateProgressByUserId";
3
4
  import DeleteProgressByUserId from "./DeleteProgressByUserId";
4
- export { DirectEnhanceByUserId, CreateProgressByUserId, DeleteProgressByUserId, };
5
+ export { DirectEnhanceByUserId, UnleashByUserId, CreateProgressByUserId, DeleteProgressByUserId, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteProgressByUserId = exports.CreateProgressByUserId = exports.DirectEnhanceByUserId = void 0;
3
+ exports.DeleteProgressByUserId = exports.CreateProgressByUserId = exports.UnleashByUserId = exports.DirectEnhanceByUserId = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /*
6
6
  * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
@@ -19,6 +19,8 @@ const tslib_1 = require("tslib");
19
19
  */
20
20
  const DirectEnhanceByUserId_1 = tslib_1.__importDefault(require("./DirectEnhanceByUserId"));
21
21
  exports.DirectEnhanceByUserId = DirectEnhanceByUserId_1.default;
22
+ const UnleashByUserId_1 = tslib_1.__importDefault(require("./UnleashByUserId"));
23
+ exports.UnleashByUserId = UnleashByUserId_1.default;
22
24
  const CreateProgressByUserId_1 = tslib_1.__importDefault(require("./CreateProgressByUserId"));
23
25
  exports.CreateProgressByUserId = CreateProgressByUserId_1.default;
24
26
  const DeleteProgressByUserId_1 = tslib_1.__importDefault(require("./DeleteProgressByUserId"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;AAKxD,gCALG,+BAAqB,CAKH;AAJzB,8FAA8D;AAK1D,iCALG,gCAAsB,CAKH;AAJ1B,8FAA8D;AAK1D,iCALG,gCAAsB,CAKH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4FAA4D;AAMxD,gCANG,+BAAqB,CAMH;AALzB,gFAAgD;AAM5C,0BANG,yBAAe,CAMH;AALnB,8FAA8D;AAM1D,iCANG,gCAAsB,CAMH;AAL1B,8FAA8D;AAM1D,iCANG,gCAAsB,CAMH"}
@@ -14,11 +14,13 @@
14
14
  * permissions and limitations under the License.
15
15
  */
16
16
  import DirectEnhanceByUserId from "./DirectEnhanceByUserId";
17
+ import UnleashByUserId from "./UnleashByUserId";
17
18
  import CreateProgressByUserId from "./CreateProgressByUserId";
18
19
  import DeleteProgressByUserId from "./DeleteProgressByUserId";
19
20
 
20
21
  export {
21
22
  DirectEnhanceByUserId,
23
+ UnleashByUserId,
22
24
  CreateProgressByUserId,
23
25
  DeleteProgressByUserId,
24
26
  }
@@ -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;
package/grade/index.js ADDED
@@ -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"}
package/grade/index.ts ADDED
@@ -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,16 @@
1
+ import { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
2
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
3
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
4
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
5
+ export default class AcquireActionRate {
6
+ private readonly name;
7
+ private readonly mode;
8
+ private readonly rates;
9
+ private readonly bigRates;
10
+ constructor(name: string, mode: AcquireActionRateMode, options?: AcquireActionRateOptions | null);
11
+ static modeIsDouble(name: string, rates: number[], options?: AcquireActionRateModeIsDoubleOptions | null): AcquireActionRate;
12
+ static modeIsBig(name: string, bigRates: string[], options?: AcquireActionRateModeIsBigOptions | null): AcquireActionRate;
13
+ properties(): {
14
+ [name: string]: any;
15
+ };
16
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const AcquireActionRateMode_1 = require("./enum/AcquireActionRateMode");
4
+ class AcquireActionRate {
5
+ constructor(name, mode, options = null) {
6
+ var _a, _b;
7
+ this.rates = null;
8
+ this.bigRates = null;
9
+ this.name = name;
10
+ this.mode = mode;
11
+ this.rates = (_a = options === null || options === void 0 ? void 0 : options.rates) !== null && _a !== void 0 ? _a : null;
12
+ this.bigRates = (_b = options === null || options === void 0 ? void 0 : options.bigRates) !== null && _b !== void 0 ? _b : null;
13
+ }
14
+ static modeIsDouble(name, rates, options = null) {
15
+ return new AcquireActionRate(name, AcquireActionRateMode_1.AcquireActionRateMode.DOUBLE, {
16
+ rates: rates,
17
+ });
18
+ }
19
+ static modeIsBig(name, bigRates, options = null) {
20
+ return new AcquireActionRate(name, AcquireActionRateMode_1.AcquireActionRateMode.BIG, {
21
+ bigRates: bigRates,
22
+ });
23
+ }
24
+ properties() {
25
+ let properties = {};
26
+ if (this.name != null) {
27
+ properties["name"] = this.name;
28
+ }
29
+ if (this.mode != null) {
30
+ properties["mode"] = this.mode;
31
+ }
32
+ if (this.rates != null) {
33
+ properties["rates"] = this.rates;
34
+ }
35
+ if (this.bigRates != null) {
36
+ properties["bigRates"] = this.bigRates;
37
+ }
38
+ return properties;
39
+ }
40
+ }
41
+ exports.default = AcquireActionRate;
42
+ //# sourceMappingURL=AcquireActionRate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcquireActionRate.js","sourceRoot":"","sources":["AcquireActionRate.ts"],"names":[],"mappings":";;AAkBA,wEAAqE;AAErE,MAAqB,iBAAiB;IAMlC,YACI,IAAY,EACZ,IAA2B,EAC3B,UAAyC,IAAI;;QANhC,UAAK,GAAkB,IAAI,CAAC;QAC5B,aAAQ,GAAkB,IAAI,CAAC;QAO5C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,IAAI,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,MAAM,CAAC,YAAY,CACtB,IAAY,EACZ,KAAe,EACf,UAAqD,IAAI;QAEzD,OAAO,IAAI,iBAAiB,CACxB,IAAI,EACJ,6CAAqB,CAAC,MAAM,EAC5B;YACI,KAAK,EAAE,KAAK;SACf,CACJ,CAAC;IACN,CAAC;IAEM,MAAM,CAAC,SAAS,CACnB,IAAY,EACZ,QAAkB,EAClB,UAAkD,IAAI;QAEtD,OAAO,IAAI,iBAAiB,CACxB,IAAI,EACJ,6CAAqB,CAAC,GAAG,EACzB;YACI,QAAQ,EAAE,QAAQ;SACrB,CACJ,CAAC;IACN,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,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;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;AAhED,oCAgEC"}
@@ -0,0 +1,85 @@
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 { AcquireActionRateOptions } from "./options/AcquireActionRateOptions";
17
+ import { AcquireActionRateModeIsDoubleOptions } from "./options/AcquireActionRateModeIsDoubleOptions";
18
+ import { AcquireActionRateModeIsBigOptions } from "./options/AcquireActionRateModeIsBigOptions";
19
+ import { AcquireActionRateMode } from "./enum/AcquireActionRateMode";
20
+
21
+ export default class AcquireActionRate {
22
+ private readonly name: string;
23
+ private readonly mode: AcquireActionRateMode;
24
+ private readonly rates: number[]|null = null;
25
+ private readonly bigRates: string[]|null = null;
26
+
27
+ public constructor(
28
+ name: string,
29
+ mode: AcquireActionRateMode,
30
+ options: AcquireActionRateOptions|null = null,
31
+ ) {
32
+ this.name = name;
33
+ this.mode = mode;
34
+ this.rates = options?.rates ?? null;
35
+ this.bigRates = options?.bigRates ?? null;
36
+ }
37
+
38
+ public static modeIsDouble(
39
+ name: string,
40
+ rates: number[],
41
+ options: AcquireActionRateModeIsDoubleOptions|null = null,
42
+ ): AcquireActionRate {
43
+ return new AcquireActionRate(
44
+ name,
45
+ AcquireActionRateMode.DOUBLE,
46
+ {
47
+ rates: rates,
48
+ },
49
+ );
50
+ }
51
+
52
+ public static modeIsBig(
53
+ name: string,
54
+ bigRates: string[],
55
+ options: AcquireActionRateModeIsBigOptions|null = null,
56
+ ): AcquireActionRate {
57
+ return new AcquireActionRate(
58
+ name,
59
+ AcquireActionRateMode.BIG,
60
+ {
61
+ bigRates: bigRates,
62
+ },
63
+ );
64
+ }
65
+
66
+ public properties(
67
+ ): {[name: string]: any} {
68
+ let properties: {[name: string]: any} = {};
69
+
70
+ if (this.name != null) {
71
+ properties["name"] = this.name;
72
+ }
73
+ if (this.mode != null) {
74
+ properties["mode"] = this.mode;
75
+ }
76
+ if (this.rates != null) {
77
+ properties["rates"] = this.rates;
78
+ }
79
+ if (this.bigRates != null) {
80
+ properties["bigRates"] = this.bigRates;
81
+ }
82
+
83
+ return properties;
84
+ }
85
+ }
@@ -0,0 +1,13 @@
1
+ import { CdkResource, Stack } from "../../core/model";
2
+ import GradeModel from "./GradeModel";
3
+ export default class CurrentMasterData extends CdkResource {
4
+ private readonly version;
5
+ private readonly namespaceName;
6
+ private readonly gradeModels;
7
+ constructor(stack: Stack, namespaceName: string, gradeModels: GradeModel[]);
8
+ alternateKeys(): string;
9
+ resourceType(): string;
10
+ properties(): {
11
+ [name: string]: any;
12
+ };
13
+ }
@@ -0,0 +1,50 @@
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, gradeModels) {
21
+ super("Grade_CurrentGradeMaster_" + namespaceName);
22
+ this.version = "2023-12-25";
23
+ this.namespaceName = namespaceName;
24
+ this.gradeModels = gradeModels;
25
+ stack.addResource(this);
26
+ }
27
+ alternateKeys() {
28
+ return this.namespaceName;
29
+ }
30
+ resourceType() {
31
+ return "GS2::Grade::CurrentGradeMaster";
32
+ }
33
+ properties() {
34
+ let properties = {};
35
+ let settings = {};
36
+ settings["version"] = this.version;
37
+ if (this.gradeModels != null) {
38
+ settings["gradeModels"] = this.gradeModels.map(v => v.properties());
39
+ }
40
+ if (this.namespaceName != null) {
41
+ properties["NamespaceName"] = this.namespaceName;
42
+ }
43
+ if (settings != null) {
44
+ properties["Settings"] = settings;
45
+ }
46
+ return properties;
47
+ }
48
+ }
49
+ exports.default = CurrentMasterData;
50
+ //# sourceMappingURL=CurrentMasterData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAGpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAKtD,YACI,KAAY,EACZ,aAAqB,EACrB,WAAyB;QAEzB,KAAK,CACD,2BAA2B,GAAG,aAAa,CAC9C,CAAC;QAXW,YAAO,GAAU,YAAY,CAAC;QAa3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,gCAAgC,CAAC;IAC5C,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,WAAW,IAAI,IAAI,EAAE;YAC1B,QAAQ,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3D,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;AAnDD,oCAmDC"}