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,12 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ export default class ApplyRankCapByUserId extends AcquireAction {
3
+ private readonly namespaceName;
4
+ private readonly userId;
5
+ private readonly gradeName;
6
+ private readonly propertyId;
7
+ constructor(namespaceName: string, gradeName: string, propertyId: string, userId?: string);
8
+ request(): {
9
+ [name: string]: any;
10
+ };
11
+ action(): string;
12
+ }
@@ -0,0 +1,48 @@
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 ApplyRankCapByUserId extends model_1.AcquireAction {
20
+ constructor(namespaceName, gradeName, propertyId, userId = "#{userId}") {
21
+ super();
22
+ this.namespaceName = namespaceName;
23
+ this.gradeName = gradeName;
24
+ this.propertyId = propertyId;
25
+ this.userId = userId;
26
+ }
27
+ request() {
28
+ let properties = {};
29
+ if (this.namespaceName != null) {
30
+ properties["namespaceName"] = this.namespaceName;
31
+ }
32
+ if (this.userId != null) {
33
+ properties["userId"] = this.userId;
34
+ }
35
+ if (this.gradeName != null) {
36
+ properties["gradeName"] = this.gradeName;
37
+ }
38
+ if (this.propertyId != null) {
39
+ properties["propertyId"] = this.propertyId;
40
+ }
41
+ return properties;
42
+ }
43
+ action() {
44
+ return "Gs2Grade:ApplyRankCapByUserId";
45
+ }
46
+ }
47
+ exports.default = ApplyRankCapByUserId;
48
+ //# sourceMappingURL=ApplyRankCapByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplyRankCapByUserId.js","sourceRoot":"","sources":["ApplyRankCapByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,oBAAqB,SAAQ,qBAAa;IAO3D,YACI,aAAqB,EACrB,SAAiB,EACjB,UAAkB,EAClB,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,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,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;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,+BAA+B,CAAC;IAC3C,CAAC;CACJ;AA5CD,uCA4CC"}
@@ -0,0 +1,63 @@
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 ApplyRankCapByUserId extends AcquireAction {
20
+ private readonly namespaceName: string;
21
+ private readonly userId: string;
22
+ private readonly gradeName: string;
23
+ private readonly propertyId: string;
24
+
25
+
26
+ public constructor(
27
+ namespaceName: string,
28
+ gradeName: string,
29
+ propertyId: string,
30
+ userId: string = "#{userId}",
31
+ ) {
32
+ super();
33
+
34
+ this.namespaceName = namespaceName;
35
+ this.gradeName = gradeName;
36
+ this.propertyId = propertyId;
37
+ this.userId = userId;
38
+ }
39
+
40
+ public request(
41
+ ): {[name: string]: any} {
42
+ let properties: {[name: string]: any} = {};
43
+
44
+ if (this.namespaceName != null) {
45
+ properties["namespaceName"] = this.namespaceName;
46
+ }
47
+ if (this.userId != null) {
48
+ properties["userId"] = this.userId;
49
+ }
50
+ if (this.gradeName != null) {
51
+ properties["gradeName"] = this.gradeName;
52
+ }
53
+ if (this.propertyId != null) {
54
+ properties["propertyId"] = this.propertyId;
55
+ }
56
+
57
+ return properties;
58
+ }
59
+
60
+ public action(): string {
61
+ return "Gs2Grade:ApplyRankCapByUserId";
62
+ }
63
+ }
@@ -0,0 +1,14 @@
1
+ import { AcquireAction } from "../../core/model";
2
+ export default class MultiplyAcquireActionsByUserId extends AcquireAction {
3
+ private readonly namespaceName;
4
+ private readonly userId;
5
+ private readonly gradeName;
6
+ private readonly propertyId;
7
+ private readonly rateName;
8
+ private readonly acquireActions;
9
+ constructor(namespaceName: string, gradeName: string, propertyId: string, rateName: string, acquireActions?: AcquireAction[] | null, userId?: string);
10
+ request(): {
11
+ [name: string]: any;
12
+ };
13
+ action(): string;
14
+ }
@@ -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 MultiplyAcquireActionsByUserId extends model_1.AcquireAction {
20
+ constructor(namespaceName, gradeName, propertyId, rateName, acquireActions = null, userId = "#{userId}") {
21
+ super();
22
+ this.acquireActions = null;
23
+ this.namespaceName = namespaceName;
24
+ this.gradeName = gradeName;
25
+ this.propertyId = propertyId;
26
+ this.rateName = rateName;
27
+ this.acquireActions = acquireActions !== null && acquireActions !== void 0 ? acquireActions : 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.userId != null) {
36
+ properties["userId"] = this.userId;
37
+ }
38
+ if (this.gradeName != null) {
39
+ properties["gradeName"] = this.gradeName;
40
+ }
41
+ if (this.propertyId != null) {
42
+ properties["propertyId"] = this.propertyId;
43
+ }
44
+ if (this.rateName != null) {
45
+ properties["rateName"] = this.rateName;
46
+ }
47
+ if (this.acquireActions != null) {
48
+ properties["acquireActions"] = this.acquireActions.map(v => v.properties());
49
+ }
50
+ return properties;
51
+ }
52
+ action() {
53
+ return "Gs2Grade:MultiplyAcquireActionsByUserId";
54
+ }
55
+ }
56
+ exports.default = MultiplyAcquireActionsByUserId;
57
+ //# sourceMappingURL=MultiplyAcquireActionsByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiplyAcquireActionsByUserId.js","sourceRoot":"","sources":["MultiplyAcquireActionsByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,8BAA+B,SAAQ,qBAAa;IASrE,YACI,aAAqB,EACrB,SAAiB,EACjB,UAAkB,EAClB,QAAgB,EAChB,iBAAuC,IAAI,EAC3C,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAXK,mBAAc,GAAyB,IAAI,CAAC;QAazD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,IAAI,CAAC;QAC7C,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,yCAAyC,CAAC;IACrD,CAAC;CACJ;AAzDD,iDAyDC"}
@@ -0,0 +1,76 @@
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 MultiplyAcquireActionsByUserId 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 rateName: string;
25
+ private readonly acquireActions: AcquireAction[]|null = null;
26
+
27
+
28
+ public constructor(
29
+ namespaceName: string,
30
+ gradeName: string,
31
+ propertyId: string,
32
+ rateName: string,
33
+ acquireActions: AcquireAction[]|null = null,
34
+ userId: string = "#{userId}",
35
+ ) {
36
+ super();
37
+
38
+ this.namespaceName = namespaceName;
39
+ this.gradeName = gradeName;
40
+ this.propertyId = propertyId;
41
+ this.rateName = rateName;
42
+ this.acquireActions = acquireActions ?? null;
43
+ this.userId = userId;
44
+ }
45
+
46
+ public request(
47
+ ): {[name: string]: any} {
48
+ let properties: {[name: string]: any} = {};
49
+
50
+ if (this.namespaceName != null) {
51
+ properties["namespaceName"] = this.namespaceName;
52
+ }
53
+ if (this.userId != null) {
54
+ properties["userId"] = this.userId;
55
+ }
56
+ if (this.gradeName != null) {
57
+ properties["gradeName"] = this.gradeName;
58
+ }
59
+ if (this.propertyId != null) {
60
+ properties["propertyId"] = this.propertyId;
61
+ }
62
+ if (this.rateName != null) {
63
+ properties["rateName"] = this.rateName;
64
+ }
65
+ if (this.acquireActions != null) {
66
+ properties["acquireActions"] = this.acquireActions.map(v => v.properties(
67
+ ));
68
+ }
69
+
70
+ return properties;
71
+ }
72
+
73
+ public action(): string {
74
+ return "Gs2Grade:MultiplyAcquireActionsByUserId";
75
+ }
76
+ }
@@ -0,0 +1,13 @@
1
+ import { ConsumeAction } from "../../core/model";
2
+ export default class SubGradeByUserId extends ConsumeAction {
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 SubGradeByUserId extends model_1.ConsumeAction {
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:SubGradeByUserId";
50
+ }
51
+ }
52
+ exports.default = SubGradeByUserId;
53
+ //# sourceMappingURL=SubGradeByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubGradeByUserId.js","sourceRoot":"","sources":["SubGradeByUserId.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 SubGradeByUserId extends ConsumeAction {
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:SubGradeByUserId";
68
+ }
69
+ }
@@ -0,0 +1,15 @@
1
+ import { ConsumeAction } from "../../core/model";
2
+ import { StatusVerifyType } from "./enum/StatusVerifyType";
3
+ export default class VerifyGradeByUserId extends ConsumeAction {
4
+ private readonly namespaceName;
5
+ private readonly userId;
6
+ private readonly gradeName;
7
+ private readonly verifyType;
8
+ private readonly propertyId;
9
+ private readonly gradeValue;
10
+ constructor(namespaceName: string, gradeName: string, verifyType: StatusVerifyType, propertyId: string, gradeValue?: number | 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 VerifyGradeByUserId extends model_1.ConsumeAction {
20
+ constructor(namespaceName, gradeName, verifyType, propertyId, gradeValue = null, userId = "#{userId}") {
21
+ super();
22
+ this.gradeValue = null;
23
+ this.namespaceName = namespaceName;
24
+ this.gradeName = gradeName;
25
+ this.verifyType = verifyType;
26
+ this.propertyId = propertyId;
27
+ this.gradeValue = gradeValue !== null && gradeValue !== void 0 ? gradeValue : 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.userId != null) {
36
+ properties["userId"] = this.userId;
37
+ }
38
+ if (this.gradeName != null) {
39
+ properties["gradeName"] = this.gradeName;
40
+ }
41
+ if (this.verifyType != null) {
42
+ properties["verifyType"] = this.verifyType;
43
+ }
44
+ if (this.propertyId != null) {
45
+ properties["propertyId"] = this.propertyId;
46
+ }
47
+ if (this.gradeValue != null) {
48
+ properties["gradeValue"] = this.gradeValue;
49
+ }
50
+ return properties;
51
+ }
52
+ action() {
53
+ return "Gs2Grade:VerifyGradeByUserId";
54
+ }
55
+ }
56
+ exports.default = VerifyGradeByUserId;
57
+ //# sourceMappingURL=VerifyGradeByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyGradeByUserId.js","sourceRoot":"","sources":["VerifyGradeByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,mBAAoB,SAAQ,qBAAa;IAS1D,YACI,aAAqB,EACrB,SAAiB,EACjB,UAA4B,EAC5B,UAAkB,EAClB,aAA0B,IAAI,EAC9B,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAXK,eAAU,GAAgB,IAAI,CAAC;QAa5C,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,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;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,8BAA8B,CAAC;IAC1C,CAAC;CACJ;AAxDD,sCAwDC"}
@@ -0,0 +1,76 @@
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 { StatusVerifyType } from "./enum/StatusVerifyType";
19
+
20
+ export default class VerifyGradeByUserId extends ConsumeAction {
21
+ private readonly namespaceName: string;
22
+ private readonly userId: string;
23
+ private readonly gradeName: string;
24
+ private readonly verifyType: StatusVerifyType;
25
+ private readonly propertyId: string;
26
+ private readonly gradeValue: number|null = null;
27
+
28
+
29
+ public constructor(
30
+ namespaceName: string,
31
+ gradeName: string,
32
+ verifyType: StatusVerifyType,
33
+ propertyId: string,
34
+ gradeValue: number|null = null,
35
+ userId: string = "#{userId}",
36
+ ) {
37
+ super();
38
+
39
+ this.namespaceName = namespaceName;
40
+ this.gradeName = gradeName;
41
+ this.verifyType = verifyType;
42
+ this.propertyId = propertyId;
43
+ this.gradeValue = gradeValue ?? 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.userId != null) {
55
+ properties["userId"] = this.userId;
56
+ }
57
+ if (this.gradeName != null) {
58
+ properties["gradeName"] = this.gradeName;
59
+ }
60
+ if (this.verifyType != null) {
61
+ properties["verifyType"] = this.verifyType;
62
+ }
63
+ if (this.propertyId != null) {
64
+ properties["propertyId"] = this.propertyId;
65
+ }
66
+ if (this.gradeValue != null) {
67
+ properties["gradeValue"] = this.gradeValue;
68
+ }
69
+
70
+ return properties;
71
+ }
72
+
73
+ public action(): string {
74
+ return "Gs2Grade:VerifyGradeByUserId";
75
+ }
76
+ }
@@ -0,0 +1,15 @@
1
+ import { ConsumeAction } from "../../core/model";
2
+ import { StatusVerifyType } from "./enum/StatusVerifyType";
3
+ export default class VerifyGradeUpMaterialByUserId extends ConsumeAction {
4
+ private readonly namespaceName;
5
+ private readonly userId;
6
+ private readonly gradeName;
7
+ private readonly verifyType;
8
+ private readonly propertyId;
9
+ private readonly materialPropertyId;
10
+ constructor(namespaceName: string, gradeName: string, verifyType: StatusVerifyType, propertyId: string, materialPropertyId: string, userId?: string);
11
+ request(): {
12
+ [name: string]: any;
13
+ };
14
+ action(): string;
15
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
4
+ * Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License").
7
+ * You may not use this file except in compliance with the License.
8
+ * A copy of the License is located at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * or in the "license" file accompanying this file. This file is distributed
13
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ * express or implied. See the License for the specific language governing
15
+ * permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ const model_1 = require("../../core/model");
19
+ class VerifyGradeUpMaterialByUserId extends model_1.ConsumeAction {
20
+ constructor(namespaceName, gradeName, verifyType, propertyId, materialPropertyId, userId = "#{userId}") {
21
+ super();
22
+ this.namespaceName = namespaceName;
23
+ this.gradeName = gradeName;
24
+ this.verifyType = verifyType;
25
+ this.propertyId = propertyId;
26
+ this.materialPropertyId = materialPropertyId;
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.verifyType != null) {
41
+ properties["verifyType"] = this.verifyType;
42
+ }
43
+ if (this.propertyId != null) {
44
+ properties["propertyId"] = this.propertyId;
45
+ }
46
+ if (this.materialPropertyId != null) {
47
+ properties["materialPropertyId"] = this.materialPropertyId;
48
+ }
49
+ return properties;
50
+ }
51
+ action() {
52
+ return "Gs2Grade:VerifyGradeUpMaterialByUserId";
53
+ }
54
+ }
55
+ exports.default = VerifyGradeUpMaterialByUserId;
56
+ //# sourceMappingURL=VerifyGradeUpMaterialByUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyGradeUpMaterialByUserId.js","sourceRoot":"","sources":["VerifyGradeUpMaterialByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAG9D,MAAqB,6BAA8B,SAAQ,qBAAa;IASpE,YACI,aAAqB,EACrB,SAAiB,EACjB,UAA4B,EAC5B,UAAkB,EAClB,kBAA0B,EAC1B,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAER,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,CAAC;QAC7B,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,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;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,wCAAwC,CAAC;IACpD,CAAC;CACJ;AAxDD,gDAwDC"}