gs2-cdk 1.0.50 → 1.0.51

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 (117) hide show
  1. package/grade/index.d.ts +12 -0
  2. package/grade/index.js +32 -0
  3. package/grade/index.js.map +1 -0
  4. package/grade/index.ts +36 -0
  5. package/grade/model/AcquireActionRate.d.ts +16 -0
  6. package/grade/model/AcquireActionRate.js +42 -0
  7. package/grade/model/AcquireActionRate.js.map +1 -0
  8. package/grade/model/AcquireActionRate.ts +85 -0
  9. package/grade/model/CurrentMasterData.d.ts +13 -0
  10. package/grade/model/CurrentMasterData.js +50 -0
  11. package/grade/model/CurrentMasterData.js.map +1 -0
  12. package/grade/model/CurrentMasterData.ts +70 -0
  13. package/grade/model/DefaultGradeModel.d.ts +9 -0
  14. package/grade/model/DefaultGradeModel.js +20 -0
  15. package/grade/model/DefaultGradeModel.js.map +1 -0
  16. package/grade/model/DefaultGradeModel.ts +44 -0
  17. package/grade/model/GradeEntryModel.d.ts +11 -0
  18. package/grade/model/GradeEntryModel.js +31 -0
  19. package/grade/model/GradeEntryModel.js.map +1 -0
  20. package/grade/model/GradeEntryModel.ts +54 -0
  21. package/grade/model/GradeModel.d.ts +14 -0
  22. package/grade/model/GradeModel.js +40 -0
  23. package/grade/model/GradeModel.js.map +1 -0
  24. package/grade/model/GradeModel.ts +71 -0
  25. package/grade/model/Namespace.d.ts +22 -0
  26. package/grade/model/Namespace.js +77 -0
  27. package/grade/model/Namespace.js.map +1 -0
  28. package/grade/model/Namespace.ts +122 -0
  29. package/grade/model/enum/AcquireActionRateMode.d.ts +5 -0
  30. package/grade/model/enum/AcquireActionRateMode.js +23 -0
  31. package/grade/model/enum/AcquireActionRateMode.js.map +1 -0
  32. package/grade/model/enum/AcquireActionRateMode.ts +23 -0
  33. package/grade/model/index.d.ts +15 -0
  34. package/grade/model/index.js +34 -0
  35. package/grade/model/index.js.map +1 -0
  36. package/grade/model/index.ts +46 -0
  37. package/grade/model/options/AcquireActionRateModeIsBigOptions.d.ts +2 -0
  38. package/grade/model/options/AcquireActionRateModeIsBigOptions.js +3 -0
  39. package/grade/model/options/AcquireActionRateModeIsBigOptions.js.map +1 -0
  40. package/grade/model/options/AcquireActionRateModeIsBigOptions.ts +19 -0
  41. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.d.ts +2 -0
  42. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js +3 -0
  43. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.js.map +1 -0
  44. package/grade/model/options/AcquireActionRateModeIsDoubleOptions.ts +19 -0
  45. package/grade/model/options/AcquireActionRateOptions.d.ts +4 -0
  46. package/grade/model/options/AcquireActionRateOptions.js +3 -0
  47. package/grade/model/options/AcquireActionRateOptions.js.map +1 -0
  48. package/grade/model/options/AcquireActionRateOptions.ts +22 -0
  49. package/grade/model/options/DefaultGradeModelOptions.d.ts +2 -0
  50. package/grade/model/options/DefaultGradeModelOptions.js +18 -0
  51. package/grade/model/options/DefaultGradeModelOptions.js.map +1 -0
  52. package/grade/model/options/DefaultGradeModelOptions.ts +19 -0
  53. package/grade/model/options/GradeEntryModelOptions.d.ts +4 -0
  54. package/grade/model/options/GradeEntryModelOptions.js +18 -0
  55. package/grade/model/options/GradeEntryModelOptions.js.map +1 -0
  56. package/grade/model/options/GradeEntryModelOptions.ts +21 -0
  57. package/grade/model/options/GradeModelOptions.d.ts +7 -0
  58. package/grade/model/options/GradeModelOptions.js +3 -0
  59. package/grade/model/options/GradeModelOptions.js.map +1 -0
  60. package/grade/model/options/GradeModelOptions.ts +25 -0
  61. package/grade/model/options/NamespaceOptions.d.ts +9 -0
  62. package/grade/model/options/NamespaceOptions.js +3 -0
  63. package/grade/model/options/NamespaceOptions.js.map +1 -0
  64. package/grade/model/options/NamespaceOptions.ts +26 -0
  65. package/grade/ref/GradeModelRef.d.ts +6 -0
  66. package/grade/ref/GradeModelRef.js +38 -0
  67. package/grade/ref/GradeModelRef.js.map +1 -0
  68. package/grade/ref/GradeModelRef.ts +52 -0
  69. package/grade/ref/NamespaceRef.d.ts +21 -0
  70. package/grade/ref/NamespaceRef.js +64 -0
  71. package/grade/ref/NamespaceRef.js.map +1 -0
  72. package/grade/ref/NamespaceRef.ts +159 -0
  73. package/grade/ref/index.d.ts +3 -0
  74. package/grade/ref/index.js +24 -0
  75. package/grade/ref/index.js.map +1 -0
  76. package/grade/ref/index.ts +22 -0
  77. package/grade/stampSheet/AddGradeByUserId.d.ts +13 -0
  78. package/grade/stampSheet/AddGradeByUserId.js +53 -0
  79. package/grade/stampSheet/AddGradeByUserId.js.map +1 -0
  80. package/grade/stampSheet/AddGradeByUserId.ts +69 -0
  81. package/grade/stampSheet/ApplyRankCapByUserId.d.ts +12 -0
  82. package/grade/stampSheet/ApplyRankCapByUserId.js +48 -0
  83. package/grade/stampSheet/ApplyRankCapByUserId.js.map +1 -0
  84. package/grade/stampSheet/ApplyRankCapByUserId.ts +63 -0
  85. package/grade/stampSheet/MultiplyAcquireActionsByUserId.d.ts +14 -0
  86. package/grade/stampSheet/MultiplyAcquireActionsByUserId.js +57 -0
  87. package/grade/stampSheet/MultiplyAcquireActionsByUserId.js.map +1 -0
  88. package/grade/stampSheet/MultiplyAcquireActionsByUserId.ts +76 -0
  89. package/grade/stampSheet/SubGradeByUserId.d.ts +13 -0
  90. package/grade/stampSheet/SubGradeByUserId.js +53 -0
  91. package/grade/stampSheet/SubGradeByUserId.js.map +1 -0
  92. package/grade/stampSheet/SubGradeByUserId.ts +69 -0
  93. package/grade/stampSheet/VerifyGradeByUserId.d.ts +15 -0
  94. package/grade/stampSheet/VerifyGradeByUserId.js +57 -0
  95. package/grade/stampSheet/VerifyGradeByUserId.js.map +1 -0
  96. package/grade/stampSheet/VerifyGradeByUserId.ts +76 -0
  97. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.d.ts +15 -0
  98. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js +56 -0
  99. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.js.map +1 -0
  100. package/grade/stampSheet/VerifyGradeUpMaterialByUserId.ts +76 -0
  101. package/grade/stampSheet/enum/StatusVerifyType.d.ts +5 -0
  102. package/grade/stampSheet/enum/StatusVerifyType.js +23 -0
  103. package/grade/stampSheet/enum/StatusVerifyType.js.map +1 -0
  104. package/grade/stampSheet/enum/StatusVerifyType.ts +23 -0
  105. package/grade/stampSheet/index.d.ts +7 -0
  106. package/grade/stampSheet/index.js +32 -0
  107. package/grade/stampSheet/index.js.map +1 -0
  108. package/grade/stampSheet/index.ts +30 -0
  109. package/package.json +1 -1
  110. package/stateMachine/ref/NamespaceRef.d.ts +1 -2
  111. package/stateMachine/ref/NamespaceRef.js +2 -2
  112. package/stateMachine/ref/NamespaceRef.js.map +1 -1
  113. package/stateMachine/ref/NamespaceRef.ts +0 -3
  114. package/stateMachine/stampSheet/StartStateMachineByUserId.d.ts +1 -3
  115. package/stateMachine/stampSheet/StartStateMachineByUserId.js +1 -6
  116. package/stateMachine/stampSheet/StartStateMachineByUserId.js.map +1 -1
  117. package/stateMachine/stampSheet/StartStateMachineByUserId.ts +0 -7
@@ -0,0 +1,21 @@
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 GradeEntryModelOptions {
18
+ metadata?: string|null;
19
+ propertyIdRegex?: string|null;
20
+ }
21
+
@@ -0,0 +1,7 @@
1
+ import DefaultGradeModel from "../DefaultGradeModel";
2
+ import AcquireActionRate from "../AcquireActionRate";
3
+ export interface GradeModelOptions {
4
+ metadata?: string | null;
5
+ defaultGrades?: DefaultGradeModel[] | null;
6
+ acquireActionRates?: AcquireActionRate[] | null;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=GradeModelOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradeModelOptions.js","sourceRoot":"","sources":["GradeModelOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
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 DefaultGradeModel from "../DefaultGradeModel";
17
+ import GradeEntryModel from "../GradeEntryModel";
18
+ import AcquireActionRate from "../AcquireActionRate";
19
+
20
+ export interface GradeModelOptions {
21
+ metadata?: string|null;
22
+ defaultGrades?: DefaultGradeModel[]|null;
23
+ acquireActionRates?: AcquireActionRate[]|null;
24
+ }
25
+
@@ -0,0 +1,9 @@
1
+ import TransactionSetting from "../../../core/model/TransactionSetting";
2
+ import ScriptSetting from "../../../core/model/ScriptSetting";
3
+ import LogSetting from "../../../core/model/LogSetting";
4
+ export interface NamespaceOptions {
5
+ description?: string | null;
6
+ transactionSetting?: TransactionSetting | null;
7
+ changeGradeScript?: ScriptSetting | null;
8
+ logSetting?: LogSetting | null;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=NamespaceOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamespaceOptions.js","sourceRoot":"","sources":["NamespaceOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
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 TransactionSetting from "../../../core/model/TransactionSetting";
17
+ import ScriptSetting from "../../../core/model/ScriptSetting";
18
+ import LogSetting from "../../../core/model/LogSetting";
19
+
20
+ export interface NamespaceOptions {
21
+ description?: string|null;
22
+ transactionSetting?: TransactionSetting|null;
23
+ changeGradeScript?: ScriptSetting|null;
24
+ logSetting?: LogSetting|null;
25
+ }
26
+
@@ -0,0 +1,6 @@
1
+ export default class GradeModelRef {
2
+ private readonly namespaceName;
3
+ private readonly gradeName;
4
+ constructor(namespaceName: string, gradeName: string);
5
+ grn(): string;
6
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const func_1 = require("../../core/func");
19
+ class GradeModelRef {
20
+ constructor(namespaceName, gradeName) {
21
+ this.namespaceName = namespaceName;
22
+ this.gradeName = gradeName;
23
+ }
24
+ grn() {
25
+ return new func_1.Join(":", [
26
+ "grn",
27
+ "gs2",
28
+ func_1.GetAttr.region().str(),
29
+ func_1.GetAttr.ownerId().str(),
30
+ "grade",
31
+ this.namespaceName,
32
+ "model",
33
+ this.gradeName,
34
+ ]).str();
35
+ }
36
+ }
37
+ exports.default = GradeModelRef;
38
+ //# sourceMappingURL=GradeModelRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradeModelRef.js","sourceRoot":"","sources":["GradeModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,0CAA8C;AAE9C,MAAqB,aAAa;IAI9B,YACI,aAAqB,EACrB,SAAiB;QAEjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,OAAO;YACP,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,IAAI,CAAC,SAAS;SACjB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,gCAiCC"}
@@ -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 GradeModelRef {
20
+ private readonly namespaceName: string;
21
+ private readonly gradeName: string;
22
+
23
+ public constructor(
24
+ namespaceName: string,
25
+ gradeName: string,
26
+ ) {
27
+ this.namespaceName = namespaceName;
28
+ this.gradeName = gradeName;
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
+ "grade",
45
+ this.namespaceName,
46
+ "model",
47
+ this.gradeName,
48
+ ],
49
+ ).str(
50
+ );
51
+ }
52
+ }
@@ -0,0 +1,21 @@
1
+ import GradeModelRef from "./GradeModelRef";
2
+ import AddGradeByUserId from "../stampSheet/AddGradeByUserId";
3
+ import ApplyRankCapByUserId from "../stampSheet/ApplyRankCapByUserId";
4
+ import MultiplyAcquireActionsByUserId from "../stampSheet/MultiplyAcquireActionsByUserId";
5
+ import { AcquireAction } from "../../core/model";
6
+ import SubGradeByUserId from "../stampSheet/SubGradeByUserId";
7
+ import VerifyGradeByUserId from "../stampSheet/VerifyGradeByUserId";
8
+ import { StatusVerifyType } from "../stampSheet/enum/StatusVerifyType";
9
+ import VerifyGradeUpMaterialByUserId from "../stampSheet/VerifyGradeUpMaterialByUserId";
10
+ export default class NamespaceRef {
11
+ private readonly namespaceName;
12
+ constructor(namespaceName: string);
13
+ gradeModel(gradeName: string): GradeModelRef;
14
+ addGrade(gradeName: string, propertyId: string, gradeValue?: number | null, userId?: string): AddGradeByUserId;
15
+ applyRankCap(gradeName: string, propertyId: string, userId?: string): ApplyRankCapByUserId;
16
+ multiplyAcquireActions(gradeName: string, propertyId: string, rateName: string, acquireActions?: AcquireAction[] | null, userId?: string): MultiplyAcquireActionsByUserId;
17
+ subGrade(gradeName: string, propertyId: string, gradeValue?: number | null, userId?: string): SubGradeByUserId;
18
+ verifyGrade(gradeName: string, verifyType: StatusVerifyType, propertyId: string, gradeValue?: number | null, userId?: string): VerifyGradeByUserId;
19
+ verifyGradeUpMaterial(gradeName: string, verifyType: StatusVerifyType, propertyId: string, materialPropertyId: string, userId?: string): VerifyGradeUpMaterialByUserId;
20
+ grn(): string;
21
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const tslib_1 = require("tslib");
19
+ const func_1 = require("../../core/func");
20
+ const GradeModelRef_1 = tslib_1.__importDefault(require("./GradeModelRef"));
21
+ const AddGradeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AddGradeByUserId"));
22
+ const ApplyRankCapByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ApplyRankCapByUserId"));
23
+ const MultiplyAcquireActionsByUserId_1 = tslib_1.__importDefault(require("../stampSheet/MultiplyAcquireActionsByUserId"));
24
+ const SubGradeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/SubGradeByUserId"));
25
+ const VerifyGradeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyGradeByUserId"));
26
+ const VerifyGradeUpMaterialByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyGradeUpMaterialByUserId"));
27
+ class NamespaceRef {
28
+ constructor(namespaceName) {
29
+ this.namespaceName = namespaceName;
30
+ }
31
+ gradeModel(gradeName) {
32
+ return new GradeModelRef_1.default(this.namespaceName, gradeName);
33
+ }
34
+ addGrade(gradeName, propertyId, gradeValue = null, userId = "#{userId}") {
35
+ return new AddGradeByUserId_1.default(this.namespaceName, gradeName, propertyId, gradeValue, userId);
36
+ }
37
+ applyRankCap(gradeName, propertyId, userId = "#{userId}") {
38
+ return new ApplyRankCapByUserId_1.default(this.namespaceName, gradeName, propertyId, userId);
39
+ }
40
+ multiplyAcquireActions(gradeName, propertyId, rateName, acquireActions = null, userId = "#{userId}") {
41
+ return new MultiplyAcquireActionsByUserId_1.default(this.namespaceName, gradeName, propertyId, rateName, acquireActions, userId);
42
+ }
43
+ subGrade(gradeName, propertyId, gradeValue = null, userId = "#{userId}") {
44
+ return new SubGradeByUserId_1.default(this.namespaceName, gradeName, propertyId, gradeValue, userId);
45
+ }
46
+ verifyGrade(gradeName, verifyType, propertyId, gradeValue = null, userId = "#{userId}") {
47
+ return new VerifyGradeByUserId_1.default(this.namespaceName, gradeName, verifyType, propertyId, gradeValue, userId);
48
+ }
49
+ verifyGradeUpMaterial(gradeName, verifyType, propertyId, materialPropertyId, userId = "#{userId}") {
50
+ return new VerifyGradeUpMaterialByUserId_1.default(this.namespaceName, gradeName, verifyType, propertyId, materialPropertyId, userId);
51
+ }
52
+ grn() {
53
+ return new func_1.Join(":", [
54
+ "grn",
55
+ "gs2",
56
+ func_1.GetAttr.region().str(),
57
+ func_1.GetAttr.ownerId().str(),
58
+ "grade",
59
+ this.namespaceName,
60
+ ]).str();
61
+ }
62
+ }
63
+ exports.default = NamespaceRef;
64
+ //# sourceMappingURL=NamespaceRef.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4EAA4C;AAC5C,8FAA8D;AAC9D,sGAAsE;AACtE,0HAA0F;AAE1F,8FAA8D;AAC9D,oGAAoE;AAEpE,wHAAwF;AAExF,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,UAAU,CACb,SAAiB;QAEjB,OAAO,IAAI,uBAAa,CACpB,IAAI,CAAC,aAAa,EAClB,SAAS,CACZ,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,SAAiB,EACjB,UAAkB,EAClB,aAA0B,IAAI,EAC9B,SAAiB,WAAW;QAE5B,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,YAAY,CACf,SAAiB,EACjB,UAAkB,EAClB,SAAiB,WAAW;QAE5B,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,sBAAsB,CACzB,SAAiB,EACjB,UAAkB,EAClB,QAAgB,EAChB,iBAAuC,IAAI,EAC3C,SAAiB,WAAW;QAE5B,OAAO,IAAI,wCAA8B,CACrC,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,SAAiB,EACjB,UAAkB,EAClB,aAA0B,IAAI,EAC9B,SAAiB,WAAW;QAE5B,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,WAAW,CACd,SAAiB,EACjB,UAA4B,EAC5B,UAAkB,EAClB,aAA0B,IAAI,EAC9B,SAAiB,WAAW;QAE5B,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,MAAM,CACT,CAAC;IACN,CAAC;IAEM,qBAAqB,CACxB,SAAiB,EACjB,UAA4B,EAC5B,UAAkB,EAClB,kBAA0B,EAC1B,SAAiB,WAAW;QAE5B,OAAO,IAAI,uCAA6B,CACpC,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,OAAO;YACP,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAnID,+BAmIC"}
@@ -0,0 +1,159 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {GetAttr, Join} from "../../core/func";
18
+ import GradeModelRef from "./GradeModelRef";
19
+ import AddGradeByUserId from "../stampSheet/AddGradeByUserId";
20
+ import ApplyRankCapByUserId from "../stampSheet/ApplyRankCapByUserId";
21
+ import MultiplyAcquireActionsByUserId from "../stampSheet/MultiplyAcquireActionsByUserId";
22
+ import { AcquireAction } from "../../core/model";
23
+ import SubGradeByUserId from "../stampSheet/SubGradeByUserId";
24
+ import VerifyGradeByUserId from "../stampSheet/VerifyGradeByUserId";
25
+ import { StatusVerifyType } from "../stampSheet/enum/StatusVerifyType";
26
+ import VerifyGradeUpMaterialByUserId from "../stampSheet/VerifyGradeUpMaterialByUserId";
27
+
28
+ export default class NamespaceRef {
29
+ private readonly namespaceName: string;
30
+
31
+ public constructor(
32
+ namespaceName: string,
33
+ ) {
34
+ this.namespaceName = namespaceName;
35
+ }
36
+
37
+ public gradeModel(
38
+ gradeName: string,
39
+ ): GradeModelRef {
40
+ return new GradeModelRef(
41
+ this.namespaceName,
42
+ gradeName,
43
+ );
44
+ }
45
+
46
+ public addGrade(
47
+ gradeName: string,
48
+ propertyId: string,
49
+ gradeValue: number|null = null,
50
+ userId: string = "#{userId}",
51
+ ): AddGradeByUserId {
52
+ return new AddGradeByUserId(
53
+ this.namespaceName,
54
+ gradeName,
55
+ propertyId,
56
+ gradeValue,
57
+ userId,
58
+ );
59
+ }
60
+
61
+ public applyRankCap(
62
+ gradeName: string,
63
+ propertyId: string,
64
+ userId: string = "#{userId}",
65
+ ): ApplyRankCapByUserId {
66
+ return new ApplyRankCapByUserId(
67
+ this.namespaceName,
68
+ gradeName,
69
+ propertyId,
70
+ userId,
71
+ );
72
+ }
73
+
74
+ public multiplyAcquireActions(
75
+ gradeName: string,
76
+ propertyId: string,
77
+ rateName: string,
78
+ acquireActions: AcquireAction[]|null = null,
79
+ userId: string = "#{userId}",
80
+ ): MultiplyAcquireActionsByUserId {
81
+ return new MultiplyAcquireActionsByUserId(
82
+ this.namespaceName,
83
+ gradeName,
84
+ propertyId,
85
+ rateName,
86
+ acquireActions,
87
+ userId,
88
+ );
89
+ }
90
+
91
+ public subGrade(
92
+ gradeName: string,
93
+ propertyId: string,
94
+ gradeValue: number|null = null,
95
+ userId: string = "#{userId}",
96
+ ): SubGradeByUserId {
97
+ return new SubGradeByUserId(
98
+ this.namespaceName,
99
+ gradeName,
100
+ propertyId,
101
+ gradeValue,
102
+ userId,
103
+ );
104
+ }
105
+
106
+ public verifyGrade(
107
+ gradeName: string,
108
+ verifyType: StatusVerifyType,
109
+ propertyId: string,
110
+ gradeValue: number|null = null,
111
+ userId: string = "#{userId}",
112
+ ): VerifyGradeByUserId {
113
+ return new VerifyGradeByUserId(
114
+ this.namespaceName,
115
+ gradeName,
116
+ verifyType,
117
+ propertyId,
118
+ gradeValue,
119
+ userId,
120
+ );
121
+ }
122
+
123
+ public verifyGradeUpMaterial(
124
+ gradeName: string,
125
+ verifyType: StatusVerifyType,
126
+ propertyId: string,
127
+ materialPropertyId: string,
128
+ userId: string = "#{userId}",
129
+ ): VerifyGradeUpMaterialByUserId {
130
+ return new VerifyGradeUpMaterialByUserId(
131
+ this.namespaceName,
132
+ gradeName,
133
+ verifyType,
134
+ propertyId,
135
+ materialPropertyId,
136
+ userId,
137
+ );
138
+ }
139
+
140
+ public grn(
141
+ ): string {
142
+ return new Join(
143
+ ":",
144
+ [
145
+ "grn",
146
+ "gs2",
147
+ GetAttr.region(
148
+ ).str(
149
+ ),
150
+ GetAttr.ownerId(
151
+ ).str(
152
+ ),
153
+ "grade",
154
+ this.namespaceName,
155
+ ],
156
+ ).str(
157
+ );
158
+ }
159
+ }
@@ -0,0 +1,3 @@
1
+ import NamespaceRef from "./NamespaceRef";
2
+ import GradeModelRef from "./GradeModelRef";
3
+ export { NamespaceRef, GradeModelRef, };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GradeModelRef = exports.NamespaceRef = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /*
6
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
7
+ * Reserved.
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License").
10
+ * You may not use this file except in compliance with the License.
11
+ * A copy of the License is located at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * or in the "license" file accompanying this file. This file is distributed
16
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17
+ * express or implied. See the License for the specific language governing
18
+ * permissions and limitations under the License.
19
+ */
20
+ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
21
+ exports.NamespaceRef = NamespaceRef_1.default;
22
+ const GradeModelRef_1 = tslib_1.__importDefault(require("./GradeModelRef"));
23
+ exports.GradeModelRef = GradeModelRef_1.default;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAItC,uBAJG,sBAAY,CAIH;AAHhB,4EAA4C;AAIxC,wBAJG,uBAAa,CAIH"}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+ import NamespaceRef from "./NamespaceRef";
17
+ import GradeModelRef from "./GradeModelRef";
18
+
19
+ export {
20
+ NamespaceRef,
21
+ GradeModelRef,
22
+ }
@@ -0,0 +1,13 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ export default class AddGradeByUserId extends AcquireAction {
3
+ private readonly namespaceName;
4
+ private readonly userId;
5
+ private readonly gradeName;
6
+ private readonly propertyId;
7
+ private readonly gradeValue;
8
+ constructor(namespaceName: string, gradeName: string, propertyId: string, gradeValue?: number | null, userId?: string);
9
+ request(): {
10
+ [name: string]: any;
11
+ };
12
+ action(): string;
13
+ }
@@ -0,0 +1,53 @@
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 AddGradeByUserId extends model_1.AcquireAction {
20
+ constructor(namespaceName, gradeName, propertyId, gradeValue = null, userId = "#{userId}") {
21
+ super();
22
+ this.gradeValue = null;
23
+ this.namespaceName = namespaceName;
24
+ this.gradeName = gradeName;
25
+ this.propertyId = propertyId;
26
+ this.gradeValue = gradeValue !== null && gradeValue !== void 0 ? gradeValue : null;
27
+ this.userId = userId;
28
+ }
29
+ request() {
30
+ let properties = {};
31
+ if (this.namespaceName != null) {
32
+ properties["namespaceName"] = this.namespaceName;
33
+ }
34
+ if (this.userId != null) {
35
+ properties["userId"] = this.userId;
36
+ }
37
+ if (this.gradeName != null) {
38
+ properties["gradeName"] = this.gradeName;
39
+ }
40
+ if (this.propertyId != null) {
41
+ properties["propertyId"] = this.propertyId;
42
+ }
43
+ if (this.gradeValue != null) {
44
+ properties["gradeValue"] = this.gradeValue;
45
+ }
46
+ return properties;
47
+ }
48
+ action() {
49
+ return "Gs2Grade:AddGradeByUserId";
50
+ }
51
+ }
52
+ exports.default = AddGradeByUserId;
53
+ //# sourceMappingURL=AddGradeByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddGradeByUserId.js","sourceRoot":"","sources":["AddGradeByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,gBAAiB,SAAQ,qBAAa;IAQvD,YACI,aAAqB,EACrB,SAAiB,EACjB,UAAkB,EAClB,aAA0B,IAAI,EAC9B,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAVK,eAAU,GAAgB,IAAI,CAAC;QAY5C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,IAAI,CAAC;QACrC,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,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,2BAA2B,CAAC;IACvC,CAAC;CACJ;AAlDD,mCAkDC"}
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
3
+ * Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License").
6
+ * You may not use this file except in compliance with the License.
7
+ * A copy of the License is located at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * or in the "license" file accompanying this file. This file is distributed
12
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ * express or implied. See the License for the specific language governing
14
+ * permissions and limitations under the License.
15
+ */
16
+
17
+ import {AcquireAction, ConsumeAction} from "../../core/model";
18
+
19
+ export default class AddGradeByUserId extends AcquireAction {
20
+ private readonly namespaceName: string;
21
+ private readonly userId: string;
22
+ private readonly gradeName: string;
23
+ private readonly propertyId: string;
24
+ private readonly gradeValue: number|null = null;
25
+
26
+
27
+ public constructor(
28
+ namespaceName: string,
29
+ gradeName: string,
30
+ propertyId: string,
31
+ gradeValue: number|null = null,
32
+ userId: string = "#{userId}",
33
+ ) {
34
+ super();
35
+
36
+ this.namespaceName = namespaceName;
37
+ this.gradeName = gradeName;
38
+ this.propertyId = propertyId;
39
+ this.gradeValue = gradeValue ?? null;
40
+ this.userId = userId;
41
+ }
42
+
43
+ public request(
44
+ ): {[name: string]: any} {
45
+ let properties: {[name: string]: any} = {};
46
+
47
+ if (this.namespaceName != null) {
48
+ properties["namespaceName"] = this.namespaceName;
49
+ }
50
+ if (this.userId != null) {
51
+ properties["userId"] = this.userId;
52
+ }
53
+ if (this.gradeName != null) {
54
+ properties["gradeName"] = this.gradeName;
55
+ }
56
+ if (this.propertyId != null) {
57
+ properties["propertyId"] = this.propertyId;
58
+ }
59
+ if (this.gradeValue != null) {
60
+ properties["gradeValue"] = this.gradeValue;
61
+ }
62
+
63
+ return properties;
64
+ }
65
+
66
+ public action(): string {
67
+ return "Gs2Grade:AddGradeByUserId";
68
+ }
69
+ }